--This script has been created to lower the walking speed of a robloxian.
function onPlayerEntered(newPlayer) -- This finds the player
newPlayer.Character.Humanoid.WalkSpeed = 100 -- This change the walkspeed
end
game.Players.ChildAdded:connect(onPlayerEntered)
function onPlayerRespawned(newPlayer) -- This is so if you die the walkspeed stays the same as recently set
h = newPlayer:findFirstChild("Humanoid")
if h ~= nil then
if game.Workspace:findFirstChild(h.Parent.Name) ~= nil then
h.WalkSpeed = 100 -- Just make sure this is the same number
end
end
end
game.Workspace.ChildAdded:connect(onPlayerRespawned)
COMMUNITY QUESTION
How would I make this have a gamepass id?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
