I have been trying to get this gui to up down but it keeps going up Its not even letting me set the position after I tween it
this is where it ends up https://gyazo.com/0e75eba954362671fbcf4df41b5dcdf9
this is where its supposed to go https://gyazo.com/709a364a1248743fd93e9a6618a2258b local tweenS = game:GetService("TweenService") local info = TweenInfo.new(1,Enum.EasingStyle.Linear) script.Parent:TweenPosition(UDim2.new(script.Parent.Position.X,0.978, 0),Enum.EasingDirection.In,Enum.EasingStyle.Linear,1)
I have a tip for you. When youâre scripting, use the output box if you donât already. It provides useful information about an error if you get one.
I never said that TweenService didnât work, I was giving base code that if OP desires, they can improve on. If theses methods shouldnât be used, then why do they exist? Its just a quality of life code improvement. TweenService/TweenPosition/TweenSize all work exactly the same. Unless there is an official / credible post about how its inefficient, I wonât be editing my answer. Using the TweenPosition function is simple and easy to understand.
As far as I know, there is no easy way to stop a tween animation using :TweenPosition. TweenService is quite easy to understand and it can you keep your code neat. With tweeninfo, you donât need to keep repeating code and specifying your easing direction and style, unlike :TweenPosition. Nothing is wrong with :TweenPosition though, and it is really up to OP on what he prefers.
Never said anything about how you mentioned TweenService doesnât work. TweenService can do everything these methods can and more. Typically itâs in your best interest, especially if you want to modify multiple properties in one tween, to use this.
There are many methods that shouldnât be used yet they exist. The existence of a method doesnât imply that it should be used. Furthermore, method usage is case dependent.
TweenService and the isolated GuiObject tweens look the same but internally they arenât. TweenService has much more capability and support over these methods which by now are considered legacy and could be deprecated in the foreseeable future. They may be kept for compatibility purposes.
I donât really know why youâd want to wait for an official post before taking a recommendation, but thatâs on you I guess. Members out here are just looking to help users.
As for the blog, what post are you reading from? The blog doesnât necessarily have updated information and TweenService did not exist at the time of those two methods. The Developer Forum and Hub contain the most updated information about development practices. The blog is primarily for Roblox news, not development updates. This separation is already very clear.
I misunderstood what you were quoting, to me it looked like you quoted posatta because you thought that I said TweenService didnât work.
I agree that âThere are many methods that shouldnât be used yet they existâ however, some methods are created for quality of life simple script creation, in my answer I wanted the OP to understand the script first, before making it as efficient as possible because sometimes making everything as efficient as possible isnât the best approach when explaining something (not implying that TweenService is necessary hard). Usually official posts like from a Roblox Engineer confirm inefficiency. I rather keep everything again as simple as possible instead of being efficient. I want people to learn not just copy and paste scripts from the devforum, not understanding what the code does.
Yeah sorry, I meant the wiki / developer hub.
I appreciate your feedback, I was just going off the top of my head and what I heard and saw, thanks for confirming / debunking my answer!
If you want to talk about this further, I think we should move it this into messages.