Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local localPlayer = game:GetService("Players").LocalPlayer
- local mouse = localPlayer:GetMouse()
- local uis = game:GetService("UserInputService")
- local hotkey = "Q" -- must be capital letter
- uis.InputBegan:Connect(function(i, gp)
- if gp then return end
- if i.KeyCode == Enum.KeyCode[hotkey] then
- localPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = mouse.Hit + Vector3.new(0, 1, 0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement