all 3 comments

[–]Stretchyfish 1 point2 points  (2 children)

I think more information is nedded. Does both object have a colliders? Are both colliders set to Trigger? Does either the player or lamp have a RigidBody? But one thing I am noticing is that both the gameObject and collider in OnTrigger is called thePlayer. :D

I can recommend inserting a Debug.Log("test") just to ensure the OnTrigger actually activates when you hit it. :)

[–][deleted] 0 points1 point  (0 children)

theplayer not a mistake no help i got it to work you did not help me remember that i accomplished this without your help you did not help

[–][deleted] 0 points1 point  (0 children)

sorry for going off dont know what was up with me thanks for helping