I made a button that Deleted the baseplate and turned black at the same time
This is the code i used:
function onClicked() local counter = 0 while(counter <531) do game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() game.Workspace.Baseplate:Destroy() counter = counter + 1 wait(0.003) if (counter <= 530) then script.Parent.Color = ('0,0,0')
end
end script.Parent.ClickDetector.MouseClick:connect(onClicked)
script.Parent.Color = Color3.new(0, 0, 0)
Color3 describes a color using RGB.