0% found this document useful (0 votes)
207 views44 pages

Goonlinetools Lua - Lua

The document contains a script for a Roblox game called 'KRT Hub', which includes a user interface for various functionalities such as character settings, ESP (Extra Sensory Perception), and aimbot features. It allows players to customize their gameplay experience by adjusting walk speed, jump power, and highlighting different roles in the game. The script also includes event listeners to manage game state changes and player interactions.

Uploaded by

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

Goonlinetools Lua - Lua

The document contains a script for a Roblox game called 'KRT Hub', which includes a user interface for various functionalities such as character settings, ESP (Extra Sensory Perception), and aimbot features. It allows players to customize their gameplay experience by adjusting walk speed, jump power, and highlighting different roles in the game. The script also includes event listeners to manage game state changes and player interactions.

Uploaded by

voyzrbot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

print([[

KRT hub

]])

loadstring(game:HttpGet("[Link] true))()

do
local WindUI =
loadstring(game:HttpGet("[Link]
download/[Link]"))()
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local CurrentCamera = [Link]
local LocalPlayer = [Link]
local CoreGui = game:GetService("CoreGui")
function gradient(text, startColor, endColor)
local result = ""
local length = #text
for i = 1, length do
local t = (i - 1) / [Link](length - 1, 1)
local r = [Link]((startColor.R + ((endColor.R - startColor.R) * t))
* 255)
local g = [Link]((startColor.G + ((endColor.G - startColor.G) * t))
* 255)
local b = [Link]((startColor.B + ((endColor.B - startColor.B) * t))
* 255)
local char = text:sub(i, i)
result = result .. '<font color="rgb(' .. r .. ", " .. g .. ", " ..
b .. ')">' .. char .. "</font>"
end
return result
end
local Confirmed = false
WindUI:Popup(
{
Title = gradient("KRT hub", [Link]("#eb1010"),
[Link]("#1023eb")),
Icon = "info",
Content = gradient("This script made by", [Link]("#10eb3c"),
[Link]("#67c97a")) ..
gradient(" KRT Hub", [Link]("#001e80"),
[Link]("#16f2d9")),
Buttons = {
{Title = gradient("Cancel", [Link]("#e80909"),
[Link]("#630404")), Callback = function()
end, Variant = "Tertiary"},
{Title = gradient("Load", [Link]("#90f09e"),
[Link]("#13ed34")), Callback = function()
Confirmed = true
end, Variant = "Secondary"}
}
}
)
repeat
[Link]()
until Confirmed
WindUI:Notify(
{
Title = gradient("KRT Hub", [Link]("#eb1010"),
[Link]("#1023eb")),
Content = "Скрипт успешно загружен!",
Icon = "check-circle",
Duration = 3
}
)
local Window =
WindUI:CreateWindow(
{
Title = gradient("KRT Hub MM2 [Beta]", [Link]("#001e80"),
[Link]("#16f2d9")),
Icon = "infinity",
Author = gradient("Delta Android", [Link]("#1bf2b2"),
[Link]("#1bcbf2")),
Folder = "WindUI",
Size = [Link](300, 270),
Transparent = true,
Theme = "Dark",
SideBarWidth = 200,
UserEnabled = true,
HasOutline = true
}
)
Window:EditOpenButton(
{
Title = "Open UI",
Icon = "monitor",
CornerRadius = [Link](2, 6),
StrokeThickness = 2,
Color = [Link]([Link]("1E213D"),
[Link]("1F75FE")),
Draggable = true
}
)
local Tabs = {
MainTab = Window:Tab(
{Title = gradient("MAIN", [Link]("#ffffff"),
[Link]("#636363")), Icon = "terminal"}
),
CharacterTab = Window:Tab(
{Title = gradient("CHARACTER", [Link]("#ffffff"),
[Link]("#636363")), Icon = "file-cog"}
),
TeleportTab = Window:Tab(
{Title = gradient("TELEPORT", [Link]("#ffffff"),
[Link]("#636363")), Icon = "user"}
),
EspTab = Window:Tab(
{Title = gradient("ESP", [Link]("#ffffff"),
[Link]("#636363")), Icon = "eye"}
),
AimbotTab = Window:Tab(
{Title = gradient("AIMBOT", [Link]("#ffffff"),
[Link]("#636363")), Icon = "arrow-right"}
),
AutoFarm = Window:Tab(
{Title = gradient("AUTOFARM", [Link]("#ffffff"),
[Link]("#636363")), Icon = "user"}
),
bs = Window:Divider(),
InnocentTab = Window:Tab(
{Title = gradient("INNOCENT", [Link]("#0ff707"),
[Link]("#1e690c")), Icon = "circle"}
),
MurderTab = Window:Tab(
{Title = gradient("MURDER", [Link]("#e80909"),
[Link]("#630404")), Icon = "circle"}
),
SheriffTab = Window:Tab(
{Title = gradient("SHERIFF", [Link]("#001e80"),
[Link]("#16f2d9")), Icon = "circle"}
),
gh = Window:Divider(),
ServerTab = Window:Tab(
{Title = gradient("SERVER", [Link]("#ffffff"),
[Link]("#636363")), Icon = "atom"}
),
SettingsTab = Window:Tab(
{Title = gradient("SETTINGS", [Link]("#ffffff"),
[Link]("#636363")), Icon = "code"}
),
ChangelogsTab = Window:Tab(
{Title = gradient("CHANGELOGS", [Link]("#ffffff"),
[Link]("#636363")), Icon = "info"}
),
SocialsTab = Window:Tab(
{Title = gradient("SOCIALS", [Link]("#ffffff"),
[Link]("#636363")), Icon = "star"}
),
b = Window:Divider(),
WindowTab = Window:Tab(
{
Title = gradient("CONFIGURATION", [Link]("#ffffff"),
[Link]("#636363")),
Icon = "settings",
Desc = "Manage window settings and file configurations."
}
),
CreateThemeTab = Window:Tab(
{
Title = gradient("THEMES", [Link]("#ffffff"),
[Link]("#636363")),
Icon = "palette",
Desc = "Design and apply custom themes."
}
)
}
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = [Link]
local CharacterSettings = {
WalkSpeed = {Value = 16, Default = 16, Locked = false},
JumpPower = {Value = 50, Default = 50, Locked = false}
}
local function updateCharacter()
local character = [Link]
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
if not [Link] then
[Link] = [Link]
end
if not [Link] then
[Link] = [Link]
end
end
end
[Link]:Section({Title = gradient("Walkspeed",
[Link]("#ff0000"), [Link]("#300000"))})
[Link]:Slider(
{Title = "Walkspeed", Value = {Min = 0, Max = 200, Default = 16}, Callback
= function(value)
[Link] = value
updateCharacter()
end}
)
[Link]:Button(
{Title = "Reset walkspeed", Callback = function()
[Link] =
[Link]
updateCharacter()
end}
)
[Link]:Toggle(
{Title = "Block walkspeed", Default = false, Callback = function(state)
[Link] = state
updateCharacter()
end}
)
[Link]:Section({Title = gradient("JumpPower",
[Link]("#001aff"), [Link]("#020524"))})
[Link]:Slider(
{Title = "Jumppower", Value = {Min = 0, Max = 200, Default = 50}, Callback
= function(value)
[Link] = value
updateCharacter()
end}
)
[Link]:Button(
{Title = "Reset jumppower", Callback = function()
[Link] =
[Link]
updateCharacter()
end}
)
[Link]:Toggle(
{Title = "Block jumppower", Default = false, Callback = function(state)
[Link] = state
updateCharacter()
end}
)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LP = [Link]
local ESPConfig = {HighlightMurderer = false, HighlightInnocent = false,
HighlightSheriff = false}
local Murder, Sheriff, Hero
local roles = {}
function CreateHighlight(player)
if ((player ~= LP) and [Link] and not
[Link]:FindFirstChild("Highlight")) then
local highlight = [Link]("Highlight")
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
return highlight
end
return [Link] and [Link]:FindFirstChild("Highlight")
end
function RemoveAllHighlights()
for _, player in pairs(Players:GetPlayers()) do
if ([Link] and [Link]:FindFirstChild("Highlight"))
then
[Link]:Destroy()
end
end
end
function UpdateHighlights()
for _, player in pairs(Players:GetPlayers()) do
if ((player ~= LP) and [Link]) then
local highlight = [Link]:FindFirstChild("Highlight")
if not ([Link] or [Link]
or [Link]) then
if highlight then
highlight:Destroy()
end
return
end
local shouldHighlight = false
local color = [Link](0, 1, 0)
if (([Link] == Murder) and IsAlive(player) and
[Link]) then
color = [Link](255, 0, 0)
shouldHighlight = true
elseif (([Link] == Sheriff) and IsAlive(player) and
[Link]) then
color = [Link](0, 0, 255)
shouldHighlight = true
elseif
([Link] and IsAlive(player) and
([Link] ~= Murder) and
([Link] ~= Sheriff) and
([Link] ~= Hero))
then
color = [Link](0, 255, 0)
shouldHighlight = true
elseif
(([Link] == Hero) and IsAlive(player) and not
IsAlive([Link][Sheriff]) and
[Link])
then
color = [Link](255, 250, 0)
shouldHighlight = true
end
if shouldHighlight then
highlight = CreateHighlight(player)
if highlight then
[Link] = color
[Link] = color
[Link] = true
end
elseif highlight then
[Link] = false
end
end
end
end
function IsAlive(player)
for name, data in pairs(roles) do
if ([Link] == name) then
return not [Link] and not [Link]
end
end
return false
end
local function UpdateRoles()
roles = ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
for name, data in pairs(roles) do
if ([Link] == "Murderer") then
Murder = name
elseif ([Link] == "Sheriff") then
Sheriff = name
elseif ([Link] == "Hero") then
Hero = name
end
end
end
[Link]:Section({Title = gradient("Special ESP", [Link]("#b914fa"),
[Link]("#7023c2"))})
[Link]:Toggle(
{
Title = gradient("Higlight Murder", [Link]("#e80909"),
[Link]("#630404")),
Default = false,
Callback = function(state)
[Link] = state
if not state then
UpdateHighlights()
end
end
}
)
[Link]:Toggle(
{
Title = gradient("Highlight Innocent", [Link]("#0ff707"),
[Link]("#1e690c")),
Default = false,
Callback = function(state)
[Link] = state
if not state then
UpdateHighlights()
end
end
}
)
[Link]:Toggle(
{
Title = gradient("Highlight Sheriff", [Link]("#001e80"),
[Link]("#16f2d9")),
Default = false,
Callback = function(state)
[Link] = state
if not state then
UpdateHighlights()
end
end
}
)
local gunDropESPEnabled = false
local gunDropHighlight = nil
local mapPaths = {
"ResearchFacility",
"Hospital3",
"MilBase",
"House2",
"Workplace",
"Mansion2",
"BioLab",
"Hotel",
"Factory",
"Bank2",
"PoliceStation"
}
local function createGunDropHighlight(gunDrop)
if (gunDropESPEnabled and gunDrop and not
gunDrop:FindFirstChild("GunDropHighlight")) then
local highlight = [Link]("Highlight")
[Link] = "GunDropHighlight"
[Link] = [Link](255, 215, 0)
[Link] = [Link](255, 165, 0)
[Link] = gunDrop
[Link] = gunDrop
end
end
local function updateGunDropESP()
for _, mapName in pairs(mapPaths) do
local map = workspace:FindFirstChild(mapName)
if map then
local gunDrop = map:FindFirstChild("GunDrop")
if (gunDrop and gunDrop:FindFirstChild("GunDropHighlight")) then
[Link]:Destroy()
end
end
end
if gunDropESPEnabled then
for _, mapName in pairs(mapPaths) do
local map = workspace:FindFirstChild(mapName)
if map then
local gunDrop = map:FindFirstChild("GunDrop")
if gunDrop then
createGunDropHighlight(gunDrop)
end
end
end
end
end
local function monitorGunDrops()
for _, mapName in pairs(mapPaths) do
local map = workspace:FindFirstChild(mapName)
if map then
[Link]:Connect(
function(child)
if ([Link] == "GunDrop") then
createGunDropHighlight(child)
end
end
)
end
end
end
monitorGunDrops()
[Link]:Toggle(
{
Title = gradient("GunDrop Highlight", [Link]("#ffff00"),
[Link]("#4f4f00")),
Default = false,
Callback = function(state)
gunDropESPEnabled = state
updateGunDropESP()
end
}
)
[Link]:Connect(
function(child)
if [Link](mapPaths, [Link]) then
[Link](2)
updateGunDropESP()
end
end
)
[Link]:Connect(
function()
UpdateRoles()
if ([Link] or [Link] or
[Link]) then
UpdateHighlights()
end
end
)
[Link]:Connect(
function(player)
if (player == LP) then
RemoveAllHighlights()
end
end
)
[Link]:Section({Title = gradient("Default TP",
[Link]("#00448c"), [Link]("#0affd6"))})
local teleportTarget = nil
local teleportDropdown = nil
local function updateTeleportPlayers()
local playersList = {"Select Player"}
for _, player in pairs(Players:GetPlayers()) do
if (player ~= LocalPlayer) then
[Link](playersList, [Link])
end
end
return playersList
end
local function initializeTeleportDropdown()
teleportDropdown =
[Link]:Dropdown(
{Title = "Players", Values = updateTeleportPlayers(), Value = "Select
Player", Callback = function(selected)
if (selected ~= "Select Player") then
teleportTarget = Players:FindFirstChild(selected)
else
teleportTarget = nil
end
end}
)
end
initializeTeleportDropdown()
[Link]:Connect(
function(player)
[Link](1)
if teleportDropdown then
teleportDropdown:Refresh(updateTeleportPlayers())
end
end
)
[Link]:Connect(
function(player)
if teleportDropdown then
teleportDropdown:Refresh(updateTeleportPlayers())
end
end
)
local function teleportToPlayer()
if (teleportTarget and [Link]) then
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
local localRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link]
WindUI:Notify(
{
Title = "Телепортация",
Content = "Успешно телепортирован к " ..
[Link],
Icon = "check-circle",
Duration = 3
}
)
end
else
WindUI:Notify(
{Title = "Ошибка", Content = "Цель не найдена или недоступна", Icon
= "x-circle", Duration = 3}
)
end
end
[Link]:Button({Title = "Teleport to player", Callback =
teleportToPlayer})
[Link]:Button(
{Title = "Update players list", Callback = function()
teleportDropdown:Refresh(updateTeleportPlayers())
end}
)
[Link]:Section({Title = gradient("Special TP",
[Link]("#b914fa"), [Link]("#7023c2"))})
local function teleportToLobby()
local lobby = workspace:FindFirstChild("Lobby")
if not lobby then
WindUI:Notify({Title = "Teleport", Content = "Lobby not found!", Icon =
"x-circle", Duration = 2})
return
end
local spawnPoint = lobby:FindFirstChild("SpawnPoint") or
lobby:FindFirstChildOfClass("SpawnLocation")
if not spawnPoint then
spawnPoint = lobby:FindFirstChildWhichIsA("BasePart") or lobby
end
if ([Link] and
[Link]:FindFirstChild("HumanoidRootPart")) then
[Link] =
[Link]([Link] + [Link](0, 3, 0))
WindUI:Notify({Title = "Teleport", Content = "Teleported to Lobby!",
Icon = "check-circle", Duration = 2})
end
end
[Link]:Button({Title = "Teleport to Lobby", Callback =
teleportToLobby})
[Link]:Button(
{
Title = "Teleport to Sheriff",
Callback = function()
UpdateRoles()
if Sheriff then
local sheriffPlayer = Players:FindFirstChild(Sheriff)
if (sheriffPlayer and [Link]) then
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
local localRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link]
WindUI:Notify(
{
Title = "Телепортация",
Content = "Успешно телепортирован к шерифу " ..
Sheriff,
Icon = "check-circle",
Duration = 3
}
)
end
else
WindUI:Notify(
{
Title = "Ошибка",
Content = "Шериф не найден или недоступен",
Icon = "x-circle",
Duration = 3
}
)
end
else
WindUI:Notify(
{
Title = "Ошибка",
Content = "Шериф не определен в текущем матче",
Icon = "x-circle",
Duration = 3
}
)
end
end
}
)
[Link]:Button(
{
Title = "Teleport to Murderer",
Callback = function()
UpdateRoles()
if Murder then
local murderPlayer = Players:FindFirstChild(Murder)
if (murderPlayer and [Link]) then
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
local localRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link]
WindUI:Notify(
{
Title = "Телепортация",
Content = "Успешно телепортирован к убийце " ..
Murder,
Icon = "check-circle",
Duration = 3
}
)
end
else
WindUI:Notify(
{
Title = "Ошибка",
Content = "Убийца не найден или недоступен",
Icon = "x-circle",
Duration = 3
}
)
end
else
WindUI:Notify(
{
Title = "Ошибка",
Content = "Убийца не определен в текущем матче",
Icon = "x-circle",
Duration = 3
}
)
end
end
}
)
[Link]:Connect(
function()
teleportDropdown:Refresh({updateTeleportPlayers()})
end
)
[Link]:Connect(
function()
teleportDropdown:Refresh({updateTeleportPlayers()})
end
)
local roles = {}
local Murder, Sheriff
local isCameraLocked = false
local isSpectating = false
local lockedRole = nil
local cameraConnection = nil
local originalCameraType = [Link]
local originalCameraSubject = nil
function IsAlive(player)
for name, data in pairs(roles) do
if ([Link] == name) then
return not [Link] and not [Link]
end
end
return false
end
local function UpdateRoles()
local success, result =
pcall(
function()
return ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
end
)
if success then
roles = result or {}
Murder, Sheriff = nil, nil
for name, data in pairs(roles) do
if ([Link] == "Murderer") then
Murder = name
elseif ([Link] == "Sheriff") then
Sheriff = name
end
end
end
end
[Link]:Section({Title = gradient("Default AimBot",
[Link]("#00448c"), [Link]("#0affd6"))})
RoleDropdown =
[Link]:Dropdown(
{Title = "Target Role", Values = {"None", "Sheriff", "Murderer"}, Value =
"None", Callback = function(selected)
lockedRole = ((selected ~= "None") and selected) or nil
end}
)
[Link]:Toggle(
{Title = "Spectate Mode", Default = false, Callback = function(state)
isSpectating = state
if state then
originalCameraType = [Link]
originalCameraSubject = [Link]
[Link] = [Link]
else
[Link] = originalCameraType
[Link] = originalCameraSubject
end
end}
)
[Link]:Toggle(
{Title = "Lock Camera", Default = false, Callback = function(state)
isCameraLocked = state
if (not state and not isSpectating) then
[Link] = originalCameraType
[Link] = originalCameraSubject
end
end}
)
local function GetTargetPosition()
if not lockedRole then
return nil
end
local targetName = ((lockedRole == "Sheriff") and Sheriff) or Murder
if not targetName then
return nil
end
local player = Players:FindFirstChild(targetName)
if (not player or not IsAlive(player)) then
return nil
end
local character = [Link]
if not character then
return nil
end
local head = character:FindFirstChild("Head")
return (head and [Link]) or nil
end
local function UpdateSpectate()
if (not isSpectating or not lockedRole) then
return
end
local targetPos = GetTargetPosition()
if not targetPos then
return
end
local offset = [Link](0, 2, 8)
local targetChar = Players:FindFirstChild(((lockedRole == "Sheriff") and
Sheriff) or Murder).Character
if targetChar then
local root = targetChar:FindFirstChild("HumanoidRootPart")
if root then
[Link] = [Link] * offset
end
end
end
local function UpdateLockCamera()
if (not isCameraLocked or not lockedRole) then
return
end
local targetPos = GetTargetPosition()
if not targetPos then
return
end
local currentPos = [Link]
[Link] = [Link](currentPos, targetPos)
end
local function Update()
if isSpectating then
UpdateSpectate()
elseif isCameraLocked then
UpdateLockCamera()
end
end
local function AutoUpdate()
while true do
UpdateRoles()
[Link](3)
end
end
[Link](AutoUpdate)()
cameraConnection = [Link]:Connect(Update)
[Link]:Connect(
function()
if (not [Link] and cameraConnection) then
cameraConnection:Disconnect()
[Link] = originalCameraType
[Link] = originalCameraSubject
end
end
)
UpdateRoles()
[Link]:Section(
{Title = gradient("Silent Aimbot (On rework)", [Link]("#00448c"),
[Link]("#0affd6"))}
)
local AutoFarm = {
Enabled = false,
Mode = "Teleport",
TeleportDelay = 0,
MoveSpeed = 50,
WalkSpeed = 32,
Connection = nil,
CoinCheckInterval = 0.5,
CoinContainers = {
"Factory",
"Hospital3",
"MilBase",
"House2",
"Workplace",
"Mansion2",
"BioLab",
"Hotel",
"Bank2",
"PoliceStation",
"ResearchFacility",
"Lobby"
}
}
local function findNearestCoin()
local closestCoin = nil
local shortestDistance = [Link]
local character = [Link]
local humanoidRootPart = character and
character:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then
return nil
end
for _, containerName in ipairs([Link]) do
local container = workspace:FindFirstChild(containerName)
if container then
local coinContainer =
((containerName == "Lobby") and container) or
container:FindFirstChild("CoinContainer")
if coinContainer then
for _, coin in ipairs(coinContainer:GetChildren()) do
if coin:IsA("BasePart") then
local distance = ([Link] -
[Link]).Magnitude
if (distance < shortestDistance) then
shortestDistance = distance
closestCoin = coin
end
end
end
end
end
end
return closestCoin
end
local function teleportToCoin(coin)
if (not coin or not [Link]) then
return
end
local humanoidRootPart =
[Link]:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then
return
end
[Link] = [Link]([Link] + [Link](0, 3, 0))
[Link]([Link])
end
local function smoothMoveToCoin(coin)
if (not coin or not [Link]) then
return
end
local humanoidRootPart =
[Link]:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then
return
end
local startTime = tick()
local startPos = [Link]
local endPos = [Link] + [Link](0, 3, 0)
local distance = (startPos - endPos).Magnitude
local duration = distance / [Link]
while ((tick() - startTime) < duration) and [Link] do
if (not coin or not [Link]) then
break
end
local progress = [Link]((tick() - startTime) / duration, 1)
[Link] = [Link](startPos:Lerp(endPos, progress))
[Link]()
end
end
local function walkToCoin(coin)
if (not coin or not [Link]) then
return
end
local humanoid = [Link]:FindFirstChildOfClass("Humanoid")
if not humanoid then
return
end
[Link] = [Link]
humanoid:MoveTo([Link] + [Link](0, 0, 3))
local startTime = tick()
while [Link] and ([Link] > 0) and
((tick() - startTime) < 10) do
[Link](0.5)
end
end
local function collectCoin(coin)
if (not coin or not [Link]) then
return
end
local humanoidRootPart =
[Link]:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then
return
end
firetouchinterest(humanoidRootPart, coin, 0)
firetouchinterest(humanoidRootPart, coin, 1)
end
local function farmLoop()
while [Link] do
local coin = findNearestCoin()
if coin then
if ([Link] == "Teleport") then
teleportToCoin(coin)
elseif ([Link] == "Smooth") then
smoothMoveToCoin(coin)
else
walkToCoin(coin)
end
collectCoin(coin)
else
WindUI:Notify(
{Title = "AutoFarm", Content = "No coins found nearby!", Icon =
"alert-circle", Duration = 2}
)
[Link](2)
end
[Link]([Link])
end
end
[Link]:Section({Title = gradient("Coin Farming",
[Link]("#FFD700"), [Link]("#FFA500"))})
[Link]:Dropdown(
{Title = "Movement Mode", Values = {"Teleport", "Smooth", "Walk"}, Value =
"Teleport", Callback = function(mode)
[Link] = mode
WindUI:Notify(
{Title = "AutoFarm", Content = "Mode set to: " .. mode, Icon =
"check-circle", Duration = 2}
)
end}
)
[Link]:Slider(
{Title = "Teleport Delay (sec)", Value = {Min = 0, Max = 1, Default = 0,
Step = 0.1}, Callback = function(value)
[Link] = value
end}
)
[Link]:Slider(
{Title = "Smooth Move Speed", Value = {Min = 20, Max = 200, Default = 50},
Callback = function(value)
[Link] = value
end}
)
[Link]:Slider(
{Title = "Walk Speed", Value = {Min = 16, Max = 100, Default = 32},
Callback = function(value)
[Link] = value
end}
)
[Link]:Slider(
{
Title = "Check Interval (sec)",
Step = 0.1,
Value = {Min = 0.1, Max = 2, Default = 0.5},
Callback = function(value)
[Link] = value
end
}
)
[Link]:Toggle(
{
Title = "Enable AutoFarm",
Default = false,
Callback = function(state)
[Link] = state
if state then
[Link] = [Link](farmLoop)
WindUI:Notify(
{
Title = "AutoFarm",
Content = "Started farming nearest coins!",
Icon = "check-circle",
Duration = 2
}
)
else
if [Link] then
[Link]([Link])
end
WindUI:Notify(
{Title = "AutoFarm", Content = "Stopped farming coins",
Icon = "x-circle", Duration = 2}
)
end
end
}
)
local GunSystem = {
AutoGrabEnabled = false,
NotifyGunDrop = true,
GunDropCheckInterval = 1,
ActiveGunDrops = {},
GunDropHighlights = {}
}
local mapPaths = {
"ResearchFacility",
"Hospital3",
"MilBase",
"House2",
"Workplace",
"Mansion2",
"BioLab",
"Hotel",
"Factory",
"Bank2",
"PoliceStation"
}
local function TeleportToMurderer(murderer)
local targetRoot = [Link]:FindFirstChild("HumanoidRootPart")
local localRoot = [Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link] * [Link](0, 0, -5)
[Link](0.3)
return true
end
return false
end
local function ScanForGunDrops()
[Link] = {}
for _, mapName in ipairs(mapPaths) do
local map = workspace:FindFirstChild(mapName)
if map then
local gunDrop = map:FindFirstChild("GunDrop")
if gunDrop then
[Link]([Link], gunDrop)
end
end
end
local rootGunDrop = workspace:FindFirstChild("GunDrop")
if rootGunDrop then
[Link]([Link], rootGunDrop)
end
end
local function EquipGun()
if ([Link] and [Link]:FindFirstChild("Gun"))
then
return true
end
local gun = [Link]:FindFirstChild("Gun")
if gun then
[Link] = [Link]
[Link](0.1)
return [Link]:FindFirstChild("Gun") ~= nil
end
return false
end
local function GrabGun(gunDrop)
if not gunDrop then
ScanForGunDrops()
if (#[Link] == 0) then
WindUI:Notify(
{Title = "Gun System", Content = "No guns available on the
map", Icon = "x-circle", Duration = 3}
)
return false
end
local nearestGun = nil
local minDistance = [Link]
local character = [Link]
local humanoidRootPart = character and
character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
for _, drop in ipairs([Link]) do
local distance = ([Link] -
[Link]).Magnitude
if (distance < minDistance) then
nearestGun = drop
minDistance = distance
end
end
end
gunDrop = nearestGun
end
if (gunDrop and [Link]) then
local humanoidRootPart =
[Link]:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
[Link] = [Link]
[Link](0.3)
local prompt = gunDrop:FindFirstChildOfClass("ProximityPrompt")
if prompt then
fireproximityprompt(prompt)
WindUI:Notify(
{
Title = "Gun System",
Content = "Successfully grabbed the gun!",
Icon = "check-circle",
Duration = 3
}
)
return true
end
end
end
return false
end
local function AutoGrabGun()
while [Link] do
ScanForGunDrops()
if ((#[Link] > 0) and [Link]) then
local humanoidRootPart =
[Link]:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local nearestGun = nil
local minDistance = [Link]
for _, gunDrop in ipairs([Link]) do
local distance = ([Link] -
[Link]).Magnitude
if (distance < minDistance) then
nearestGun = gunDrop
minDistance = distance
end
end
if nearestGun then
[Link] = [Link]
[Link](0.3)
local prompt =
nearestGun:FindFirstChildOfClass("ProximityPrompt")
if prompt then
fireproximityprompt(prompt)
[Link](1)
end
end
end
end
[Link]([Link])
end
end
local function GetMurderer()
local roles =
ReplicatedStorage:FindFirstChild("GetPlayerData"):InvokeServer()
for playerName, data in pairs(roles) do
if ([Link] == "Murderer") then
return Players:FindFirstChild(playerName)
end
end
end
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local function GrabAndShootMurderer()
if not ([Link] and
[Link]:FindFirstChild("Gun")) then
if not GrabGun() then
WindUI:Notify({Title = "Gun System", Content = "Failed to get
gun!", Icon = "x-circle", Duration = 3})
return
end
[Link](0.1)
end
if not EquipGun() then
WindUI:Notify({Title = "Gun System", Content = "Failed to equip gun!",
Icon = "x-circle", Duration = 3})
return
end
local roles = ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
local murderer = nil
for name, data in pairs(roles) do
if ([Link] == "Murderer") then
murderer = Players:FindFirstChild(name)
break
end
end
if (not murderer or not [Link]) then
WindUI:Notify({Title = "Gun System", Content = "Murderer not found!",
Icon = "x-circle", Duration = 3})
return
end
local targetRoot = [Link]:FindFirstChild("HumanoidRootPart")
local localRoot = [Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link] * [Link](0, 0, -4)
[Link](0.1)
end
local gun = [Link]:FindFirstChild("Gun")
if not gun then
WindUI:Notify({Title = "Gun System", Content = "Gun not equipped!",
Icon = "x-circle", Duration = 3})
return
end
local targetPart = [Link]:FindFirstChild("HumanoidRootPart")
if not targetPart then
return
end
local args = {[1] = 1, [2] = [Link], [3] = "AH2"}
if (gun:FindFirstChild("KnifeLocal") and
[Link]:FindFirstChild("CreateBeam")) then
[Link]:InvokeServer(unpack(args))
WindUI:Notify(
{Title = "Gun System", Content = "Successfully shot the murderer!",
Icon = "check-circle", Duration = 3}
)
end
end
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local gunDropESPEnabled = true
local notifiedGunDrops = {}
local mapGunDrops = {
"ResearchFacility",
"Hospital3",
"MilBase",
"House2",
"Workplace",
"Mansion2",
"BioLab",
"Hotel",
"Factory",
"Bank2",
"PoliceStation"
}
local function checkForGunDrops()
for _, mapName in ipairs(mapGunDrops) do
local map = workspace:FindFirstChild(mapName)
if map then
local gunDrop = map:FindFirstChild("GunDrop")
if (gunDrop and not notifiedGunDrops[gunDrop]) then
if gunDropESPEnabled then
WindUI:Notify(
{
Title = "Gun Drop Spawned",
Content = "A gun has appeared on the map: " ..
mapName,
Icon = "alert-circle",
Duration = 5
}
)
end
notifiedGunDrops[gunDrop] = true
end
end
end
end
local function setupGunDropMonitoring()
for _, mapName in ipairs(mapGunDrops) do
local map = workspace:FindFirstChild(mapName)
if map then
if map:FindFirstChild("GunDrop") then
checkForGunDrops()
end
[Link]:Connect(
function(child)
if ([Link] == "GunDrop") then
[Link](0.5)
checkForGunDrops()
end
end
)
end
end
end
local function setupGunDropRemovalTracking()
for _, mapName in ipairs(mapGunDrops) do
local map = workspace:FindFirstChild(mapName)
if map then
[Link]:Connect(
function(child)
if (([Link] == "GunDrop") and notifiedGunDrops[child])
then
notifiedGunDrops[child] = nil
end
end
)
end
end
end
setupGunDropMonitoring()
setupGunDropRemovalTracking()
[Link]:Connect(
function(child)
if [Link](mapGunDrops, [Link]) then
[Link](2)
checkForGunDrops()
end
end
)
[Link]:Toggle(
{
Title = "Notify GunDrop",
Default = true,
Callback = function(state)
gunDropESPEnabled = state
if state then
[Link](
function()
[Link](1)
checkForGunDrops()
end
)
end
end
}
)
[Link]:Button(
{Title = "Grab Gun", Callback = function()
GrabGun()
end}
)
[Link]:Toggle(
{Title = "Auto Grab Gun", Default = false, Callback = function(state)
[Link] = state
if state then
[Link](AutoGrabGun)()
WindUI:Notify(
{Title = "Gun System", Content = "Auto Grab Gun enabled!",
Icon = "check-circle", Duration = 3}
)
else
WindUI:Notify(
{Title = "Gun System", Content = "Auto Grab Gun disabled",
Icon = "check-circle", Duration = 3}
)
end
end}
)
[Link]:Button(
{Title = "Grab Gun & Shoot Murderer", Callback = function()
GrabAndShootMurderer()
end}
)
[Link](
function()
if not [Link] then
[Link]:Wait()
end
ScanForGunDrops()
if [Link] then
[Link](AutoGrabGun)()
end
end
)
local killActive = false
local attackDelay = 0.5
local targetRoles = {"Sheriff", "Hero", "Innocent"}
local function getPlayerRole(player)
local roles = ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
if (roles and roles[[Link]]) then
return roles[[Link]].Role
end
return nil
end
local function equipKnife()
local character = [Link]
if not character then
return false
end
if character:FindFirstChild("Knife") then
return true
end
local knife = [Link]:FindFirstChild("Knife")
if knife then
[Link] = character
return true
end
return false
end
local function getNearestTarget()
local targets = {}
local roles = ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
local localRoot = [Link] and
[Link]:FindFirstChild("HumanoidRootPart")
if not localRoot then
return nil
end
for _, player in ipairs(Players:GetPlayers()) do
if ((player ~= LocalPlayer) and [Link]) then
local role = getPlayerRole(player)
local humanoid = [Link]:FindFirstChild("Humanoid")
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (role and humanoid and ([Link] > 0) and targetRoot and
[Link](targetRoles, role)) then
[Link](
targets,
{Player = player, Distance = ([Link] -
[Link]).Magnitude}
)
end
end
end
[Link](
targets,
function(a, b)
return [Link] < [Link]
end
)
return (targets[1] and targets[1].Player) or nil
end
local function attackTarget(target)
if (not target or not [Link]) then
return false
end
local humanoid = [Link]:FindFirstChild("Humanoid")
if (not humanoid or ([Link] <= 0)) then
return false
end
if not equipKnife() then
WindUI:Notify({Title = "Kill Targets", Content = "No knife found!",
Icon = "x-circle", Duration = 2})
return false
end
local targetRoot = [Link]:FindFirstChild("HumanoidRootPart")
local localRoot = [Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] =
[Link](
[Link] + (([Link] -
[Link]).Unit * 2),
[Link]
)
end
local knife = [Link]:FindFirstChild("Knife")
if (knife and knife:FindFirstChild("Stab")) then
for i = 1, 3 do
[Link]:FireServer("Down")
end
return true
end
return false
end
local function killTargets()
if killActive then
return
end
killActive = true
WindUI:Notify(
{
Title = "Kill Targets",
Content = "Starting attack on nearest targets...",
Icon = "alert-circle",
Duration = 2
}
)
local function attackSequence()
while killActive do
local target = getNearestTarget()
if not target then
WindUI:Notify(
{
Title = "Kill Targets",
Content = "No valid targets found!",
Icon = "check-circle",
Duration = 3
}
)
killActive = false
break
end
if attackTarget(target) then
WindUI:Notify(
{
Title = "Kill Targets",
Content = "Attacked " .. [Link],
Icon = "check-circle",
Duration = 1
}
)
end
[Link](attackDelay)
end
end
[Link](attackSequence)
end
local function stopKilling()
killActive = false
WindUI:Notify({Title = "Kill Targets", Content = "Attack sequence stopped",
Icon = "x-circle", Duration = 2})
end
[Link]:Section({Title = gradient("Kill Functions",
[Link]("#e80909"), [Link]("#630404"))})
[Link]:Toggle(
{Title = "Kill All", Default = false, Callback = function(state)
if state then
killTargets()
else
stopKilling()
end
end}
)
[Link]:Slider(
{
Title = "Attack Delay",
Step = 0.1,
Value = {Min = 0.1, Max = 2, Default = 0.5},
Callback = function(value)
attackDelay = value
WindUI:Notify(
{
Title = "Kill Targets",
Content = "Delay set to " .. value .. "s",
Icon = "check-circle",
Duration = 2
}
)
end
}
)
[Link]:Button(
{Title = "Equip Knife", Callback = function()
if equipKnife() then
WindUI:Notify({Title = "Knife", Content = "Knife equipped!",
Icon = "check-circle", Duration = 2})
else
WindUI:Notify({Title = "Knife", Content = "No knife found!",
Icon = "x-circle", Duration = 2})
end
end}
)
local shotButton = nil
local shotButtonFrame = nil
local shotButtonActive = false
local shotType = "Default"
local buttonSize = 50
local isDragging = false
local function CreateShotButton()
if shotButton then
return
end
local screenGui =
game:GetService("CoreGui"):FindFirstChild("WindUI_SheriffGui") or
[Link]("ScreenGui")
[Link] = "WindUI_SheriffGui"
[Link] = game:GetService("CoreGui")
[Link] = false
[Link] = 999
[Link] = true
shotButtonFrame = [Link]("Frame")
[Link] = "ShotButtonFrame"
[Link] = [Link](0, buttonSize, 0, buttonSize)
[Link] = [Link](1, -buttonSize - 20, 0.5, -
buttonSize / 2)
[Link] = [Link](1, 0.5)
[Link] = 1
[Link] = 100
shotButton = [Link]("TextButton")
[Link] = "SheriffShotButton"
[Link] = [Link](1, 0, 1, 0)
shotButton.BackgroundColor3 = [Link](120, 120, 120)
[Link] = 0.5
shotButton.TextColor3 = [Link](255, 255, 255)
[Link] = "SHOT"
[Link] = 14
[Link] = [Link]
[Link] = 0
[Link] = 101
[Link] = false
[Link] = true
local stroke = [Link]("UIStroke")
[Link] = [Link](0, 40, 150)
[Link] = 2
[Link] = [Link]
[Link] = 0.3
[Link] = shotButton
local corner = [Link]("UICorner")
[Link] = [Link](0.3, 0)
[Link] = shotButton
local shadow = [Link]("ImageLabel")
[Link] = "Shadow"
[Link] = [Link](1, 10, 1, 10)
[Link] = [Link](0.5, 0, 0.5, 0)
[Link] = [Link](0.5, 0.5)
[Link] = 1
[Link] = "rbxassetid://1316045217"
shadow.ImageColor3 = [Link](0, 0, 0)
[Link] = 0.85
[Link] = [Link]
[Link] = [Link](10, 10, 118, 118)
[Link] = 100
[Link] = shotButton
local function animatePress()
local tweenService = game:GetService("TweenService")
local pressDown =
tweenService:Create(
shotButton,
[Link](0.1, [Link],
[Link]),
{
Size = [Link](0.9, 0, 0.9, 0),
BackgroundColor3 = [Link](70, 70, 70),
TextColor3 = [Link](200, 200, 255)
}
)
local pressUp =
tweenService:Create(
shotButton,
[Link](0.2, [Link],
[Link]),
{
Size = [Link](1, 0, 1, 0),
BackgroundColor3 = [Link](100, 100, 100),
TextColor3 = [Link](255, 255, 255)
}
)
pressDown:Play()
[Link]:Wait()
pressUp:Play()
end
shotButton.MouseButton1Click:Connect(
function()
animatePress()
if
(not [Link] or not
[Link]:FindFirstChild("Humanoid") or
([Link] <= 0))
then
return
end
local success, roles =
pcall(
function()
return ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
end
)
if (not success or not roles) then
return
end
local murderer = nil
for name, data in pairs(roles) do
if ([Link] == "Murderer") then
murderer = Players:FindFirstChild(name)
break
end
end
if
(not murderer or not [Link] or not
[Link]:FindFirstChild("Humanoid") or
([Link] <= 0))
then
return
end
local gun = [Link]:FindFirstChild("Gun") or
[Link]:FindFirstChild("Gun")
if ((shotType == "Default") and not gun) then
return
end
if (gun and not [Link]:FindFirstChild("Gun")) then
[Link] = [Link]
end
if (shotType == "Teleport") then
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
local localRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link] * [Link](0, 0, -4)
end
end
if (gun and not [Link]:FindFirstChild("Gun")) then
[Link] = [Link]
end
gun = [Link]:FindFirstChild("Gun")
if (gun and gun:FindFirstChild("KnifeLocal")) then
local targetPart =
[Link]:FindFirstChild("HumanoidRootPart")
if targetPart then
local args = {[1] = 10, [2] = [Link], [3] =
"AH2"}

[Link]:InvokeServer(unpack(args))
end
end
end
)
local dragInput
local dragStart
local startPos
local function updateInput(input)
local delta = [Link] - dragStart
local newPos =
[Link]([Link], [Link] + delta.X,
[Link], [Link] + delta.Y)
local guiSize = game:GetService("CoreGui").AbsoluteSize
newPos =
[Link](
[Link]([Link], 0, 1),
[Link]([Link], 0, guiSize.X - buttonSize),
[Link]([Link], 0, 1),
[Link]([Link], 0, guiSize.Y - buttonSize)
)
[Link] = newPos
end
[Link]:Connect(
function(input)
if ([Link] == [Link].MouseButton1) then
isDragging = true
dragStart = [Link]
startPos = [Link]
animatePress()
[Link]:Connect(
function()
if ([Link] == [Link])
then
isDragging = false
end
end
)
end
end
)
[Link]:Connect(
function(input)
if (([Link] == [Link]) and
isDragging) then
updateInput(input)
end
end
)
[Link] = shotButtonFrame
[Link] = screenGui
shotButtonActive = true
WindUI:Notify(
{Title = "Sheriff System", Content = "Shot button activated", Icon =
"check-circle", Duration = 3}
)
end
local function RemoveShotButton()
if not shotButton then
return
end
if shotButton then
shotButton:Destroy()
shotButton = nil
end
if shotButtonFrame then
shotButtonFrame:Destroy()
shotButtonFrame = nil
end
local screenGui =
game:GetService("CoreGui"):FindFirstChild("WindUI_SheriffGui")
if screenGui then
screenGui:Destroy()
end
shotButtonActive = false
WindUI:Notify({Title = "Shot Button", Content = "Deactivated", Icon =
"check-circle", Duration = 3})
end
[Link]:Section({Title = gradient("Shot functions",
[Link]("#001e80"), [Link]("#16f2d9"))})
[Link]:Dropdown(
{
Title = "Shot Type",
Values = {"Default", "Teleport"},
Value = "Default",
Callback = function(selectedType)
shotType = selectedType
WindUI:Notify(
{
Title = "Sheriff System",
Content = "Shot Type: " .. selectedType,
Icon = "check-circle",
Duration = 3
}
)
end
}
)
[Link]:Button(
{Title = "Shoot murderer", Callback = function()
ShootMurderer()
end}
)
[Link]:Section({Title = gradient("Shot Button",
[Link]("#001e80"), [Link]("#16f2d9"))})
[Link]:Button(
{Title = "Toggle Shot Button", Callback = function()
if shotButtonActive then
RemoveShotButton()
else
CreateShotButton()
end
end}
)
[Link]:Slider(
{
Title = "Button Size",
Step = 1,
Value = {Min = 10, Max = 100, Default = 50},
Callback = function(size)
buttonSize = size
if shotButtonActive then
local currentPos =
(shotButtonFrame and [Link]) or
[Link](1, -buttonSize - 20, 0.5, -buttonSize / 2)
RemoveShotButton()
CreateShotButton()
if shotButtonFrame then
[Link] = currentPos
end
end
WindUI:Notify(
{Title = "Sheriff System", Content = "Size: " .. size, Icon =
"check-circle", Duration = 3}
)
end
}
)
local function ShootMurderer()
if
(not [Link] or not
[Link]:FindFirstChild("Humanoid") or
([Link] <= 0))
then
return
end
local success, roles =
pcall(
function()
return ReplicatedStorage:FindFirstChild("GetPlayerData",
true):InvokeServer()
end
)
if (not success or not roles) then
return
end
local murderer = nil
for name, data in pairs(roles) do
if ([Link] == "Murderer") then
murderer = Players:FindFirstChild(name)
break
end
end
if
(not murderer or not [Link] or not
[Link]:FindFirstChild("Humanoid") or
([Link] <= 0))
then
return
end
local gun = [Link]:FindFirstChild("Gun") or
[Link]:FindFirstChild("Gun")
if ((shotType == "Default") and not gun) then
return
end
if (gun and not [Link]:FindFirstChild("Gun")) then
[Link] = [Link]
end
if (shotType == "Teleport") then
local targetRoot =
[Link]:FindFirstChild("HumanoidRootPart")
local localRoot =
[Link]:FindFirstChild("HumanoidRootPart")
if (targetRoot and localRoot) then
[Link] = [Link] * [Link](0, 0, -4)
end
end
if (gun and not [Link]:FindFirstChild("Gun")) then
[Link] = [Link]
end
gun = [Link]:FindFirstChild("Gun")
if (gun and gun:FindFirstChild("KnifeLocal")) then
local targetPart =
[Link]:FindFirstChild("HumanoidRootPart")
if targetPart then
local args = {[1] = 1, [2] = [Link], [3] = "AH2"}
[Link]:InvokeServer(unpack(args))
end
end
end
local Settings = {
Hitbox = {Enabled = false, Size = 5, Color = [Link](1, 0, 0),
Adornments = {}, Connections = {}},
Noclip = {Enabled = false, Connection = nil},
AntiAFK = {Enabled = false, Connection = nil}
}
local function ToggleNoclip(state)
if state then
[Link] =
[Link]:Connect(
function()
local chr = [Link]
if chr then
for _, part in pairs(chr:GetDescendants()) do
if part:IsA("BasePart") then
[Link] = false
end
end
end
end
)
elseif [Link] then
[Link]:Disconnect()
end
end
local function UpdateHitboxes()
for _, plr in pairs(Players:GetPlayers()) do
if (plr ~= LocalPlayer) then
local chr = [Link]
local box = [Link][plr]
if (chr and [Link]) then
local root = chr:FindFirstChild("HumanoidRootPart")
if root then
if not box then
box = [Link]("BoxHandleAdornment")
[Link] = root
[Link] = [Link]([Link],
[Link], [Link])
box.Color3 = [Link]
[Link] = 0.4
[Link] = 10
[Link] = root
[Link][plr] = box
else
[Link] = [Link]([Link],
[Link], [Link])
box.Color3 = [Link]
end
end
elseif box then
box:Destroy()
[Link][plr] = nil
end
end
end
end
local function ToggleAntiAFK(state)
if state then
[Link] =
[Link]:Connect(
function()
pcall(
function()
local vu = game:GetService("VirtualUser")
vu:CaptureController()
vu:ClickButton2([Link]())
end
)
end
)
elseif [Link] then
[Link]:Disconnect()
end
end
[Link]:Section({Title = gradient("Hitboxes",
[Link]("#ff0000"), [Link]("#ff8800"))})
[Link]:Toggle(
{Title = "Hitboxes", Callback = function(state)
[Link] = state
if state then
[Link]:Connect(UpdateHitboxes)
else
for _, box in pairs([Link]) do
if box then
box:Destroy()
end
end
[Link] = {}
end
end}
)
[Link]:Slider(
{Title = "Hitbox size", Value = {Min = 1, Max = 10, Default = 5}, Callback
= function(val)
[Link] = val
UpdateHitboxes()
end}
)
[Link]:Colorpicker(
{Title = "Hitbox color", Default = [Link](1, 0, 0), Callback =
function(col)
[Link] = col
UpdateHitboxes()
end}
)
[Link]:Section(
{Title = gradient("Character Functions", [Link]("#00eaff"),
[Link]("#002a2e"))}
)
[Link]:Toggle(
{Title = "Anti-AFK", Callback = function(state)
[Link] = state
ToggleAntiAFK(state)
end}
)
[Link]:Toggle(
{Title = "NoClip", Callback = function(state)
[Link] = state
ToggleNoclip(state)
end}
)
[Link]:Section({Title = gradient("Auto Execute",
[Link]("#00ff40"), [Link]("#88f2a2"))})
local AutoInject = {
Enabled = false,
ScriptURL =
"[Link]
}
[Link]:Toggle(
{
Title = "Auto Inject on Rejoin/Hop",
Default = false,
Callback = function(state)
[Link] = state
if state then
SetupAutoInject()
WindUI:Notify(
{
Title = "Auto Inject",
Content = "Автоинжект включен! Скрипт перезапустится
автоматически.",
Duration = 3
}
)
else
WindUI:Notify({Title = "Auto Inject", Content = "Автоинжект
отключен", Duration = 3})
end
end
}
)
local function SetupAutoInject()
if not [Link] then
return
end
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local LocalPlayer = [Link]
spawn(
function()
wait(2)
if [Link] then
pcall(
function()
loadstring(game:HttpGet([Link]))()
end
)
end
end
)
[Link]:Connect(
function(state)
if ((state == [Link]) and [Link])
then
queue_on_teleport(
[[

wait(2)

loadstring(game:HttpGet("]] ..
[Link] .. [["))()

]]
)
end
end
)
game:GetService("Players").PlayerRemoving:Connect(
function(player)
if ((player == LocalPlayer) and [Link]) then
queue_on_teleport(
[[

wait(2)

loadstring(game:HttpGet("]] ..
[Link] .. [["))()

]]
)
end
end
)
end
[Link]:Button(
{
Title = "Manual Re-Inject",
Callback = function()
pcall(
function()
loadstring(game:HttpGet([Link]))()
WindUI:Notify({Title = "Manual Inject", Content = "Скрипт
успешно перезагружен!", Duration = 3})
end
)
end
}
)
[Link]:Paragraph(
{
Title = gradient("SnowT", [Link]("#001e80"),
[Link]("#16f2d9")),
Desc = "My socials",
Image = "bird",
Color = "Green",
Buttons = {
{
Icon = "circle",
Title = "KRT Hub TG",
Callback = function()
if pcall(setclipboard, "[Link] then
WindUI:Notify(
{
Title = "Скопировано!",
Content = "Ссылка скопирована в буфер обмена.",
Duration = 3,
Icon = "check-fill"
}
)
else
WindUI:Notify(
{
Title = "Ошибка копирования",
Content = "Не удалось скопировать ссылку.
Возможно, функция setclipboard не доступна.",
Duration = 5,
Icon = "x-fill"
}
)
end
end
}
}
}
)
[Link]:Paragraph(
{
Title = gradient("Kawasaki", [Link]("#ffffff"),
[Link]("#363636")),
Desc = "Socials My Friend",
Image = "bird",
Color = "Green",
Buttons = {
{
Title = "TG Channel",
Icon = "circle",
Callback = function()
if pcall(setclipboard, "[Link]
then
WindUI:Notify(
{
Title = "Скопировано!",
Content = "Ссылка скопирована в буфер обмена.",
Duration = 3,
Icon = "check-fill"
}
)
else
WindUI:Notify(
{
Title = "Ошибка копирования",
Content = "Не удалось скопировать ссылку.
Возможно, функция setclipboard не доступна.",
Duration = 5,
Icon = "x-fill"
}
)
end
end
}
}
}
)
[Link]:Code(
{
Title = "Changelogs:",
Code = [[

⚫KRT Hub MM2 commands:

|• Silent Aimbot

|• All Sheriff Functions

|• Better shot

|• Fixed errors

|• Shot variants [default; teleport]

|• Faster shots

|• New shot button

|• Shot button settings

|•All Murder Functions

|• Fixed kill player

|• Kill all function

|• All Innocent Functions

|• Grab GunDrop

|• Auto Grab Gun Drop

|• Grab gun and shoot murder function

|• Fixed Notifications

|• Fixed Check GunDrop Function

|• Autofarm Money

|• Autofarm variables [Tp; smooth; walk]

|• Coin checker function

|• Autofarm settings
|• Tp to lobby function

]]
}
)
[Link]:Code(
{
Title = "Next:",
Code = [[ The next update is [v1.1]

In future we will be add:

• Autofarm rare eggs

• Fix bugs

• New esp functions [tracers; names; highlights and more!]

• Grab Gun Variables [Tp to gun; Gun tp to you]

]]
}
)
local TeleportService = game:GetService("TeleportService")
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
[Link]:Button(
{
Title = "Rejoin",
Callback = function()
local success, error =
pcall(
function()
TeleportService:TeleportToPlaceInstance([Link],
[Link], [Link])
end
)
if not success then
warn("Rejoin error:", error)
end
end
}
)
[Link]:Section({Title = ""})
[Link]:Button(
{
Title = "Server Hop",
Callback = function()
local placeId = [Link]
local currentJobId = [Link]
local function serverHop()
local servers = {}
local success, result =
pcall(
function()
return HttpService:JSONDecode(
HttpService:GetAsync(
"[Link] ..
placeId .. "/servers/Public?
sortOrder=Asc&limit=100"
)
)
end
)
if (success and result and [Link]) then
for _, server in ipairs([Link]) do
if ([Link] ~= currentJobId) then
[Link](servers, server)
end
end
if (#servers > 0) then
TeleportService:TeleportToPlaceInstance(placeId,
servers[[Link](#servers)].id)
else
TeleportService:Teleport(placeId)
end
else
TeleportService:Teleport(placeId)
end
end
pcall(serverHop)
end
}
)
[Link]:Button(
{
Title = "Join to Lower Server",
Callback = function()
local placeId = [Link]
local currentJobId = [Link]
local function joinLowerServer()
local servers = {}
local success, result =
pcall(
function()
return HttpService:JSONDecode(
HttpService:GetAsync(
"[Link] ..
placeId .. "/servers/Public?
sortOrder=Asc&limit=100"
)
)
end
)
if (success and result and [Link]) then
for _, server in ipairs([Link]) do
if (([Link] ~= currentJobId) and ([Link] <
([Link] or 30))) then
[Link](servers, server)
end
end
[Link](
servers,
function(a, b)
return [Link] < [Link]
end
)
if (#servers > 0) then
TeleportService:TeleportToPlaceInstance(placeId,
servers[1].id)
else
TeleportService:Teleport(placeId)
end
else
TeleportService:Teleport(placeId)
end
end
pcall(joinLowerServer)
end
}
)
local HttpService = game:GetService("HttpService")
local folderPath = "WindUI"
makefolder(folderPath)
local function SaveFile(fileName, data)
local filePath = folderPath .. "/" .. fileName .. ".json"
local jsonData = HttpService:JSONEncode(data)
writefile(filePath, jsonData)
end
local function LoadFile(fileName)
local filePath = folderPath .. "/" .. fileName .. ".json"
if isfile(filePath) then
local jsonData = readfile(filePath)
return HttpService:JSONDecode(jsonData)
end
end
local function ListFiles()
local files = {}
for _, file in ipairs(listfiles(folderPath)) do
local fileName = file:match("([^/]+)%.json$")
if fileName then
[Link](files, fileName)
end
end
return files
end
[Link]:Section({Title = "Window"})
local themeValues = {}
for name, _ in pairs(WindUI:GetThemes()) do
[Link](themeValues, name)
end
local themeDropdown =
[Link]:Dropdown(
{
Title = "Select Theme",
Multi = false,
AllowNone = false,
Value = nil,
Values = themeValues,
Callback = function(theme)
WindUI:SetTheme(theme)
end
}
)
themeDropdown:Select(WindUI:GetCurrentTheme())
local ToggleTransparency =
[Link]:Toggle(
{Title = "Toggle Window Transparency", Callback = function(e)
Window:ToggleTransparency(e)
end, Value = WindUI:GetTransparency()}
)
[Link]:Section({Title = "Save"})
local fileNameInput = ""
[Link]:Input(
{Title = "Write File Name", PlaceholderText = "Enter file name", Callback =
function(text)
fileNameInput = text
end}
)
[Link]:Button(
{Title = "Save File", Callback = function()
if (fileNameInput ~= "") then
SaveFile(fileNameInput, {Transparent =
WindUI:GetTransparency(), Theme = WindUI:GetCurrentTheme()})
end
end}
)
[Link]:Section({Title = "Load"})
local filesDropdown
local files = ListFiles()
filesDropdown =
[Link]:Dropdown(
{Title = "Select File", Multi = false, AllowNone = true, Values = files,
Callback = function(selectedFile)
fileNameInput = selectedFile
end}
)
[Link]:Button(
{Title = "Load File", Callback = function()
if (fileNameInput ~= "") then
local data = LoadFile(fileNameInput)
if data then
WindUI:Notify(
{
Title = "File Loaded",
Content = "Loaded data: " ..
HttpService:JSONEncode(data),
Duration = 5
}
)
if [Link] then
Window:ToggleTransparency([Link])
ToggleTransparency:SetValue([Link])
end
if [Link] then
WindUI:SetTheme([Link])
end
end
end
end}
)
[Link]:Button(
{Title = "Overwrite File", Callback = function()
if (fileNameInput ~= "") then
SaveFile(fileNameInput, {Transparent =
WindUI:GetTransparency(), Theme = WindUI:GetCurrentTheme()})
end
end}
)
[Link]:Button(
{Title = "Refresh List", Callback = function()
filesDropdown:Refresh(ListFiles())
end}
)
local currentThemeName = WindUI:GetCurrentTheme()
local themes = WindUI:GetThemes()
local ThemeAccent = themes[currentThemeName].Accent
local ThemeOutline = themes[currentThemeName].Outline
local ThemeText = themes[currentThemeName].Text
local ThemePlaceholderText = themes[currentThemeName].PlaceholderText
function updateTheme()
WindUI:AddTheme(
{
Name = currentThemeName,
Accent = ThemeAccent,
Outline = ThemeOutline,
Text = ThemeText,
PlaceholderText = ThemePlaceholderText
}
)
WindUI:SetTheme(currentThemeName)
end
[Link]:Colorpicker(
{Title = "Background Color", Default = [Link](ThemeAccent),
Callback = function(color)
ThemeAccent = color
end}
)
[Link]:Colorpicker(
{Title = "Outline Color", Default = [Link](ThemeOutline), Callback
= function(color)
ThemeOutline = color
end}
)
[Link]:Colorpicker(
{Title = "Text Color", Default = [Link](ThemeText), Callback =
function(color)
ThemeText = color
end}
)
[Link]:Button(
{
Title = "Update Theme",
Callback = function()
WindUI:AddTheme(
{
Name = currentThemeName,
Accent = ThemeAccent,
Outline = ThemeOutline,
Text = ThemeText,
PlaceholderText = ThemePlaceholderText
}
)
WindUI:SetTheme(currentThemeName)
WindUI:Notify(
{
Title = "Тема обновлена",
Content = "Новая тема '" .. currentThemeName .. "'
применена!",
Duration = 3,
Icon = "check-circle"
}
)
end
}
)
end

You might also like