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: What is a script for a button to buy something with KOs/LinkedLeaderboard stats?

Previous Thread :: Next Thread 
shadownukepie is not online. shadownukepie
Joined: 03 Nov 2011
Total Posts: 390
24 Mar 2012 01:10 PM
I really need a shop for my Island battle game,and the ones i have tryed dont work.
Because i can't script i need help.
I changed a value to KOs but i dont think it did anything
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
24 Mar 2012 01:15 PM
Use the roblox wiki to learn how to script. ALos we dont just give out scripts, we need to see an honest attempt from you first.
Report Abuse
shadownukepie is not online. shadownukepie
Joined: 03 Nov 2011
Total Posts: 390
24 Mar 2012 01:18 PM
I did,i tryed to change something called gold to KOs and some rvaribale thing to linkedleaderboard and then i put in what it should give like
Give.charcter. Illumina
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
24 Mar 2012 01:34 PM
no, wat you do is put somthing in lightning and then there is one pert for it to summon in your hands.


local player = script.Parent.Parent.Parent.Parent.Parent
local price = 0 -- and change this to anything you want
local tool = game.Lighting:findFirstChild("Illumina")

function picture()
script.Parent.Parent.Picture.Image = "http://www.roblox.com/ShotGun-item?id=6662582"
script.Parent.Parent.Price.Text = "0 KOs" -- change this to how many kos you want
end

function buy()
wait(0.1)
local money = player.leaderstats.KOs
if money.Value >= price then
local a = tool:clone()
a.Parent = player.Backpack
else
end
end




script.Parent.MouseButton1Down:connect(buy)
script.Parent.MouseEnter:connect(picture)

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