I'm very confused. I happened to be messing around and ended up with a problem. Here's the situation. This simple line (line, as in singular, as in A line!) of code, won't work.
script.Parent.Text = "Hi"
This is inside a script that is inside a text label. Nothing special about it just a text label and a script. Any idea what I did wrong? I'm no pro at scripting, but I would like to think that I know more to it than this.
Hope you can help.
Local scripts are required. Another thing you can do is implement a string value into replicated storage, then inserting a local script into the label.
CODE FOR THAT:
local text = game:GetService("ReplicatedStorage").StringValue local message = script.Parent message.Text = text.Value text.Changed:Connect(function() message.Text = text.Value end)
Next, go to serverscriptservice and implement a script executing this:
local text = game:GetService("ReplicatedStorage").StringValue text.Value = "Hi"
Basically, for the label, the script detects if the value of the string is changed, then changes it's text to the string's value. The ServerScriptService script changes the value of the string to "Hi". It's recommended to use this for intermissions.