It says that Character is a nil value. This script works in solo but not in server :(
player = game.Players.LocalPlayer
mouse = player:GetMouse()
bar = script.Parent
holding = false
player.Character.Humanoid.Changed:connect(function()
bar.Size = UDim2.new(player.Character.Humanoid.Health / player.Character.Humanoid.MaxHealth, 0, 1, 0)
end)
Please help!

2 comments
mark it as an answer if it works
Thanks it works! You just helped me make a successful Health GUI! Thank you soooo much ;D