Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local char = player.Character
- local mouse = player:GetMouse()
- local uis = game:GetService("UserInputService")
- local shifthold = false
- mouse.Button1Down:Connect(function()
- if shifthold then
- char:MoveTo(mouse.Hit.p)
- end
- end)
- uis.InputBegan:Connect(function(input, process)
- if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
- shifthold = true
- end
- end)
- uis.InputEnded:Connect(function(input, process)
- if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
- shifthold = false
- end
- end)
Add Comment
Please, Sign In to add comment