How to make a frame open/close in one button Roblox studio

Опубликовано: 11 Июль 2026
на канале: Potatothings
688
12

music :

Feel good

Xenogenisis

_________________________________________________________________________________________________
Script:
Button = script.Parent

Frame = script.Parent.Parent.Frame -- change to the name of your frame

Button.MouseButton1Click:Connect(function()
if Frame.Visible then
Frame.Visible = false
elseif not Frame.Visible then
Frame.Visible = true

end
end)
__________________________________________________________________________________________________
#roblox #robloxstudio #robloxgames #robloxdev #robloxdevs #coding #lua #robloxcode