0% found this document useful (0 votes)
52 views

Unobfuscated Lua

The document contains code for a Roblox script that provides various utilities and functions for a player character including notifications, toggles for abilities like noclip and nofall, and UI elements for settings. It loads a GUI library and creates tabs for main functions and settings. Various toggles and dropdowns are added to allow changing settings like item pickup rules and ability toggles. The settings are also saved to a local file.

Uploaded by

ariefbagas
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Unobfuscated Lua

The document contains code for a Roblox script that provides various utilities and functions for a player character including notifications, toggles for abilities like noclip and nofall, and UI elements for settings. It loads a GUI library and creates tabs for main functions and settings. Various toggles and dropdowns are added to allow changing settings like item pickup rules and ability toggles. The settings are also saved to a local file.

Uploaded by

ariefbagas
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 12

local plr = game.Players.

LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local cam = workspace.CurrentCamera

local TweenService = game:GetService("TweenService")


local UIS = game:GetService("UserInputService")
local VIM = game:GetService("VirtualInputManager")

--//Discord Notification
local function Notifiy(content)
if getgenv().Webhook:len() == 0 then return end
local msg = content

if getgenv().UserId:len() ~= 0 then
msg = msg:gsub("<PING>", "<@"..tonumber(getgenv().UserId)..">")
end

syn.request({Url = getgenv().Webhook, Method = "POST", Headers = {["Content-


Type"] = "application/json"}, Body =
game:GetService("HttpService"):JSONEncode({["content"]=msg})})
end
--//

--//Leave Function
local function Leave(reason, includenotify)
local StatsGui = plr.PlayerGui:WaitForChild("StatsGui")
local InDanger = StatsGui:WaitForChild("Danger")

if not InDanger.Visible then


plr:Kick(reason)

if includenotify then
Notifiy("<PING>\n"..reason)
end
else
repeat task.wait() until not InDanger.Visible
plr:Kick(reason)

if includenotify then
Notifiy("<PING>\n"..reason)
end
end
end
--//

--//Notifications
local CallbackResponse = function(response)
if response == "Ignore" then
return
elseif response == "Return" then
Leave("Logged")
game:GetService("TeleportService"):Teleport(4111023553)
end
end

local SoundFunction = function(SoundId)


local Sound = Instance.new("Sound")
Sound.SoundId = "rbxassetid://"..SoundId
Sound.Volume = 10
Sound.Parent = plr

Sound:Play()
task.delay(5, function()
Sound:Destroy()
end)
end

local Notification = function(Text1, Text2, IsCallback, Time, SoundId)


local NotificationTable = {
Title = Text1;
Text = Text2;
Duration = Time;
}

if IsCallback then
NotificationTable = {
Title = Text1;
Text = Text2;
Duration = 1e10;
Callback = CallbackResponse;
Button1 = "Ignore";
Button2 = "Return";
}
end

game.StarterGui:SetCore("SendNotification", NotificationTable)

if SoundId then
SoundFunction(SoundId)
end
end
--//

--//Whitelist
local Whitelisted = {
"no whitelist data for u kid"
}

--//Anticheat Bypass
local old_coroutine_wrap;
old_coroutine_wrap = replaceclosure(coroutine.wrap, newcclosure(function(func, ...)
if not checkcaller() then
local caller_info = getinfo(5, "f");

if caller_info and caller_info.func == pcall then


return coroutine.yield();
end;
end;

return old_coroutine_wrap(func, ...);


end));

--//Textbox Bypass
for i,v in pairs(getconnections(UIS.TextBoxFocused)) do
v:Disable()
end
--//
--//Anti AFK
for i,v in pairs(getconnections(plr.Idled)) do
v:Disable()
end
--//

if not game:GetService("Workspace").NPCs:FindFirstChild("Scope") then


Notification("Meph Gui", "NPCs couldn't be located!", false, 5)
return
end

local Info = {
SummerNPC = game:GetService("Workspace").NPCs.Scope;
Running = false;

TweenSpeed = 100;
UserId = "";
Webhook = "";
ItemSelectionTable = {
Color3.new(0.63, 0.47, 0.19);
Color3.new(0.30, 0.35, 0.52);
Color3.new(0.53, 0.32, 0.32);
Color3.new(0.34, 0.56, 0.47);
};

ItemIgnoreTable = {
Color3.new(0.25, 0.31, 0.29);
};

Foods = {
"Pomar";
"Redd";
"Calabash";
"Bread";
"Mushroom Soup";
};

Drinks = {
"Calabash";
"Canteen";
"Pomar";
"Redd";
};

Toggles = {
Stabilize = false;
LeaveOnMod = false;
TrueCancel = false;
CalabashSummer = false;
SummerFarm = false;
Noclip = false;
Nofall = false;
};

SummerCheckpoints = {
WaitingSpot = CFrame.new(-4462.43555, 352.347046, 952.112366, 0.988452077,
-9.21360126e-08, 0.151533693, 1.00985929e-07, 1, -5.07064684e-08, -0.151533693,
6.54236842e-08, 0.988452077);
CFrame.new(-3899.30322, 244.928574, 699.335571, -0.756607234, 3.59305723e-
08, 0.653869629, 7.25218596e-09, 1, -4.65589984e-08, -0.653869629, -3.04848911e-08,
-0.756607234);
CFrame.new(-3850.8291, 236.803665, 991.180176, -0.591555536, -3.61322456e-
08, 0.806264281, -5.30559063e-08, 1, 5.88731375e-09, -0.806264281, -3.92944095e-08,
-0.591555536);
CFrame.new(-3913.47168, 288.996307, 1431.7417, 0.636522412, 4.4025267e-08,
0.771258175, -7.03673635e-08, 1, 9.92062432e-10, -0.771258175, -5.49028734e-08,
0.636522412);
CFrame.new(-4192.86719, 244.816101, 1283.35767, 0.908249557, 3.78329403e-
08, 0.418428898, -1.36923779e-08, 1, -6.06957187e-08, -0.418428898, 4.9397574e-08,
0.908249557);
CFrame.new(-4545.25195, 153.72377, 1325.37659, 0.997373998, 7.73699469e-08,
-0.0724232197, -7.40199226e-08, 1, 4.89401266e-08, 0.0724232197, -4.345085e-08,
0.997373998);
}
}

--//Nofall
local OldNameCall
OldNameCall = hookmetamethod(game, "__namecall", function(Self, ...)
local Args = {...}
local NamecallMethod = getnamecallmethod()

if not checkcaller() and NamecallMethod == "FireServer" and Info.Toggles.Nofall


then
if #Args == 2 and type(Args[1]) == "number" and Args[2] == false then
return
end
end

return OldNameCall(Self, ...)


end)
--//

--//Saving Settings
local HttpService = game:GetService'HttpService';
local SettingsFileName = 'MephGUIDeepwoken.json';
local Settings = {
TweenSpeed = 100;
UserId = "";
Webhook = "";

ItemSelectionTable = {
Color3.new(0.63, 0.47, 0.19);
Color3.new(0.30, 0.35, 0.52);
Color3.new(0.53, 0.32, 0.32);
Color3.new(0.34, 0.56, 0.47);
};

ItemIgnoreTable = {
Color3.new(0.25, 0.31, 0.29);
};

Toggles = {
Stabilize = false;
LeaveOnMod = false;
TrueCancel = false;
CalabashSummer = false;
SummerFarm = false;
Noclip = false;
Nofall = false;
};
};
if isfile(SettingsFileName) then
Settings = HttpService:JSONDecode(readfile(SettingsFileName));

Info.TweenSpeed = Settings.TweenSpeed
Info.UserId = Settings.UserId
Info.Webhook = Settings.Webhook

Info.ItemSelectionTable = Settings.ItemSelectionTable
Info.ItemIgnoreTable = Settings.ItemIgnoreTable

Info.Toggles = Settings.Toggles
else
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end

--//UI
local Mercury =
loadstring(game:HttpGet("https://raw.githubusercontent.com/deeeity/mercury-lib/
master/src.lua"))()
local GUI = Mercury:Create{
Name = "Throat Goat",
Size = UDim2.fromOffset(600, 400),
Theme = Mercury.Themes.Dark,
Link = "https://github.com/deeeity/mercury-lib"
}

GUI:Credit{
Name = "Introvert1337",
Description = "Creator of the Client Anticheat Bypass & Keyhandler Bypass",
V3rm = "https://v3rmillion.net/member.php?action=profile&uid=1803127"
}

local Main = GUI:Tab{


Name = "Main",
Icon = "http://www.roblox.com/asset/?id=8618039282"
}

local SettingsTab = GUI:Tab{


Name = "Settings",
Icon = "http://www.roblox.com/asset/?id=328647557"
}

Summer_Farm = Main:Toggle{
Name = "Toggle Summer Isles Farm",
StartingState = false,
Description = nil,
Callback = function(State4)
if (char.HumanoidRootPart.Position -
Info.SummerCheckpoints.WaitingSpot.Position).magnitude >= 500 or State4 then
Info.Toggles.SummerFarm = State4
else
Summer_Farm:SetState(false)
Notification("Autofarm", "go near the castle to start.", false, 5)
end
end
}

Main:Toggle{
Name = "The Calabash... IS REAL!",
StartingState = Info.Toggles.CalabashSummer,
Description = "Gets Calabash to eat when low food/thirst.",
Callback = function(State3)
Info.Toggles.CalabashSummer = State3
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

Main_Noclip = Main:Toggle{
Name = "Noclip",
StartingState = Info.Toggles.Noclip,
Description = nil,
Callback = function(State5)
Info.Toggles.Noclip = State5
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

Main_Nofall = Main:Toggle{
Name = "Nofall",
StartingState = Info.Toggles.Noclip,
Description = nil,
Callback = function(State6)
Info.Toggles.Nofall = State6
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

Main_ItemsToPick = Main:Dropdown{
Name = "Items to Pick Up",
StartingText = "Select...",
Description = nil,
Items = Info.ItemSelectionTable,
Callback = function(Item)
Main_ItemsToPick:Set("Removed "..Item)
Main_ItemsToNotPick:Set("Added "..Item)
table.remove(Info.ItemSelectionTable, table.find(Info.ItemSelectionTable,
Item))
table.insert(Info.ItemIgnoreTable, Item)

Main_ItemsToNotPick:AddItems({Item})
Main_ItemsToPick:RemoveItems({Item})

Settings.ItemSelectionTable = Info.ItemSelectionTable
Settings.ItemIgnoreTable = Info.ItemIgnoreTable
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

Main_ItemsToNotPick = Main:Dropdown{
Name = "Items to not Pick Up",
StartingText = "Select...",
Description = nil,
Items = Info.ItemIgnoreTable,
Callback = function(Item2)
Main_ItemsToNotPick:Set("Removed "..Item2)
Main_ItemsToPick:Set("Added "..Item2)
table.insert(Info.ItemSelectionTable, Item2)
table.remove(Info.ItemIgnoreTable, table.find(Info.ItemIgnoreTable, Item2))

Main_ItemsToPick:AddItems({Item2})
Main_ItemsToNotPick:RemoveItems({Item2})

Settings.ItemSelectionTable = Info.ItemSelectionTable
Settings.ItemIgnoreTable = Info.ItemIgnoreTable
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

SettingsTab:Textbox{
Name = "Webhook",
Default = Info.Webhook,
Callback = function(text)
Info.Webhook = text
Settings.Webhook = text
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

SettingsTab:Textbox{
Name = "Discord UserId",
Default = Info.UserId,
Callback = function(text2)
Info.UserId = text2
Settings.UserId = text2
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

SettingsTab:Toggle{
Name = "Leave on Mod",
StartingState = Info.Toggles.LeaveOnMod,
Description = "Leaves on Mod join during autofarm",
Callback = function(State2)
Info.Toggles.LeaveOnMod = State2
Settings.Toggles.LeaveOnMod = State2
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}

SettingsTab:Slider{
Name = "Tween Speed",
Default = Info.TweenSpeed,
Min = 100,
Max = 150,
Callback = function(Value)
Info.TweenSpeed = Value
Settings.TweenSpeed = Value
writefile(SettingsFileName, HttpService:JSONEncode(Settings));
end
}
--//

--//Actual Script
--//Mod Notifier
local function CheckMod(player)
local Succes, IsMember = pcall(function()
return player:IsInGroup(5212858)
end)

return IsMember
end

local Moderators = {}
for i,v in pairs(game.Players:GetPlayers()) do
local IsMod = CheckMod(v)
if IsMod then
Notification("Mod Alert", v.Name.." is a Mod", true, 0, 225320558)
table.insert(Moderators, v)
end
end

game.Players.PlayerAdded:Connect(function(v)
local IsMod = CheckMod(v)
if IsMod then
if Info.Toggles.LeaveOnMod and Info.Toggles.Autofarm then
Leave("Mod "..v.Name.." Joined the Game", true)
else
Notification("Mod Alert", v.Name.." is a Mod", true, 0, 225320558)
table.insert(Moderators, v)
end
end
end)

game.Players.PlayerRemoving:Connect(function(v)
if table.find(Moderators, v) then
table.remove(Moderators, table.find(Moderators, v))
Notification("Mod Alert", v.Name.." left the game", false, 6)
end
end)
--//

--//Noclip + Platform + Stabilize


for i,v in pairs(getconnections(char.Torso.ChildAdded)) do
v:Disable()
end
local limbs = {}
for _, v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") and v.CanCollide then
table.insert(limbs,v)
end
end
game:GetService("RunService").Stepped:Connect(function()
for _,v in pairs(limbs) do
if Info.Toggles.Noclip then
v.CanCollide = false
end
end

if Info.Toggles.Stabilize then
for _,v in pairs(char:GetChildren()) do
if v:IsA"BasePart" then
v.Velocity = Vector3.new()
end
end
end
end)

local PlatformConnection = nil


local function Platform(toggle)
if toggle then
if workspace:FindFirstChild("Platform") or PlatformConnection then return
end
local Part = Instance.new("Part")
Part.Name = "Platform"
Part.Anchored = true
Part.Transparency = .75
Part.Size = Vector3.new(30, 1, 30)

PlatformConnection =
game:GetService("RunService").RenderStepped:Connect(function()
Part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -3.5, 0)
end)

Part.Parent = workspace
else
if PlatformConnection then
PlatformConnection:Disconnect()
PlatformConnection = nil
end

if workspace:FindFirstChild("Platform") then
workspace.Platform:Destroy()
end
end
end
--//

--//Tween Function
local CurrentTween, Cancellable = nil, nil
local function Tween(cframe, cancellable)
if CurrentTween and Cancellable then
CurrentTween:Cancel()
CurrentTween = nil
Cancellable = nil
else
if (CurrentTween and not Cancellable) or Info.Toggles.TrueCancel then
return false
end
end

local mag = (char.HumanoidRootPart.Position - cframe.Position).magnitude /


Info.TweenSpeed
CurrentTween = TweenService:Create(char.HumanoidRootPart, TweenInfo.new(mag,
Enum.EasingStyle.Linear), {CFrame = cframe})
Cancellable = cancellable
CurrentTween:Play()

local OGNoclip = Info.Toggles.Noclip


local OGNofall = Info.Toggles.Nofall

Platform(true)
Info.Toggles.Noclip = true
Info.Toggles.Nofall = true
Info.Toggles.Stabilize = true
Main_Noclip:SetState(true)
Main_Nofall:SetState(true)

CurrentTween.Completed:Wait()

Platform(false)
Info.Toggles.Noclip = OGNoclip
Info.Toggles.Nofall = OGNofall
Info.Toggles.Stabilize = false
Main_Noclip:SetState(OGNoclip)
Main_Nofall:SetState(OGNofall)

return true
end
--//

local function ClosestCrate()


local obj, dist = nil, math.huge

for i,v in pairs(workspace.Thrown:GetChildren()) do


if v.Name == "ExplodeCrate" then
local mag = (char.HumanoidRootPart.Position - v.Position).magnitude
if mag < dist then
mag = dist
obj = v
end
end
end

return obj, dist


end

--//AutoEat
local function AutoEat()
--rewrite for better functionality
local Food, Water = char:WaitForChild("Stomach"), char:WaitForChild("Water")
if Food.Value <= 50 then
local found
for i,v in pairs(plr.Backpack:GetChildren()) do
if table.find(Info.Foods, v.Name) then
found = v
end
end

if found then
char.Humanoid:EquipTool(found)
found:Activate()
else
if Food.Value < 10 then
print("LEAVE")
end
end
elseif Water.Value <= 50 then
local found
for i,v in pairs(plr.Backpack:GetChildren()) do
if table.find(Info.Drinks, v.Name) then
found = v
end
end

if found then
char.Humanoid:EquipTool(found)
found:Activate()
else
if Water.Value < 10 then
print("LEAVE")
end
end
end
end
--//

--//Goto Chest + Open


workspace.Thrown.ChildAdded:Connect(function(v)
task.defer(function()
if v:FindFirstChild("Lid") then
local mag = (char.HumanoidRootPart.Position -
v.RootPart.Position).magnitude
if mag > 100 then return end

local Arrived = Tween(v.RootPart.CFrame, false)


plr.CameraMaxZoomDistance = 0
cam.CFrame = CFrame.new(cam.CFrame.Position, v.RootPart.Position)

repeat
VIM:SendKeyEvent(true, Enum.KeyCode.E, false, game)
task.wait(.1)
until plr.PlayerGui:FindFirstChild("ChoicePrompt")
end
end)
end)
--//

--//Loot Chest
plr.PlayerGui.ChildAdded:Connect(function(frame)
task.defer(function()
if frame.Name == "ChoicePrompt" then
local Frame = frame.ChoiceFrame.Options

local shorter
repeat task.wait()
shorter =
Color3.new(tonumber(tostring(Frame.Nothing.BackgroundColor3.R):sub(1, 4)),
tonumber(tostring(Frame.Nothing.BackgroundColor3.G):sub(1, 4)),
tonumber(tostring(Frame.Nothing.BackgroundColor3.B):sub(1, 4)))
until shorter ~= Color3.new(0.28, 0.28, 0.28)

local RarityTable = {
Color3.new(0.63, 0.47, 0.19);
Color3.new(0.30, 0.35, 0.52);
Color3.new(0.53, 0.32, 0.32);
Color3.new(0.34, 0.56, 0.47);
Color3.new(0.25, 0.31, 0.29);
}
for i,v in pairs(Frame:GetChildren()) do
if v.Name ~= "Nothing" and v:IsA"TextButton" then
local shorter =
Color3.new(tonumber(tostring(v.BackgroundColor3.R):sub(1, 4)),
tonumber(tostring(v.BackgroundColor3.G):sub(1, 4)),
tonumber(tostring(v.BackgroundColor3.B):sub(1, 4)))
local Rarity = table.find(RarityTable, shorter)

if Rarity then
if table.find(Info.ItemSelectionTable, shorter) then
frame.Choice:FireServer(v)
firesignal(v.MouseButton1Click)
end
else
frame.Choice:FireServer(v)
firesignal(v.MouseButton1Click)
print("ENCHANT NO WAY")
end
end
end
end
end)
end)
--//
--//

You might also like