How to tween text moving up in a billboardgui

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

Well, try to set the Y Value in the EndPos to positive

1 Like

ive tried that before, this is what happened? i tried with the Y offset as well but didnt work

Well from my experience roblox rounds Udim2 values, so giving in decimals (0.125) rounds it. Now i dont know if the problem is that the number gets rounded so the position is different from the one being typed, or something else. Try 2 things:
1.print the EndValue and see what it returns.
2.Change the value to an intager (1,2)… and see what it does. Unfortunately i’m not on the studio now so i can’t test it.