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

My While Loop Isnt Starting. But the condition is true. What i do wrong ?

Asked by 3 years ago
Edited 3 years ago
while script.Parent:IsA("Player") do
    print("lala")
    if game.Workspace.Gamemode then
        if game.Workspace.Gamemode.Value == 0 then
            if script.Parent.GameKills then
                script.Parent.GameKills.Value = 0
            end
        end
    end
    wait(0.1)
end

Game counts Kills which player did in one game bc first to 30 kill wins. I wanna remove when the gamemode(0 intermission, 1 game) 0 gamekill value will reset. Script's parent is a Player Class But it isnt printing "lala".

0
Is KamKam_AJHasBeenBan 37 — 3y
0
Try to do this: while true do and then inside the while loop, add an if statement to check like this: `if script.Parent:IsA("Player") then Soban06 410 — 3y

Answer this question