--[[
anti.xyz — Universal TP Hub + Anti-Cheat Destroyer
Minecraft-Themed GUI with hand-made pixel art logos
]]
----------------------------------------------
-- ANTI-CHEAT DESTROYER v3
----------------------------------------------
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local lp = Players.LocalPlayer
local oldPositions = {}
local _hookmetamethod = hookmetamethod or nil
local _newcclosure = newcclosure or function(f) return f end
local _islclosure = islclosure or nil
local _getconnections = getconnections or nil
local _getnamecallmethod = getnamecallmethod or nil
local acKeywords = {
"anti","cheat","kick","ban","detect","security","guard","exploit",
"tamper","integrity","monitor","verify","validation","flag","report",
"checker","watchdog","sentinel","shield","protect","patch","sanity",
"velocity","speed","teleport","noclip","fly","btools","logging",
"analytics","heartbeat","ping","timeout"
}
local function isAC(name)
if not name then return false end
local n = string.lower(tostring(name))
for _, kw in ipairs(acKeywords) do
if string.find(n, kw) then return true end
end
return false
end
local function fullNuke()
for _, v in pairs(game:GetDescendants()) do
pcall(function()
if isAC(v.Name) then
if v:IsA("RemoteEvent") or v:IsA("RemoteFunction")
or v:IsA("BindableEvent") or v:IsA("BindableFunction") then
v:Destroy()
elseif v:IsA("LocalScript") or v:IsA("ModuleScript") then
v.Disabled = true
v:Destroy()
end
end
end)
end
end
pcall(function()
if not _hookmetamethod then return end
local oldNamecall
oldNamecall = _hookmetamethod(game, "__namecall", _newcclosure(function(self, ...)
local method = _getnamecallmethod()
if method == "Kick" or method == "kick" then return nil end
if method == "FireServer" or method == "InvokeServer" then
if typeof(self) == "Instance" and isAC(self.Name) then return nil end
for _, arg in pairs({...}) do
if typeof(arg) == "string" and isAC(arg) then return nil end
end
end
return oldNamecall(self, ...)
end))
end)
pcall(function()
if not _hookmetamethod then return end
local oldIndex
oldIndex = _hookmetamethod(game, "__index", _newcclosure(function(self, key)
if typeof(self) == "Instance" and self:IsA("Humanoid") then
if key == "WalkSpeed" then return 16 end
if key == "JumpPower" or key == "JumpHeight" then return 50 end
end
return oldIndex(self, key)
end))
end)
pcall(function()
if not _hookmetamethod then return end
local oldNewindex
oldNewindex = _hookmetamethod(game, "__newindex", _newcclosure(function(self, key, value)
if typeof(self) == "Instance" and self:IsA("Humanoid") then
if (key == "WalkSpeed" or key == "JumpPower" or key == "JumpHeight") and value == 0 then return end
end
return oldNewindex(self, key, value)
end))
end)
pcall(function() lp.Kick = _newcclosure(function() return nil end) end)
pcall(function()
local VU = game:GetService("VirtualUser")
lp.Idled:Connect(function() VU:CaptureController() VU:ClickButton2(Vector2.new()) end)
end)
game.DescendantAdded:Connect(function(v)
task.wait()
pcall(function()
if isAC(v.Name) then
if v:IsA("RemoteEvent") or v:IsA("RemoteFunction") or v:IsA("BindableEvent") or v:IsA("BindableFunction") then
v:Destroy()
elseif v:IsA("LocalScript") or v:IsA("ModuleScript") then
v.Disabled = true
v:Destroy()
end
end
end)
end)
pcall(function()
if not _getconnections or not _islclosure then return end
for _, sig in pairs({RunService.RenderStepped, RunService.Heartbeat}) do
for _, conn in pairs(_getconnections(sig)) do
pcall(function()
if conn.Function and _islclosure(conn.Function) then
local info = debug.getinfo(conn.Function)
if info and info.source and isAC(info.source) then conn:Disable() end
end
end)
end
end
end)
fullNuke()
task.spawn(function() while task.wait(5) do pcall(fullNuke) end end)
----------------------------------------------
-- MINECRAFT GUI
----------------------------------------------
if game:GetService("CoreGui"):FindFirstChild("AntiXYZ") then
game:GetService("CoreGui"):FindFirstChild("AntiXYZ"):Destroy()
end
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AntiXYZ"
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
pcall(function() ScreenGui.Parent = game:GetService("CoreGui") end)
if not ScreenGui.Parent then ScreenGui.Parent = lp:WaitForChild("PlayerGui") end
-- Minecraft Colors
local MC = {
dirt = Color3.fromRGB(134, 96, 67),
dirtDark = Color3.fromRGB(100, 70, 46),
stone = Color3.fromRGB(125, 125, 125),
stoneDark = Color3.fromRGB(90, 90, 90),
stoneLight = Color3.fromRGB(160, 160, 160),
obsidian = Color3.fromRGB(20, 18, 30),
bedrock = Color3.fromRGB(45, 45, 45),
grass = Color3.fromRGB(90, 140, 50),
grassDark = Color3.fromRGB(70, 110, 35),
white = Color3.fromRGB(255, 255, 255),
gray = Color3.fromRGB(170, 170, 170),
gold = Color3.fromRGB(255, 215, 0),
red = Color3.fromRGB(200, 50, 50),
green = Color3.fromRGB(85, 200, 85),
emerald = Color3.fromRGB(50, 200, 100),
diamond = Color3.fromRGB(80, 220, 220),
border3dLight = Color3.fromRGB(180, 180, 180),
border3dDark = Color3.fromRGB(50, 50, 50),
btnGray = Color3.fromRGB(140, 140, 140),
btnGrayDark = Color3.fromRGB(100, 100, 100),
btnGrayLight = Color3.fromRGB(180, 180, 180),
black = Color3.fromRGB(0, 0, 0),
}
-- PIXEL ART ENGINE
local function drawPixelArt(parent, grid, palette, pixelSize, offsetX, offsetY)
local container = Instance.new("Frame")
container.Name = "PixelArt"
container.Size = UDim2.new(0, #grid[1] * pixelSize, 0, #grid * pixelSize)
container.Position = UDim2.new(0, offsetX, 0, offsetY)
container.BackgroundTransparency = 1
container.BorderSizePixel = 0
container.Parent = parent
for row = 1, #grid do
for col = 1, #grid[row] do
local colorKey = string.sub(grid[row], col, col)
if colorKey ~= "." and palette[colorKey] then
local px = Instance.new("Frame")
px.Name = "px"
px.Size = UDim2.new(0, pixelSize, 0, pixelSize)
px.Position = UDim2.new(0, (col-1)*pixelSize, 0, (row-1)*pixelSize)
px.BackgroundColor3 = palette[colorKey]
px.BorderSizePixel = 0
px.Parent = container
end
end
end
return container
end
-- PIXEL ART ICONS
local swordGrid = {
"........",
"......WG",
".....WG.",
"....WG..",
".B.WG...",
"..BG....",
".B.B....",
"B.......",
}
local swordPalette = {W=Color3.fromRGB(220,220,230), G=Color3.fromRGB(160,160,170), B=Color3.fromRGB(120,80,40)}
local shieldGrid = {
".DDDDDD.",
"DGGGGGGD",
"DGYYYYGD",
"DGYYYYGD",
"DGYYYYGD",
".DGYYGD.",
"..DGGD..",
"...DD...",
}
local shieldPalette = {D=Color3.fromRGB(60,60,70), G=Color3.fromRGB(100,100,110), Y=Color3.fromRGB(255,215,0)}
local crosshairGrid = {
"...RR...",
"..R..R..",
".R....R.",
"R..RR..R",
"R..RR..R",
".R....R.",
"..R..R..",
"...RR...",
}
local crosshairPalette = {R=Color3.fromRGB(220,50,50)}
local enderGrid = {
"..CCCC..",
".CDDDDC.",
"CDDEEDDC",
"CDEEEEDC",
"CDEEEEDC",
"CDDEEDDC",
".CDDDDC.",
"..CCCC..",
}
local enderPalette = {C=Color3.fromRGB(10,50,50), D=Color3.fromRGB(20,100,90), E=Color3.fromRGB(40,180,160)}
local pickGrid = {
"..SSSS..",
"..S..SB.",
"......B.",
".....B..",
"....B...",
".W.B....",
"..W.....",
".W......",
}
local pickPalette = {S=Color3.fromRGB(130,130,140), B=Color3.fromRGB(100,70,40), W=Color3.fromRGB(140,100,60)}
local compassGrid = {
"..GGGG..",
".G....G.",
"G..RR..G",
"G.RRRR.G",
"G.WWWW.G",
"G..WW..G",
".G....G.",
"..GGGG..",
}
local compassPalette = {G=Color3.fromRGB(160,160,160), R=Color3.fromRGB(220,50,50), W=Color3.fromRGB(240,240,240)}
local heartGrid = {
".RR..RR.",
"RRRRRRRR",
"RRRRRRRR",
"RRRRRRRR",
".RRRRRR.",
"..RRRR..",
"...RR...",
"........",
}
local heartPalette = {R=Color3.fromRGB(200,30,30)}
----------------------------------------------
-- 3D BORDER (only for non-layout frames)
----------------------------------------------
local function mc3DBorder(frame, style)
local t = Instance.new("Frame", frame)
t.Name = "Border" t.Size = UDim2.new(1,0,0,2) t.Position = UDim2.new(0,0,0,0)
t.BackgroundColor3 = style=="raised" and MC.border3dLight or MC.border3dDark
t.BorderSizePixel = 0
local l = Instance.new("Frame", frame)
l.Name = "Border" l.Size = UDim2.new(0,2,1,0) l.Position = UDim2.new(0,0,0,0)
l.BackgroundColor3 = style=="raised" and MC.border3dLight or MC.border3dDark
l.BorderSizePixel = 0
local b = Instance.new("Frame", frame)
b.Name = "Border" b.Size = UDim2.new(1,0,0,2) b.Position = UDim2.new(0,0,1,-2)
b.BackgroundColor3 = style=="raised" and MC.border3dDark or MC.border3dLight
b.BorderSizePixel = 0
local r = Instance.new("Frame", frame)
r.Name = "Border" r.Size = UDim2.new(0,2,1,0) r.Position = UDim2.new(1,-2,0,0)
r.BackgroundColor3 = style=="raised" and MC.border3dDark or MC.border3dLight
r.BorderSizePixel = 0
end
----------------------------------------------
-- BUILD WINDOW
----------------------------------------------
local Main = Instance.new("Frame")
Main.Name = "Main"
Main.Size = UDim2.new(0, 380, 0, 460)
Main.Position = UDim2.new(0.5, -190, 0.5, -230)
Main.BackgroundColor3 = MC.obsidian
Main.BorderSizePixel = 0
Main.ClipsDescendants = true
Main.Parent = ScreenGui
mc3DBorder(Main, "raised")
-- Top Bar
local TopBar = Instance.new("Frame")
TopBar.Name = "TopBar"
TopBar.Size = UDim2.new(1, -4, 0, 48)
TopBar.Position = UDim2.new(0, 2, 0, 2)
TopBar.BackgroundColor3 = MC.grass
TopBar.BorderSizePixel = 0
TopBar.ZIndex = 5
TopBar.Parent = Main
mc3DBorder(TopBar, "raised")
-- Dirt strip under grass
local dirtStrip = Instance.new("Frame", TopBar)
dirtStrip.Name = "Dirt"
dirtStrip.Size = UDim2.new(1, 0, 0, 8)
dirtStrip.Position = UDim2.new(0, 0, 1, -8)
dirtStrip.BackgroundColor3 = MC.dirt
dirtStrip.BorderSizePixel = 0
dirtStrip.ZIndex = 5
-- Sword on title bar
local swordIcon = drawPixelArt(TopBar, swordGrid, swordPalette, 3, 10, 8)
swordIcon.ZIndex = 6
for _, c in pairs(swordIcon:GetChildren()) do c.ZIndex = 6 end
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, -100, 1, 0)
Title.Position = UDim2.new(0, 42, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "anti.xyz"
Title.TextColor3 = MC.gold
Title.TextSize = 22
Title.Font = Enum.Font.Code
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.TextStrokeTransparency = 0
Title.TextStrokeColor3 = MC.black
Title.ZIndex = 6
Title.Parent = TopBar
local CloseBtn = Instance.new("TextButton")
CloseBtn.Size = UDim2.new(0, 36, 0, 36)
CloseBtn.Position = UDim2.new(1, -44, 0, 6)
CloseBtn.BackgroundColor3 = MC.red
CloseBtn.Text = "X"
CloseBtn.TextColor3 = MC.white
CloseBtn.TextSize = 16
CloseBtn.Font = Enum.Font.Code
CloseBtn.TextStrokeTransparency = 0
CloseBtn.TextStrokeColor3 = MC.black
CloseBtn.BorderSizePixel = 0
CloseBtn.ZIndex = 7
CloseBtn.AutoButtonColor = false
CloseBtn.Parent = TopBar
local MinBtn = Instance.new("TextButton")
MinBtn.Size = UDim2.new(0, 36, 0, 36)
MinBtn.Position = UDim2.new(1, -86, 0, 6)
MinBtn.BackgroundColor3 = MC.stone
MinBtn.Text = "_"
MinBtn.TextColor3 = MC.white
MinBtn.TextSize = 16
MinBtn.Font = Enum.Font.Code
MinBtn.TextStrokeTransparency = 0
MinBtn.TextStrokeColor3 = MC.black
MinBtn.BorderSizePixel = 0
MinBtn.ZIndex = 7
MinBtn.AutoButtonColor = false
MinBtn.Parent = TopBar
-- Drag
local dragging, dragStart, startPos
TopBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = Main.Position
end
end)
TopBar.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
local delta = input.Position - dragStart
Main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
-- Content ScrollingFrame
local Content = Instance.new("ScrollingFrame")
Content.Name = "Content"
Content.Size = UDim2.new(1, -16, 1, -62)
Content.Position = UDim2.new(0, 8, 0, 54)
Content.BackgroundColor3 = MC.bedrock
Content.BackgroundTransparency = 0.3
Content.BorderSizePixel = 2
Content.BorderColor3 = MC.stoneDark
Content.ScrollBarThickness = 6
Content.ScrollBarImageColor3 = MC.stone
Content.CanvasSize = UDim2.new(0, 0, 0, 0)
Content.AutomaticCanvasSize = Enum.AutomaticSize.Y
Content.ZIndex = 3
Content.Parent = Main
local listLayout = Instance.new("UIListLayout", Content)
listLayout.SortOrder = Enum.SortOrder.LayoutOrder
listLayout.Padding = UDim.new(0, 4)
local pad = Instance.new("UIPadding", Content)
pad.PaddingLeft = UDim.new(0, 6)
pad.PaddingRight = UDim.new(0, 6)
pad.PaddingTop = UDim.new(0, 6)
pad.PaddingBottom = UDim.new(0, 6)
----------------------------------------------
-- GUI HELPERS (items inside content)
----------------------------------------------
local function mcLabel(text, order, iconGrid, iconPalette)
local holder = Instance.new("Frame")
holder.Name = "Label_"..text
holder.Size = UDim2.new(1, 0, 0, 26)
holder.BackgroundTransparency = 1
holder.BorderSizePixel = 0
holder.LayoutOrder = order
holder.Parent = Content
if iconGrid and iconPalette then
local icon = drawPixelArt(holder, iconGrid, iconPalette, 2, 2, 5)
end
local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(1, -24, 1, 0)
lbl.Position = UDim2.new(0, iconGrid and 22 or 0, 0, 0)
lbl.BackgroundTransparency = 1
lbl.Text = text
lbl.TextColor3 = MC.gold
lbl.TextSize = 14
lbl.Font = Enum.Font.Code
lbl.TextXAlignment = Enum.TextXAlignment.Left
lbl.TextStrokeTransparency = 0
lbl.TextStrokeColor3 = MC.black
lbl.Parent = holder
local sep = Instance.new("Frame")
sep.Name = "Sep"
sep.Size = UDim2.new(1, 0, 0, 1)
sep.Position = UDim2.new(0, 0, 1, -1)
sep.BackgroundColor3 = MC.stone
sep.BorderSizePixel = 0
sep.BackgroundTransparency = 0.5
sep.Parent = holder
return holder
end
local function mcButton(text, order, callback)
local holder = Instance.new("Frame")
holder.Name = "BtnHolder"
holder.Size = UDim2.new(1, 0, 0, 36)
holder.BackgroundTransparency = 1
holder.BorderSizePixel = 0
holder.LayoutOrder = order
holder.Parent = Content
local btn = Instance.new("TextButton")
btn.Name = "Btn"
btn.Size = UDim2.new(1, 0, 1, 0)
btn.BackgroundColor3 = MC.btnGray
btn.Text = text
btn.TextColor3 = MC.white
btn.TextSize = 13
btn.Font = Enum.Font.Code
btn.TextStrokeTransparency = 0
btn.TextStrokeColor3 = MC.black
btn.BorderSizePixel = 2
btn.BorderColor3 = MC.black
btn.AutoButtonColor = false
btn.Parent = holder
btn.MouseEnter:Connect(function() btn.BackgroundColor3 = MC.btnGrayLight end)
btn.MouseLeave:Connect(function() btn.BackgroundColor3 = MC.btnGray end)
btn.MouseButton1Down:Connect(function() btn.BackgroundColor3 = MC.btnGrayDark end)
btn.MouseButton1Up:Connect(function() btn.BackgroundColor3 = MC.btnGrayLight end)
btn.MouseButton1Click:Connect(callback)
return btn
end
local function mcToggle(text, order, default, callback)
local on = default
local holder = Instance.new("Frame")
holder.Name = "ToggleHolder"
holder.Size = UDim2.new(1, 0, 0, 36)
holder.BackgroundTransparency = 1
holder.BorderSizePixel = 0
holder.LayoutOrder = order
holder.Parent = Content
local btn = Instance.new("TextButton")
btn.Name = "Toggle"
btn.Size = UDim2.new(1, 0, 1, 0)
btn.BackgroundColor3 = on and MC.grassDark or MC.stoneDark
btn.Text = text .. (on and " [ON]" or " [OFF]")
btn.TextColor3 = on and MC.emerald or MC.gray
btn.TextSize = 13
btn.Font = Enum.Font.Code
btn.TextStrokeTransparency = 0
btn.TextStrokeColor3 = MC.black
btn.BorderSizePixel = 2
btn.BorderColor3 = MC.black
btn.AutoButtonColor = false
btn.Parent = holder
btn.MouseButton1Click:Connect(function()
on = not on
btn.BackgroundColor3 = on and MC.grassDark or MC.stoneDark
btn.Text = text .. (on and " [ON]" or " [OFF]")
btn.TextColor3 = on and MC.emerald or MC.gray
callback(on)
end)
return btn
end
local function mcInput(placeholder, order)
local holder = Instance.new("Frame")
holder.Name = "InputHolder"
holder.Size = UDim2.new(1, 0, 0, 32)
holder.BackgroundColor3 = MC.black
holder.BorderSizePixel = 2
holder.BorderColor3 = MC.stoneDark
holder.LayoutOrder = order
holder.Parent = Content
local box = Instance.new("TextBox")
box.Size = UDim2.new(1, -12, 1, -4)
box.Position = UDim2.new(0, 6, 0, 2)
box.BackgroundTransparency = 1
box.PlaceholderText = placeholder
box.PlaceholderColor3 = MC.stoneDark
box.Text = ""
box.TextColor3 = MC.green
box.TextSize = 13
box.Font = Enum.Font.Code
box.TextXAlignment = Enum.TextXAlignment.Left
box.ClearTextOnFocus = false
box.TextStrokeTransparency = 0.5
box.TextStrokeColor3 = MC.black
box.Parent = holder
return box
end
----------------------------------------------
-- STATUS BAR
----------------------------------------------
local statusHolder = Instance.new("Frame")
statusHolder.Name = "StatusHolder"
statusHolder.Size = UDim2.new(1, 0, 0, 24)
statusHolder.BackgroundColor3 = MC.grassDark
statusHolder.BackgroundTransparency = 0.3
statusHolder.BorderSizePixel = 2
statusHolder.BorderColor3 = MC.black
statusHolder.LayoutOrder = 0
statusHolder.Parent = Content
local heartIcon = drawPixelArt(statusHolder, heartGrid, heartPalette, 2, 4, 4)
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Size = UDim2.new(1, -26, 1, 0)
StatusLabel.Position = UDim2.new(0, 24, 0, 0)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Text = "AC Active | Mode: CLICK | TP: ON"
StatusLabel.TextColor3 = MC.green
StatusLabel.TextSize = 11
StatusLabel.Font = Enum.Font.Code
StatusLabel.TextXAlignment = Enum.TextXAlignment.Left
StatusLabel.TextStrokeTransparency = 0
StatusLabel.TextStrokeColor3 = MC.black
StatusLabel.Parent = statusHolder
----------------------------------------------
-- TP LOGIC
----------------------------------------------
local tpMode = "click"
local tpEnabled = true
local waypoint = nil
local Mouse = lp:GetMouse()
local function getHRP()
local char = lp.Character
return char and char:FindFirstChild("HumanoidRootPart")
end
local function safeTp(cframe)
local hrp = getHRP()
if not hrp then return end
oldPositions[hrp] = hrp.Position
hrp.CFrame = cframe
end
local function updateStatus()
StatusLabel.Text = "AC Active | Mode: " .. string.upper(tpMode) .. " | TP: " .. (tpEnabled and "ON" or "OFF")
StatusLabel.TextColor3 = tpEnabled and MC.green or MC.red
end
----------------------------------------------
-- SECTIONS
----------------------------------------------
mcLabel("Teleport Mode", 1, crosshairGrid, crosshairPalette)
local modeButtons = {}
local modes = {"click", "waypoint", "cursor", "player"}
local modeIcons = {click="[>] ", waypoint="[W] ", cursor="[+] ", player="[@] "}
for i, mode in ipairs(modes) do
local btn = mcButton(modeIcons[mode] .. string.upper(mode), 1 + i, function()
tpMode = mode
for m, b in pairs(modeButtons) do
b.BackgroundColor3 = MC.btnGray
b.TextColor3 = MC.white
end
modeButtons[mode].BackgroundColor3 = MC.grassDark
modeButtons[mode].TextColor3 = MC.emerald
updateStatus()
end)
if mode == "click" then
btn.BackgroundColor3 = MC.grassDark
btn.TextColor3 = MC.emerald
end
modeButtons[mode] = btn
end
mcLabel("Settings", 10, shieldGrid, shieldPalette)
mcToggle("[!] Teleport Enabled", 11, true, function(on)
tpEnabled = on
updateStatus()
end)
mcLabel("Waypoint", 20, enderGrid, enderPalette)
mcButton("[E] Set Waypoint", 21, function()
local hrp = getHRP()
if hrp then
waypoint = hrp.CFrame
updateStatus()
end
end)
mcButton("[T] Go to Waypoint", 22, function()
if waypoint then safeTp(waypoint) end
end)
mcLabel("Player Teleport", 30, compassGrid, compassPalette)
local playerInput = mcInput("Enter player name...", 31)
mcButton("[@] Teleport to Player", 32, function()
local name = playerInput.Text
if name == "" then return end
for _, p in pairs(Players:GetPlayers()) do
if string.find(string.lower(p.Name), string.lower(name))
or string.find(string.lower(p.DisplayName), string.lower(name)) then
if p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
safeTp(p.Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0))
return
end
end
end
end)
mcLabel("Coordinates", 40, pickGrid, pickPalette)
local coordInput = mcInput("x y z (e.g. 100 50 200)", 41)
mcButton("[#] Teleport to Coords", 42, function()
local c = coordInput.Text
local x, y, z = string.match(c, "([%d%.%-]+)%s+([%d%.%-]+)%s+([%d%.%-]+)")
if x and y and z then
safeTp(CFrame.new(tonumber(x), tonumber(y), tonumber(z)))
end
end)
mcLabel("Anti-Cheat", 50, swordGrid, swordPalette)
mcToggle("[!] AC Destroyer", 51, true, function(on)
if on then fullNuke() end
end)
mcButton("[!!] Force Re-Nuke", 52, function()
fullNuke()
end)
mcLabel("Keybinds", 60, nil, nil)
local infoHolder = Instance.new("Frame")
infoHolder.Name = "InfoHolder"
infoHolder.Size = UDim2.new(1, 0, 0, 80)
infoHolder.BackgroundColor3 = MC.black
infoHolder.BackgroundTransparency = 0.5
infoHolder.BorderSizePixel = 2
infoHolder.BorderColor3 = MC.stoneDark
infoHolder.LayoutOrder = 61
infoHolder.Parent = Content
local infoText = Instance.new("TextLabel")
infoText.Size = UDim2.new(1, -12, 1, -8)
infoText.Position = UDim2.new(0, 6, 0, 4)
infoText.BackgroundTransparency = 1
infoText.Text = "F5 = Toggle GUI\nF6 = Toggle TP\nF7 = Cycle Mode\nX = Cursor TP\n/tp name | /coords x y z"
infoText.TextColor3 = MC.gray
infoText.TextSize = 12
infoText.Font = Enum.Font.Code
infoText.TextXAlignment = Enum.TextXAlignment.Left
infoText.TextYAlignment = Enum.TextYAlignment.Top
infoText.TextStrokeTransparency = 0
infoText.TextStrokeColor3 = MC.black
infoText.Parent = infoHolder
----------------------------------------------
-- INPUT CONNECTIONS
----------------------------------------------
Mouse.Button1Down:Connect(function()
if tpMode ~= "click" or not tpEnabled then return end
local target = Mouse.Target
if not target then return end
safeTp(target.CFrame + Vector3.new(0, 5, 0))
end)
UserInputService.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.X and tpMode == "cursor" and tpEnabled then
local hit = Mouse.Hit
if hit then safeTp(hit + Vector3.new(0, 5, 0)) end
end
if input.KeyCode == Enum.KeyCode.F6 then
tpEnabled = not tpEnabled
updateStatus()
end
if input.KeyCode == Enum.KeyCode.F7 then
for i, m in ipairs(modes) do
if m == tpMode then
tpMode = modes[(i % #modes) + 1]
for _, b in pairs(modeButtons) do
b.BackgroundColor3 = MC.btnGray
b.TextColor3 = MC.white
end
modeButtons[tpMode].BackgroundColor3 = MC.grassDark
modeButtons[tpMode].TextColor3 = MC.emerald
updateStatus()
break
end
end
end
if input.KeyCode == Enum.KeyCode.F5 then
Main.Visible = not Main.Visible
end
end)
lp.Chatted:Connect(function(msg)
local lower = string.lower(msg)
if string.sub(lower, 1, 4) == "/tp " then
local name = string.sub(msg, 5)
for _, p in pairs(Players:GetPlayers()) do
if string.find(string.lower(p.Name), string.lower(name))
or string.find(string.lower(p.DisplayName), string.lower(name)) then
if p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
safeTp(p.Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0))
return
end
end
end
end
if string.sub(lower, 1, 8) == "/coords " then
local c = string.sub(msg, 9)
local x, y, z = string.match(c, "([%d%.%-]+)%s+([%d%.%-]+)%s+([%d%.%-]+)")
if x and y and z then
safeTp(CFrame.new(tonumber(x), tonumber(y), tonumber(z)))
end
end
end)
-- Minimize / Close
local minimized = false
MinBtn.MouseButton1Click:Connect(function()
minimized = not minimized
Content.Visible = not minimized
local targetSize = minimized and UDim2.new(0, 380, 0, 52) or UDim2.new(0, 380, 0, 460)
TweenService:Create(Main, TweenInfo.new(0.2), {Size = targetSize}):Play()
end)
CloseBtn.MouseButton1Click:Connect(function()
ScreenGui:Destroy()
end)
-- Open animation
Main.Size = UDim2.new(0, 380, 0, 0)
TweenService:Create(Main, TweenInfo.new(0.3), {Size = UDim2.new(0, 380, 0, 460)}):Play()
print("[anti.xyz] Loaded! Press F5 to toggle GUI.")