- 📅 2026-10-11T09:14:35.147Z
- 👁️ 82 katselukertaa
- 🔓 Julkinen
--[[
Anuphat Hub
สคริป by อนุภัทร (นราวิชญ์เก)
]]--
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer
local camera = Workspace.CurrentCamera
-- ลบ UI เก่าหากรันซ้ำ
if CoreGui:FindFirstChild("AnuphatHubBlack") then
CoreGui.AnuphatHubBlack:Destroy()
end
-- สร้าง ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AnuphatHubBlack"
screenGui.Parent = CoreGui
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
-- หน้าต่างหลัก (ธีมสีดำ)
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Parent = screenGui
mainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
mainFrame.BorderSizePixel = 0
mainFrame.Position = UDim2.new(0.5, -160, 0.5, -175)
mainFrame.Size = UDim2.new(0, 320, 0, 350)
mainFrame.Active = true
mainFrame.Draggable = true
local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 8)
mainCorner.Parent = mainFrame
local mainStroke = Instance.new("UIStroke")
mainStroke.Parent = mainFrame
mainStroke.Color = Color3.fromRGB(40, 40, 40)
mainStroke.Thickness = 1
-- แถบหัวข้อ TopBar
local topBar = Instance.new("Frame")
topBar.Parent = mainFrame
topBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
topBar.BorderSizePixel = 0
topBar.Size = UDim2.new(1, 0, 0, 38)
local topBarCorner = Instance.new("UICorner")
topBarCorner.CornerRadius = UDim.new(0, 8)
topBarCorner.Parent = topBar
-- ชื่อ Anuphat Hub สีรุ้ง + ตัวย่อ
local titleLabel = Instance.new("TextLabel")
titleLabel.Parent = topBar
titleLabel.BackgroundTransparency = 1
titleLabel.Position = UDim2.new(0, 10, 0, 0)
titleLabel.Size = UDim2.new(0.75, 0, 1, 0)
titleLabel.Font = Enum.Font.GothamBold
titleLabel.Text = "Anuphat Hub <font size='11' color='#AAAAAA'>สคริป by อนุภัทร (นราวิชญ์เก)</font>"
titleLabel.RichText = true
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextSize = 14
titleLabel.TextXAlignment = Enum.TextXAlignment.Left
task.spawn(function()
local hue = 0
while task.wait() do
hue = (hue + 0.003) % 1
titleLabel.TextColor3 = Color3.fromHSV(hue, 0.9, 1)
end
end)
-- ปุ่มย่อ (-)
local minButton = Instance.new("TextButton")
minButton.Parent = topBar
minButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
minButton.Position = UDim2.new(1, -58, 0.5, -11)
minButton.Size = UDim2.new(0, 22, 0, 22)
minButton.Font = Enum.Font.GothamBold
minButton.Text = "-"
minButton.TextColor3 = Color3.fromRGB(255, 255, 255)
minButton.TextSize = 14
local minCorner = Instance.new("UICorner")
minCorner.CornerRadius = UDim.new(0, 4)
minCorner.Parent = minButton
-- ปุ่มปิด (X)
local closeButton = Instance.new("TextButton")
closeButton.Parent = topBar
closeButton.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
closeButton.Position = UDim2.new(1, -30, 0.5, -11)
closeButton.Size = UDim2.new(0, 22, 0, 22)
closeButton.Font = Enum.Font.GothamBold
closeButton.Text = "X"
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.TextSize = 12
local closeCorner = Instance.new("UICorner")
closeCorner.CornerRadius = UDim.new(0, 4)
closeCorner.Parent = closeButton
closeButton.MouseButton1Click:Connect(function()
screenGui:Destroy()
end)
-- เมนูหลัก
local container = Instance.new("ScrollingFrame")
container.Parent = mainFrame
container.BackgroundTransparency = 1
container.Position = UDim2.new(0, 8, 0, 46)
container.Size = UDim2.new(1, -16, 1, -52)
container.CanvasSize = UDim2.new(0, 0, 1.6, 0)
container.ScrollBarThickness = 3
local layout = Instance.new("UIListLayout")
layout.Parent = container
layout.SortOrder = Enum.SortOrder.LayoutOrder
layout.Padding = UDim.new(0, 8)
-- ฟังก์ชันสร้างกล่องอินพุตตัวเลข
local function addInputRow(titleText, defaultVal, onApply)
local frame = Instance.new("Frame")
frame.Parent = container
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.Size = UDim2.new(1, 0, 0, 40)
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = frame
local label = Instance.new("TextLabel")
label.Parent = frame
label.BackgroundTransparency = 1
label.Position = UDim2.new(0, 10, 0, 0)
label.Size = UDim2.new(0.6, 0, 1, 0)
label.Font = Enum.Font.GothamMedium
label.Text = titleText
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextSize = 13
label.TextXAlignment = Enum.TextXAlignment.Left
local box = Instance.new("TextBox")
box.Parent = frame
box.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
box.Position = UDim2.new(0.65, 0, 0.15, 0)
box.Size = UDim2.new(0.3, 0, 0.7, 0)
box.Font = Enum.Font.GothamBold
box.PlaceholderText = "0-500"
box.Text = tostring(defaultVal)
box.TextColor3 = Color3.fromRGB(255, 255, 255)
box.TextSize = 13
local boxCorner = Instance.new("UICorner")
boxCorner.CornerRadius = UDim.new(0, 4)
boxCorner.Parent = box
box.FocusLost:Connect(function()
local val = tonumber(box.Text)
if val then
val = math.clamp(val, 0, 500)
box.Text = tostring(val)
onApply(val)
end
end)
end
-- ฟังก์ชันสร้างสวิตช์ Toggle
local function addToggleRow(titleText, onToggle)
local frame = Instance.new("Frame")
frame.Parent = container
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.Size = UDim2.new(1, 0, 0, 40)
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = frame
local label = Instance.new("TextLabel")
label.Parent = frame
label.BackgroundTransparency = 1
label.Position = UDim2.new(0, 10, 0, 0)
label.Size = UDim2.new(0.65, 0, 1, 0)
label.Font = Enum.Font.GothamMedium
label.Text = titleText
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.TextSize = 13
label.TextXAlignment = Enum.TextXAlignment.Left
local btn = Instance.new("TextButton")
btn.Parent = frame
btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
btn.Position = UDim2.new(0.72, 0, 0.15, 0)
btn.Size = UDim2.new(0.23, 0, 0.7, 0)
btn.Font = Enum.Font.GothamBold
btn.Text = "OFF"
btn.TextColor3 = Color3.fromRGB(200, 200, 200)
btn.TextSize = 12
local btnCorner = Instance.new("UICorner")
btnCorner.CornerRadius = UDim.new(0, 4)
btnCorner.Parent = btn
local active = false
btn.MouseButton1Click:Connect(function()
active = not active
if active then
btn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
btn.TextColor3 = Color3.fromRGB(0, 0, 0)
btn.Text = "ON"
else
btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
btn.TextColor3 = Color3.fromRGB(200, 200, 200)
btn.Text = "OFF"
end
onToggle(active)
end)
end
-- ฟังก์ชันสร้างปุ่มกด
local function addBtnRow(titleText, onClick)
local btn = Instance.new("TextButton")
btn.Parent = container
btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
btn.Size = UDim2.new(1, 0, 0, 36)
btn.Font = Enum.Font.GothamBold
btn.Text = titleText
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.TextSize = 13
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = btn
btn.MouseButton1Click:Connect(onClick)
end
--------------------------------------------------
-- ฟังก์ชันการทำงาน
--------------------------------------------------
-- 1. Speed (0-500)
addInputRow("Speed (ความเร็ว)", 16, function(val)
if player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.WalkSpeed = val
end
end)
-- 2. Jump Boost (0-500)
addInputRow("Jump Boost (แรงกระโดด)", 50, function(val)
if player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.UseJumpPower = true
player.Character.Humanoid.JumpPower = val
end
end)
-- 3. Air Jump ON/OFF
local airJumpOn = false
addToggleRow("Air Jump (โดดกลางอากาศ)", function(state)
airJumpOn = state
end)
UserInputService.JumpRequest:Connect(function()
if airJumpOn and player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
-- 4. Target Player & Spectator & Teleport
local selectedPlayer = nil
-- ช่องพิมพ์เลือกผู้เล่น
local targetFrame = Instance.new("Frame")
targetFrame.Parent = container
targetFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
targetFrame.Size = UDim2.new(1, 0, 0, 40)
local tCorner = Instance.new("UICorner")
tCorner.CornerRadius = UDim.new(0, 6)
tCorner.Parent = targetFrame
local tLabel = Instance.new("TextLabel")
tLabel.Parent = targetFrame
tLabel.BackgroundTransparency = 1
tLabel.Position = UDim2.new(0, 10, 0, 0)
tLabel.Size = UDim2.new(0.4, 0, 1, 0)
tLabel.Font = Enum.Font.GothamMedium
tLabel.Text = "Target Player:"
tLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
tLabel.TextSize = 13
tLabel.TextXAlignment = Enum.TextXAlignment.Left
local tBox = Instance.new("TextBox")
tBox.Parent = targetFrame
tBox.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
tBox.Position = UDim2.new(0.42, 0, 0.15, 0)
tBox.Size = UDim2.new(0.53, 0, 0.7, 0)
tBox.Font = Enum.Font.Gotham
tBox.PlaceholderText = "พิมพ์ชื่อผู้เล่น..."
tBox.Text = ""
tBox.TextColor3 = Color3.fromRGB(255, 255, 255)
tBox.TextSize = 12
local tbCorner = Instance.new("UICorner")
tbCorner.CornerRadius = UDim.new(0, 4)
tbCorner.Parent = tBox
tBox.FocusLost:Connect(function()
local txt = string.lower(tBox.Text)
for _, p in pairs(Players:GetPlayers()) do
if p ~= player and (string.find(string.lower(p.Name), txt) or string.find(string.lower(p.DisplayName), txt)) then
selectedPlayer = p
tBox.Text = p.DisplayName
break
end
end
end)
-- Spectator ON/OFF
local spectatorOn = false
addToggleRow("Spectator (ส่องมุมมอง)", function(state)
spectatorOn = state
if spectatorOn and selectedPlayer and selectedPlayer.Character and selectedPlayer.Character:FindFirstChild("Humanoid") then
camera.CameraSubject = selectedPlayer.Character.Humanoid
else
if player.Character and player.Character:FindFirstChild("Humanoid") then
camera.CameraSubject = player.Character.Humanoid
end
end
end)
-- Teleport ไปหา Target Player
addBtnRow("Teleport (วาร์ปไปหา Target)", function()
if selectedPlayer and selectedPlayer.Character and selectedPlayer.Character:FindFirstChild("HumanoidRootPart") then
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
player.Character.HumanoidRootPart.CFrame = selectedPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)
end
end
end)
-- ระบบ ย่อ/ขยาย หน้าจอ
local minimized = false
minButton.MouseButton1Click:Connect(function()
minimized = not minimized
container.Visible = not minimized
if minimized then
mainFrame.Size = UDim2.new(0, 320, 0, 38)
minButton.Text = "+"
else
mainFrame.Size = UDim2.new(0, 320, 0, 350)
minButton.Text = "-"
end
end)