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

My Gui doesn't pop up with animation but it does when It goes away?

Asked by 4 years ago

My Gui has a purpose that It pops out to be like "HI THERE" as a phrase and then it goes down and away however It doesn't pop out with animation but it does when it goes away I'm confused??

local xlol = game.CoreGui.Intro.Frame
local Destro = game.CoreGui.Intro
xlol:TweenPosition(UDim2.new(-0.03, 0, -0.088, 0))
wait(4)
xlol:TweenPosition(UDim2.new(-0.038, 0, 0.995, 0))
wait(1)
Destro:Destroy()

I'm using CoreGui because whenever I put it in PlayerGui it doesn't even do any animations or doesn't even go away its like completely broken when in PlayerGui however it works in CoreGui

0
Um don't place it in CoreGui.... Prestory 1395 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

You didn't add an Easing Style, Direction, and Time. Heres a fix

local xlol = game.CoreGui.Intro.Frame
2   local Destro = game.CoreGui.Intro
3   xlol:TweenPosition(UDim2.new(-0.03, 0, -0.088, 0),"Linear","Out",1)
4   wait(4)
5   xlol:TweenPosition(UDim2.new(-0.038, 0, 0.995, 0),"Linear","Out",1)
6   wait(1)
7   Destro:Destroy()
Ad

Answer this question