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

CustomizeGui is not a valid member of ScreenGui?

Asked by 3 years ago

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)
0
The first screenshot I changed the ScreenGui to ClassPickerGui II_Goodlu 8 — 3y
0
Also ClassPickerGui is a Gui II_Goodlu 8 — 3y
0
2. just as blue duck said, why do you have to write out that long path when you could just do "local frame = textButton.Parent" User#30567 0 — 3y
0
1. the screengui is actually named "CostumizeGui" and not "CustomizeGUI" User#30567 0 — 3y
View all comments (2 more)
0
local frame = script.Parent.Parent.Parent.Frame ChristianTRPOC 64 — 3y
0
the 3rd parent is already the CustomizeGui, so there is no need to search for itself ChristianTRPOC 64 — 3y

1 answer

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

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

Ad

Answer this question