script.Parent.Touched(function(part) local h = part.Parent.Humanoid if h ~= nil then h.WalkSpeed = 45 end end)
I think I just did a careless mistake. But nothing is showing up in the Output.
You missed the calling the connect
method on the Touched
event:
script.Parent.Touched:connect(function(part) local h = part.Parent:FindFirstChild("Humanoid") --also use FindFirstChild if h then --"if h" is the same as "if h ~= nil" h.WalkSpeed = 45 end end)
Locked by Redbullusa, Perci1, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?