Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
1,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2. script.Parent.ClickDetector.MouseClick:Connect(function(plr) <- click detector teleport
  3. plr.Character.Torso.CFrame = game.Workspace.Teleport2.CFrame
  4. print("teleported")
  5. end)
  6.  
  7.  
  8.  
  9. db = false
  10. script.Parent.Touched:connect(function(hit)
  11. if hit.Parent:FindFirstChild("Humanoid") then
  12. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  13. if db == false then <- normal teleport
  14. db = true
  15. hit.Parent.Torso.CFrame = game.Workspace.Teleport2.CFrame
  16. db = false
  17. end
  18. end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement