I have a function, that will check if a player's boolvalue that's been inserted, and give the player the sword they bought through shop, inside the loop. The function works fine, gives them the better knife they bought in shop, but doesn't continue with the script. How can I make a if then inside a for do continue to the rest of the script else? Like this:
for I,v in pairs(game.Players:GetPlayers()) do if v.Value.Value == true then local knife = game.ServerStorage.knife2:clone() knife.Parent = v.Backpack end end
How would I get it to continue with the script If their value isn't true??? Please help!
if v.Value == true then -- code else -- continue if it isn't true -- alternative code end