I am trying to make a gui wobble back and fourth between 5 and -5 then restart the process from the opposite side back. I am mainly trying to do this in a convenient way that also makes the gui rotate smoothly.
Code:
local frame = script.Parent.Frame
while true do
for i = -5,5,.1 do
wait()
frame.Rotation = i
for i = 5,-5,.1 do
wait()
frame.Rotation = i
end
end
end
Thanks in advanced. I also want to try and stick to coding this in a more compact way other than listing every single rotated value wait waits in between.
