Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local mt = debug.getmetatable(game) or getrawmetatable(game)
- local old = mt.__namecall
- local IsA = game.IsA;
- local set = setreadonly or make_writeable
- if not set then
- game.Players.LocalPlayer:Kick('sry ur exploit not compat')
- end
- set(mt,false)
- mt.__namecall = function(self,...)
- local a = {...}
- local m = table.remove(a)
- if self.Name == 'equipItem' and IsA(self,'RemoteFunction') and m == "InvokeServer" then
- _G.Key = a[2]
- _G.st = a[3]
- _G.Ready = true
- end
- return old(self,...)
- end
- local function spellCheck()
- if type(_G.Key) == 'number' then
- local tab = {
- aID = _G.Key,
- aKey = _G.st
- }
- local json = HttpService:JSONEncode(tab)
- writefile('autofarm.stellar',json)
- else
- print('sorry')
- end
- end
- if type(_G.Key) ~= 'number' then
- game.StarterGui:SetCore("SendNotification", {
- Title = "Stellar";
- Text = "Please re-equip the spell you want to use!";
- Duration = 5;
- })
- elseif type(_G.Key) == 'number' then
- warn("You're now all setup to run the script :)")
- game.StarterGui:SetCore("SendNotification", {
- Title = "Stellar";
- Text = "You're now all setup to run the script :)";
- Duration = 5;
- })
- spellCheck()
- end
- --local data = HttpService:JSONDecode(g)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement