Lap Number on UI won't update

Hi, whenever I fire an event, the lap number on the Ui won’t update. Here is my code:

Script:

		local plr = game.Players:GetPlayerFromCharacter(person.Parent)
		local lapvalue = plr:FindFirstChild("CurrentLapNumber")
				local function LapUpdated(LapNumber)
					game.ReplicatedStorage.Events.LapChange:FireClient(plr, LapNumber)
				end
				
				LapUpdated(lapvalue.Value)

Local:

game.ReplicatedStorage.Events.LapChange.OnClientEvent(function(LapNumber)
	script.Parent.Text = "Lap: ".. LapNumber .. "/3"
end)

The error occurs at this line. 30 chars

After “OnClientEvent” you forgot to add “:Connect”

1 Like

Can’t belive i forgot the most important thing :stuck_out_tongue:

It mostly happens. :eye::lips::eye::ok_hand:t2:

I been experiencing that too.