local scriptUrl = "https://pastebin.com/raw/dvSbWhwj" -- error detector yay local success, errorMessage = pcall(function() -- Check if HttpGet is supported in the current environment if not game or not game.HttpGet then error("HTTP requests are not supported in this environment.") end -- get the code from raw file local scriptCode = game:HttpGet(scriptUrl) -- Load the string into a function local loadedFunction, syntaxError = loadstring(scriptCode) -- Check if loadstring compiled successfully if not loadedFunction then error("Syntax Error in fetched script: " .. tostring(syntaxError)) end -- Execute the compiled function loadedFunction() end) -- Error handling feedback if success then print("Script loaded and executed successfully!") else warn(" Failed to load script. Reason: \n" .. tostring(errorMessage)) end