|
| 25 Jul 2011 09:59 AM |
Ok im gonna explain this fully.
I got a gui called buy brick for 500 cash and i want it so when gui clicked fined player put brick into backpack and that player who bought it can put it down as a tool on the ground.
pleas someone help me :( |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2011 10:03 AM |
'pleas someone help me'
Exactly what do you need help with?
If you expect us to create the script, you're mistaken. This forum is created for fixing code, not giving it out. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2011 10:57 AM |
| ok well i need help with the tool i duno how to make it so when u click it drops it. and nobody can pick it up when u drop it |
|
|
| Report Abuse |
|
|
RogueBob
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 178 |
|
|
| 25 Jul 2011 11:10 AM |
player = script.Parent.Parent.Parent.Parent.Parent KOs = player.leaderstats.LEADERSTATMONEYNAMEHERE price = PRICE VALUEHERE tool = game.Lighting:findFirstChild("TOOLNAMEHERE")
function buy() if KOs.Value >= price then KOs.Value = KOs.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)
this is in a GUI button |
|
|
| Report Abuse |
|
|