Open Source
Key Required Verified

Open Source

[SPELL BOOK!] Critical Legends (Beta)ManaMana 50K views 65 executesUpdated Jan 17, 2022
5.0/ 5(1 votes)
10100% Positive
Lua Script•289 lines (10492 chars)
if game:GetService("CoreGui"):FindFirstChild("Mana") then
    game:GetService("CoreGui"):FindFirstChild("Mana"):Destroy()
end

local OldNameCall
OldNameCall = hookmetamethod(game, "__newindex", function(A, B, ...)
    if not checkcaller()  and (B == "WalkSpeed" or B == "JumpPower") then
        return
    end
    return OldNameCall(A, B, ...)
end)
spawn(function()
for i,v in pairs(workspace.Enemies:GetDescendants()) do
    if v.Name == "EnemyDefeat" then
        v:Destroy()
    end
end
end)
spawn(function()
workspace.PlayerSpawns:Destroy()
end)


local UIlib = loadstring(game:HttpGet("https://pastebin.com/raw/ZjHQa1yw"))()
local Win = UIlib:Window("PJM", "Critical Legends")
-- first page
local SecFarm1 = Win:Tab("Autofarm")
local SecMisc1 = Win:Tab("Walk Stuff")
local SecTP1 = Win:Tab("TP Statues")
local SecCred1 = Win:Tab("Credits")

local sllectfield = {}
for i,v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
    if v:IsA("Folder") then
        if not table.find(sllectfield, v.Name) then
            table.insert(sllectfield, v.Name)
        end
    end
end

SecFarm1:Toggle("Start Farm", false, function(t)
StartFarm = t
end)

SecFarm1:Dropdown("Select Zone u want to farm in", sllectfield, function(v)
SelectAfuckingZone = v
end)

SecFarm1:Toggle("Tp to Mobs", false, function(t)
    StartFarmTP = t
end)

SecFarm1:Toggle("Notify when Black Market Comes", false, function(t)
NotiFy = t
end)

spawn(function()
    game:GetService("Workspace").Stalls["Black Market"].ChildAdded:Connect(function()
    if NotiFy then
        UIlib:Notification("Black Market", "Black Has Spawned Spoted!!!!") 
    end
    end)
end)

spawn(function()
    while task.wait() do
        if StartFarmTP then
            pcall(function()
                for i,v in pairs(game:GetService("Workspace").Enemies[SelectAfuckingZone]:GetChildren()) do
                    if game.Players.LocalPlayer.Character.InCombat.Value == false then 
                            game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.Enemies[SelectAfuckingZone]:FindFirstChildWhichIsA("Model").EnemyLocation.CFrame
                        else
                            game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.Enemies[SelectAfuckingZone]:FindFirstChildWhichIsA("Model"):FindFirstChildWhichIsA("Model").HumanoidRootPart.CFrame
                    end
                end
            end)
        end
    end
end)

spawn(function()
    while task.wait(.5) do
        if StartFarm then
            pcall(function()
                for i,v in pairs(game:GetService("Workspace").CombatFolder[game.Players.LocalPlayer.Name]:GetChildren()) do
                    if v:IsA("Model") then
                        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Base.CFrame
                    end
                end
            end)
        end
    end
end)

SecFarm1:Toggle("God Mode", false, function(t)
    GodMode = t
end)

local old 
    old = hookmetamethod(game, "__namecall", function(self, ...)
        local method = getnamecallmethod()
        local args = {...}
        
        if method == "FireServer" and tostring(self) == "Damage" and args[1] == game.Players.LocalPlayer.Character and GodMode then 
            return nil 
        end
    
        return old(self, ...)
    end)

    SecFarm1:line()

    SecFarm1:Toggle("Auto Collect Chests", false, function(t)
    yeet = t
        while yeet do task.wait() pcall(function()
            for i,v in pairs(workspace.Chests:GetChildren()) do
                if v:IsA("Model") and not v:FindFirstChild("Open") then 
                    firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                    firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                end
            end
        end)
        end
    end)

    SecFarm1:Toggle("Auto Collect Healthy Apple", false, function(t)
        yeet = t
            while yeet do task.wait() pcall(function()
                for i,v in pairs(game:GetService("Workspace").MaterialGivers["Healthy Apple"]:GetChildren()) do
                    if v:IsA("Model") then 
                        firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                        firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                    end
                end
            end)
            end
        end)

        SecFarm1:Toggle("Auto Collect Protection Orange", false, function(t)
            yeet = t
                while yeet do task.wait() pcall(function()
                    for i,v in pairs(game:GetService("Workspace").MaterialGivers["Protection Orange"]:GetChildren()) do
                        if v:IsA("Model") then 
                            firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                            firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                        end
                    end
                end)
                end
            end)

            SecFarm1:Toggle("Auto Collect Sky Cherry", false, function(t)
                yeet = t
                    while yeet do task.wait() pcall(function()
                        for i,v in pairs(game:GetService("Workspace").MaterialGivers["Sky Cherry"]:GetChildren()) do
                            if v:IsA("Model") then 
                                firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                                firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                            end
                        end
                    end)
                    end
                end)

                SecFarm1:Toggle("Auto Collect Fruit of the Sky", false, function(t)
                    yeet = t
                        while yeet do task.wait() pcall(function()
                            for i,v in pairs(game:GetService("Workspace").MaterialGivers["Fruit of the Sky"]:GetChildren()) do
                                if v:IsA("Model") then 
                                    firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                                    firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                                end
                            end
                        end)
                        end
                    end)

                    SecFarm1:Toggle("Auto Collect Rocky Fruit", false, function(t)
                        yeet = t
                            while yeet do task.wait() pcall(function()
                                for i,v in pairs(game:GetService("Workspace").MaterialGivers["Rocky Fruit"]:GetChildren()) do
                                    if v:IsA("Model") then 
                                        firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                                        firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                                    end
                                end
                            end)
                            end
                        end)

                        SecFarm1:Toggle("Auto Collect Mana Weed", false, function(t)
                            yeet = t
                                while yeet do task.wait()
                                    pcall(function()
                                    for i,v in pairs(game:GetService("Workspace").MaterialGivers["Mana Weed"]:GetChildren()) do
                                        if v:IsA("Model") then 
                                            firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 0)
                                            firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Giver, 1)
                                        end
                                    end
                                end)
                                end
                            end)

                            
local Styles = {}
for _,v in pairs(game:GetService("ReplicatedStorage")["CS_Icon_Key"]:GetChildren()) do
if not table.find(Styles, v.Name) then
table.insert(Styles, v.Name)
end
end

table.sort(Styles)

spawn(function()
for i,v in pairs(game:GetService("ReplicatedStorage").StyleWeapons:GetChildren()) do
    if v.Name == "" then
        v:Destroy()
        end
end
end)

SecFarm1:line()

SecFarm1:Dropdown("Select Style", Styles, function(v)
SelectStyle = v
end)

SecFarm1:Button("Change Style", function()
for _,v in pairs(game:GetService("ReplicatedStorage")["CS_Icon_Key"]:GetChildren()) do
    local args = {
        [1] = "CombatStyle",
        [2] = {
            ["Base"] = {
                ["Position"] = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
            },
            ["CombatStyle"] = {
                ["Value"] = SelectStyle
            }
        }
    }
    
    game:GetService("ReplicatedStorage").Remotes.StatsChange:FireServer(unpack(args))
end
end)


SecMisc1:Slider("Walk Speed", 1, 400, 57, function(v)
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
end)

SecMisc1:Slider("Jump Power", 1, 400, 60, function(v)
    game.Players.LocalPlayer.Character.Humanoid.JumpPower = v
end)


local SelStatue = {}
for i,v in pairs(game:GetService("Workspace").Statues:GetChildren()) do
    if not table.find(SelStatue, v.Name) then
        table.insert(SelStatue, v.Name)
    end
end

SecTP1:Dropdown("Select Statue", SelStatue, function(v)
SelectStatue = v
end)

SecTP1:Button("TP to Statue", function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Statues[SelectStatue].Wedge.CFrame
end)

local SelectZone = {}
for i,v in pairs(game:GetService("Workspace").Spawns:GetChildren()) do
    if not table.find(SelectZone, v.Name) then
        table.insert(SelectZone, v.Name)
    end
end

SecTP1:Dropdown("Select Zone", SelectZone, function(v)
SelectaZone = v
end)

SecTP1:Button("TP to Zone", function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Spawns[SelectaZone].CFrame
end)

SecCred1:Button("Mana#9724", function()
    setclipboard("Mana#9724")
    end)

Features & Information

dont complain about the tp to mob feature ):< Features: Auto Farm Mobs Tp to mobs (kinda shit ngl Wink) Godmode auto collect stuff Select Costum Class Misc Stuff (Walk Stuff) tp zones (spawns i think) tp to statues
#Open Source#Mana#yeet#Autofarm#Critical Legends

Community Comments (1)

DuckDuckJan 18, 2022(edited)

auto tp is choppy :troll: (also makes me fall under the map sometimes because mobs tp under the map for some reason)

More Scripts for [SPELL BOOK!] Critical Legends (Beta)