WindShake icon indicating copy to clipboard operation
WindShake copied to clipboard

Add a property to check if WindShake is enabled

Open VoiditeDev opened this issue 2 years ago • 2 comments

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)

VoiditeDev avatar Sep 09 '23 10:09 VoiditeDev

use WindShake.Running

imezx avatar Sep 13 '23 02:09 imezx

use WindShake.Running

I don't feel comfortable using that as I hate using integers for properties, I'd rather use booleans than integers

VoiditeDev avatar Sep 15 '23 17:09 VoiditeDev