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
 

What is wrong with this script?

Previous Thread :: Next Thread 
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:22 PM
function OnClick()
if script.Parent.UNTB.Text = SumoComputerMan or script.Parent.UNTB.Text = XxFUSIONORxX and script.Parent.PWTB.Text = ********* then
script.Parent.Parent.PWTB.Visible = false
script.Parent.Parent.UNTB.Visible = false
script.Parent.Visible = false
script.Parent.Parent.Parent.Frame.Size = {0.5, 0}, {0.3, 0}
script.Parent.Parent.Welcome.Visible = true
end
end

script.Parent.MouseButton1Down:connect(OnClick)

It's a login script :P
I'm not sure what's wrong, maybe my complicated/wrong if then statement?

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
16 Jul 2012 04:24 PM
sumocomputerman is a vairble? or do you want it to be a string?
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:25 PM
I don't know, I think a string, do if thats typed in the textbox, it will continue to the or.

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
16 Jul 2012 04:25 PM
When checking something (if something = something) use two ==. If A == true then do blah blah.

function OnClick()
if script.Parent.UNTB.Text == SumoComputerMan or script.Parent.UNTB.Text == XxFUSIONORxX and script.Parent.PWTB.Text == ********* then
script.Parent.Parent.PWTB.Visible = false
script.Parent.Parent.UNTB.Visible = false
script.Parent.Visible = false
script.Parent.Parent.Parent.Frame.Size = {0.5, 0}, {0.3, 0}
script.Parent.Parent.Welcome.Visible = true
end
end
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:25 PM
UNTB is a text box.

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:26 PM
Jay I completely forgot about that! I'm so dumb! Thanks :)

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
16 Jul 2012 04:27 PM
ment this:
if script.Parent.UNTB.Text = SumoComputerMan or script.Parent.UNTB.Text = XxFUSIONORxX and ...

shouldnt it be:

if script.Parent.UNTB.Text = "SumoComputerMan" or script.Parent.UNTB.Text = "XxFUSIONORxX" and ...
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:28 PM
No...that's not what appears in the text under the textbox...

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
16 Jul 2012 04:29 PM
Still doesn't work though...

>Take&Fav! http://www.roblox.com/Bluesteel-Shutter-Shades-item?id=85198533 Support: http://www.roblox.com/Support-item?id=85208631
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