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
 

Re: UH EM GEE! A MAGIC POTATO

Previous Thread :: Next Thread 
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 10:28 AM
Sorry I put that title but thats the only way you can catch peoples attention these days. :|

Anyways. Im trying to make a minecraft sign for the stamper tool. But its has a problem. I cant fix it :|


local letters = {8704651,8704661,8704676,8705268,8705273,8705281,8705287,8705295,8705304,8705311,8705315,8705327,8705331,8705337,8705348,8705353,8705370,8705380,8705385,8705393,8705400,8705408,8705417,8705426}

delay(0,function ()
while true do
wait()
script.Parent.Transparency = 1
end
end)

function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end

function Line1Changed()
local line1 = {}
-- First we need to import the message into a table
local stuff = script.Parent.Configuration.Line1.Value
for i = 1,#stuff do
table.insert(line1,stuff[i])
end
-- then we need to convert the table into string.char
convertedTable = {}
for i = 1,#line1 do
table.insert(convertedTable,string.char(line1[i]))
print("Data collected: "..string.char(line1[i]))
end
-- Now to actually display the text
local line = script.Parent.Parent.Line1:GetChildren()
for i = 1,8 do
script.Parent.Parent.Line1:findFirstChild(tostring(i)).Letter.Texture = "http://www.roblox.com/asset/?ID="..letters[convertedTable[i]-96]
end
end

function Line2Changed()
local line2 = {}
-- First we need to import the message into a table
local stuff = script.Parent.Configuration.Line2.Value
for i = 1,#stuff do
table.insert(line2,stuff[i])
end
-- then we need to convert the table into string.char
convertedTable = {}
for i = 1,#line2 do
table.insert(convertedTable,string.char(line2[i]))
print("Data collected: "..string.char(line2[i]))
end
-- Now to actually display the text
local line = script.Parent.Parent.Line2:GetChildren()
for i = 1,8 do
script.Parent.Parent.Line2:findFirstChild(tostring(i)).Letter.Texture = "http://www.roblox.com/asset/?ID="..letters[convertedTable[i]-96]
end
end

function Line3Changed()
local line3 = {}
-- First we need to import the message into a table
local stuff = script.Parent.Configuration.Line3.Value
for i = 1,#stuff do
table.insert(line3,stuff[i])
end
-- then we need to convert the table into string.char
convertedTable = {}
for i = 1,#line3 do
table.insert(convertedTable,string.char(line3[i]))
print("Data collected: "..string.char(line3[i]))
end
-- Now to actually display the text
local line = script.Parent.Parent.Line3:GetChildren()
for i = 1,8 do
script.Parent.Parent.Line3:findFirstChild(tostring(i)).Letter.Texture = "http://www.roblox.com/asset/?ID="..letters[convertedTable[i]-96]
end
end

script.Parent.Configuration.Line1.Changed:connect(Line1Changed)
script.Parent.Configuration.Line2.Changed:connect(Line2Changed)
script.Parent.Configuration.Line3.Changed:connect(Line3Changed)



The Output says:
Workspace.Model.Adornee.Script:32: attempt to perform arithmetic on field '?' (a nil value)
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 10:30 AM
Bump :|


Heres a link to the model btw.

http://www.roblox.com/Configurable-Text-Sign-WIP-item?id=77508026
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 10:43 AM
The forums are so unreliable these days
Report Abuse
crazyman32 is online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 Apr 2012 11:05 AM
script.Parent.Parent.Line1:findFirstChild(tostring(i)).Letter.Texture = "http://www.roblox.com/asset/?ID="..letters[convertedTable[i]-96]


Doesn't 'convertedTable' hold characters? You're trying to subtract from it.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 01:52 PM
Yeah. I tried using ToNumber. But that wouldn't work either. Im trying to make stamper sets for my personal server. Im trying to be efficient with the sign code. But Im not the best at that :|
Report Abuse
Heart0nFIRE is not online. Heart0nFIRE
Joined: 28 Oct 2011
Total Posts: 5623
14 Apr 2012 01:54 PM
..sad..
Report Abuse
Heart0nFIRE is not online. Heart0nFIRE
Joined: 28 Oct 2011
Total Posts: 5623
14 Apr 2012 01:55 PM
I started scripting last week.

-Heart
Report Abuse
Heart0nFIRE is not online. Heart0nFIRE
Joined: 28 Oct 2011
Total Posts: 5623
14 Apr 2012 01:56 PM
I started scripting last week.

+ ~ -Heart - ~ +
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
14 Apr 2012 02:06 PM
IDK.

-legend8887
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 02:10 PM
crazy. Do you know a way to convert a string into a number kind of like how I was attempting?
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
14 Apr 2012 02:11 PM
Hi Clone. Can you reply to my message?

-legend8887
Report Abuse
crazyman32 is online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
14 Apr 2012 02:18 PM
You mean simply tonumber?
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 02:23 PM
I think so. Btw heres a model of it if you didn't see it already...

http://www.roblox.com/Configurable-Text-Sign-WIP-item?id=77508026
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 02:34 PM
Bump...
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 03:51 PM
Oh no. Another magic potato :|
Report Abuse
jack48271 is not online. jack48271
Joined: 16 Jan 2009
Total Posts: 2608
14 Apr 2012 03:55 PM
Wait that is a free model! I knew that when I first saw that script why did you put those comments in there?
Report Abuse
jack48271 is not online. jack48271
Joined: 16 Jan 2009
Total Posts: 2608
14 Apr 2012 03:56 PM
So you didn't make that.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 03:56 PM
jack. I created it :|
Report Abuse
legokid135 is not online. legokid135
Joined: 23 Jan 2009
Total Posts: 1470
14 Apr 2012 03:57 PM
@jack, just because he puts comments in there, so he can easily get back to working on the script after a little break to know where he'd gotten to, does not mean it is a free model.

If you call everyone's script a free model, get out.



~ Men are like Bank accounts. Without a lot of money they don’t generate a lot of interest. ~
Report Abuse
Quovis is not online. Quovis
Joined: 24 Mar 2012
Total Posts: 494
14 Apr 2012 03:57 PM
@ jack, there's a reason they made comments, and it wasn't just for free models.
Report Abuse
jack48271 is not online. jack48271
Joined: 16 Jan 2009
Total Posts: 2608
14 Apr 2012 04:02 PM
...I don't believe so. But hey i'm like that.
Report Abuse
jack48271 is not online. jack48271
Joined: 16 Jan 2009
Total Posts: 2608
14 Apr 2012 04:03 PM
Oh wait I made a misunderstanding sorry guys.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 05:12 PM
Bump :|
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
14 Apr 2012 09:08 PM
I wanna be the very best
Like no one ever was
To bump them is my real test
To bump them again them is my cause

I will travel across the site
Searching far and wide
Each forum post to understand
The power that's inside
Forum posts! Gotta bump them all
I know it's my destiny,
Forum Posts! Someone reply
So that I can stop bumping posts
Forum Posts! The place that no one replys
Our courage will pull us through,

You bump this post and I'll bump yours,
Forum posts!! gotta bump them all/

Every challenge along the way
With courage I will face.
I will bump forums every day
To claim my rightful place.
Come with me,
The time is right,
There's no better team.

- Cut off from this point -
Report Abuse
littlebro346 is not online. littlebro346
Joined: 13 Dec 2008
Total Posts: 468
14 Apr 2012 10:35 PM
rofl i see what you did there
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