I was tired of having to go back and delete all my prints and then realize i need to put them back and it was really annoting, so i made this:
local ShouldPrint = true
--Simple Print Handler
local function PrintVal(Type, Text)
if ShouldPrint == true then
if Type == "Warn" then
warn(Text)
elseif Type == "Print" then
print(Text)
end
end
end
Its a very easy to use and toggleable printhandler, just give it 2 parameters
Exaple:
local ShouldPrint = true --Should prints activate?
--Simple Print Handler
local function PrintVal(Type, Text)
if ShouldPrint == true then
if Type == "Warn" then
warn(Text)
elseif Type == "Print" then
print(Text)
end
end
end
script.Parent.Touched:connect(function(part)
if part.name == "EVIL Part" then
PrintVal("Warn", "EVVVILLL!!!!!")
elseif part.name == "Nice Part" then
PrintVal("Print", "Aww!")
end
end)
Thats all, this is my first time makin sum for anyone to use, but if yall wanna use it thats alright with me!