local repo = 'https://[Log in to view URL]'
local Window = Library:CreateWindow({
-- Set Center to true if you want the menu to appear in the center
-- Set AutoShow to true if you want the menu to appear when it is created
-- Position and Size are also valid options here
-- but you do not need to define them unless you are changing them :)
Title = 'Kyirht Hub',
Center = true,
AutoShow = true,
TabPadding = 8,
MenuFadeTime = 0.2
})
-- CALLBACK NOTE:
-- Passing in callback functions via the initial element parameters (i.e. Callback = function(Value)...) works
-- HOWEVER, using Toggles/Options.INDEX:OnChanged(function(Value) ... ) is the RECOMMENDED way to do this.
-- I strongly recommend decoupling UI code from logic code. i.e. Create your UI elements FIRST, and THEN setup :OnChanged functions later.
local Tabs = {
-- Creates a new tab titled Main
Main = Window:AddTab('Main'),
['UI Settings'] = Window:AddTab('UI Settings'),
}
-- Groupbox and Tabbox inherit the same functions
-- except Tabboxes you have to call the functions on a tab (Tabbox:AddTab(name))
local LeftGroupBox = Tabs.Main:AddLeftGroupbox('Train')
local RightGroupBox = Tabs.Main:AddRightGroupbox('Utility')
-- We can also get our Main tab via the following code:
-- local LeftGroupBox = Window.Tabs.Main:AddLeftGroupbox('Groupbox')
-- Tabboxes are a tiny bit different, but here's a basic example:
--[[
local TabBox = Tabs.Main:AddLeftTabbox() -- Add Tabbox on left side
local Tab1 = TabBox:AddTab('Tab 1')
local Tab2 = TabBox:AddTab('Tab 2')
-- You can now call AddToggle, etc on the tabs you added to the Tabbox
]]
-- Groupbox:AddToggle
-- Arguments: Index, Options
LeftGroupBox:AddToggle('MyToggle', {
Text = 'Auto Train Strenght',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic train your strenght', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoStrenght = Value
if _G.AutoStrenght then
while _G.AutoStrenght do
wait(0.5)
local args = {
[1] = "TrainStat",
[2] = "Strength"
}
game:GetService("ReplicatedStorage").Events:FindFirstChild("Stats/RemoteFunction"):InvokeServer(unpack(args))
end
end
end
})
LeftGroupBox:AddToggle('MyToggle', {
Text = 'Auto Train Durability',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic train your durability', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoDurability = Value
if _G.AutoDurability then
while _G.AutoDurability do
wait(0.5)
local args = {
[1] = "TrainStat",
[2] = "Durability"
}
game:GetService("ReplicatedStorage").Events:FindFirstChild("Stats/RemoteFunction"):InvokeServer(unpack(args))
end
end
end
})
LeftGroupBox:AddToggle('MyToggle', {
Text = 'Auto Train Chakra',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic train your chakra', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoChakra = Value
if _G.AutoChakra then
while _G.AutoChakra do
wait(0.5)
local args = {
[1] = "TrainStat",
[2] = "Chakra"
}
game:GetService("ReplicatedStorage").Events:FindFirstChild("Stats/RemoteFunction"):InvokeServer(unpack(args))
end
end
end
})
LeftGroupBox:AddToggle('MyToggle', {
Text = 'Auto Train Sword',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic train your sword', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoSword = Value
if _G.AutoSword then
while _G.AutoSword do
wait(0.5)
local args = {
[1] = "TrainStat",
[2] = "Sword"
}
game:GetService("ReplicatedStorage").Events:FindFirstChild("Stats/RemoteFunction"):InvokeServer(unpack(args))
end
end
end
})
LeftGroupBox:AddToggle('MyToggle', {
Text = 'Auto Train Speed',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic train your speed', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoSpeed = Value
if _G.AutoSpeed then
while _G.AutoSpeed do
wait(0.5)
local args = {
[1] = "TrainStat",
[2] = "Speed"
}
game:GetService("ReplicatedStorage").Events:FindFirstChild("Stats/RemoteFunction"):InvokeServer(unpack(args))
end
end
end
})
RightGroupBox:AddToggle('MyToggle', {
Text = 'Auto Weapon',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic equip your weapon every time u die', -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoWeapon = Value
if _G.AutoWeapon then
while _G.AutoWeapon do
local VirtualInputManager = game:GetService('VirtualInputManager')
local character = game.Players.LocalPlayer.Character
local humanoid = character and character:FindFirstChild("Humanoid")
if game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died then
wait(2)
if humanoid and humanoid.Health <= 0 then
wait(7)
VirtualInputManager:SendKeyEvent(true, "Four", false, game)
wait()
VirtualInputManager:SendKeyEvent(false, "Four", false, game)
end
end
end
end
end
})
RightGroupBox:AddToggle('MyToggle', {
Text = 'Auto Haki (J)',
Default = false, -- Default value (true / false)
Tooltip = 'This will automatic use haki when u die, -- Information shown when you hover over the toggle
Callback = function(Value)
_G.AutoHaki = Value
if _G.AutoHaki then
while _G.AutoHaki do
local VirtualInputManager = game:GetService('VirtualInputManager')
local character = game.Players.LocalPlayer.Character
local humanoid = character and character:FindFirstChild("Humanoid")
if game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died then
wait(2)
if humanoid and humanoid.Health <= 0 then
wait(7)
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.P, false, game)
wait()
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.P, false, game)
end
end
end
end
end
})
To embed this project on your website, copy the following code and paste it into your website's HTML: