Hi, I’m making an obby game, and I need to teleport players to the obby when they choose it. I copied the ID of the place, but when I play the game, it always teleports me to the starting obby. For some reason, I solved it by putting the ID of the game it was teleporting me to, and that solved it, but now I’m getting the same problem and that doesn’t work anymore. Basically, The starting obby is called Earth World and I have another obby called Placement Test. Whenever I try to teleport to placement test, I get put in Earth world. The same thing is happening to my other obby Island. I copied the correct IDs for bolth, but I always get teleported to Earth World. What should I do?
This script runs when the player touches the portal
if game.Workspace.selrow.Value == 2 then
if hit.slot.Value == 1 then
game.Players.LocalPlayer.PlayerGui.levelgui.Frame.name.Text = "Island"
game.Players.LocalPlayer.PlayerGui.levelgui.Frame.ImageLabel.Image = "http://www.roblox.com/asset/?id=9424465429"
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.view1.CFrame
level = "isld"
end
end
And this code runs when the player presses the “Start” button
if level == "isld" then
startbutton.Text = "Loading..."
startbutton.BackgroundColor = BrickColor.new("Baby blue")
print("stow")
local teleportdata = {
rank = nil;
block = 0;
aeb = 0
}
game:GetService("TeleportService"):Teleport(9437511451, game.Players.LocalPlayer, teleportdata)
end
Thanks!