Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Spinning a GUI like a Pendulum?

(my first post)

I've been trying to make a image label spin like in that FNF Hypno's Lullaby mod, but when i try to do it, it looks hella ugly. Is there any way around this or making this not have this ugly tweening

function movePendelum()	
	task.spawn(function()
		while true do
			local speed = script:GetAttribute("speed")
			task.wait(speed/2)
            TweenService:Create(Pendelum, TweenInfo.new(speed/2, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0), {Position = UDim2.new(0.5, -118,0, -34),Rotation = 45}):Play()
     		task.wait(speed/2)
		    TweenService:Create(Pendelum, TweenInfo.new(speed/2, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0), {Position = UDim2.new(0.5, 118,0, -34),Rotation = -45}):Play()
		end
	end)
end

video examples: https://vimeo.com/657963307 https://vimeo.com/657964424

4 comments

0

Maybe try using a different easing style?

0

use EasingStyle Linear perhaps?

0

EasingStyle is not the issue here, if you look closely on the video you can see how the rope just unnaturally goes uppwards and NOT like the lullaby mod

0

just make sure the anchor point of the pendulum is the same position at the start and the end (The GUI pendulum too)

1 answer

simply change the rotation of the pendulum (would have to do some configuring especially if you don't want the whole pendulum to move aka it won't look like it's being swung but just a literal moving picture)

3 comments

0

(also, see if there's a way to either tween the gui's tween or etc. i'm sure it's possible to do smth like that <3)

0

Rotating Guis will only rotate it

0

@Expination Exactly! Spinning a pendulum back and forth is just rotating it :troll:

This discussion is preserved as it was. New answers, comments, and votes are closed.