Essentially I have an obby and I made frames for each section where if you are in, lets say the very easy section which is 26-50, it’ll pop up on top to say you are in that section:
The only problem is that I am not sure how to set it up to where it checks within those stages because this is the way I am doing it now:
players.PlayerAdded:Connect(function(player)
local playerStats = player:WaitForChild("leaderstats")
local stageStat = playerStats:WaitForChild("Stage")
while task.wait(1) do
if stageStat.Value <= 50 then
player.PlayerGui.StageSelector.VERYEASYFrame.Visible = true
else
player.PlayerGui.StageSelector.VERYEASYFrame.Visible = false
end
end
end)
For the:
if stageStat.Value <= 50
Is there a way to make it something like this:
if stageStat.Value == (26-50)
I just want it to display between those stages but by doing the “<=” it just makes it so that whatever frame shows up since the term is so broad. Any help is much appreciated!