How do I make text on a Gui dissappear?
What I mean is I have this script which runs a few lines of text, but when it finishes, the last piece of text stays. Here's the code:
01 | local part = script.Parent |
03 | local myVar = game.Workspace.Part.SurfaceGui.Test |
06 | local hat = hit.Parent:FindFirstChild( "SilverthornAntlers" ) |
07 | local human = hit.Parent:FindFirstChild( "Humanoid" ) |
12 | myVar.Text = ( "HOW DARE YOU WEAR THAT WRETCHED HAT!?" ) |
14 | myVar.Text = ( "YOU WILL BE SMITED BY MY WRATH!" ) |
16 | myVar.Text = ( "DIE!!" ) |
30 | part.Touched:connect(FindHat) |
At the part where it says "DIE", my character dies, which is what I want it to do, but after, the "DIE" part stays on the Gui. Anyway to fix this?