local Players = game:GetService("Players")
local LocalPlayer = [Link]
local StarterGui = game:GetService("StarterGui")
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
-- Create GUI
local screenGui = [Link]("ScreenGui")
[Link] = "DarkKing"
[Link] = false
local frame = [Link]("Frame")
[Link] = "MainFrame"
[Link] = [Link](0, 300, 0, 350)
[Link] = [Link](0.5, -150, 0.5, -175)
frame.BackgroundColor3 = [Link](30, 30, 30)
[Link] = 0
[Link] = true
[Link] = true
[Link] = screenGui
local stroke = [Link]("UIStroke")
[Link] = [Link](0, 100, 255)
[Link] = 4
[Link] = frame
local title = [Link]("TextLabel")
[Link] = "Dark King"
[Link] = [Link](1, 0, 0, 40)
[Link] = 1
title.TextColor3 = [Link](0, 100, 255)
[Link] = [Link]
[Link] = 28
[Link] = frame
local buttonNames = {
"Fly",
"Infinite Jump",
"Kill",
"TP Forwards",
"TP Random",
"TP to Random Player",
"Give Me Sword"
}
local buttons = {}
for i = 1, #buttonNames do
local btn = [Link]("TextButton")
[Link] = buttonNames[i]:gsub(" ", "")
[Link] = buttonNames[i]
[Link] = [Link](1, -20, 0, 35)
[Link] = [Link](0, 10, 0, 50 + (i-1)*45)
btn.BackgroundColor3 = [Link](40, 40, 60)
btn.TextColor3 = [Link](255,255,255)
[Link] = [Link]
[Link] = 20
[Link] = true
[Link] = frame
buttons[buttonNames[i]] = btn
end
-- Add GUI to PlayerGui
[Link] = LocalPlayer:WaitForChild("PlayerGui")
-- Fly functionality
local flying = false
local flyConn
local function fly()
local character = [Link]
if not character or not character:FindFirstChild("HumanoidRootPart") then
return end
local hrp = [Link]
local bodyVel = [Link]("BodyVelocity")
[Link] = [Link](1e5, 1e5, 1e5)
[Link] = [Link](0,0,0)
[Link] = hrp
local speed = 60
local direction = [Link]()
flyConn = [Link]:Connect(function(input, processed)
if processed then return end
if [Link] == [Link].W then direction = direction +
[Link](0,0,-1) end
if [Link] == [Link].S then direction = direction +
[Link](0,0,1) end
if [Link] == [Link].A then direction = direction +
[Link](-1,0,0) end
if [Link] == [Link].D then direction = direction +
[Link](1,0,0) end
if [Link] == [Link] then direction = direction +
[Link](0,1,0) end
if [Link] == [Link] then direction = direction +
[Link](0,-1,0) end
end)
local endConn = [Link]:Connect(function(input)
if [Link] == [Link].W then direction = direction -
[Link](0,0,-1) end
if [Link] == [Link].S then direction = direction -
[Link](0,0,1) end
if [Link] == [Link].A then direction = direction -
[Link](-1,0,0) end
if [Link] == [Link].D then direction = direction -
[Link](1,0,0) end
if [Link] == [Link] then direction = direction -
[Link](0,1,0) end
if [Link] == [Link] then direction = direction -
[Link](0,-1,0) end
end)
while flying and [Link] do
local cam = [Link]
if cam then
[Link] = [Link]:VectorToWorldSpace([Link]) *
speed * ([Link] > 0 and 1 or 0)
end
[Link]()
end
bodyVel:Destroy()
flyConn:Disconnect()
endConn:Disconnect()
end
buttons["Fly"].MouseButton1Click:Connect(function()
flying = not flying
if flying then
buttons["Fly"].Text = "Stop Flying"
fly()
else
buttons["Fly"].Text = "Fly"
flying = false
end
end)
-- Infinite Jump functionality
local infJump = false
local infJumpConn
buttons["Infinite Jump"].MouseButton1Click:Connect(function()
infJump = not infJump
if infJump then
buttons["Infinite Jump"].Text = "Disable Infinite Jump"
infJumpConn = [Link]:Connect(function()
local character = [Link]
if character and character:FindFirstChildOfClass("Humanoid") then
character:FindFirstChildOfClass("Humanoid"):ChangeState([Link]
ing)
end
end)
else
buttons["Infinite Jump"].Text = "Infinite Jump"
if infJumpConn then infJumpConn:Disconnect() end
end
end)
-- Kill functionality
buttons["Kill"].MouseButton1Click:Connect(function()
local character = [Link]
if character and character:FindFirstChildOfClass("Humanoid") then
character:FindFirstChildOfClass("Humanoid").Health = 0
end
end)
-- TP Forwards functionality
buttons["TP Forwards"].MouseButton1Click:Connect(function()
local character = [Link]
if character and character:FindFirstChild("HumanoidRootPart") then
local hrp = [Link]
local cam = [Link]
if cam then
[Link] = [Link] + [Link] * 20
end
end
end)
-- TP Random functionality
buttons["TP Random"].MouseButton1Click:Connect(function()
local character = [Link]
if character and character:FindFirstChild("HumanoidRootPart") then
local hrp = [Link]
local x = [Link](-100,100)
local y = [Link](10,50)
local z = [Link](-100,100)
[Link] = [Link](x, y, z)
end
end)
-- TP to Random Player functionality
buttons["TP to Random Player"].MouseButton1Click:Connect(function()
local character = [Link]
if character and character:FindFirstChild("HumanoidRootPart") then
local players = {}
for i, p in Players:GetPlayers() do
if p ~= LocalPlayer and [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
[Link](players, p)
end
end
if #players > 0 then
local randomPlayer = players[[Link](1, #players)]
[Link] =
[Link] + [Link](2,0,0)
end
end
end)
-- Give Me Sword functionality
buttons["Give Me Sword"].MouseButton1Click:Connect(function()
local backpack = LocalPlayer:FindFirstChild("Backpack")
if not backpack then return end
-- Check if sword already exists
if backpack:FindFirstChild("DarkKingSword") then return end
-- Create a simple sword tool
local tool = [Link]("Tool")
[Link] = "DarkKingSword"
[Link] = true
local handle = [Link]("Part")
[Link] = "Handle"
[Link] = [Link](1,4,1)
[Link] = [Link]("Bright blue")
[Link] = [Link]
[Link] = false
[Link] = tool
[Link] = [Link](0, -1, 0)
-- Sword damage script
local swordScript = [Link]("Script")
[Link] = [[
local tool = [Link]
[Link]:Connect(function()
local handle = tool:FindFirstChild("Handle")
if not handle then return end
[Link]:Connect(function(hit)
local hum = [Link]:FindFirstChildOfClass("Humanoid")
if hum and [Link] > 0 then
[Link] = [Link] - 50
end
end)
end)
]]
[Link] = tool
[Link] = backpack
end)