script.Parent.Touched:Connect(function()
game.Players.Humanoid.WalkSpeed = 1
end)
^^^ An example of what I've been doing ^^^
script.Parent.Touched:Connect(function()
game.Players.Humanoid.WalkSpeed = 1
end)
^^^ An example of what I've been doing ^^^
first parameter of the touched event gives the touching part you can use that to get character
script.Parent.Touched:Connect(function(touchingPart)
hum = touchingPart.Parent:FindFirstChild("Humanoid")
if hum then
hum.WalkSpeed = 1
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
It didn't work but I did change your script a little and now it functions, thank you!