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)

4 comments
Try changing it from ".Enabled" to ".Active".
The script ITSELF isnt working but that change is added
You added an extra s to 'leaderstats'?
yes as i dont want it appearing on playerlist and i also dont want to remove playerlist