People said it was impossible to make this script still run after you reset and you would have to press the button again. If someone knows how to fix this, please guide me.
_G.RobloxAdvanced.BloodEnabled = false
local parent = script.Parent
local function on()
_G.RobloxAdvanced.BloodEnabled = true
end
local function off()
_G.RobloxAdvanced.BloodEnabled = false
end
local function OnClicked()
if _G.RobloxAdvanced.BloodEnabled == true then off() else on() end
end
parent.MouseButton1Click:connect(OnClicked)
Thank you.

3 comments
humanoid.Died:Connect(f)
Also don't use _G
Set the ScreenGui's 'ResetOnSpawn property to false