I’m trying to animate a GUI to come onto the display. Whenever I click the button, there are no errors and GUI does not move at all. I’ve never animated a GUI before and I primarily learn off reading and correcting errors, so that’s unfortunate. Any help is greatly appreciated!
wait(1)
local button = script.Parent
local on = false
local musicgui = game:GetService("StarterGui").MusicGui.Background
function click()
if on == false then
on = true
musicgui:TweenPosition(UDim2.new(0.022, 0, 0.749, 0),"Out","Bounce",1)
else
on = false
musicgui:TweenPosition(UDim2.new(-1, 0, 0.749, 0),"Out","Bounce",1)
end
end
script.Parent.MouseButton1Click:connect(click)