Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(run)
- if run == "0" then
- local plr = game.Players.LocalPlayer.Name
- game.Workspace[plr].Humanoid.WalkSpeed = "100"
- -----------------------------------------------------------
- if not game.Workspace[plr]:FindFirstChild("Run") then
- local running = Instance.new("Sound", game.Workspace[plr])
- running.SoundId = "rbxassetid://520390529"
- running.Name = "Run"
- running.Looped = true
- running.Playing = true
- end
- end
- end)
- game.Players.LocalPlayer:GetMouse().KeyUp:Connect(function(walk)
- if walk == "0" then
- local plr = game.Players.LocalPlayer.Name
- game.Workspace[plr].Humanoid.WalkSpeed = "16"
- game.Workspace[plr].Run:Destroy()
- local running = Instance.new("Sound", game.Workspace[plr])
- running.SoundId = "rbxassetid://140685098"
- running.Playing = true
- wait(1)
- running:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment