Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TeleportService = game:GetService("TeleportService")
- local placeID = 102673616782312
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- local Character = hit.Parent
- local player = game.Players:GetPlayerFromCharacter(Character)
- local teleportOptions = Instance.new("TeleportOptions")
- teleportOptions.ShouldReserveServer = true
- local teleportData = {
- AddWins = true,
- PlayerName = player.UserId
- }
- teleportOptions:SetTeleportData(teleportData)
- TeleportService:TeleportAsync(placeID, {player}, teleportOptions)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment