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 » Scripters
Home Search
 

Re: Script error

Previous Thread :: Next Thread 
iMarkeh is not online. 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
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
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
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
26 Apr 2017 02:24 AM
Also a line of code reseting the variable CODE
Report Abuse
iMarkeh is not online. 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
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
12 May 2017 01:03 PM
not + but a string connector sorry
Report Abuse
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
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
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
12 May 2017 01:16 PM
So your trying to make a code thing right?
Report Abuse
nullfeels is not online. 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 is not online. 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
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
12 May 2017 03:42 PM
OMG i also realised that!
WOW
Report Abuse
bondhemlig is not online. bondhemlig
Joined: 24 Jan 2013
Total Posts: 264
12 May 2017 03:50 PM
Wait oh i looked at the join date not the posting date..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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