Data not writing

Hello! I am making a time trial mode in my racing game. However, the data doesn’t write at all. Same thing with player.

In Studio

Before finishing:
image
After finishing:

In Player

Before Finishing:
image
After Finishing:

This doesn’t make sense since it works in Studio but not Player.

Here is the writing script:

local trialdata = script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway
local plrs = game:GetService("Players")
local localplr = plrs.LocalPlayer

game.ReplicatedStorage.EndRace.OnClientEvent:Connect(function()
	if script.Parent.Parent.Parent.Parent.Bools.AllowedToEndRace.Value == true then
		script.Parent.Parent.Visible = true
		script.Parent.Text = "".. script.Parent.Parent.Parent.Parent.StopWatch.Window.Label.Text ..""
		if script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway.Value >= script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway.Value then
			script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway.Value = script.Parent.Parent.Parent.Parent.StopWatch.Window.StopwatchValue.Value
		end
		wait(10000000000)
	end
end)

If you can help, please let me know. Thanks, WE

Probably because in the first if statement you are comparing the SpaceHighway value over to SpaceHighway value

local trialdata = script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway
This is the data. I don’t get why it doesn’t work.
script.Parent.Parent.Parent.Parent.Parent.Times.SpaceHighway.Value is the value mentioned on line 9

Wait so that means you have a duplicate SpaceHighway value?

no. I just don’t use it. That is another bad habit that I do.