Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
2

How do I delete a frame from a ScreenGUI when it has already been viewed once?

Asked by 6 years ago

[UPDATE] I know you're there, BlueTaslem. You should know.

[LETTER TO BLUETASLEM] Dear BlueTaslem, GetSporked said that my question "dont take no BlueTaslem", he also claims, after somebody said "LOL, BlueTaslem is god", GetSporked replied saying "I'm your god now ;)". Do not allow this violent sporker take your place as god. Not a violent spork, capinbuilda

I tried this:

script.Parent.Parent:Destroy()

assuming that it would destroy the frame, therefore deleting the script to make it run. Got any ideas?

3 answers

Log in to vote
1
Answered by 2 years ago
game.Players.PlayerAdded:connect(function(plr)
    wait(5)
    plr.PlayerGui.GuiName.FrameName.Visible = false
end)
Ad
Log in to vote
-1
Answered by 6 years ago

This dont take no blue taslem.

game.Players.PlayerAdded:connect(function(plr)
    wait(5)
    plr.PlayerGui.GuiName.FrameName.Visible = false
end)
0
LOL "This don't take no bluetaslem" Blue taslem is a god. acecateer 130 — 6y
0
I'm your god now ;) GetSporked 5 — 6y
0
And, it doesnt work. capinbuilda 15 — 6y
0
Obviously your probably new to scripting so I don't know what to say to you. Worked for me, you should probably learn more about guis. Also I like your "updates" on your post because they make my day, but then again it is pretty rude because i'm helping you but go on with your business. GetSporked 5 — 6y
Log in to vote
-2
Answered by 3 years ago

You'll have to figure out the "Viewed once" thing but Ik how to basically delete a screenGui. If you have screen Gui with things attached to it simply put if (Viewed more than once script) than

screenGui:Destroy()

If you have a frame with screenGui than simply put

screenGui:Destroy()
frame:Destroy()

And just to be fair if you want, I have a small small small idea of what the whole script would look like but I am not a expert.

if -- Place viewed more than once script here
then 
screenGui:Destroy()
frame:Destroy()

Idk when a end needs to be properly used but you might put end) Just a thought.

I AM NOT A EXPERT THIS IS JUST FROM SIMPLE KNOWLEDGE

Answer this question