[SOLVED] How to make a GUI that go up and down?

So, i wanna make something like this:

Like this smooth rotation effect.
Thanks for Reading and Helping, TinkyWinkyDev.

1 Like

Could use that for starters. You could also just constantly alter the rotation of the gui w/o tweenservice too. Using this below

if that helps

2 Likes

I already use the Gui.Rotation but, its kinda glitch… I will try to use the TweenService… Thanks for Helping.

Try something like this:

local gui = script.Parent
local TS = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0) -- change this to make it like you want it to be
local Rotate1 = {
	Rotation = 30 -- change this to make it like you want it to be
}
local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0) -- change this to make it like you want it to be
local Rotate2 = {
	Rotation = -30 -- change this to make it like you want it to be (keep it negative but with the same absolute value)
}
local part1 = TS:Create(gui,tweeninfo,Rotate1)
local part2 = TS:Create(gui,tweeninfo,Rotate2)
while wait(1) do
	part1:Play()
	wait(1)
	part2:Play()
end
2 Likes

Thanks for helping me, you helped a lot… I will be inspired by your code, but I will not do the same, good luck.

1 Like

Also, for the rotation, the lower the number (higher when its negative), the less it rotates.

1 Like

To add on, you can use other tweening functions such as :TweenSize(), :TweenPosition() and :TweenSizeAndPosition() that don’t require as much code.

2 Likes

Hmmmm… This helped too, thanks.

1 Like

Thanks you all for helping me with this.