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: Help with buy gui script

Previous Thread :: Next Thread 
DevilGoldMan is not online. DevilGoldMan
Joined: 06 May 2010
Total Posts: 2683
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
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
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
DevilGoldMan is not online. DevilGoldMan
Joined: 06 May 2010
Total Posts: 2683
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 is not online. 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
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