Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character
- local mouse = player:GetMouse()
- local running = false
- local runSpeed = 75
- local walkSpeed = 20
- function hintOutput(text)
- local newHint = Instance.new("Hint", workspace)
- newHint.Text = text
- game:GetService("Debris"):AddItem(newHint, 3)
- end
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- running = true
- character.Humanoid.WalkSpeed = runSpeed
- elseif key == "e" then
- if mouse.Target ~= nil and mouse.Target.Parent:FindFirstChild("Humanoid") then
- local cframe = mouse.Target.Parent.Torso.CFrame
- cframe = cframe - Vector3.new(-3, 0, 0)
- cframe = cframe.p
- character:MoveTo(cframe)
- else
- character:MoveTo(mouse.Hit.p)
- end
- elseif key == "z" then
- if mouse.Target ~= nil and mouse.Target.Parent:FindFirstChild("Humanoid") then
- for i,v in pairs(mouse.Target.Parent:GetChildren()) do
- v.Anchored = true
- end
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "f" then
- running = false
- character.Humanoid.WalkSpeed = walkSpeed
- end
- end)
- while true do
- character.Humanoid.JumpPower = 200
- character.Humanoid.MaxSlopeAngle = 90
- if running then
- character.Humanoid.WalkSpeed = runSpeed
- else
- character.Humanoid.WalkSpeed = walkSpeed
- end
- wait(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement