I'm trying to make a way that ends a script once it gets pass a curtain value. I tried using:
if a.value => 3 then
end
but it completely stopped the script. http://developer.roblox.com/en-us/articles/Conditional-Statements-in-Lua I tried following this but it still stopped the script.
Here is the script, I didn't put the full script since the rest is irrelevant:
for i, badge in pairs(badges) do
wait(1)
a.Value += 1
player.PlayerGui.ScreenGui.Frame.TextLabel.Text = (a.Value).."/"..(numberofbadges)
end
It works fine if I leave it like that, but the text will sky rocket passed how I want it to be. For example it will go from how I want it 3/3 to 20/3.
If you know how to fix it, please let me know.
