Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tween Gui Script not working?

Asked by 9 years ago

Ok, So i did switch my scriptinghelpers account because i lost my old one, [not related to topic but just fyi] I've been working on a game, I have once you click a button that it tweens down a frame with settings and stuff, Heres my script:

script.Parent.Frame.Position = UDim2.new(0.5, 0, 0.5, 0) -- We set the scales to .5, .5, which is the center of the screen
script.Parent.Frame.Size = UDim2.new(0,0,0,0) -- We set the frame size to 0, so it will pop out of the middle of the screen.  
script.Parent.Frame:TweenSizeAndPosition(UDim2.new(0, 400, 0, 600), UDim2.new(.5, -200, .5, 600), "Out", "Quad", 1) -- This will change the size, from 0,0 to 400, 600, and the position will change so the frame stays centered.

My issue: The item is shown, but it wont appear on-screen when i test it, doesnt give me a detailed error log at all either. Please help! It can find the frame and everything else.

1
Note: You can only tween guis in a LocalScript. YasuYoshida 171 — 9y
1
Also this is from Wiki. MessorAdmin 598 — 9y
0
Btw i've been using LocalScripts, and i use the example from the wiki because thats what im trying to do :p so please be helpful .-. SHfunzrey 0 — 9y

Answer this question