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

CustomizeGui is not a valid member of ScreenGui?

I don't have any other thing named CustomizeGui but here is my script and other stuff. There are some screenshots. The links are screenshots to give some context because the title isn't the best worded title I had in mind.

First link: https://ibb.co/j4yRzzN
Second link: https://ibb.co/Bw3qnQY

local textButton = script.Parent

textButton.MouseButton1Click:Connect(function()
	local frame = script.Parent.Parent.Parent.CustomizeGui.Frame
	frame:TweenPosition(UDim2.new(0.879, 0,0, 0))
	frame.Visible = true
end)

6 comments

0

The first screenshot I changed the ScreenGui to ClassPickerGui

0

Also ClassPickerGui is a Gui

0
  1. just as blue duck said, why do you have to write out that long path when you could just do "local frame = textButton.Parent"
0
  1. the screengui is actually named "CostumizeGui" and not "CustomizeGUI"
0

local frame = script.Parent.Parent.Parent.Frame

0

the 3rd parent is already the CustomizeGui, so there is no need to search for itself

1 answer

✓ Accepted answer

#try this

local textButton = script.Parent

textButton.MouseButton1Click:Connect(function()
	    local frame = textButton.Parent
	    frame.Visible = true
	    frame:TweenPosition(UDim2.new(0.879, 0,0, 0), "Out", "Quart", 1)
end)

if it doesn't work too, dm me at

#Blue Duck#8344

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