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: Can anyone help me fix my shop

Previous Thread :: Next Thread 
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 01:19 PM
player = script.Parent.Parent.Parent.Parent

function onClicked()
script.Disabled = true

if player.leaderstats.Gold.Value > 5 then
if player.Character:FindFirstChild("LinkedSword") == nil then
if player.Backpack:FindFirstChild("LinkedSword") == nil then
Sword = game.Lighting.ClassicSword:Clone()
Sword.Parent = player.Backpack
player.leaderstats.Gold.Value = player.leaderstats.Gold.Value - 5

if player.leaderstats.Gold.Value < 5 then

Instance.new("TextButton", script.Parent) .Text = "Sorry Not enough money!"
wait(5)
Instance.new("TextButton" , script.Parent).Text = "Buy Linked Sword"
end


end
end

wait()

script.Disabled = false
end
end

script.Parent.MouseButton1Click:connect(onClicked)


Ok so baisically nothing comes up in the output i want it to change the gui's text box to say they dont have enough money and change it back but nothings working i got it to give the link sword provided they have enough gold :)
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 01:28 PM
please pretty please
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 01:52 PM
xd i beg
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 02:04 PM
fudgekaiks
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 02:16 PM
xd
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
08 Nov 2014 02:41 PM
Is this unfixable?
Report Abuse
ApocSurrvivalist is not online. ApocSurrvivalist
Joined: 22 Apr 2013
Total Posts: 5840
09 Nov 2014 05:23 AM
ff
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