Dabrazilliandev

click tp test ig? Learning lua

May 23rd, 2025 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. local ctp = Instance.new("Tool")
  5. ctp.RequiresHandle = false
  6. ctp.Name = "skibidi click tp"
  7.  
  8. ctp.Activated:Connect(function()
  9. local targetPos = mouse.Hit.Position + Vector3.new(0, 2.5, 0)
  10. player.Character:SetPrimaryPartCFrame(CFrame.new(targetPos))
  11. end)
  12.  
  13. ctp.Parent = player.Backpack
Advertisement
Add Comment
Please, Sign In to add comment