Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.ClickDetector.MouseClick:Connect(function(plr) <- click detector teleport
- plr.Character.Torso.CFrame = game.Workspace.Teleport2.CFrame
- print("teleported")
- end)
- db = false
- script.Parent.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if db == false then <- normal teleport
- db = true
- hit.Parent.Torso.CFrame = game.Workspace.Teleport2.CFrame
- db = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement