I made a script, which works while testing through studio, but when I get in the actual game, it doesn't. Any ideas?
-- Made by Director1406
script.Parent.MouseButton1Click:connect(function()
local Level1 = script.Parent
if Level1.Visible == true then
game:GetService("TeleportService"):Teleport(284418914, player)
end
end)
