The game I've created has snow, which bogs down just about everyone's computer. I was wanting to know how to disable the script through a GUI.
My Current code that disables the script:
for i, b in ipairs(script.Parent:GetChildren()) do if b:IsA("TextButton") then b.MouseButton1Down:connect(function() script.Parent.Snow.Enabled = false end) b.MouseButton1Up:connect(function() script.Parent.Snow.Enabled = false end) end end game.Players.LocalPlayer:GetMouse().Button1Up:connect(function() end)
script.Parent.Disabled = false
Replace all of the "Enabled" with "Disabled".