GUI and cloning issues

I’ve been trying to make it where when a player touches a part a timer will start on there screen.

Here is what I have so far -

local Players = game:GetService("Players")
local Checkpoint3 = game.Workspace.Checkpoint3
local Player = Players.LocalPlayer

-- Cloned Guis

for _, player in pairs(game:GetService("Players"):GetPlayers()) do
	local clonedgui = game.ReplicatedStorage.Timer:Clone()
	clonedgui.Parent = player.PlayerGui
end

-- Functions

local function teleport()
	local clonedgui = Player.PlayerGui:WaitForChild("Timer")
	local minutes = 1
	local seconds = 0
	repeat
		if seconds <= 0 then
			minutes = minutes - 1
			seconds = 59
		else
			seconds = seconds - 1
		end
		if seconds < 10 then
			clonedgui.TextLabel.Text = tostring(minutes)..":0"..tostring(seconds)
		else 
			clonedgui.TextLabel.Text = tostring(minutes)..":"..tostring(seconds)
		end
		Player.Character.Humanoid.Died:Connect(function()
			wait(5)
			minutes = 1
			seconds = 0
		end)
		wait(1)
	until minutes <= 0 and seconds <= 0
end

local debounce = false

Checkpoint3.Touched:Connect(function(touched)
	if touched.Parent:IsA("Model") and touched.Parent:FindFirstChild("Humanoid") then
		local Player = Players:GetPlayerFromCharacter(touched.Parent)
		if Player then
			if not debounce then
				debounce = true
				teleport()
				wait(1)
				debounce = false
			end
		end
	end
end)

A timer (which is a GUI) is cloned for every player on joining. Then when a player touches a certain part that timer will start ticking down for that player. The problem is that when a player touches a part, the timer doesn’t start for that player but instead starts for everybody no matter who touches the part. I’m not sure what went wrong and would appreciate some help, thanks.

This is a local script in client correct?

If this was in a local script located in client it would work

This is a local script in starterplayerscripts.

No, Put The Local Script In Client.

In ServerScriptService? What is client.

ok, Put The local Script Inside of starter Gui

I did that and the same error occurred.

Add me on dis Fitky_austin#4777