Zodiac_Exploits

E to TP

Aug 18th, 2021
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local Input = game:GetService("UserInputService")
  2. local Plr = game.Players.LocalPlayer
  3. local Mouse = Plr:GetMouse()
  4.  
  5. function To(position)
  6. local Chr = Plr.Character
  7. if Chr ~= nil then
  8. Chr.HumanoidRootPart.CFrame = position
  9. end
  10. end
  11.  
  12. Input.InputBegan:Connect(function(input)
  13. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  14. To(Mouse.Hit.p)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment