0% found this document useful (0 votes)
2K views3 pages

Anime Adventures Script

The document loads a UI module and creates a UI with tabs for "Main", "Misc", and "Credits". It adds buttons and toggles to the "Main" tab to automatically use abilities, upgrade the nearest unit, and select/refresh available units. The toggles run loops to trigger the corresponding actions while enabled.

Uploaded by

lil rEEEd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views3 pages

Anime Adventures Script

The document loads a UI module and creates a UI with tabs for "Main", "Misc", and "Credits". It adds buttons and toggles to the "Main" tab to automatically use abilities, upgrade the nearest unit, and select/refresh available units. The toggles run loops to trigger the corresponding actions while enabled.

Uploaded by

lil rEEEd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

local Material = loadstring(game:HttpGet("https://raw.githubusercontent.

com/Kinlei/
MaterialLua/master/Module.lua"))()

local X = Material.Load({
Title = "Keybrew Hub | Anime Adventures",
Style = 3,
SizeX = 300,
SizeY = 350,
Theme = "Light",
ColorOverrides = {
MainFrame = Color3.fromRGB(0,0,0),
Toggle = Color3.fromRGB(124,37,255),
ToggleAccent = Color3.fromRGB(255,255,255),
Dropdown = Color3.fromRGB(124,37,255),
DropdownAccent = Color3.fromRGB(255,255,255),
Slider = Color3.fromRGB(124,37,255),
SliderAccent = Color3.fromRGB(255,255,255),
NavBarAccent = Color3.fromRGB(0,0,0),
Content = Color3.fromRGB(0,0,0),
}
})

local Y = X.New({
Title = "Main"
})

local Z = X.New({
Title = "Misc"
})

local Cred = X.New({


Title = "Credits"
})
Cred.Button({
Text = "Copy Discord UyuSF4fPC9",
Callback = function()
setclipboard("https://discord.gg/UyuSF4fPC9")
toclipboard("https://discord.gg/UyuSF4fPC9")
end,
})

Y.Toggle({
Text = "Auto Abilities",
Callback = function(Value)
a = Value
while a do task.wait()
pcall(function()
for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
local args = {
[1] = v
}

game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:Invoke
Server(unpack(args))
end
end
end)
end
end,
Enabled = false
})

local Unit = {}

for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do


if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
if not table.find(Unit, tostring(v)) then
table.insert(Unit, tostring(v))
end
end
end

local drop = Y.Dropdown({


Text = "Select Unit",
Callback = function(Value)
getgenv().unit = Value
end,
Options = Unit
})

local function getClosest()


local dist, thing = math.huge
for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
if v:IsA("Model") and v.Name == unit then
local mag =
(game.Players.LocalPlayer.Character.HumanoidRootPart.Position -
v.HumanoidRootPart.Position).magnitude
if mag < dist then
dist = mag
thing = v
end
end
end
return thing
end

Y.Toggle({
Text = "Auto Upgrade Nearest",
Callback = function(Value)
bb = Value
while bb do task.wait()
local args = {
[1] = getClosest()
}

game:GetService("ReplicatedStorage").endpoints.client_to_server.upgrade_unit_ingame:Inv
okeServer(unpack(args))
end
end,
Enabled = false
})

Y.Button(
{
Text = "Refresh Units",
Callback = function()
table.clear(Unit)
for i, v in next, game:GetService("Workspace")["_UNITS"]:GetChildren() do
if v:IsA("Model") and v._stats.player.Value == game.Players.LocalPlayer then
if not table.find(Unit, tostring(v)) then
table.insert(Unit, tostring(v))
drop:SetOptions(Unit)
end
end
end
end
}
)

game.Players.LocalPlayer.PlayerGui.MessageGui:Destroy()

You might also like