How can I make sure that during tweeting the BillboardGui still stays in the center of the Adornee?
- Video of my current problem
https://gyazo.com/894d74d413ba445d1f94f1b68e2a1d71
local module = {}
local TweenService = game:GetService("TweenService")
function module.DamageIndicator(Damage, Target)
local Indicator = script.Parent.Parent.UserInterface.DamageUi:Clone()
Indicator.Parent = Target.HumanoidRootPart
Indicator.TextLabel.Text = "-"..Damage
Indicator.Adornee = Target.HumanoidRootPart
task.wait(1)
local tween1 = TweenService:Create(
Indicator.TextLabel,
TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, false, 0),
{Size = UDim2.new(0,0,0,0) }
)
tween1:Play()
task.wait(0.5)
Indicator:Destroy()
end
return module