rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 01:59 AM |
Nothing out of the ordinary...
Try using "script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1" and see what happens.
If that won't work, put "print(script.Parent.Ammo.Value)" in and see what the output is. |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 02:08 AM |
| What are the functions you are calling? |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 02:17 AM |
| Can you post a snippet of your script ? |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 02:16 PM |
| Can you post the whole script in a pastebin? |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
|
| 21 Oct 2013 02:50 PM |
Well, I reccomend numbervalues, and just putting them inside the script. Number values can be fussy with me sometimes too.
|
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 03:34 PM |
http://pastebin.com/gEdSA6fy
Use this script as is (do not change anything about it), and see if if works. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2013 03:34 PM |
So
ammo is a numbervalue and is outside the script
same with maxammo
right?
if you do that, you need to change it all to stuff liek
script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
I was trying to sue variables for them before on my own game but it didn't work; so maybe try writing them all out like that?
|
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 03:47 PM |
| Remove line 14 and try again |
|
|
| Report Abuse |
|
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 21 Oct 2013 03:57 PM |
Here:
http://pastebin.com/sPrDCbGQ |
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 21 Oct 2013 03:57 PM |
Uhh, I just don't understand why are you defining "Ammo" as in only 40
Shouldn't it be
ammo = script.Parent["Value Name"].Value
And then after
ammo = ammo - 1
That's all I managed to see that looked weird. |
|
|
| Report Abuse |
|
|