How can I make a value activate a fan when a button is pressed, and when the same button is pressed again, toggle off the value thus turning off the fan?
The fans will begin spinning when the ‘BottomFans’ or ‘TopFans’ value is true.
Use the Changed event of the bool values to update the fan state.
1 Like
ClickDetector or ProximityPrompt?
ClickDetector.MouseClick:Connect(function()
TopFans.Value = not TopFans.Value
end)
Proxy.Triggered:Connect(function()
TopFans.Value = not TopFans.Value
end)
1 Like