I'm trying to make teleporters in my active start place to teleport to an inactive place in the same game. I don't fully understand the sub-places of a game, but I'm assuming that they are the "Other Places" in a game. I've tried the sample code from the Wiki, but it doesn't seem to be working. I don't have a lot of experience with teleporting between places.
This is code inside of a touch button:
function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService("TeleportService"):Teleport(224906765, player) -- 224906765 is place id
end
end
script.Parent.Touched:connect(onTouched)

2 comments
My original script freezes my game in the middle of the teleportation. But I tried defining the teleporting player like you said, and nothing much happened. Looks like I learned something new today about shortening scripts, at least. Thanks
Your welcome, and sorry I can't be of any help...