✓ Accepted answer
do this then
function LoadStat(Player, Stat)
if pcall(function() Player:LoadBoolean(Stat.Name) end) then
return Player:LoadBoolean(Stat.Name)
else
return false
end
end
game.Players.PlayerAdded:connect(function(Player)
if Player:WaitForDataReady() then
local Intro = Instance.new("BoolValue", Player)
Intro.Name = "Intro"
Intro.Value = LoadStat(Player, Intro)
end
end)
game.Players.PlayerRemoving:connect(function(Player)
if Player.DataReady then
Player:SaveBool(Player.Intro.Name, Player.Intro.Value)
end
end)
after this make a local script and put it in your intro
local Player = game.Players.LocalPlayer
local Intro = Player:WaitForChild("Intro")
if Intro.Value == true then
script.Parent["FrameName"].Visible = true
else
script.Parent["FrameName"].Visible = false
end
4 comments
Where do i put the script?
In the serverscriptservice
Do i name the Gui Intro?
I edited it