I keep getting an error on line 2 saying: attempt to concatenate field 'Lvl' (a userdata value)
My script:
while true do
script.Parent.Text = "Lvl: "..script.Parent.Parent.Lvl..""
wait(0.1)
end
I keep getting an error on line 2 saying: attempt to concatenate field 'Lvl' (a userdata value)
My script:
while true do
script.Parent.Text = "Lvl: "..script.Parent.Parent.Lvl..""
wait(0.1)
end
You're attempting to concatenate an instance, not a string. I think what you're trying to concatenate is the instance's value, not its name.
Check this out:
while true do
script.Parent.Text = "Lvl: "..script.Parent.Parent.Lvl.Value..""
wait(0.1)
end
Omg, what a silly mistake. I can't belive that I forgot about that, thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
If you're confused, take this model so you can see what I have done: http://www.roblox.com/Take-if-your-gonna-help-l-item?id=188111196