Welcher Script um sich in ein Anderes Spiel teleportieren zu lassen in Roblox Studio?

1 Antwort

Vom Fragesteller als hilfreich ausgezeichnet

Nach object touch:

  1. local TeleportService = game:GetService("TeleportService")
  2.  
  3. local placeID_1 = [ID]
  4. local placeID_2 = [ID]
  5.  
  6. local function onPartTouch(otherPart)
  7. local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
  8. if player then
  9. TeleportService:Teleport(placeID_1, player)
  10. end
  11. end
  12. script.Parent.Touched:Connect(onPartTouch)