Hi I am making an SCP game and I am scripting a script for SCP 173
1 | local part = script.Parent |
2 |
3 | part.Touched:Connect( function (hit) |
4 | local moveable = hit.Parent:FindFirstChild( "173" ) |
5 | if (moveable~ = nil ) then |
6 | hit.Parent.Humanoid.WalkSpeed = 1 |
7 |
8 | end |
9 | end ) |
I wanna make it like whenever the humanoid that has a script named "173" touched the part that I welded to the player's "HumanoidRootPart" it will be frozen. However, it didn't work. Help appreciated!