so i want to make a damage indicator for a kaiju game the team i’m a part of is working on, and i was wondering how i could tween text to move up as it displays damage from a gunshot? i was originally using a module script as the current version is temporary, and it isn’t working. it runs fine but the text moves down instead of upwards? im kinda confused (i dont have any other parameters or scripts modifying the billboard gui
i want the text to move up like the green arrow, instead of down (red arrow)
module script to display damage
local module = {}
local TweenService = game:GetService(“TweenService”)
function module.DamageIndicator(Damage, Target:TextLabel)
Target.Text = Damage
local originalPos = Target.Position
local endPos = UDim2.new(0, 0, -.125, 0) -- negative value for y
local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local tween = TweenService:Create(Target , tweenInfo, {Position = endPos})
tween:Play()
end
return module