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

EV = game:GetService("ReplicatedStorage"):WaitForChild("nolevel")
function playerAdded(player)
    wait(2)
    if player.leaderstatss.Level.value == 0 then


EV:FireClient(player)
    end
    end

The local script:

EV = game:GetService("ReplicatedStorage"):WaitForChild("nolevel")
local working = false 
EV.OnClientEvent:Connect(function()
    if working == true then return end
    working = true
script.Parent.Menu.Continue.Enabled = false
end)
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