|
| 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 |
|
|
|
| 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 |
|
|
|
| 14 Apr 2012 10:43 AM |
| The forums are so unreliable these days |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 14 Apr 2012 01:55 PM |
I started scripting last week.
-Heart |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2012 01:56 PM |
I started scripting last week.
+ ~ -Heart - ~ + |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 14 Apr 2012 02:11 PM |
Hi Clone. Can you reply to my message?
-legend8887 |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 14 Apr 2012 03:51 PM |
| Oh no. Another magic potato :| |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 2608 |
|
| |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 2608 |
|
|
| 14 Apr 2012 04:03 PM |
| Oh wait I made a misunderstanding sorry guys. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 14 Apr 2012 10:35 PM |
| rofl i see what you did there |
|
|
| Report Abuse |
|
|