Hey how do I make a GUI that disables a script when it is clicked/tapped?

I’m not sure this would work (unless I misunderstood the meaning).
Enabled is not a property of Script, instead it would be Disabled = false.

Weird how it works that way though.

I have tried every script on this page and none of them have worked

Try again, but show me the output.

I kinda forgot how to check the output

View Tab at the top > Click Output

which tab is it? sorry if I am being dumb

The view tab.

Post must be longer lol ignore this pls

Got it I finally found output after like 5 minutes

Here’s output

Huh. Nothing seems to help. Also, your game has a virus.

2 Likes

How do I get rid of the virus?

Use a different blood script.

Ignore this pls

Ok ill try another blood script

Try using an anti virus plugin here are some other posts you can look at for help
BTW if you do get an anti virus plugin make sure it is trusted and the creator is not a bot with a fake display name.

Does this look like it would work?:

No. It would work if it was the code below

local s = game.ServerScriptService["Realism Mod"].Bloody
local b = script.Parent

b.MouseButton1Click:Connect(function()
    s.Disabled = false
end)

You can disable it by setting Disabled to true

For the @OP, if you’re just gonna copy and paste script, I’m sorry but this would make your things much harder for you to achieve.

guiButton.MouseButton1Click:Connect(function()

script.Disabled = true

end)

The script isn’t in the GUI or it doesn’t work and its in workspace and the scripts named Advancedblood

It’s meant to give you a general idea of how it works. Ofc you change the variables reference point, etc.