Attempt to index nil with 'Text'

local Status = game.ReplicatedStorage:WaitForChild("Timer")
local TextLabel = script.Parent

Status:GetPropertyChangedSignal("Value"):Connect(function() 
	TextLabel.Text = Status.Value
end)

i don’t know why but i keep getting a error saying that the parent is nil

image

please i need help i’m so annoyed by this there’s no reason for this not to work

try local TextLabel: TextLabel = script.Parent your code is trying to find the child “text” but not the property, so that might be the problem

it didn’t work when i did that

I don’t think thats the problem, it would work the same without : TextLabel because that is basically just to define a variable’s type, but not actually set the type.

If there any other scripts that does do something with the textLabel “Time”? because theres no way the script you provided with dont work without the textlabel getting destroyed.

there’s some other errors about a characteradded event limit

What do you mean by CharacterAdded Event Limit? Can you tell what is the error message you get about the characterAdded?

To be honest that doesnt look like its interfering the textLabel…

So, I would recommend you to do some checking prints, like doing

print(TextLabel, TextLabel.Parent)

and fix the script depending what result they do print.

local Status = game.ReplicatedStorage:WaitForChild("Timer")
local TextLabel = script.Parent

Status:GetPropertyChangedSignal("Value"):Connect(function() 
	spawn(function()
                TextLabel.Text = Status.Value
        end)
end)

your code is trying to search for “Text” inside of your textlabel “Time” not the property.
try doing a :waitforchild() or even using

if Time then -- you can add more checks

end

wait no im dumb, the code is trying to access a property that does not exist which is why it errors

I am unsure, but try using wait(1) to solve this issue. Also, look up in the PlayerGui if the Time Gui is still there and update me for further discussions.

local Status = game.ReplicatedStorage:WaitForChild("Timer")
local TextLabel = script.Parent

Status:GetPropertyChangedSignal("Value"):Connect(function() 
	TextLabel.Text = Status.Value
end)

Alright so I decided to test this out myself, copied the code in an empty baseplate and did the coding for the Timer.
image
So far I have not faced any issues, idk what you are dealing with here

Here is the modified code of the updating text

local Status = game.ReplicatedStorage:WaitForChild("Timer")
local TextLabel = script.Parent

Status.Changed:Connect(function(Value)
	TextLabel.Text = Value
	print("updated")
end)

And the test code for the timer (in ServerScriptService)

while task.wait(1) do
game.ReplicatedStorage.Timer.Value += 1
end