I am new to scripting. So forgive me for my mistake.
So I get the error
19:26:12.544 - Workspace.Script:4: 'then' expected near '='
when running this script
am = Workspace.AmmoCrate1.AmmoCrate
while true do
if am.Amount.Value = 0
wait(30)
am.Amount.Value = am.Amount.Value + 1000
end
I'm trying to make it that if The AmmoCrate's Value hits 0, then it will wait for 30 seconds until its Value returns to 1000.
