Hi I am making an SCP game and I am scripting a script for SCP 173

local part = script.Parent

part.Touched:Connect(function(hit)
	local moveable = hit.Parent:FindFirstChild("173")
	if (moveable~=nil) then
		hit.Parent.Humanoid.WalkSpeed = 1

	end
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!

3 comments

0

what does if (moveable~=nil) then mean? try if moveable~=nil then

0

did u see that local moveable? i put random name

0

its been days i need help please