It clones the whole tag 2 times if I do that.
Please give me the link to the game, so I can see myself. And, are you publishing the changes?
I always do that and I give you a link of the game.
So the billboards aren’t changing sizes? Still waiting for the game link.
If I use the script in serverscriptservice all the players sees the bar like this.
But if I use the localscript inside the HealthBar, in local it works correctly but others sees the bar like above.
Have you tried doing the code examples I’ve shown?
Yeah, I tried all of them in scripts, or localscripts, inside the HealthBar, in serverscriptservice, in StarterCharacterScripts, StarterGui, and all of them shows the same, no console errors and the bar you see above.
Give me the link to the game please!!!
Here.
Here is the picture, also you can join again.
Is the AnimationScript a ServerScript or a LocalScript?
Is a localscript but I tried changing it to serverscript and doesn’t work.
So, for the ServerScript, put it inside ServerScriptService. Disable (or Delete) the LocalScript inside the Billboard.
That is what I did before, the serverscrip you gave me was active and the local one disabled.
Can you give me permissions to the game? I’ll friend you. I sent the request btw.
I prefer not because I have to many things here, but join me in the game so you see what I mean with the local script, otherwise I can give you the tag for separate so you see.
Try putting the LocalScript inside PlayerScripts and set the contents to this:
game:GetService("RunService").RenderStepped:Connect(function()
for index, player in pairs(game.Players:GetPlayers()) do
local character = player.Character
local Tag = character.Head:FindFirstChild("Tag")
if Tag then
local HealthBackground = Tag.HealthBarBackground
local HealthBar = HealthBackground.HealthBar
local Humanoid = character.Humanoid
HealthBar.Size = Udim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)
end
end
end)
while wait(0.5) do
workspace.Characters.haydengamingdo.Humanoid.Health -= 1
end
repeat wait()
character.Humanoid.Health -= 1 -- Whatever amount of dmg you want it to do.
until character.Humanoid.Health < 1
I was going to ask if you have discord or any communication for talk.