Canvas group becomes invisible

I recently made a UI that replicates https://create.roblox.com/dashboard/creations
thing is something is stopping me from making one spesific thing that i need to animate and that is this
image
This is what i use for the script to animate it

local Open = function()
	_G.Opened = true
	game:GetService("TweenService"):Create(_G.Creators,TweenInfo.new(0.2,Enum.EasingStyle.Circular),{GroupTransparency = 0,Size = UDim2.new(0, 250,0, 250),Position = UDim2.new(0.07, 0,0.247, 0),AnchorPoint = Vector2.new(0,0)}):Play()
end

local Close =  function()
	_G.Opened = false
	game:GetService("TweenService"):Create(_G.Creators,TweenInfo.new(0.2,Enum.EasingStyle.Circular),{GroupTransparency = 0,Size = UDim2.new(0, _G.Creators.Size.X,0, _G.Creators.Size.Y),Position = UDim2.new(0.07, 0,0.247, 0),AnchorPoint = Vector2.new(0.5,0)}):Play()
end

But this is what happens when i click it


The black thing is a shadow i put on the thing so it doesnt have to do anything with the canvas
please let me know if this is a bug or not i cant seem to find a solution

I don’t exactly know what it may be from the little code you gave but, I’m pretty sure you’d have been able to write that without using any global variables.

Im using global variables to easily use the animation in different scripts

Go into a play test like you did before → click the button → then go to players → PlayerGui → and look into ur canvasUI. Screen shot the properties of it. Are you sure you’re setting the right anchor point? Is it being destroyed? Is the sizing or positioning out frame?

still exists
i removed anchor point and it still does the same thing

also this is another thing i noticed before animating the canvas group which made me think is a bug


it automaticly gets reverted back after i rejoin studio
also if i test it while its in that form it changes

Is it getting put behind the other UIs? Try messing with the layout order.

i think i found the main bug and a bit of a solution to it
if i scale the canvas group to 0,0 then it will fully bug out and not show anymore

3 Likes

i managed to change the animation as i would do that either way
and now doesnt have any type of disappearance bug or anything

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.