So I have this script:
local Button = script.Parent
Frame = script.Parent.Parent.Parent.Background1PC
start = script.Parent.Parent.Parent.Start
function onClick()
start:TweenPosition(UDim2.new(0.051, 0,1.5,0),"InOut","Sine",0.5)
wait(1.5)
Frame:TweenPosition(UDim2.new(0.05, 0,0.064, 0),"InOut","Sine",0.5)
end
Button.MouseButton1Click:connect(onClick)
And it works except that the start (script.Parent.Parent.Parent.Start) won't move after pressing the button but it should do as it is being tweened. If I change the script to delete it, however, it works.
I'm not really sure what's happening.
