Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

TexLabel is not a valid member of Frame?

http://pastebin.com/sSC4jJRP (Script) Picture of Explorer: http://imgur.com/6OUYqIl Please Help

intValue = script.Parent.Parent.TextLabel.Integer
 
script.Parent.MouseButton1Click:connect(function()
    intValue.Value = intValue.Value + 1
    script.Parent.Parent.TexLabel.Text = "Number: "..intValue.Value
end)

5 comments

0

Can you please show us the script on this website and not another?

0

There :3

0

Said there was problem on Line 5

0

On line 5 you spelled TextLabel wrong

0

That seems to be the only problem so I'll put it as an answer :P

1 answer

On line 5 you spelled TextLabel wrong. You put script.Parent.Parent.TexLabel instead of script.Parent.Parent.TextLabel. Meaning your code block should look like this,

intValue = script.Parent.Parent.TextLabel.Integer

script.Parent.MouseButton1Click:connect(function()
    intValue.Value = intValue.Value + 1
    script.Parent.Parent.TextLabel.Text = "Number: "..intValue.Value--fixed typo
end)

Lol, easy mistake. You should learn how errors work. here's a link to some info about errors. That should do it. Good Luck!

This discussion is preserved as it was. New answers, comments, and votes are closed.