checkpoint.Touched:Connect(function(u)if u and(u.Parent and u.Parent:FindFirstChildOfClass("\072\117\109\097\110\111\105\100"))then local u=checkpoint.ParticleEmitter u.Enabled=true wait(.3)u.Enabled=false end end)function onCheckpointTouched(u)if u and(u.Parent and u.Parent:FindFirstChildOfClass("\072\117\109\097\110\111\105\100"))then local k=Players:GetPlayerFromCharacter(u.Parent)local F=ServerStorage:FindFirstChild("\067\104\101\099\107\112\111\105\110\116\068\097\116\097")if not F then F=Instance.new("\070\111\108\100\101\114")F.Name="\067\104\101\099\107\112\111\105\110\116\068\097\116\097"F.Parent=ServerStorage end local c=tostring(k.UserId)local b=F:FindFirstChild(c)if b.Value==script.Parent then script.CheckPointPopup.Enabled=true wait(2)script.CheckPointPopup.Enabled=false end end end

checkpoint.Touched:Connect(function(hit)
	if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then
		local emitter = checkpoint.ParticleEmitter
		emitter.Enabled = true
		
		wait(0.3)
		
		emitter.Enabled = false
	end
end)

function onCheckpointTouched(hit)
	if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then
		local player = Players:GetPlayerFromCharacter(hit.Parent)
		local checkpointData = ServerStorage:FindFirstChild("CheckpointData")
		if not checkpointData then
			checkpointData = Instance.new("Folder")
			checkpointData.Name = "CheckpointData"
			checkpointData.Parent = ServerStorage
		end

		local userIdString = tostring(player.UserId)
		local checkpointValue = checkpointData:FindFirstChild(userIdString)

		if checkpointValue.Value == script.Parent then
			script.CheckPointPopup.Enabled=true
			wait(2)
			script.CheckPointPopup.Enabled=false

		end

	end

end
