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

Teleporting to inactive places?

Asked by 9 years ago

So I was making an "alpha tester code" gui, and this is the code

local player = script.Parent.Parent.Parent.Parent.Parent
local code = "KS6GSH1GLP"
local bleedingsky = 334856307


script.Parent.Enter.MouseButton1Click:connect(function()
    if script.Parent.TextLabel.Text == code then
        script.Parent.Enter.Text = "Valid code - Teleporting in 2.5 seconds"
        script.Parent.Enter.BackgroundColor3 = Color3.new(0.3, 1, 0.3)
        script.Parent.Enter.Selectable = false
        wait(2.5)
        game:GetService("TeleportService"):Teleport(bleedingsky, player)
    else    
        script.Parent.Enter.Text = "Invalid code - Rejoin to retry"
        script.Parent.Enter.BackgroundColor3 = Color3.new(1, 0.3, 0.3)
        script.Parent.Enter.Selectable = false
    end
end)

Please note that the variable bleedingsky is an inactive place ID. I was wondering if this is possible.

1 answer

Log in to vote
1
Answered by 9 years ago

The problem The problem maybe isn't in the script, it is linked with the place! You need to do the following below this text.

Solving You need to go to the place that teleports to the inactive place then click the 3 dots then Configure this Game. After this go to places. You can see your game as a Start Place. In the Other Games tab click Add place. Browse games then click at the inactive game you want players teleport to. Now save and enjoy!

-Rabbit

0
I don't quite understand jakei181 60 — 9y
0
Its an issue with your inactive place. You need to add a script there or something. Conmmander 479 — 9y
0
looking back at this there was nothing confusing. bartekrabit 38 — 6y
0
ye nothing confusing bartekrabit 38 — 5y
Ad

Answer this question