|
| 24 Dec 2013 04:56 AM |
I'm making a shop GUI, here is how its going:
function Buy() game.Players.LocalPlayer.Model.Gold.Value = game.Players.LocalPlayer.Model.Gold.Value-25 end
script.Parent.Touched:connect(Buy)
but I want it so the script checks if a players has more than 25 gold then it's alright, I only need that part, I'm alright with the 'else' part. |
|
|
| Report Abuse |
|
cart6157
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 2194 |
|
|
| 24 Dec 2013 06:11 AM |
If Gold.Value > 24 then print("enough (higher than 25)") end |
|
|
| Report Abuse |
|
|
| 24 Dec 2013 06:50 AM |
| ^ If cannot be capitalized |
|
|
| Report Abuse |
|