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: Gui Shop script isn't working

Previous Thread :: Next Thread 
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
16 Oct 2011 03:12 AM
Here's the script:

player = game.GetService("Players").LocalPlayer
money = player.leaderstats.Wins
price = 2

function buy()
if money.Value >= price then
money.Value = money.Value - price
x = Game.GetService("Lighting").Shop.BlueFlame
x:Clone().Parent = player.Character.Head
wait(0.5)
end
end
end
script.Parent.MouseButton1Down:connect(buy)


-Also when I click it all the text boxes in the gui disappear ?


~The Almighty stuart6854~
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
16 Oct 2011 03:22 AM
[ Content Deleted ]
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
16 Oct 2011 03:36 AM
It did not work? Its in a local script, if that helps?

~The Almighty stuart6854~
Report Abuse
deadwiper is not online. deadwiper
Joined: 23 Jul 2011
Total Posts: 48
16 Oct 2011 03:50 AM
Put it in a Non Local script then....
THINK OUTSIDE THE BOX
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
16 Oct 2011 04:38 AM
I found out what was mainly wrong it was the .GetService and it should of been :GetService

~The Almighty stuart6854~
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
16 Oct 2011 10:09 AM
The Script doesn't work on online mode(Play Mode).

~The Almighty stuart6854~
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