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: Surface gui

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
09 Aug 2014 01:57 PM
This isn't working. I have this script in a TextButton, which is in a Surface gui. When you click it, I want the value to change. But nothing is happening.

script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5.00
end)
Report Abuse
CalvinRBLX is not online. CalvinRBLX
Joined: 25 Jun 2012
Total Posts: 308
09 Aug 2014 02:00 PM
Is it in a local script?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
09 Aug 2014 02:00 PM
no
Report Abuse
CalvinRBLX is not online. CalvinRBLX
Joined: 25 Jun 2012
Total Posts: 308
09 Aug 2014 02:04 PM
It needs to be, as you're accessing the button locally
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
09 Aug 2014 02:06 PM
do i change anything inside the script aswell?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
09 Aug 2014 02:15 PM
bump
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
09 Aug 2014 02:31 PM
script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5.00
end)
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
09 Aug 2014 02:31 PM
script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5
end)

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