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

How do I make a frame go away after it's been viewed once?

Asked by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
        wait(24)
        plr.PlayerGui.ScreenGui.Intro:Destroy()
end)

is what I tried, any ideas?

0
What exactly is happening that shouldn't? GoldenPhysics 474 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Admins: I was streaming while this guy asked me the question. I explained it to on twitch, and posted the code for him to have here. Hope you understand!

game.Players.PlayerAdded:connect(function(plr)
        a = game.ServerStorage.Intro:Clone()
    a.Parent = plr.PlayerGui.ScreenGui
    wait(24)
        plr.PlayerGui.ScreenGui.Intro:Destroy()
end)

Ad

Answer this question