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 |
|
|
|
| 02 Jan 2012 09:54 AM |
| I do not understand your question. What do you want it to do? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 06 Feb 2011 |
| Total Posts: 193 |
|
| |
|
MrSteam
|
  |
| Joined: 06 Feb 2011 |
| Total Posts: 193 |
|
| |
|