#can someone make me a script atp
1 messages · Page 1 of 1 (latest)
do u use screengui or playergui in the script to reference the ui elemenrs?
did you do this?
local Menus = script.Parent.Meuns
its easy man
- begin with a variable to track visibility
- make a function that whenever you press the open shop button it makes all children visible/invisible
- make a for loop inside the function that loops through all children to switch the visible value on/off
local visible = false
local function openShop()
if visible then visible = false end
if not visible then visible = true end
for _, v in ipairs(Menus:GetChildren) do
if v:IsA("TextButton") or v:IsA("Frame") or v:IsA("ScrollingFrame") then
v.Visible = visible
end
end
end
openShopButton.MouseButton1Click:Connect(openShop)
something like that
Thx i will try that later