Hello there So Recently Ive been Trying to tween my gui but it only tweens if a Put a an mousebutton1click event Without no events it does not tween please help me I want it to tween auto
In order to use tween, you must call it in some way
For example, you could use anything along the lines of
script.Parent.MouseButton1Click:connect(function)
But you MUST call a tween in order for it to work
If you tweening the position then use :TweenPosition()
script.Parent.MouseButton1Click:connect(function() GUI:TweenPostion(Udim2.new(0,0,0,0), 0, 0, 0.5, false) -- To position, Easing Style, Easy Direction, Time it will take to reach, if it will overlap another tween. end
If you tweening the size then use :TweenSize()
script.Parent.MouseButton1Click:connect(function() GUI:TweenPostion(Udim2.new(1,0,1,0), 0, 0, 0.5, false) -- To size, Easing Style, Easy Direction, Time it will take to reach, if it will overlap another tween. end
If you needed it to tween with mouse button 1 click, you just have to do something like (assuming the script is in the thing you want to be clicked):
script.Parent.MouseButton1Click:connect(function() --tween here end)
Closed as Not Constructive by PyccknnXakep, Azarth, abnotaddable, and hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?