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
 

Re: Gui Weapon Buy.

Previous Thread :: Next Thread 
MrSteam is not online. MrSteam
Joined: 06 Feb 2011
Total Posts: 193
02 Jan 2012 09:50 AM
Okay, I was just wondering how you make the sword that you buy, the one that you get back after death. I know this script works up to this point but I waas wondering how to take away the previous startergear and make the new one that. Thanks!

player = script.Parent.Parent.Parent.Parent.Parent
money = player.leaderstats.Cash
price = 100
tool = game.Lighting:findFirstChild("Sword")


function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear

end
end
script.Parent.MouseButton1Down:connect(buy)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jan 2012 09:54 AM
I do not understand your question. What do you want it to do?
Report Abuse
MrSteam is not online. MrSteam
Joined: 06 Feb 2011
Total Posts: 193
02 Jan 2012 09:58 AM
Well, I have multiple buttons in my "Sword Shop" that after you press each give you a weapon, without taking the last one away. I need a script that does exactly that.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jan 2012 10:04 AM
"without taking the last one away" That is what I don't understand. Your script doesn't remove anything but cash...?
Report Abuse
MrSteam is not online. MrSteam
Joined: 06 Feb 2011
Total Posts: 193
02 Jan 2012 10:08 AM
I know that. I want the script to Remove the last weapon that you had.
Report Abuse
MrSteam is not online. MrSteam
Joined: 06 Feb 2011
Total Posts: 193
02 Jan 2012 10:18 AM
Anybody?
Report Abuse
MrSteam is not online. MrSteam
Joined: 06 Feb 2011
Total Posts: 193
02 Jan 2012 10:57 AM
Nope, just me I guess.
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