Trying to tween textlabel

so ive got the tween set up but the tween wont go fully vertical. instead of going diagonally i want it to go up tysm!!!

 function module.startIntermission()
			local text = script.Parent
			local ts = game:GetService("TweenService")
				text.Visible = true

			for t = INTERMISSION_TIME, 0, -1 do
				text.Text = "the game will start in: "..t
			local tInfo =
				.3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0
	local tween = ts:Create(text, tInfo, {TextTransparency=1}) -- this is fine btw
	local tween2 = ts:Create(text, tInfo, {,400,0,-40)}) -- this is the tween that goes diagonal

textlabel position settings:

local tween2 = ts:Create(text, tInfo, {,400,0,-80)}) -- Change the Y position to move the text upwards
1 Like

Hi friend, there’s a few changes I noticed you may want to look into.

  • Firstly, you’re using pixel offset for positioning, which is fine, but may look different on other devices. Try using scale positioning.
  • I would set the position of the label to, 0, 0.1, 0), and then set the AnchorPoint of the label to 0.5,0.5
  • That way, it locks the position offset of the gui to the center of the gui and centers tit in the vertical midpoint of any screen aspect ratio. Using this method also ensures that when you change the size of the gui, it will apply to both sides equally.
  • When tweening the position, make sure you’re changing the Y-Scale value within the UDim2 range. For instance: Position =, 0, -0.2, 0).

Please do correct me if this isn’t what you’re looking for, however! Much luck to you with whatever you’re making

1 Like

absolute legend for this. tysm for typing all that up man. i really appreciate it. u gave very valuable information. have an amazing day man!! :slight_smile:

1 Like

hey astral!
thanks a million for your help. i tried your way earlier and it was some what working but it would still go diagonal. thank u so much for ur help tho! :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.