✓ Accepted answer
XviperIink said, use TouchedEnded. I'll tell some more thing, you can do the script like this, I have nothing to describe from this, but something ill say.
You can do else from the function if there have no more speed changers. You know how else work, right? So you can fix the problem with this shortcut.
But I'll make the highest recommendation script that's if there have speed changers or no, you also can copy & paste to inside.
There some issues. The humanoid did not exist while are at building mode, as known that not a running mode or testing, or playing mode. So, make :FindFirstChild().
More descriptions was at the script.
local part = script.parent
local function steppedOn(function(plr)
if h then
parent.FindFirst("Humanoid").WalkSpeed = 60
end
end
local function steppedOff(function(plr)
if h then
parent.FindFirstChild("Humanoid").WalkSpeed = 16
end
end
part.Touched:Connect(steppedOn)
part.TouchedEnded:Connect(SteppedOff)
Hey, we did it!
If you have more problems, comment in the below, ill cya later, bye bye~~~~~~~ :D
2 comments
Use TouchedEnded.
Thanks. I will test tomorrow.