Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Spinning a GUI like a Pendulum?

Asked by 2 years ago

(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

0
Maybe try using a different easing style? d3nton 19 — 2y
0
use EasingStyle Linear perhaps? greatneil80 2647 — 2y
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 Expination 5 — 2y
0
just make sure the anchor point of the pendulum is the same position at the start and the end (The GUI pendulum too) Xapelize 2658 — 2y

1 answer

Log in to vote
0
Answered by
Antelear 185
2 years ago

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)

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) Antelear 185 — 2y
0
Rotating Guis will only rotate it Expination 5 — 2y
0
@Expination Exactly! Spinning a pendulum back and forth is just rotating it :troll: Antelear 185 — 2y
Ad

Answer this question