It works in studio but not the real game. By the way, this is a module script.
local BloodEnabled = false
local parent = script.Parent
local function on()
BloodEnabled = true
end
local function off()
BloodEnabled = false
end
local function OnClicked()
if BloodEnabled == true then off() else on() end
end
parent.MouseButton1Click:connect(OnClicked)
Can someone guide me?
Thanks.

2 comments
why would this be in a module script
because of my broadness