iMarkeh
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 270 |
|
|
| 26 Apr 2017 01:23 AM |
Basically, I enter a code and it puts text onto a surface gui. I put the code in the first time and it works perfectly putting on the appropriate text. I then enter the EXACT same code and it goes the the scripts error function which tells me that the code isnt valid even though the code is the EXACT same. My script link is below as ROBLOX filtering wouldnt allow the script. IF anyone is able to help, I would highly appreciate it.
scriptinghelpers.)org/questions/41673/ Remove brackets
|
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 02:24 AM |
Of what i know you can't call a function above the function.. but idk. Also thats a lot of code for something pretty simple. You could just do something like: function Numbers() CODE = 0 if Code = 0 then Text = script.Parent.Number.Text Code = 1 elseif Code = 1 then CODE = 2 Text = Text + " "..script.Parent.Number elseif -- and so on until the maximum number end
function(Enter) if script.Parent.Text = "1233231231" then --CODE --Something to happen else --if its wrong something to happen.. end Enter.MouseButton1Click:connect(Enter) button.MouseButton1Click:connect(Numbers)
--Now idk if this will work.. but you get the point right? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 02:24 AM |
| Also a line of code reseting the variable CODE |
|
|
| Report Abuse |
|
|
iMarkeh
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 270 |
|
|
| 12 May 2017 03:55 AM |
I do not see what you mean. Are you able to explain it differently. Sorry.
Also, any other assistance would be appreciated as ROBLOX support is not good (I have strong words but can not say them because of filtering)
|
|
|
| Report Abuse |
|
|
|
| 12 May 2017 01:03 PM |
| not + but a string connector sorry |
|
|
| Report Abuse |
|
|
|
| 12 May 2017 01:08 PM |
Well maybe just:
Code=script.Parent.Code
function num(Cod) Code.Text..Cod end
function Enter() if code.Text == "11" then --Something to happen end end
num.1:con(num(1)) num.2:con(num(2))
Ok, you get it now? |
|
|
| Report Abuse |
|
|
|
| 12 May 2017 01:16 PM |
| So your trying to make a code thing right? |
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 12 May 2017 01:43 PM |
| What errors are you receiving in the output(if any)? |
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 12 May 2017 01:45 PM |
| NVM... I just realized this thread is ages old... Why do people keep bumping old posts? I feel dumb now. :'( RIP |
|
|
| Report Abuse |
|
|
|
| 12 May 2017 03:42 PM |
OMG i also realised that! WOW |
|
|
| Report Abuse |
|
|
|
| 12 May 2017 03:50 PM |
| Wait oh i looked at the join date not the posting date.. |
|
|
| Report Abuse |
|
|