local req=http_request or (http and http.request) or request;local lp_node;local lp_kick=function(reason) game:GetService("Players").LocalPlayer:Kick(reason);while((task.wait()))do pcall(function() local CoreGui=(cloneref or (function(a) return a; end))(game:GetService("CoreGui"));CoreGui.RobloxPromptGui.promptOverlay.ErrorPrompt.TitleFrame.ErrorTitle.Text="LuaProt";CoreGui.RobloxPromptGui.promptOverlay.ErrorPrompt.MessageArea.ErrorFrame.ErrorMessage.Text=reason; end); end;return; end;if((not req))then return lp_kick("Your executor is missing a request function and therefor is not supported by LuaProt."); end;for _,node in {"eu-1","us-1"} do local lp_nodes=req({Url="https://"..node..".luaprot.net/api/v1/nodes/get",url="https://"..node..".luaprot.net/api/v1/nodes/get"});if((lp_nodes.StatusCode==200))then lp_nodes=game:GetService("HttpService"):JSONDecode(lp_nodes.Body);LP_NODE=lp_nodes.node;if(LP_NODE)then break; end; end; end;if((not LP_NODE))then return lp_kick("LuaProt was unable to find an online node near you, please try again later!"); end;return {scriptId=nil,loadScript=function(self,key) if((not self.scriptId))then return lp_kick("No scriptId value was set, unable to load script."); end;lp_key=lp_key or key or "x";return loadstring(game:HttpGet("https://"..LP_NODE..".luaprot.net/api/v1/loaders/get/"..self.scriptId))(); end,checkKey=function(self,key) if((not self.scriptId))then return {status="MISSING_SCRIPTID",message="No scriptId value was set."}; end;local method="POST";local url="https://"..LP_NODE..".luaprot.net/api/v1/sdk/check";local body=game:GetService("HttpService"):JSONEncode({scriptId=self.scriptId,key=key or "x",placeId=game.PlaceId});local response=req({Url=url,url=url,Body=body,body=body,Method=method,method=method});local success,responseData=pcall(function() return game:GetService("HttpService"):JSONDecode(response.Body); end);if((success and responseData.status))then if((responseData.status=="VALID"))then lp_key=key;local timeLeft=responseData.keyData.expire;local updateStartTime=os.time();local originalTime=timeLeft;timeLeft=originalTime-updateStartTime;if((timeLeft<0))then timeLeft=0; end;return {status=responseData.status,message=responseData.message,data={keyExecutions=responseData.keyData.keyExecutions,scriptExecutions=responseData.keyData.scriptExecutions,note=responseData.keyData.note,expire=timeLeft,premium=responseData.keyData.premium,discordId=responseData.keyData.discordId,discordUsername=responseData.keyData.discordUsername}}; else return {status=responseData.status,message=responseData.message}; end; else return lp_kick("LuaProt sdk/check request failed; StatusCode: "..response.StatusCode); end; end};