Hello, How to make an event script that lets play only the players that have an level between 0 and 25 or if they have points between 0 and 200
Players higher I will make a second event script (just saying)
Their are no errors but the problem is the gui comes at the screen even if the value is higher then 25.
script in workspace
game.Players.PlayerAdded:wait()
while true do
local Players = game:GetService("Players")
function onPlayerAdded(player)
print(player.Name .. " is waiting")
end -- getting players
Choos = math.random(1) --Will be added soon more
wait(15)
if Choos == 1 then -- Event 1
wait(2) --loading
for _,player in pairs(Players:GetPlayers()) do
onPlayerAdded(player) -- getting player
local unlock = player.leaderstats.Level.Value -- value of player
local unlockPo = player.leaderstats.PointsNL.Value -- value of player
if unlock >= 0 then -- if player has bigger then level 0
b = script:findFirstChild("Easy"):Clone() -- copying to player gui
b.Parent = player.PlayerGui
elseif unlock >= 25 then -- if player has bigger then 25 nothing have to happen to that player
print("Going to hardmode")
end
end
wait(21) --when round is over
end
end
thanks :3

2 comments
what's the error?
Their are no errors but the problem is the gui comes at the screen even if the value is higher then 25.