Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local localPlayer = game:GetService("Players").LocalPlayer
- local char = localPlayer.Character
- local root = char.HumanoidRootPart
- local mouse = localPlayer:GetMouse()
- if _G.ClickToTeleport == true then
- _G.ClickToTeleport = false
- else
- _G.ClickToTeleport = true
- end
- mouse.Button1Down:connect(function()
- if _G.ClickToTeleport then root.CFrame = mouse.Hit end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement