Advertisement
Guest User

Click Tp by DariuZzZ

a guest
Aug 21st, 2019
914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3.  
  4. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  5. if inputObject.KeyCode == Enum.KeyCode.Q then
  6. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  7. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  8. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  9. end
  10. end)
  11. print("Successfully Executed Script!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement