Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Custom Chat Help?

Asked by 9 years ago

Since this new Roblox Studio Update has happen, my custom chat hasn't been working right. I made a local textlabel be named newchatline and put the newchatline in the ScreenGui where it has a Frame. I have the ScreenGui in StarterGui. Now here's the error I keep getting with newchatline at line 190 - 195 (I space my scripts out by 5 to read errors easier)

UpdateOldLabels(game:GetService("StarterGui").ScreenGui.Frame)




newchatline:Clone()--error: unknown global 'newchatline'




newchatline.Parent = game.StarterGui.ScreenGui.Frame--error: unknow global ' newchatline'

So the error I'm getting is next to the newchatline:Clone() and newchatline.Parent saying that it's a global such as workspace. I looked at the other newchatlines, but they work fine and don't have the same error as these two do. Can you help me? It would be a HUGE HELP!

1 answer

Log in to vote
1
Answered by
Diitto 230 Moderation Voter
9 years ago

What exactly is 'newchatline?' I cannot determine the issue to your code, for I do not have enough insight on what the variables are defined as, and how it works on a general scale.

I get the feeling, from the bottom line, that you made a typo in your code. If you did make a typo, the issue is probably that you put newchatline:Clone(), but you actually meant to type newchatline=chatline:Clone(), for the line under it states to parent the variable 'newchatline' to the ChatGUI's framing.

If this is not the case, post more of your code so that I can understand it.

0
Read the question carefully, I defined newchatline as textlabel, so newchatline is a textlabel. GreekGodOfMLG 244 — 9y
0
Instead of responding harshly, think about your actions. I said "exactly," for I did not see where you stated newchatline. It could be an issue with scope, but I don't know much about your code, for your question was very vague. Diitto 230 — 9y
Ad

Answer this question