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

Script Not Working?

Asked by 9 years ago
1Amount = script.parent.Amount
2 
3if amount <= 5 then
4-- stuff
5 
6end

It is not working

1 answer

Log in to vote
0
Answered by 9 years ago

Asuming that amount if a number value the answer is simple

1Amount = script.parent.Amount
2 
3if Amount.Value <= 5 then
4 
5-- stuff
6 
7 
8 
9end

If amount was a value set in the script then you would do what you did

Ad

Answer this question