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

I cant remove a "continue" gui, why can I not?

Asked by 5 years ago

So I am trying to make it so if the game detects that you haven't completed the tutorial, it wont give you the option to "continue". I have the scripts made so a script it workspace detects a new players join and if they dont have the intvalue of 1 in the "Level" value it activates localscript in StarterGUI which should be deactivating that part of the menu, but it doesn't.

details: the "Continue" textbutton is located in a screengui named menu the local script is located in StarterGUI the script is located in workspace

Scripts:

The script

1EV = game:GetService("ReplicatedStorage"):WaitForChild("nolevel")
2function playerAdded(player)
3    wait(2)
4    if player.leaderstatss.Level.value == 0 then
5 
6 
7EV:FireClient(player)
8    end
9    end

The local script:

1EV = game:GetService("ReplicatedStorage"):WaitForChild("nolevel")
2local working = false
3EV.OnClientEvent:Connect(function()
4    if working == true then return end
5    working = true
6script.Parent.Menu.Continue.Enabled = false
7end)
0
Try changing it from ".Enabled" to ".Active". jordysboy 53 — 5y
0
The script ITSELF isnt working but that change is added stonez12345678910 4 — 5y
0
You added an extra s to 'leaderstats'? jordysboy 53 — 5y
0
yes as i dont want it appearing on playerlist and i also dont want to remove playerlist stonez12345678910 4 — 5y

Answer this question