abagde

click to tp

Jun 21st, 2024 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | Cybersecurity | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character or plr.CharacterAdded:Wait()
  3. local root = char:FindFirstChild("HumanoidRootPart")
  4.  
  5. print("Script Activated.")
  6. print("Author: abagde")
  7. print("For teleport just press key 'B'")
  8.  
  9. local mouse = plr:GetMouse()
  10. game:GetService("UserInputService").InputBegan:Connect(function(inp)
  11.     if inp.KeyCode == Enum.KeyCode.B then
  12.         root.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 5, mouse.Hit.Z)
  13.     end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment