generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 01:40 AM
[ Content Deleted ]
Report Abuse
XAXA is not online. 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 is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:06 AM
[ Content Deleted ]
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
21 Oct 2013 02:08 AM
What are the functions you are calling?
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:10 AM
[ Content Deleted ]
Report Abuse
XAXA is not online. 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 is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 12:48 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 01:13 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 01:32 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:08 PM
[ Content Deleted ]
Report Abuse
XAXA is not online. 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 is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:23 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:28 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:34 PM
[ Content Deleted ]
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
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 is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 02:55 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 03:33 PM
[ Content Deleted ]
Report Abuse
XAXA is not online. 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
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
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 is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 03:42 PM
[ Content Deleted ]
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
21 Oct 2013 03:47 PM
Remove line 14 and try again
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
21 Oct 2013 03:52 PM
nvm... That won't work.
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
21 Oct 2013 03:53 PM
[ Content Deleted ]
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
21 Oct 2013 03:57 PM
Here:

http://pastebin.com/sPrDCbGQ
Report Abuse
CrniOrao is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image