So, I've decided to create a brick with moving text on it for my game, but I can't seem to get it working correctly. Apologies for my ignorance, I'm still a beginner.
local TweenService = game:GetService("TweenService")
local Text = script.Parent.TextLabel
local Info = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
false,
0
)
local End =
{
Position = Vector3.new(0, -230, 0, -5)
}
local TextSlide = TweenService:Create(Text, Info, End)
wait(1)
TextSlide:Play()

1 comment
I never work with UI before, but I know Vector3 is only apply to 3D world, not 2D(like laptop screen). So the solution now is using UDim2 value type https://developer.roblox.com/en-us/api-reference/datatype/UDim2