So basically i was trying to make a boss fight, but when i tried to make a health tween, it just completely brokes and i dont know what to do. Before you ask, yes i did search the issue first but i couldn’t find a solution to it. There is no errors on the output either.
Script:
local sinisterM = game.ReplicatedStorage.HalloweenEnemies.SinisterM
local hum = sinisterM.Humanoid
local frame = script.Parent.HealthFrame
local service = game:GetService(‘TweenService’)
script.Parent.BossHealth.Text = hum.Health..‘/’..hum.MaxHealth
hum.Changed:Connect(function()
local scale = hum.Health / hum.MaxHealth
frame:TweenSize(UDim2.new(scale, 0.1), ‘InOut’, ‘Quint’, 0.3) --This thing doesn’t work properly
script.Parent.BossHealth.Text = hum.Health..‘/’..hum.MaxHealth
end)