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
 

'Check' script won't work?

Previous Thread :: Next Thread 
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
22 Dec 2011 01:10 PM
Hi, I wrote a script that checks if a certain value is present, and if it is, then it changes a TextLables text to 'True' and if it isn't, then it changes to 'false'. Yet it doesn't work....

Here's the script:

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
c = char:findFirstChild("Experience")
if c ~= nil then
game.StarterGui.MainFrame.Frame1.Check.Text = "True"

elseif
c == nil then
game.StarterGui.MainFrame.Frame1.Check.Text = "False"
end
end)
end)

Sorry, there is no output.

Thanks. :-)


Christmas? BAH HUMBUG!
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
22 Dec 2011 01:12 PM
And here's how it's set up:

StarterGui>MainFrame>Frame1>Check

Christmas? BAH HUMBUG!
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
22 Dec 2011 01:30 PM
Help? :(

Christmas? BAH HUMBUG!
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