NumberValue not Changing

local function Round(player)
	local Timer = game.ReplicatedStorage.Timer
	Timer.Value = 30
    print(Timer.Value)
end

Round()

When I try this, the NumberValue does not change at all, I checked in both the Client and Server, and there are no errors in the Output (The Print also gives 0)

1 Like

Is the script running on the server?

1 Like

Yes, it is inside of a ServerScript.

1 Like

Why do you have a parameter called ‘player’ in the function, yet you don’t seem to be passing it?

1 Like

Because the script isn’t done yet. I’m just testing it as I go.

There’s really not more I can say. I personally would use an IntValue, but I’m not sure if that changes anything.

Using an IntValue doesn’t seem to change anything, it’s a bit annoying that I can’t find a solution anywhere but thanks for trying to help.

image
image

For me that works perfectly fine

There is probably another script setting the value of the Timer to 0
Try to check if that’s the case

where did you put the script, it works if it’s in server script service

Capture

Turns out there was another script changing it that I missed, thanks.