Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can you help me with this Open Gui animation?

Hey everyone, I have got a animation for my open/close Gui but I have ran into one problem with the "Open" part of it. The shop shows up in a cool animation but then all the rest of my GUIs go away, I will send a video link below this so you understand the problem.

script.Parent.MouseButton1Click:connect(function()
	script.Parent:TweenPosition(UDim2.new(-0.2,0,0.5,0), "Out", "Back", 1, true)
	script.Parent.Parent.ShopGui:TweenPosition(UDim2.new(0.075,0,0.075,0), "Out", "Back", 2, true)
	local c = script.Parent.Parent:GetChildren()
	for i = 1,#c do
		c[i].Visible = false
	end
	script.Parent.Parent.ShopGui.Visible = true
	wait(1)
	game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
end)

https://www.youtube.com/watch?v=h3HnND-8jEE&feature=youtu.be

1 comment

0

It's on line 6, you are making them invisible, so obviously, the script.Parent.Parent:GetChildren() is the buttons on the side, and you are turning them invisible

1 answer

remove line 5, 6 and 7. Your making everything invisible.

This discussion is preserved as it was. New answers, comments, and votes are closed.