My touched script doesnt work and i dont understand what the problem is. Any help?
Asked by
5 years ago Edited 5 years ago
01 | script.Parent.Touched:Connect( function (hit) |
03 | local humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
07 | print ( "touched by a humanoid" ) |
This is a server script, parented to a part in the workspace and i dont understand why this isnt working.
At first i thought it may be because of the condition in the if statement but i dont understand why it can be wrong
Any help is apriciated