Add a property to check if WindShake is enabled
VoiditeDev opened this issue · 2 comments
VoiditeDev commented
Currently it's too hard to check if it's enabled, and I have to use events which is unreliable to me unfortunately
It would've been better if there's a property to check if it's enabled
One use case would be making a button which disables/enables WindShake
This is the code for the use case provided
local button = script.Parent -- this can be any button, but this is set to script.Parent
local WindShake = require(game.ReplicatedStorage:WaitForChild("WindShake")) -- can be anywhere, recommended to place it under rep storage as I commonly activate it under rep first
button.MouseButton1Click:Connect(function()
if not WindShake.Enabled then
WindShake:Resume()
else
WindShake:Pause()
end
end)
imezx commented
use WindShake.Running
VoiditeDev commented
use WindShake.Running
I don't feel comfortable using that as I hate using integers for properties, I'd rather use booleans than integers