Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why can't teleport to a "hidden" game?

I'm currently making a game that makes you join a game on my group which has buttons like "play," "updates," and what not. But I wanted to make the actual game (the one you teleport to when you press play) hidden (kinda like in camping). But when I did, It wouldn't teleport me to the "hidden" game. I checked the game id's and they were correct. I did a lot of research and nothing answered what I was asking. Is there some sort of special script I should use? The actual game is on my profile and not on the group so is that the problem? And if I did make the game hidden incorrectly, how do you do it? This is the LocalScript inside the play button:

script.Parent.MouseButton1Click:connect(function()

	game:GetService("TeleportService"):Teleport("7110940410")

end)

1 answer

I never used teleportservice before but I dont think local scripts is suppose to be parented to the button. Try using a server script. A local scripts should be parented to a decendant or a children of the player instance as it changes things on the client side.

2 comments

0

Before I moved the main game to my profile, it was on my group as well. When it was on my group, the script that I posted worked. But after I moved the game to my profile, it doesn't work anymore.

0

Does the game get a new id when moved from your group to your profile?

This discussion is preserved as it was. New answers, comments, and votes are closed.