local function W(W)W.RespawnLocation=lobbySpawn leaderboardManager.new(W)end game.Players.PlayerAdded:Connect(W)

local function onPlayerJoin(player)
	player.RespawnLocation = lobbySpawn
	leaderboardManager.new(player)
end


game.Players.PlayerAdded:Connect(onPlayerJoin)