local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui")
-- ========================================================
-- CLEAN MINIMALIST INTERFACE DESIGN
-- ========================================================
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "FlingControllerUI"
ScreenGui.Parent = CoreGui:FindFirstChild("RobloxGui") or CoreGui
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 240, 0, 180)
MainFrame.Position = UDim2.new(0.5, -120, 0.4, -90)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = ScreenGui
local Corner = Instance.new("UICorner")
Corner.CornerRadius = UDim.new(0, 8)
Corner.Parent = MainFrame
local TitleLabel = Instance.new("TextLabel")
TitleLabel.Size = UDim2.new(1, 0, 0, 30)
TitleLabel.BackgroundTransparency = 1
TitleLabel.Text = "🚗 PREDICTIVE FLING CONTROLLER"
TitleLabel.TextColor3 = Color3.fromRGB(240, 240, 240)
TitleLabel.Font = Enum.Font.SourceSansBold
TitleLabel.TextSize = 14
TitleLabel.Parent = MainFrame
local UserInput = Instance.new("TextBox")
UserInput.Size = UDim2.new(0, 200, 0, 35)
UserInput.Position = UDim2.new(0.5, -100, 0, 40)
UserInput.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
UserInput.BorderSizePixel = 0
UserInput.Text = ""
UserInput.PlaceholderText = "Enter target username..."
UserInput.TextColor3 = Color3.fromRGB(255, 255, 255)
UserInput.PlaceholderColor3 = Color3.fromRGB(150, 150, 150)
UserInput.Font = Enum.Font.SourceSans
UserInput.TextSize = 14
UserInput.Parent = MainFrame
local InputCorner = Instance.new("UICorner")
InputCorner.CornerRadius = UDim.new(0, 5)
InputCorner.Parent = UserInput
local ActionButton = Instance.new("TextButton")
ActionButton.Size = UDim2.new(0, 200, 0, 35)
ActionButton.Position = UDim2.new(0.5, -100, 0, 85)
ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
ActionButton.BorderSizePixel = 0
ActionButton.Text = "HUNT & FLING"
ActionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ActionButton.Font = Enum.Font.SourceSansBold
ActionButton.TextSize = 14
ActionButton.Parent = MainFrame
local ButtonCorner = Instance.new("UICorner")
ButtonCorner.CornerRadius = UDim.new(0, 5)
ButtonCorner.Parent = ActionButton
local ResetButton = Instance.new("TextButton")
ResetButton.Size = UDim2.new(0, 200, 0, 35)
ResetButton.Position = UDim2.new(0.5, -100, 0, 130)
ResetButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
ResetButton.BorderSizePixel = 0
ResetButton.Text = "PANIC RESET"
ResetButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ResetButton.Font = Enum.Font.SourceSansBold
ResetButton.TextSize = 12
ResetButton.Parent = MainFrame
local ResetCorner = Instance.new("UICorner")
ResetCorner.CornerRadius = UDim.new(0, 5)
ResetCorner.Parent = ResetButton
-- ========================================================
-- MECHANICS EXECUTION LOGIC
-- ========================================================
local currentConnection = nil
local function findPartialPlayer(name)
for _, p in pairs(Players:GetPlayers()) do
if p.Name:lower():sub(1, #name) == name:lower() or p.DisplayName:lower():sub(1, #name) == name:lower() then
return p
end
end
return nil
end
ActionButton.MouseButton1Click:Connect(function()
if currentConnection then
currentConnection:Disconnect()
currentConnection = nil
ActionButton.Text = "HUNT & FLING"
ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
return
end
local localPlayer = Players.LocalPlayer
local localChar = localPlayer.Character
local localHumanoid = localChar and localChar:FindFirstChildOfClass("Humanoid")
local car = nil
if localHumanoid and localHumanoid.SeatPart then
local obj = localHumanoid.SeatPart
while obj and obj.Parent ~= workspace:FindFirstChild("CarContainer") and obj.Parent ~= workspace do
obj = obj.Parent
end
if obj and obj.Parent == workspace:FindFirstChild("CarContainer") then
car = obj
end
else
ActionButton.Text = "SIT IN A CAR FIRST!"
task.wait(1.5)
ActionButton.Text = "HUNT & FLING"
return
end
if not car then
ActionButton.Text = "CAR LAYER DETECT FAILED"
task.wait(1.5)
ActionButton.Text = "HUNT & FLING"
return
end
local wheelsFolder = car:FindFirstChild("Wheels")
local wheel = wheelsFolder and wheelsFolder:GetChildren()[4]
local targetPlayer = findPartialPlayer(UserInput.Text)
local targetChar = targetPlayer and targetPlayer.Character
if not targetChar or not targetChar:FindFirstChild("HumanoidRootPart") or not wheel then
ActionButton.Text = "TARGET NOT FOUND"
task.wait(1.5)
ActionButton.Text = "HUNT & FLING"
return
end
local targetRoot = targetChar.HumanoidRootPart
local localRoot = localChar.HumanoidRootPart
local targetHumanoid = targetChar:FindFirstChildOfClass("Humanoid")
ActionButton.Text = "STOP HUNTING (ACTIVE)"
ActionButton.BackgroundColor3 = Color3.fromRGB(230, 140, 0)
local predictionScale = 0.22
currentConnection = RunService.Heartbeat:Connect(function()
-- DEATH & VALIDITY CHECK
if not targetChar or not targetRoot or not wheel or not car or not localChar or not localRoot
or (targetHumanoid and targetHumanoid.Health <= 0)
or (localHumanoid and localHumanoid.Health <= 0) then
if currentConnection then currentConnection:Disconnect() end
currentConnection = nil
ActionButton.Text = "HUNT & FLING"
ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
return
end
-- Disable local collisions
for _, part in pairs(localChar:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
-- CALCULATE LATENCY INTERPOLATION PREDICTION
local targetVelocity = targetRoot.AssemblyLinearVelocity
local predictedPosition = targetRoot.Position + (targetVelocity * predictionScale)
local predictedCFrame = CFrame.new(predictedPosition) * (targetRoot.CFrame - targetRoot.Position)
-- TOUGHNESS / TOUCH CHECK: Calculate edge-to-edge distance between weapon wheel and target torso
local actualDistance = (wheel.Position - targetRoot.Position).Magnitude
local touchThreshold = (wheel.Size.Y / 2) + (targetRoot.Size.Y / 2) + 0.5 -- Dynamic size radius check
if actualDistance <= touchThreshold then
-- EXACT TOUCHING POINT: Force instant high velocity collision
wheel.AssemblyAngularVelocity = Vector3.new(150000, 150000, 150000)
wheel.AssemblyLinearVelocity = Vector3.new(150000, 150000, 150000)
else
-- GLUED TRACKING MODE: Fast tracking speed without physics breaking velocities
wheel.AssemblyAngularVelocity = Vector3.new(8000, 8000, 8000)
wheel.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
end
-- Snap position based entirely on predicted vectors
localRoot.CFrame = predictedCFrame * CFrame.new(0, -1.5, 0)
localRoot.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
wheel.CFrame = predictedCFrame
end)
end)
ResetButton.MouseButton1Click:Connect(function()
if currentConnection then
currentConnection:Disconnect()
currentConnection = nil
ActionButton.Text = "HUNT & FLING"
ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
end
local localChar = Players.LocalPlayer.Character
local localHumanoid = localChar and localChar:FindFirstChildOfClass("Humanoid")
if localHumanoid then
localHumanoid.Health = 0
end
end)something i vibecoded in a few hours, was trying to make the wheel fling the player but ended up making this instead. it's by no means good but when it works it's funny af.
only works outside the prison, but works at the prison walls and car park. that's the best place to use it.
you should make a waypoint via inf yield next to the garage
No comments yet. Be the first to comment!
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local CoreGui = game:GetService("CoreGui")
4
5-- ========================================================
6-- CLEAN MINIMALIST INTERFACE DESIGN
7-- ========================================================
8local ScreenGui = Instance.new("ScreenGui")
9ScreenGui.Name = "FlingControllerUI"
10ScreenGui.Parent = CoreGui:FindFirstChild("RobloxGui") or CoreGui
11
12local MainFrame = Instance.new("Frame")
13MainFrame.Size = UDim2.new(0, 240, 0, 180)
14MainFrame.Position = UDim2.new(0.5, -120, 0.4, -90)
15MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
16MainFrame.BorderSizePixel = 0
17MainFrame.Active = true
18MainFrame.Draggable = true
19MainFrame.Parent = ScreenGui
20
21local Corner = Instance.new("UICorner")
22Corner.CornerRadius = UDim.new(0, 8)
23Corner.Parent = MainFrame
24
25local TitleLabel = Instance.new("TextLabel")
26TitleLabel.Size = UDim2.new(1, 0, 0, 30)
27TitleLabel.BackgroundTransparency = 1
28TitleLabel.Text = "🚗 PREDICTIVE FLING CONTROLLER"
29TitleLabel.TextColor3 = Color3.fromRGB(240, 240, 240)
30TitleLabel.Font = Enum.Font.SourceSansBold
31TitleLabel.TextSize = 14
32TitleLabel.Parent = MainFrame
33
34local UserInput = Instance.new("TextBox")
35UserInput.Size = UDim2.new(0, 200, 0, 35)
36UserInput.Position = UDim2.new(0.5, -100, 0, 40)
37UserInput.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
38UserInput.BorderSizePixel = 0
39UserInput.Text = ""
40UserInput.PlaceholderText = "Enter target username..."
41UserInput.TextColor3 = Color3.fromRGB(255, 255, 255)
42UserInput.PlaceholderColor3 = Color3.fromRGB(150, 150, 150)
43UserInput.Font = Enum.Font.SourceSans
44UserInput.TextSize = 14
45UserInput.Parent = MainFrame
46
47local InputCorner = Instance.new("UICorner")
48InputCorner.CornerRadius = UDim.new(0, 5)
49InputCorner.Parent = UserInput
50
51local ActionButton = Instance.new("TextButton")
52ActionButton.Size = UDim2.new(0, 200, 0, 35)
53ActionButton.Position = UDim2.new(0.5, -100, 0, 85)
54ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
55ActionButton.BorderSizePixel = 0
56ActionButton.Text = "HUNT & FLING"
57ActionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
58ActionButton.Font = Enum.Font.SourceSansBold
59ActionButton.TextSize = 14
60ActionButton.Parent = MainFrame
61
62local ButtonCorner = Instance.new("UICorner")
63ButtonCorner.CornerRadius = UDim.new(0, 5)
64ButtonCorner.Parent = ActionButton
65
66local ResetButton = Instance.new("TextButton")
67ResetButton.Size = UDim2.new(0, 200, 0, 35)
68ResetButton.Position = UDim2.new(0.5, -100, 0, 130)
69ResetButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
70ResetButton.BorderSizePixel = 0
71ResetButton.Text = "PANIC RESET"
72ResetButton.TextColor3 = Color3.fromRGB(255, 255, 255)
73ResetButton.Font = Enum.Font.SourceSansBold
74ResetButton.TextSize = 12
75ResetButton.Parent = MainFrame
76
77local ResetCorner = Instance.new("UICorner")
78ResetCorner.CornerRadius = UDim.new(0, 5)
79ResetCorner.Parent = ResetButton
80
81-- ========================================================
82-- MECHANICS EXECUTION LOGIC
83-- ========================================================
84local currentConnection = nil
85
86local function findPartialPlayer(name)
87 for _, p in pairs(Players:GetPlayers()) do
88 if p.Name:lower():sub(1, #name) == name:lower() or p.DisplayName:lower():sub(1, #name) == name:lower() then
89 return p
90 end
91 end
92 return nil
93end
94
95ActionButton.MouseButton1Click:Connect(function()
96 if currentConnection then
97 currentConnection:Disconnect()
98 currentConnection = nil
99 ActionButton.Text = "HUNT & FLING"
100 ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
101 return
102 end
103
104 local localPlayer = Players.LocalPlayer
105 local localChar = localPlayer.Character
106 local localHumanoid = localChar and localChar:FindFirstChildOfClass("Humanoid")
107
108 local car = nil
109 if localHumanoid and localHumanoid.SeatPart then
110 local obj = localHumanoid.SeatPart
111 while obj and obj.Parent ~= workspace:FindFirstChild("CarContainer") and obj.Parent ~= workspace do
112 obj = obj.Parent
113 end
114 if obj and obj.Parent == workspace:FindFirstChild("CarContainer") then
115 car = obj
116 end
117 else
118 ActionButton.Text = "SIT IN A CAR FIRST!"
119 task.wait(1.5)
120 ActionButton.Text = "HUNT & FLING"
121 return
122 end
123
124 if not car then
125 ActionButton.Text = "CAR LAYER DETECT FAILED"
126 task.wait(1.5)
127 ActionButton.Text = "HUNT & FLING"
128 return
129 end
130
131 local wheelsFolder = car:FindFirstChild("Wheels")
132 local wheel = wheelsFolder and wheelsFolder:GetChildren()[4]
133
134 local targetPlayer = findPartialPlayer(UserInput.Text)
135 local targetChar = targetPlayer and targetPlayer.Character
136
137 if not targetChar or not targetChar:FindFirstChild("HumanoidRootPart") or not wheel then
138 ActionButton.Text = "TARGET NOT FOUND"
139 task.wait(1.5)
140 ActionButton.Text = "HUNT & FLING"
141 return
142 end
143
144 local targetRoot = targetChar.HumanoidRootPart
145 local localRoot = localChar.HumanoidRootPart
146 local targetHumanoid = targetChar:FindFirstChildOfClass("Humanoid")
147
148 ActionButton.Text = "STOP HUNTING (ACTIVE)"
149 ActionButton.BackgroundColor3 = Color3.fromRGB(230, 140, 0)
150
151 local predictionScale = 0.22
152
153 currentConnection = RunService.Heartbeat:Connect(function()
154 -- DEATH & VALIDITY CHECK
155 if not targetChar or not targetRoot or not wheel or not car or not localChar or not localRoot
156 or (targetHumanoid and targetHumanoid.Health <= 0)
157 or (localHumanoid and localHumanoid.Health <= 0) then
158
159 if currentConnection then currentConnection:Disconnect() end
160 currentConnection = nil
161 ActionButton.Text = "HUNT & FLING"
162 ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
163 return
164 end
165
166 -- Disable local collisions
167 for _, part in pairs(localChar:GetDescendants()) do
168 if part:IsA("BasePart") then
169 part.CanCollide = false
170 end
171 end
172
173 -- CALCULATE LATENCY INTERPOLATION PREDICTION
174 local targetVelocity = targetRoot.AssemblyLinearVelocity
175 local predictedPosition = targetRoot.Position + (targetVelocity * predictionScale)
176 local predictedCFrame = CFrame.new(predictedPosition) * (targetRoot.CFrame - targetRoot.Position)
177
178 -- TOUGHNESS / TOUCH CHECK: Calculate edge-to-edge distance between weapon wheel and target torso
179 local actualDistance = (wheel.Position - targetRoot.Position).Magnitude
180 local touchThreshold = (wheel.Size.Y / 2) + (targetRoot.Size.Y / 2) + 0.5 -- Dynamic size radius check
181
182 if actualDistance <= touchThreshold then
183 -- EXACT TOUCHING POINT: Force instant high velocity collision
184 wheel.AssemblyAngularVelocity = Vector3.new(150000, 150000, 150000)
185 wheel.AssemblyLinearVelocity = Vector3.new(150000, 150000, 150000)
186 else
187 -- GLUED TRACKING MODE: Fast tracking speed without physics breaking velocities
188 wheel.AssemblyAngularVelocity = Vector3.new(8000, 8000, 8000)
189 wheel.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
190 end
191
192 -- Snap position based entirely on predicted vectors
193 localRoot.CFrame = predictedCFrame * CFrame.new(0, -1.5, 0)
194 localRoot.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
195 wheel.CFrame = predictedCFrame
196 end)
197end)
198
199
200
201ResetButton.MouseButton1Click:Connect(function()
202 if currentConnection then
203 currentConnection:Disconnect()
204 currentConnection = nil
205 ActionButton.Text = "HUNT & FLING"
206 ActionButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
207 end
208
209 local localChar = Players.LocalPlayer.Character
210 local localHumanoid = localChar and localChar:FindFirstChildOfClass("Humanoid")
211 if localHumanoid then
212 localHumanoid.Health = 0
213 end
214end)