local CoreGui = game:GetService("CoreGui")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalPlayer = game:GetService("Players").LocalPlayer
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "Deflect_Hub"
ScreenGui.Parent = CoreGui
ScreenGui.ResetOnSpawn = false
--// Remote Reference
local DeflectRemote = ReplicatedStorage:WaitForChild("Remotes", 5):WaitForChild("ConfirmPickEvent", 5)
--// Utilities
local function MakeDraggable(frame, dragHandle)
local dragging, dragInput, dragStart, startPos
dragHandle = dragHandle or frame
dragHandle.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then dragging = false end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end
end)
UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
local delta = input.Position - dragStart
frame.Position = UDim2.new(startPos.Width.Scale, startPos.Width.Offset + delta.X, startPos.Height.Scale, startPos.Height.Offset + delta.Y)
end
end)
end
local function CreateRainbowStroke(parent)
local stroke = Instance.new("UIStroke")
stroke.Thickness = 2
stroke.Parent = parent
task.spawn(function()
while stroke.Parent do
local hue = tick() % 5 / 5
stroke.Color = Color3.fromHSV(hue, 1, 1)
task.wait()
end
end)
end
--// 1. Movable Logo
local LogoBtn = Instance.new("ImageButton")
LogoBtn.Parent = ScreenGui
LogoBtn.Size = UDim2.new(0, 50, 0, 50)
LogoBtn.Position = UDim2.new(0.1, 0, 0.5, -25)
LogoBtn.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
LogoBtn.Image = "rbxassetid://6331515291"
LogoBtn.BorderSizePixel = 0
Instance.new("UICorner", LogoBtn).CornerRadius = UDim.new(0, 25)
CreateRainbowStroke(LogoBtn)
MakeDraggable(LogoBtn)
--// Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
MainFrame.Position = UDim2.new(0.5, -90, 0.5, -130)
MainFrame.Size = UDim2.new(0, 180, 0, 260)
MainFrame.Visible = false
Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 10)
CreateRainbowStroke(MainFrame)
MakeDraggable(MainFrame)
LogoBtn.MouseButton1Click:Connect(function()
MainFrame.Visible = not MainFrame.Visible
end)
local Title = Instance.new("TextLabel", MainFrame)
Title.BackgroundTransparency = 1
Title.Size = UDim2.new(1, 0, 0, 35)
Title.Text = "Deflect_Hub"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 13
--// Buttons Helper
local function StyleBtn(text, pos, color)
local btn = Instance.new("TextButton", MainFrame)
btn.Text = text
btn.Size = UDim2.new(0.9, 0, 0, 35)
btn.Position = pos
btn.BackgroundColor3 = color or Color3.fromRGB(30, 30, 30)
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Font = Enum.Font.GothamBold
btn.TextSize = 10
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
return btn
end
--// Features Logic
local autoDeflect = false
local OneClickBtn = StyleBtn("ğŸ›¡ï¸ 1-CLICK DEFLECT", UDim2.new(0.05, 0, 0.18, 0))
local AutoDeflectBtn = StyleBtn("🤖 AUTO DEFLECT: OFF", UDim2.new(0.05, 0, 0.36, 0))
local VIPBtn = StyleBtn("💺 GET VIP SEAT", UDim2.new(0.05, 0, 0.54, 0))
local DestroyBtn = StyleBtn("DESTROY UI", UDim2.new(0.05, 0, 0.8, 0), Color3.fromRGB(150, 0, 0))
-- 1. Deflect (1 Click Mode)
OneClickBtn.MouseButton1Click:Connect(function()
if DeflectRemote then
DeflectRemote:FireServer("Deflect")
end
end)
-- 2. Deflect (Auto Mode Loop)
AutoDeflectBtn.MouseButton1Click:Connect(function()
autoDeflect = not autoDeflect
AutoDeflectBtn.Text = autoDeflect and "🤖 AUTO DEFLECT: ON" or "🤖 AUTO DEFLECT: OFF"
AutoDeflectBtn.BackgroundColor3 = autoDeflect and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(30, 30, 30)
if autoDeflect then
task.spawn(function()
while autoDeflect do
if DeflectRemote then
DeflectRemote:FireServer("Deflect")
end
task.wait(0.01) -- Fast loop for deflecting
end
end)
end
end)
-- 3. Get VIP Seat (Teleport)
VIPBtn.MouseButton1Click:Connect(function()
local char = LocalPlayer.Character
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.CFrame = CFrame.new(51.0, 3.0, 69.0)
end
end)
-- 4. Destroy
DestroyBtn.MouseButton1Click:Connect(function()
autoDeflect = false
ScreenGui:Destroy()
end)Clean, responsive, and actually useful. This script gives you full control over deflect timing with both instant and auto modes, so you never miss a shot. The auto deflect runs on a fast loop for consistent reactions, while the one-click option lets you play manually when needed.
Includes a simple draggable UI with smooth visuals, plus a quick VIP seat teleport for better positioning. Everything is open source, lightweight, and built to run without issues on both mobile and PC. No key system, no unnecessary bloat just a solid, reliable tool that does exactly what it should.
No comments yet. Be the first to comment!
1local CoreGui = game:GetService("CoreGui")
2local RunService = game:GetService("RunService")
3local UserInputService = game:GetService("UserInputService")
4local ReplicatedStorage = game:GetService("ReplicatedStorage")
5local LocalPlayer = game:GetService("Players").LocalPlayer
6
7local ScreenGui = Instance.new("ScreenGui")
8ScreenGui.Name = "Deflect_Hub"
9ScreenGui.Parent = CoreGui
10ScreenGui.ResetOnSpawn = false
11
12--// Remote Reference
13local DeflectRemote = ReplicatedStorage:WaitForChild("Remotes", 5):WaitForChild("ConfirmPickEvent", 5)
14
15--// Utilities
16local function MakeDraggable(frame, dragHandle)
17 local dragging, dragInput, dragStart, startPos
18 dragHandle = dragHandle or frame
19 dragHandle.InputBegan:Connect(function(input)
20 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
21 dragging = true
22 dragStart = input.Position
23 startPos = frame.Position
24 input.Changed:Connect(function()
25 if input.UserInputState == Enum.UserInputState.End then dragging = false end
26 end)
27 end
28 end)
29 frame.InputChanged:Connect(function(input)
30 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end
31 end)
32 UserInputService.InputChanged:Connect(function(input)
33 if input == dragInput and dragging then
34 local delta = input.Position - dragStart
35 frame.Position = UDim2.new(startPos.Width.Scale, startPos.Width.Offset + delta.X, startPos.Height.Scale, startPos.Height.Offset + delta.Y)
36 end
37 end)
38end
39
40local function CreateRainbowStroke(parent)
41 local stroke = Instance.new("UIStroke")
42 stroke.Thickness = 2
43 stroke.Parent = parent
44 task.spawn(function()
45 while stroke.Parent do
46 local hue = tick() % 5 / 5
47 stroke.Color = Color3.fromHSV(hue, 1, 1)
48 task.wait()
49 end
50 end)
51end
52
53--// 1. Movable Logo
54local LogoBtn = Instance.new("ImageButton")
55LogoBtn.Parent = ScreenGui
56LogoBtn.Size = UDim2.new(0, 50, 0, 50)
57LogoBtn.Position = UDim2.new(0.1, 0, 0.5, -25)
58LogoBtn.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
59LogoBtn.Image = "rbxassetid://6331515291"
60LogoBtn.BorderSizePixel = 0
61Instance.new("UICorner", LogoBtn).CornerRadius = UDim.new(0, 25)
62CreateRainbowStroke(LogoBtn)
63MakeDraggable(LogoBtn)
64
65--// Main Frame
66local MainFrame = Instance.new("Frame")
67MainFrame.Parent = ScreenGui
68MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
69MainFrame.Position = UDim2.new(0.5, -90, 0.5, -130)
70MainFrame.Size = UDim2.new(0, 180, 0, 260)
71MainFrame.Visible = false
72Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 10)
73CreateRainbowStroke(MainFrame)
74MakeDraggable(MainFrame)
75
76LogoBtn.MouseButton1Click:Connect(function()
77 MainFrame.Visible = not MainFrame.Visible
78end)
79
80local Title = Instance.new("TextLabel", MainFrame)
81Title.BackgroundTransparency = 1
82Title.Size = UDim2.new(1, 0, 0, 35)
83Title.Text = "Deflect_Hub"
84Title.TextColor3 = Color3.new(1, 1, 1)
85Title.Font = Enum.Font.GothamBold
86Title.TextSize = 13
87
88--// Buttons Helper
89local function StyleBtn(text, pos, color)
90 local btn = Instance.new("TextButton", MainFrame)
91 btn.Text = text
92 btn.Size = UDim2.new(0.9, 0, 0, 35)
93 btn.Position = pos
94 btn.BackgroundColor3 = color or Color3.fromRGB(30, 30, 30)
95 btn.TextColor3 = Color3.new(1, 1, 1)
96 btn.Font = Enum.Font.GothamBold
97 btn.TextSize = 10
98 Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
99 return btn
100end
101
102--// Features Logic
103local autoDeflect = false
104
105local OneClickBtn = StyleBtn("ğŸ›¡ï¸ 1-CLICK DEFLECT", UDim2.new(0.05, 0, 0.18, 0))
106local AutoDeflectBtn = StyleBtn("🤖 AUTO DEFLECT: OFF", UDim2.new(0.05, 0, 0.36, 0))
107local VIPBtn = StyleBtn("💺 GET VIP SEAT", UDim2.new(0.05, 0, 0.54, 0))
108local DestroyBtn = StyleBtn("DESTROY UI", UDim2.new(0.05, 0, 0.8, 0), Color3.fromRGB(150, 0, 0))
109
110-- 1. Deflect (1 Click Mode)
111OneClickBtn.MouseButton1Click:Connect(function()
112 if DeflectRemote then
113 DeflectRemote:FireServer("Deflect")
114 end
115end)
116
117-- 2. Deflect (Auto Mode Loop)
118AutoDeflectBtn.MouseButton1Click:Connect(function()
119 autoDeflect = not autoDeflect
120 AutoDeflectBtn.Text = autoDeflect and "🤖 AUTO DEFLECT: ON" or "🤖 AUTO DEFLECT: OFF"
121 AutoDeflectBtn.BackgroundColor3 = autoDeflect and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(30, 30, 30)
122
123 if autoDeflect then
124 task.spawn(function()
125 while autoDeflect do
126 if DeflectRemote then
127 DeflectRemote:FireServer("Deflect")
128 end
129 task.wait(0.01) -- Fast loop for deflecting
130 end
131 end)
132 end
133end)
134
135-- 3. Get VIP Seat (Teleport)
136VIPBtn.MouseButton1Click:Connect(function()
137 local char = LocalPlayer.Character
138 local hrp = char and char:FindFirstChild("HumanoidRootPart")
139 if hrp then
140 hrp.CFrame = CFrame.new(51.0, 3.0, 69.0)
141 end
142end)
143
144-- 4. Destroy
145DestroyBtn.MouseButton1Click:Connect(function()
146 autoDeflect = false
147 ScreenGui:Destroy()
148end)