I'm currently working on a sports game and I have a scoreboard. I'm stumped on how to make the scoreboard display the actual score. I have a number value with the score that works when scoring. So that'd have the score in it, but no matter what I try I can't seem to get it to display. The scoreboard TextLabel is in startergui and the numbervalue is in replicated storage if that helps any. RedScore is the number value.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local displayValues = ReplicatedStorage:WaitForChild("DisplayValues")
local status = displayValues:WaitForChild("RedScore")
local textLabel = script.Parent
local function updateText()
textLabel.Text = status.Value
end
status.Changed:Connect(updateText)
updateText()

2 comments
So I changed the line 8, but It's still not displaying. Does it have anything to do with the text label being the script's parent?
Ah, the problem was line 3, I had changed it to game.replicatedstorage.RedScore and it worked perfectly. Thanks!