Well it is so, To a home screen, when and clicked to start this frame is visible = false, hence I try that after this frame becomes false appears the button to teleport to the map, but I am not getting
script.Parent.MouseButton1Click:connect(function() if game.StarterGui.BackGroundGUI.Frame.Visible == false then script.Parent.Visible = true end game.Players.LocalPlayer.character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position) script.Parent.Visible = false end)
OBS : If I was in doubt in this game https://www.roblox.com/games/1504622981/Up-Power-Coming-Soon
You're changing the Visibility of the StarterGui.
You need to change the Visibility of the BackGroundGUI of the player like so:
local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() if player.PlayerGui.BackGroundGUI.Frame.Visible == false then script.Parent.Visible = true end player.character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position) script.Parent.Visible = false end)