Today I want tween a gui at the same position where I tween it, so I need you help.
With CFrame I could do actually CFrame:Inverse, but I started to script in 2 dimensional Vector and it looks like easier than it is…I think so
So as you saw on the title is the problem that I cant tween at the same position. I could easily do it with the normal Tween. So the Gui should look like this:
but no! it doesnt look like that if I try it in Gui, it is mostly harder. I think so, and I learnd since 4h. I learnt everything about Gui!
Pls dont send me any Gui ressources, and help me if you can - I know a lot of dimensionale Vector and I do understand we are here in 2d Vector Space. Thanks!
So how can I fix this problem, here a video for visualize the problem better:
You don’t use Vector2 to move GUI, you instead use udim2. The format for it is: UDim2.new:(xScale, xOffset, yScale, yOffset) where Scale is a decimal based on the screen size (like 0.5 is halfway) and Offset is in pixels.
What are you using to tween the GUI position? I’ll need more details to go ahead, I don’t know what you’re using to do the tween.
(I can’t open Studio right now)
OK, so I got the problem. Vector2 is only 2 values, not intended for GUI use. The AnchorPoint should only be Vector2.new(-0.3,-0.32) for example (it’s the right data type), but the TweenSizeAndPosition should be UDim2 INSTEAD of Vector2.
Also, If you want to see the errors it’s giving out (not all errors show in the script editor), go to the toolbar > view > output and toggle that on.