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
 

an example...

Previous Thread :: Next Thread 
macholibre is not online. macholibre
Joined: 24 Aug 2010
Total Posts: 1389
05 Feb 2012 05:51 PM
can anyone give an example of a script I would put in a sword shop gui for kos into the text button?
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
05 Feb 2012 05:56 PM
function OnButtonClicked()
plr = script.Parent.Parent.Parent.Parent -- might not be right with the number or Parent's
if plr.leaderboard.KO's >= 50 then
a = game.Lighting.Sword:clone()
a.Parent = plr.BackPack
end
end

script.Parent.Mouse1ButtonClick:connect(OnButtonClicked)---might have messed up here also -_-
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