|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|