Advertisement
LSJiqueue

Q to TP

Feb 24th, 2024 (edited)
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local localPlayer = game:GetService("Players").LocalPlayer
  2. local mouse = localPlayer:GetMouse()
  3. local uis = game:GetService("UserInputService")
  4. local hotkey = "Q" -- must be capital letter
  5. uis.InputBegan:Connect(function(i, gp)
  6.     if gp then return end
  7.     if i.KeyCode == Enum.KeyCode[hotkey] then
  8.         localPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = mouse.Hit + Vector3.new(0, 1, 0)
  9.     end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement