#What's the error here
1 messages · Page 1 of 1 (latest)
can you print what the value of “plr” is? i’m curious if that’s where the issue is
move your definition of found below if plr then
crazy
ok I'll try
it worked before with the same script tho
that's the weird thing (studio is broken 🤑 )
Ty it worked
your username 🤓
i wanted to check if the plr variable was actually getting the player value
the error message was making me think that the player value was nil
you should ideally be doing if hit.parent:FindFirstChild("Humanoid")
because if another part activates the touched it will try to get the player from a part