So, I’m trying to make a Gui element resize to make it look like it’s falling from your screen into the Frame. Problem is, when using GuiObject:TweenSize, it just disappears until the tween is finished, and then reappears once it’s done.
tweenpositon the heck.wmv (2.1 MB)
Code controlling this GUI:
local complements = {"Good Job!"; "Well Done!"; "Excellent!"; "Nice!"; "Good Work!"; "Great work!"}
local waveup = basic.waveUpdater
waveup.waveCompleted.Text = "Wave " .. workspace.Assets.Level.Value .. " Completed!"
waveup.complement.Text = complements[rand:NextInteger(1, #complements)]
waveup:TweenPosition(UDim2.new(0.5, 0, 0.37, 0), "Out", "Bounce", 1, false, function()
wait(0.5)
waveup.rewards:TweenSize(UDim2.new(1, 0, 0.1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Exponential, 1, true)
wait(0.5)
apimod.playSound("hit")
end)
wait(0.5)
apimod.playSound("Note")