Palazikaka

Untitled

Dec 12th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. -- Что бы активировать нажмите на F / To activate press F
  2.  
  3. -- Scripting --
  4. local KeyCode = Enum.KeyCode.F
  5.  
  6. _G.ClickTP = KeyCode
  7.  
  8. local InputBegan = game:GetService("UserInputService").InputBegan
  9. local InputEnded = game:GetService("UserInputService").InputEnded
  10.  
  11. local Player = game:GetService("Players").LocalPlayer
  12. local Mouse = Player:GetMouse()
  13. InputBegan:connect(function(I, V)
  14. if V then return end
  15. if I.KeyCode == _G.ClickTP then
  16. Player.Character.HumanoidRootPart.CFrame = CFrame.new(Mouse.Hit.x, Mouse.Hit.y + 5, Mouse.Hit.z)
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment