Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.Q then
- local pos = mouse.Hit+Vector3.new(0,2.5,0)
- pos = CFrame.new(pos.X,pos.Y,pos.Z)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
- end
- end)
- print("Successfully Executed Script!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement