Skip to content

Add a property to check if WindShake is enabled #17

@VoiditeDev

Description

@VoiditeDev

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions