Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

[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

✓ Accepted answer
game.Players.PlayerAdded:connect(function(plr)
    wait(5)
    plr.PlayerGui.GuiName.FrameName.Visible = false
end)

This dont take no blue taslem.

game.Players.PlayerAdded:connect(function(plr)
	wait(5)
	plr.PlayerGui.GuiName.FrameName.Visible = false
end)

4 comments

0

LOL "This don't take no bluetaslem" Blue taslem is a god.

0

I'm your god now ;)

0

And, it doesnt work.

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.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.