Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Teleport script.
- -- Insert a tool
- -- Insert a LocalScript
- -- There needs to be a handle!
- local tool = script.Parent
- local player = game:GetService("Players").LocalPlayer
- tool.Activated:Connect(function(mouse)
- mouse.Button1Down:Connect(function()
- player.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement