after the wait() code line my script won't work, why?
So, I have this script:
1 | script.Parent.Touched:Connect( function (hit) |
2 | local humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
3 | if hit and hit.Parent:FindFirstChild( "Humanoid" ) then |
5 | hit.Parent:FindFirstChild( "HumanoidRootPart" ).CFrame = workspace.CamerasCutscene 1. Cam 2. CFrame + Vector 3. new( 0 , 0 , 0 ) |
and because of the wait(), the script won't work, if I delete it it works. But I really need that wait() to be there, can anyone tell me why, is this happening?
Thanks For Reading!