#how do i make the healthbar visible
57 messages · Page 1 of 1 (latest)
What healthbar are we talking about?
Uh like for players
nvm
I think there's probably a property for that
AlwaysOn
When a humanoid's HealthDisplayType is set to HumanoidHealthDisplayType.AlwaysOn, its health bar always appears
From the docs
U gotta use the enum
So
Humanoid.HealthDistanceType = Enum.HumanoidHealthDisplayType.AlwaysOn
** You are now Level 8! **
cant i just change it to where its enabled
What do u think this does
local Players = game:GetService("Players")
local function onPlayerAdded(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
-- Give each humanoid full control over its name/health display distance
humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
-- Set name display distance to 20 studs
humanoid.NameDisplayDistance = 20
-- Set health bar display distance to 15 studs
humanoid.HealthDisplayDistance = 15
-- Only show health bar when humanoid is damaged
humanoid.HealthDistanceType = Enum.HumanoidHealthDisplayType.DisplayWhenDamaged
end
end)
end
Players.PlayerAdded:Connect(onPlayerAdded)
Eg from the docs
is that a local script
It's a server script
how do you get a server script
Wha-
ik whhere to put the script
It's just called script
im asking
Like the object is called script