Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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.

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. SuperFoxyFan16 0 — 3y
0
Does the game get a new id when moved from your group to your profile? JustinWe12 723 — 3y
Ad

Answer this question