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 » Scripters
Home Search
 

Current ammo doesn't decrease

Previous Thread :: Next Thread 
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
06 Feb 2015 06:09 PM
players = game.Players
for _,player in pairs(players:GetChildren()) do
gun1 = player.Backpack:FindFirstChild("VP1")
gun2 = player.Backpack:FindFirstChild("Colt817")
gun3 = player.Backpack:FindFirstChild("FEARPistol")
ammo = script.Parent.Ammo

if gun1 ~= nil then
ammo.Text = ""..gun1.Configurations.CurrentAmmo.Value.."/"..gun1.Configurations.ClipSize.Value..""
elseif gun2 ~= nil then
ammo.Text = ""..gun2.Configurations.CurrentAmmo.Value.."/"..gun2.Configurations.ClipSize.Value..""
elseif gun3 ~= nil then
ammo.Text = ""..gun3.Configurations.CurrentAmmo.Value.."/"..gun3.Configurations.ClipSize.Value..""
end
end
Report Abuse
BossfightX is not online. BossfightX
Joined: 06 Feb 2010
Total Posts: 2962
06 Feb 2015 06:12 PM
Oh, it does, you just didn't update the gui to make it say the new ammo
Report Abuse
StickMasterNinja2 is not online. StickMasterNinja2
Joined: 18 May 2013
Total Posts: 1170
06 Feb 2015 06:15 PM
I don't know how to do it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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