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!

6 comments
Is this your whole code? This should continue after line 6...
No, I could post the entire script, but it's a round loop.
If it doesn't continue, it errors somewhere. Check your output?
So it should continue anyways?
This is not a forever loop - it should just run after line 6...
It should just keep looping when Value isn't true and when it has run out of players, it should continue.