From 232c5953433801539e5f3ad62f5d31bd1c995bb1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 5 Jan 2018 14:01:58 +0000 Subject: [PATCH] Added Protected Require --- StandAlone/load.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/StandAlone/load.lua b/StandAlone/load.lua index 0cd6ac7e..7301ac73 100644 --- a/StandAlone/load.lua +++ b/StandAlone/load.lua @@ -7,5 +7,10 @@ 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 \ No newline at end of file