Hey, so this script is a localscript inside of a textbutton inside of a screengui. There is another screengui called characterselect, which I want to switch to when I hit the textbutton.
script.Parent.Parent.Parent:WaitForChild("CreateCharacter")
script.Parent.MouseButton1Down:connect(function()
for a, f in pairs(script.Parent.Parent:GetChildren()) do
f.Visible = false
end
for i, v in pairs(script.Parent.Parent.Parent.CharacterSelect:GetChildren()) do
v.Visible = true
end
end)
However, the script doesn't work at all. Any ideas why? |