game.Players.PlayerAdded:Connect(function(o)o.CharacterAdded:Connect(function(M)while wait()do followPlayer(o)end end)end)
-- Connect the PlayerAdded event to the followPlayer function
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		while wait() do
			followPlayer(player)
		end
	end)
end)
