Quick actions

cmd+k|ctrl+k

Navigation

Languages

funny sb script reenable

Snippet info

Language

Lua

Visibility

public

Author

lazarovalkyrie

Created

2024-08-13T00:05:49.669773Z

Updated

2024-08-25T23:18:40.110887Z

local t = {}

for i,v in pairs(workspace:GetDescendants()) do
    if v:IsA("Script") and v ~= script then
        table.insert(t,v)
    end
end

function a()
    for i,v in pairs(t) do
        v.Disabled = not v.Disabled
        v.Disabled = not v.Disabled
    end
end

local remote = Instance.new("RemoteEvent",owner.Character)

remote.OnServerEvent:Connect(function(lplr)
    if lplr == owner then else return end
    print'funny'
    a()
end)

NLS([[
game:GetService("UserInputService").InputBegan:Connect(function(input,gp)
    if gp then return end
    if input.UserInputType == Enum.UserInputType.Keyboard then
        if input.KeyCode == Enum.KeyCode.E then
            script.Parent:FireServer()
        end
    end
end)
]],remote)
INFO