RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if activated all true if activated again all false"
-- local script local button = script.Parent local activated = false function onButton1Down() activated = not activated for _,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") then v.Anchored = activated end end end button.MouseButton1Click:Connect(onButton1Down)