From bcfefe3ad7d3a620ad7f4e1db196ac411d669f63 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 5 Jan 2018 14:00:58 +0000 Subject: [PATCH] Added Protected Require --- StandAlone/load.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/StandAlone/load.lua b/StandAlone/load.lua index 2f6fd4a9..707924cf 100644 --- a/StandAlone/load.lua +++ b/StandAlone/load.lua @@ -7,6 +7,12 @@ Any changes that you may make to the code are yours but that does not make the s Discord: https://discord.gg/r6dC2uK ]] --Please Only Edit Below This Line----------------------------------------------------------- +local return_err = true +local _require = require +local function require(path) + local success, err = pcall(_require,path) + if not success and return_err then error(err) end +end -- this file will just contain all the diffrent requires require('colours') require('health')