#can someone give me a open and close button script
1 messages · Page 1 of 1 (latest)
create text button
create frame
on click with the text button
open the frame
btw this is scripting help
local frame = script.Parent:WaitForChild("Frame")
local openButton = script.Parent:WaitForChild("OpenButton")
local closeButton =
frame.Visible = false
openButton.MouseButton1Click:Connect(function()
frame.Visible = true
openButton.Visible = false
closeButton.MouseButton1Click:Connect(function()
frame.Visible = false
openButton.Visible = true
end)
For WaitForChild add ur TextButtons name
wth
ty
Np
that dosent work
we don’t make scripts for you
ScreenGui
- Frame
- OpenButton
- CloseButton
watch a tutorial on gui buttons
He need to replace those with the names of them
In WaitForChild
Obviously.
You also didn't add the waitforchild for closebutton
Button.Activated:Connect(function()
script.Frame.Visible = not script.Frame.Visible
end)
Wait let me see
Oh yeah i forgot
Happens.
Let me copy it and change it
local frame = script.Parent:WaitForChild("Frame")
local openButton = script.Parent:WaitForChild("OpenButton")
local closeButton = frame:WaitForChild("CloseButton")
frame.Visible = false
openButton.MouseButton1Click:Connect(function()
frame.Visible = true
openButton.Visible = false
end)
closeButton.MouseButton1Click:Connect(function()
frame.Visible = false
openButton.Visible = true
end)
Guys, its the dustin dusty duster.
duster hasn’t been online in 30 years

Probably because of that marketplace blacklist
Lmafo
What did you even do.
forgot to include portfolio