forked from tbao143/thaibao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TbaoHubBallBlade
512 lines (441 loc) · 13.2 KB
/
TbaoHubBallBlade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
loadstring(game:HttpGet(("https://raw.githubusercontent.com/REDzHUB/LibraryV2/main/redzLib")))()
MakeWindow({
Hub = {
Title = "Tbao Hub | Ball blade ",
Animation = "by thaibao7444"
},
Key = {
KeySystem = false,
Title = "Key System",
Description = "",
KeyLink = "",
Keys = {"1234"},
Notifi = {
Notifications = true,
CorrectKey = "Running the Script...",
Incorrectkey = "The key is incorrect",
CopyKeyLink = "Copied to Clipboard"
}
}
})
Main = MakeTab({Name = "Main"})
local section = AddSection(Main, {"Auto parry"})
local Toggle = AddButton(Main, {
Name = "Auto parry 1",
Default = false,
Callback = function(Value)
local function get_plr()
return game.Players.LocalPlayer
end
local function get_plrChar()
local plrChar = get_plr().Character
if plrChar then
return plrChar
end
end
local function get_plrRP()
local plrRP = get_plrChar():FindFirstChild("HumanoidRootPart")
if plrRP then
return plrRP
end
end
local function playerJump()
pcall(function()
game.Players.LocalPlayer.Character.Humanoid.Jump = true
end)
end
local function get_PlayersNumber()
local Alive = workspace:WaitForChild("Alive", 20):GetChildren()
local PlayersNumber = 0
for _,v in pairs(Alive) do
if v and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 50 then
PlayersNumber = PlayersNumber + 1
end
end
return PlayersNumber
end
local function get_ProxyPlayer()
local Players = workspace:WaitForChild("Alive"):GetChildren()
local Distance = math.huge
local plr = game.Players.LocalPlayer
local plrRP = plr.Character:FindFirstChild("HumanoidRootPart")
local Player = nil
for _,plr1 in pairs(Players) do
if plr1.Name ~= plr.Name and plrRP and plr1:FindFirstChild("HumanoidRootPart") and plr1:FindFirstChild("Humanoid") and plr1.Humanoid.Health > 50 then
local magnitude = (plr1.HumanoidRootPart.Position - plrRP.Position).Magnitude
if magnitude <= Distance then
Distance = magnitude
Player = plr1
end
end
end
return Player
end
local function Click_Button()
task.spawn(function()
local plr = game.Players.LocalPlayer
local plrFind = workspace.Alive:FindFirstChild(plr.Name)
if plrFind then
local plrs = 0
for _,v in pairs(workspace:WaitForChild("Alive", 10):GetChildren()) do
plrs = plrs + 1
end
if plrs > 1 then
local args = {[1] = 1.5,[2] = CFrame.new(-254, 112, -119) * CFrame.Angles(-2, 0, 2),[3] = {
["2617721424"] = Vector3.new(-273, -724, -20),
},[4] = {[1] = 910,[2] = 154}}
game:GetService("ReplicatedStorage").Remotes.ParryAttempt:FireServer(unpack(args))task.wait()
end
end
end)
end
task.spawn(function()
while task.wait() do
if getgenv().SpamClickA then
Click_Button()
end
end
end)
local function DetectSpam()
local Balls = workspace:WaitForChild("Balls", 20)
local OldPos = Vector3.new()
local OldTick1 = tick()
local OldBall = Balls
local TargetPlayer = ""
local SpamNum = 0
local BallSpeed = 0
local BallDistance = 0
task.spawn(function()
local OldTick = tick()
local OldPos = Vector3.new()
while getgenv().DetectSpam do task.wait()
local plrRP = get_plrRP()
local Ball = Balls:FindFirstChildOfClass("Part")
if plrRP and Ball then
BallDistance = (plrRP.Position - Ball.Position).Magnitude
BallSpeed = (OldPos - Ball.Position).Magnitude
if tick() - OldTick >= 1/60 then
OldTick = tick()
OldPos = Ball.Position
end
end
end
end)
while getgenv().DetectSpam do task.wait()
local Ball = Balls:FindFirstChildOfClass("Part")
local plrRP = get_plrRP()
local ProxyPlayer = get_ProxyPlayer()
if not Ball then
getgenv().SpamClickA = false
end
if Ball and Ball:GetAttribute("realBall") and OldBall ~= Ball then
Ball.Changed:Connect(function()task.wait()
local Ball = Balls:FindFirstChildOfClass("Part")
if Ball then
TargetPlayer = Ball:GetAttribute("target")
if ProxyPlayer and TargetPlayer == ProxyPlayer.Name or get_plr() and TargetPlayer == get_plr().Name then
SpamNum = SpamNum + 1
else
SpamNum = 0
end
local args = ProxyPlayer and ProxyPlayer:FindFirstChild("HumanoidRootPart")
local HL1 = ProxyPlayer and ProxyPlayer:FindFirstChild("Highlight")
local HL2 = get_plrChar() and get_plrChar():FindFirstChild("Highlight")
if plrRP and HL1 and args or plrRP and HL2 and args then
local DistancePlayer = (ProxyPlayer.HumanoidRootPart.Position - plrRP.Position).Magnitude
local DistanceBall = (Ball.Position - plrRP.Position).Magnitude
if get_PlayersNumber() < 3 then
if DistancePlayer <= 30 and DistanceBall <= 35 and SpamNum >= 2 then
getgenv().SpamClickA = true
else
getgenv().SpamClickA = false
end
else
if DistancePlayer <= 30 and DistanceBall <= 35 and SpamNum >= 3 then
getgenv().SpamClickA = true
else
getgenv().SpamClickA = false
end
end
else
getgenv().SpamClickA = false
end
end
end)
OldBall = Ball
end
end
end
getgenv().DetectSpam = true
DetectSpam()
end
})
local Toggle = AddButton(Main, {
Name = "Auto parry 2",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/DonGabrielle/AutoDetectV4/main/MainBalls"))()
end
})
local Toggle = AddButton(Main, {
Name = "Auto parry 3",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Hosvile/Refinement/main/MC%3ABlade%20Ball%20Parry"))()
end
})
local Toggle = AddButton(Main, {
Name = "Auto parry 4",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Code4Zaaa/X7Project/main/Game/AutoParryOnly"))()
end
})
local section = AddSection(Main, {"Spam"})
local Toggle = AddButton(Main, {
Name = "Spam 1",
Default = false,
Callback = function(Value)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local replicatedStorage = game:GetService("ReplicatedStorage")
local runService = game:GetService("RunService")
local parryButtonPress = replicatedStorage.Remotes.ParryButtonPress
local ballsFolder = workspace:WaitForChild("Balls")
print("Script successfully ran.")
local function onCharacterAdded(newCharacter)
character = newCharacter
end
player.CharacterAdded:Connect(onCharacterAdded)
local focusedBall = nil
local function chooseNewFocusedBall()
local balls = ballsFolder:GetChildren()
focusedBall = nil
for _, ball in ipairs(balls) do
if ball:GetAttribute("realBall") == true then
focusedBall = ball
break
end
end
end
chooseNewFocusedBall()
local function timeUntilImpact(ballVelocity, distanceToPlayer, playerVelocity)
local directionToPlayer = (character.HumanoidRootPart.Position - focusedBall.Position).Unit
local velocityTowardsPlayer = ballVelocity:Dot(directionToPlayer) - playerVelocity:Dot(directionToPlayer)
if velocityTowardsPlayer <= 0 then
return math.huge
end
local distanceToBeCovered = distanceToPlayer - 30
return distanceToBeCovered / velocityTowardsPlayer
end
local BASE_THRESHOLD = 0.15
local VELOCITY_SCALING_FACTOR = 0.002
local function getDynamicThreshold(ballVelocityMagnitude)
local adjustedThreshold = BASE_THRESHOLD - (ballVelocityMagnitude * VELOCITY_SCALING_FACTOR)
return math.max(0.12, adjustedThreshold)
end
local function checkBallDistance()
if not character:FindFirstChild("Highlight") then return end
local charPos = character.PrimaryPart.Position
local charVel = character.PrimaryPart.Velocity
if focusedBall and not focusedBall.Parent then
chooseNewFocusedBall()
end
if not focusedBall then return end
local ball = focusedBall
local distanceToPlayer = (ball.Position - charPos).Magnitude
if distanceToPlayer < 10 then
parryButtonPress:Fire()
return
end
local timeToImpact = timeUntilImpact(ball.Velocity, distanceToPlayer, charVel)
local dynamicThreshold = getDynamicThreshold(ball.Velocity.Magnitude)
if timeToImpact < dynamicThreshold then
parryButtonPress:Fire()
end
end
runService.Heartbeat:Connect(function()
checkBallDistance()
end)
end
})
local Toggle = AddButton(Main, {
Name = "Spam 2",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/Hosvile/Refinement/main/MC%3ABlade%20Ball%20Parry%20V4.0.0"))()
end
})
local section = AddSection(Main, {"by thaibao7444 ower Tbao Hub"})
local section = AddSection(Main, {"Spam vip 👑"})
local Toggle = AddButton(Main, {
Name = "Spam 1",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/DonGabrielle/AutoDetectV4/main/MainBalls"))()
end
})
local Toggle = AddButton(Main, {
Name = "Spam 2",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://pastebin.com/raw/t2391h1A"))()
end
})
local Toggle = AddButton(Main, {
Name = "Spam 3",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://pastebin.com/raw/HPNBFGSf"))()
end
})
Main = MakeTab({Name = "Misc"})
AddTextBox(Main, {
Name = "Speed",
Default = "",
PlaceholderText = "",
ClearText = true,
Callback = function(value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
end
})
AddTextBox(Main, {
Name = "Jump",
Default = "",
PlaceholderText = "",
ClearText = true,
Callback = function(value)
game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
end
})
AddTextBox(Main, {
Name = "Fov",
Default = "",
PlaceholderText = "",
ClearText = true,
Callback = function(value)
local FovNumber = value
local Camera = workspace.CurrentCamera
Camera.FieldOfView = FovNumber
end
})
local Toggle = AddButton(Main, {
Name = "No clip",
Default = false,
Callback = function(Value)
local Noclip = nil
local Clip = nil
function noclip()
Clip = false
local function Nocl()
if Clip == false and game.Players.LocalPlayer.Character ~= nil then
for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
v.CanCollide = false
end
end
end
wait(0.21) -- basic optimization
end
Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
end
function clip()
if Noclip then Noclip:Disconnect() end
Clip = true
end
noclip() -- to toggle noclip() and clip(
end
})
local Toggle = AddButton(Main, {
Name = "Sever hop",
Default = false,
Callback = function(Value)
local Http = game:GetService("HttpService")
local TPS = game:GetService("TeleportService")
local Api = "https://games.roblox.com/v1/games/"
local _place = game.PlaceId
local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
function ListServers(cursor)
local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
return Http:JSONDecode(Raw)
end
local Server, Next; repeat
local Servers = ListServers(Next)
Server = Servers.data[1]
Next = Servers.nextPageCursor
until Server
TPS:TeleportToPlaceInstance(_place,Server.id,game.Players.LocalPlayer)
end
})
local Toggle = AddButton(Main, {
Name = "Rejoin",
Default = false,
Callback = function(Value)
local ts = game:GetService("TeleportService")
local p = game:GetService("Players").LocalPlayer
ts:Teleport(game.PlaceId, p)
end
})
local Toggle = AddButton(Main, {
Name = "Delete gui",
Default = false,
Callback = function(Value)
DestroyScript()
end
})
local Toggle = AddButton(Main, {
Name = "Infinite jump",
Default = false,
Callback = function(Value)
loadstring(game:HttpGet("https://raw.githubusercontent.com/BsGlitch/-nfJumps/main/BsGlitch"))()
end
})
local Toggle = AddButton(Main, {
Name = "Remove textures",
Default = false,
Callback = function(Value)
local ToDisable = {
Textures = false,
VisualEffects = true,
Parts = true,
Particles = true,
Sky = true
}
local ToEnable = {
FullBright = false
}
local Stuff = {}
for _, v in next, game:GetDescendants() do
if ToDisable.Parts then
if v:IsA("Part") or v:IsA("Union") or v:IsA("BasePart") then
v.Material = Enum.Material.SmoothPlastic
table.insert(Stuff, 1, v)
end
end
if ToDisable.Particles then
if v:IsA("ParticleEmitter") or v:IsA("Smoke") or v:IsA("Explosion") or v:IsA("Sparkles") or v:IsA("Fire") then
v.Enabled = false
table.insert(Stuff, 1, v)
end
end
if ToDisable.VisualEffects then
if v:IsA("BloomEffect") or v:IsA("BlurEffect") or v:IsA("DepthOfFieldEffect") or v:IsA("SunRaysEffect") then
v.Enabled = false
table.insert(Stuff, 1, v)
end
end
if ToDisable.Textures then
if v:IsA("Decal") or v:IsA("Texture") then
v.Texture = ""
table.insert(Stuff, 1, v)
end
end
if ToDisable.Sky then
if v:IsA("Sky") then
v.Parent = nil
table.insert(Stuff, 1, v)
end
end
end
end
})