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: Whats wrong with this?

Previous Thread :: Next Thread 
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
16 Jun 2014 11:47 PM
brick = script.Parent

function click()
if game.StarterGui.ScreenGui.TextLabel.Text = "you got 1 wood"
then script.Parent.Transparency = 0

end
end


brick.ClickDetector.MouseClick:connect(click)
Report Abuse
wetrel is not online. wetrel
Joined: 19 Jun 2009
Total Posts: 919
16 Jun 2014 11:50 PM
1) Putting that "then" on the next line makes me cringe, but its your choice.
2) Is the text perfectly "you got 1 wood"?
Report Abuse
Plokster is not online. Plokster
Joined: 21 May 2008
Total Posts: 23628
16 Jun 2014 11:50 PM
er, pretty confusing to follow what youre trying to do

could you further explain what youre trying to accomplish?
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
16 Jun 2014 11:51 PM
yeah.

What would I put instead of then?
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
16 Jun 2014 11:52 PM
Im trying to make it so if the text equals "you got 1 wood"
then the brick the script is in's transparency = 0.
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
16 Jun 2014 11:53 PM
.StarterGui

-_- he is beyond help

siggys r stupid
Report Abuse
wetrel is not online. wetrel
Joined: 19 Jun 2009
Total Posts: 919
16 Jun 2014 11:54 PM
brick = script.Parent
function click()
if game.StarterGui.ScreenGui.TextLabel.Text == "you got 1 wood" then
script.Parent.Transparency = 0
end
end
brick.ClickDetector.MouseClick:connect(click)
Report Abuse
wetrel is not online. wetrel
Joined: 19 Jun 2009
Total Posts: 919
16 Jun 2014 11:55 PM
Use tools>test>play solo and see where the players gui is when they place.
game.Players.PLAYER.PlayerGui.GUI
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
17 Jun 2014 12:00 AM
Thanks.
Report Abuse
wetrel is not online. wetrel
Joined: 19 Jun 2009
Total Posts: 919
17 Jun 2014 12:01 AM
Np, and also, when you compare use ==, = is for setting valuse.
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
17 Jun 2014 12:07 AM
Got it.
Thanks.
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