--Place this script into ServerScriptService.
--Place "HealthBar3D" into ReplicatedStorage.


function AddHealthBar(character)
	local HPBar = Game.ReplicatedStorage.HealthBar3D:Clone()
	HPBar.Parent = character
end

function PlayerEntered(player)
	player.HealthDisplayDistance = 0
	player.NameDisplayDistance = 0
	player.CharacterAdded:connect(AddHealthBar)
end

Game.Players.PlayerAdded:connect(PlayerEntered)
