Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local torso = player.Character.Torso
- local mouse = player:GetMouse()
- local tpEnabled = false
- mouse.Button1Down:connect(function()
- local mT = mouse.Target
- if mT.ClassName == "Part" and tpEnabled == true then
- torso.CFrame = CFrame.new(mouse.Hit.p)
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- tpEnabled = not tpEnabled
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement