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

Can anyone help with this cash system?

Asked by 9 years ago

Okay so using tostring to make a Value become 2.00 instead of 2. I have been trying for a while to make it go the was I wanted it to go and it wouldn't work, at first I used a for loop and the same thing is happening. So far, I haven't seen no error, it is just not coming out as 2.00 instead of 2 the way I wanted it.

01local Cash = script.Parent.Cash
02local CashL = script.Parent.CashL
03local Pay = script.Parent.Pay
04local PayL = script.Parent.PayL
05local Time = script.Parent.Time
06local Paytime = 60
07 
08local Teams = {
09    "Uniondale Police Department",
10    "Uniondale Department of Public Safety",
11    "Uniondale Department of Transportation and Maintenance",
12    "Uniondale Developers",
13    "UnionDale Department of Justice",
14    "Citizens",
15    "Uniondale Department of Corrections",
View all 44 lines...

1 answer

Log in to vote
0
Answered by 9 years ago

on line 42, try using this line instead:

1PayL.Text = ("Pay Amount: "..Pay.Value..".00$")
0
Although sometimes something in the county may be $45. 50 or $25. 76 I need those cents to be there not 00. But thank you! FederalJustice 35 — 9y
0
make another string for cents value and make it like: FlaminSparrow 65 — 9y
0
("Pay Amount: "..Pay.Value.."."..Cent.Value.."$") FlaminSparrow 65 — 9y
0
Okay I got you let me test the things out. FederalJustice 35 — 9y
Ad

Answer this question