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

What is wrong with this GUI script?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I am trying to create a script that only shows a tutorial once (tutorial does not reappears when player dies). This is what I have tried;

Image = script.Parent.ImageLabel
TutorialAsk = script.Parent["Would you like to take the tutorial?"]
GUIYes = script.Parent.Yes
GUINo = script.Parent.No


Game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
    -- Main controller for the GUIs
Image.Visible = true

-- Loads the intro


wait(4)
if Image == true then
Image.Visible = false
TutorialAsk.Visible = true
GUIYes.Visible = true
GUINo.Visible = true
end
--Show & remove GUI
end)

Please add something like steps, and tell me where to insert the different scripts.

0
What is the problem exactly? Is it still asking you to do the tutorial when you die? Spongocardo 1991 — 10y
0
Yes, thats the problem. I want the player to be able to say Yes or No to the tutorial and have it now reappear when the player dies. adspace44 20 — 10y

Answer this question