Advertisement
BlueIceWasTaken

Slap Battles Script

Oct 10th, 2022 (edited)
3,539
5
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.70 KB | Source Code | 5 0
  1. local vu = game:GetService("VirtualUser")
  2. local UIS = game:GetService("UserInputService")
  3.  
  4. local Player = game.Players.LocalPlayer
  5. local Mouse = Player:GetMouse()
  6.  
  7.  
  8. function GetCharacter()
  9. return game.Players.LocalPlayer.Character
  10. end
  11.  
  12. function Teleport(pos)
  13. local Char = GetCharacter()
  14. if Char then
  15. Char:MoveTo(pos)
  16. end
  17. end
  18.  
  19.  
  20. UIS.InputBegan:Connect(function(input)
  21. if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
  22. Teleport(Mouse.Hit.p)
  23. end
  24. end)
  25. game:GetService("Players").LocalPlayer.Idled:connect(function()
  26. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  27. wait(1)
  28. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  29. end)
  30.  
  31. local plr = game.Players.LocalPlayer
  32. -- Kick if admin
  33.  
  34. spawn(function ()
  35. while wait() do
  36. for i, child in ipairs(game.Players:GetChildren()) do
  37. if child.Name ~= plr.Name then
  38. if child:GetRankInGroup(9950771) >= 2 then
  39. plr:Kick("bruh u were abt to get banned")
  40. end
  41. end
  42. end
  43. end
  44. end)
  45.  
  46. local Library = loadstring(game:HttpGet("https://pastebin.com/raw/6W1ZqV53"))()
  47.  
  48.  
  49. -- Slap battles and slap royale
  50.  
  51.  
  52. local a = Library:Window("Slap Battles/Slap Royale")
  53.  
  54.  
  55.  
  56. -- Reach
  57.  
  58.  
  59. local reach = false
  60. a:Toggle("Reach", function (reach1)
  61. if reach1 == true then
  62.  
  63. reach = true
  64. else
  65.  
  66. reach = false
  67. end
  68.  
  69. end)
  70. function supaSiza(v)
  71.  
  72. if v:IsA("Tool") and reach == true then
  73.  
  74. v:WaitForChild("Glove").Transparency = 0.75
  75. v:WaitForChild("Glove").Size = Vector3.new(40, 40, 40)
  76.  
  77. else
  78. if v:IsA("Tool") then
  79. v:WaitForChild("Glove").Transparency = 0
  80. v:WaitForChild("Glove").Size = Vector3.new(2.55232, 2.88637, 1.06914)
  81. end
  82.  
  83. end
  84. end
  85. plr.Character.ChildAdded:Connect(supaSiza)
  86.  
  87. plr.CharacterAdded:Connect(function(char)
  88. char.ChildAdded:Connect(supaSiza)
  89. end)
  90.  
  91.  
  92. -- Dizy Hub
  93.  
  94.  
  95. a:Button("Dizy Hub", function ()
  96. loadstring(game:HttpGet("https://raw.githubusercontent.com/dizyhvh/slap_battles_gui/main/0.lua"))()
  97.  
  98. end)
  99.  
  100.  
  101.  
  102.  
  103. --Slap Battles Only
  104. if game.PlaceId == 6403373529 or game.PlaceId == 9015014224 then
  105. local b = Library:Window("Main Game")
  106.  
  107.  
  108.  
  109. --Dummy
  110.  
  111.  
  112.  
  113. local dummy = false
  114. b:Toggle("Mitten autofarm", function (dummy1)
  115. if dummy1 == true then
  116. dummy = true
  117. else
  118. dummy = false
  119. end
  120. end)
  121. spawn(function()
  122. while wait() do
  123. if dummy == true then
  124. local char = plr.Character
  125. while wait() do
  126. local a = game.Workspace:WaitForChild("Gift")
  127. a.CFrame = char.HumanoidRootPart.CFrame
  128. a.CanCollide = false
  129. end
  130. end
  131. end
  132. end)
  133.  
  134.  
  135.  
  136. --Speed
  137.  
  138.  
  139.  
  140. local speed = false
  141. b:Toggle("Speed", function (speed1)
  142. if speed1 == true then
  143. speed = true
  144. else
  145. plr.Character:WaitForChild("Humanoid").WalkSpeed = 20
  146. speed = false
  147. end
  148. end)
  149. spawn(function()
  150. while wait() do
  151. if speed == true then
  152. plr.Character:WaitForChild("Humanoid").WalkSpeed = 47
  153. end
  154. end
  155. end)
  156.  
  157.  
  158.  
  159. -- Teleports
  160. local c = Library:Window("Main Game Teleports")
  161. -- Create Safe Place
  162. local SafePlaceModel = Instance.new("Model", game.Workspace)
  163. SafePlaceModel.Name = "SafePlace"
  164.  
  165. local island = Instance.new("Part")
  166. island.Parent = SafePlaceModel
  167. island.Size = Vector3.new(100, 1, 100)
  168. island.Transparency = 0
  169. island.Material = Enum.Material.Grass
  170. island.Color = Color3.fromRGB(127, 255, 127)
  171. island.Position = Vector3.new (4096, 200, 4096)
  172. island.Anchored = true
  173. island.CanCollide = true
  174. island.Name = "SafePlace"
  175.  
  176. local island2 = Instance.new("Part")
  177. island2.Parent = SafePlaceModel
  178. island2.Size = Vector3.new(50, 1, 100)
  179. island2.Transparency = 1
  180. island2.Material = Enum.Material.Grass
  181. island2.Color = Color3.fromRGB(127, 255, 127)
  182. island2.Position = Vector3.new (4146, 225, 4096)
  183. island2.Anchored = true
  184. island2.CanCollide = true
  185. island2.Name = "SafePlaceWall"
  186. island2.Orientation = Vector3.new(0, 180, -90)
  187.  
  188. local island3 = Instance.new("Part")
  189. island3.Parent = SafePlaceModel
  190. island3.Size = Vector3.new(50, 1, 100)
  191. island3.Transparency = 1
  192. island3.Material = Enum.Material.Grass
  193. island3.Color = Color3.fromRGB(127, 255, 127)
  194. island3.Position = Vector3.new (4046.5, 225, 4096)
  195. island3.Anchored = true
  196. island3.CanCollide = true
  197. island3.Name = "SafePlaceWall"
  198. island3.Orientation = Vector3.new(0, 180, -90)
  199.  
  200. local island4 = Instance.new("Part")
  201. island4.Parent = SafePlaceModel
  202. island4.Size = Vector3.new(50, 1, 100)
  203. island4.Transparency = 1
  204. island4.Material = Enum.Material.Grass
  205. island4.Color = Color3.fromRGB(127, 255, 127)
  206. island4.Position = Vector3.new (4096.25, 225, 4145.75)
  207. island4.Anchored = true
  208. island4.CanCollide = true
  209. island4.Name = "SafePlaceWall"
  210. island4.Orientation = Vector3.new(0, -90, -90)
  211.  
  212. local island5 = Instance.new("Part")
  213. island5.Parent = SafePlaceModel
  214. island5.Size = Vector3.new(50, 1, 100)
  215. island5.Transparency = 1
  216. island5.Material = Enum.Material.Grass
  217. island5.Color = Color3.fromRGB(127, 255, 127)
  218. island5.Position = Vector3.new (4096.25, 225, 4046.25)
  219. island5.Anchored = true
  220. island5.CanCollide = true
  221. island5.Name = "SafePlaceWall"
  222. island5.Orientation = Vector3.new(0, -90, -90)
  223.  
  224.  
  225. c:Button("Teleport to arena", function (v)
  226. plr.Character:WaitForChild("HumanoidRootPart").CFrame = game:GetService("Workspace").Arena["main island"].Grass.CFrame * CFrame.Angles(math.rad(270), 0, math.rad(90)) + Vector3.new(0, 15, 0)
  227.  
  228. end)
  229.  
  230. c:Button("Teleport to floating island", function (v)
  231. plr.Character:WaitForChild("HumanoidRootPart").CFrame = game:GetService("Workspace").SafePlace.SafePlace.CFrame + Vector3.new(0, 3.5, 0)
  232. end)
  233.  
  234.  
  235.  
  236.  
  237.  
  238. -- No Fall
  239. local NoFall = Instance.new("Part", game.Workspace)
  240. NoFall.Anchored = true
  241. NoFall.Size = Vector3.new(2048, 0, 2048)
  242. NoFall.CanCollide = false
  243. NoFall.Transparency = 1
  244. NoFall.Name = "NoFall"
  245. NoFall.Position = Vector3.new(0, -8, 0)
  246. local NoFallMesh = Instance.new("BlockMesh", NoFall)
  247. NoFallMesh.Scale = Vector3.new(10, 0, 10)
  248. b:Toggle("No Fall", function (NoFall1)
  249. if NoFall1 == true then
  250. NoFall.CanCollide = true
  251. else
  252. NoFall.CanCollide = false
  253. end
  254. end)
  255.  
  256.  
  257. --Plate Autofarm
  258.  
  259. local plate = false
  260. b:Toggle("Plate Autofarm", function (plate1)
  261. if plate1 == true then
  262. plate = true
  263. else
  264. plate = false
  265. end
  266. end)
  267. spawn(function()
  268. while wait() do
  269. if plate == true then
  270. plr.Character:WaitForChild("HumanoidRootPart").CFrame = game:GetService("Workspace").Arena.Plate.CFrame + Vector3.new(0, 2, 0)
  271. end
  272. end
  273. end)
  274.  
  275.  
  276.  
  277.  
  278. --Slapple Autofarm
  279. for i = 1 , 9 do
  280.  
  281. local e = game:GetService("Workspace").Arena.island5.Slapples:FindFirstChild("Slapple")
  282. if e ~= nil then
  283. e.Name = i
  284. end
  285. end
  286.  
  287. local slapple = nil
  288. b:Toggle("Slapple Autofarm", function (slapple1)
  289. if slapple1 == true then
  290. slapple = true
  291. else
  292. slapple = false
  293. end
  294. end)
  295. spawn(function()
  296. while wait() do
  297. if slapple == true then
  298. for i = 1 , 9 do
  299. local e = game:GetService("Workspace").Arena.island5.Slapples:WaitForChild(i).Glove
  300.  
  301. e.CFrame = plr.Character:WaitForChild("HumanoidRootPart").CFrame
  302.  
  303. end
  304.  
  305. end
  306. end
  307. end)
  308.  
  309. -- G Slapple
  310. local gslapple = nil
  311. b:Toggle("Golden Slapple Autofarm", function (slapple1)
  312. if slapple1 == true then
  313. gslapple = true
  314. else
  315. gslapple = false
  316. end
  317. end)
  318. spawn(function()
  319. while wait() do
  320. if gslapple == true then
  321.  
  322. local e = game:GetService("Workspace").Arena.island5.Slapples.GoldenSlapple.Glove
  323. if e.Transparency == 0 then
  324. plr.Character:WaitForChild("HumanoidRootPart").CFrame = e.CFrame
  325. end
  326.  
  327. end
  328. end
  329. end)
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336. --Ability Spam
  337. local bob = false
  338.  
  339. b:Toggle("Ability Spam", function (bob1)
  340. if bob1 == true then
  341. bob = true
  342. else
  343. bob = false
  344. end
  345. end)
  346. spawn(function()
  347. while wait(math.random(0.0002, 0.5)) do
  348. if plr.Character:WaitForChild("isInArena").Value == true and bob == true then
  349. local virtualUser = game:GetService('VirtualUser')
  350. virtualUser:CaptureController()
  351.  
  352. virtualUser:SetKeyDown('0x65')
  353. wait(math.random(0.0002, 0.5))
  354. virtualUser:SetKeyUp('0x65')
  355. wait(math.random(0.0002, 0.5))
  356. end
  357.  
  358. end
  359.  
  360. end)
  361.  
  362.  
  363.  
  364. -- Tycoon stuff
  365. b:Button("Get tycoon to 500", function ()
  366.  
  367. for i = 1,10000 do
  368. wait()
  369. local click = game.Workspace:WaitForChild("ÅTycoon" .. plr.Name):WaitForChild("Click"):WaitForChild("ClickDetector")
  370. if click ~= nil then
  371. fireclickdetector(click)
  372. end
  373. end
  374. end)
  375.  
  376. b:Button("Destroy random tycoon", function ()
  377. for i = 1, 40 do
  378. for _, child in ipairs(game.Workspace:GetDescendants()) do
  379. if child.Name == "ClickDetector" and child.Parent.Name == "Destruct" and child.Parent.Parent.Name ~= "ÅTycoon" .. plr.Name then
  380. for i = 1, 1000 do
  381. wait()
  382. fireclickdetector(child)
  383. end
  384. end
  385. end
  386. end
  387.  
  388. end)
  389.  
  390.  
  391. -- Slap aura
  392. b:Toggle("Slap Aura", function ()
  393. local Players = game:GetService('Players')
  394. local ReplicatedStorage = game:GetService('ReplicatedStorage')
  395. local LocalPlayer = Players.LocalPlayer
  396.  
  397. local maxDistance = 30
  398.  
  399. getgenv().auraEnabled = not getgenv().auraEnabled
  400.  
  401. local function findTool()
  402. if LocalPlayer.Backpack:FindFirstChildOfClass('Tool'):FindFirstChild("Glove") then
  403. local tool = LocalPlayer.Backpack:FindFirstChildOfClass('Tool')
  404. else
  405. for _, child in ipairs(LocalPlayer.Backpack:GetDescendants()) do
  406. if child.Name == "Glove" then
  407. local tool = child.Parent
  408. end
  409. end
  410. end
  411.  
  412. if not tool then
  413. local character = LocalPlayer.Character
  414.  
  415. if character then
  416. if LocalPlayer.Backpack:FindFirstChildOfClass('Tool'):FindFirstChild("Glove") then
  417. local tool = LocalPlayer.Backpack:FindFirstChildOfClass('Tool')
  418. else
  419. for _, child in ipairs(LocalPlayer.Backpack:GetDescendants()) do
  420. if child.Name == "Glove" then
  421. local tool = child.Parent
  422. end
  423. end
  424. end
  425. end
  426. end
  427.  
  428. return tool
  429. end
  430.  
  431. local function getToolHitRemote()
  432. local tool = findTool()
  433.  
  434. if tool and tool ~= getgenv().lastTool then
  435. getgenv().lastTool = tool
  436.  
  437. local scr = tool:FindFirstChild('LocalScript')
  438.  
  439. if scr then
  440. for _, o in pairs(getgc()) do
  441. if type(o) == 'function' and getfenv(o).script == scr then
  442. local c = debug.getconstants(o)
  443.  
  444. for _, p in pairs(c) do
  445. if p == 'isInArena' then
  446. for _, p2 in pairs(c) do
  447. for _, j in pairs(ReplicatedStorage:GetChildren()) do
  448. if j:IsA('RemoteEvent') and j.Name == p2 then
  449. getgenv().hitRemote = j
  450. end
  451. end
  452. end
  453. end
  454. end
  455. end
  456. end
  457. end
  458. end
  459. end
  460.  
  461. while getgenv().auraEnabled do
  462. getToolHitRemote()
  463.  
  464. if getgenv().hitRemote then
  465. for _, plr in pairs(Players:GetPlayers()) do
  466. if plr ~= LocalPlayer then
  467. local char = plr.Character
  468.  
  469. if char then
  470. local part = char:FindFirstChildWhichIsA('BasePart')
  471.  
  472. if LocalPlayer:DistanceFromCharacter(part.Position) <= maxDistance then
  473. hitRemote:FireServer(part)
  474. end
  475. end
  476. end
  477. end
  478. end
  479.  
  480. wait()
  481. end
  482. end)
  483.  
  484. local bot = false
  485. -- Slap Bot
  486. b:Button("Bot (cant be toggled)", function ()
  487. bot = true
  488. end)
  489. spawn(function ()
  490. while wait() do
  491. if bot == true then
  492. local virtualUser = game:GetService('VirtualUser')
  493. local function getchar()
  494. char = game.Players.LocalPlayer.Character
  495. end
  496. local function getclosest()
  497. getchar()
  498. local hrp = char:WaitForChild("HumanoidRootPart")
  499. local num = 10000000
  500. local nam = nil
  501. for i,v in pairs(game.Players:GetPlayers()) do
  502. pcall(function()
  503. if (hrp.Position - v.Character.HumanoidRootPart.Position).Magnitude < num then
  504. if v.Name ~= char.Name and not v.Character:FindFirstChild("rock") and v.leaderstats.Glove ~= "Spectator" then
  505. num = (hrp.Position - v.Character.HumanoidRootPart.Position).Magnitude
  506. nam = v.Name
  507. end
  508. end
  509. end)
  510. end
  511. return nam
  512. end
  513. local function stareat(player)
  514. getchar()
  515. local plr2 = game.Workspace:WaitForChild(player)
  516. if not char:FindFirstChild("HumanoidRootPart") and plr2:FindFirstChild("HumanoidRootPart") then return end
  517. local chrPos=char.PrimaryPart.Position
  518. local tPos=plr2:FindFirstChild("HumanoidRootPart").Position
  519. local modTPos=Vector3.new(tPos.X,chrPos.Y,tPos.Z)
  520. local newCF=CFrame.new(chrPos,modTPos)
  521. char:SetPrimaryPartCFrame(newCF)
  522. end
  523. local function got(playr)
  524. getchar()
  525. local uwu = game.Workspace:FindFirstChild(playr).HumanoidRootPart.Position
  526.  
  527. if char:FindFirstChild("rock") == nil and char.Ragdolled.Value == false then
  528. char.Humanoid:MoveTo(uwu)
  529. end
  530.  
  531. end
  532. spawn(function ()
  533. while wait(0.3) do
  534. getchar()
  535. if char:WaitForChild("isInArena").Value == true then
  536. getchar()
  537. stareat(getclosest())
  538. got(getclosest())
  539. virtualUser:CaptureController()
  540. virtualUser:ClickButton1(Vector2.new(5,5))
  541. virtualUser:CaptureController()
  542. virtualUser:SetKeyDown('0x65')
  543. wait(0.2)
  544. virtualUser:SetKeyUp('0x65')
  545. wait(0.5)
  546. elseif char:WaitForChild("isInArena").Value == false then
  547. char:WaitForChild('Humanoid'):MoveTo(game:GetService("Workspace").Lobby.Teleport1.Position)
  548. end
  549. end
  550. end)
  551. end
  552. end
  553. end)
  554.  
  555.  
  556.  
  557.  
  558.  
  559. elseif game.PlaceId == 9431156611 then
  560.  
  561.  
  562.  
  563. -- Slap Royale
  564.  
  565. local d = Library:Window("Slap Royale Exclusive")
  566.  
  567. -- Give All
  568.  
  569. d:Button("Give All" , function ()
  570. for i = 1, 15 do
  571. while wait() do
  572.  
  573. for _, child in ipairs(game.Workspace:GetChildren()) do
  574. if child:IsA("Tool") then
  575. child.Handle.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  576. wait(0.25)
  577. child.Parent = game.Players.LocalPlayer.Character
  578. child.Equipped:Connect(function ()
  579. print(child.Name)
  580. if child.Name == "Bull's essence" or child.Name == "Speed Potion" or child.Name == "Boba" or child.Name == "Frog Potion" or child.Name == "Potion of Strength" then
  581. child:Activate()
  582. end
  583.  
  584. end)
  585.  
  586. end
  587.  
  588. end
  589. end
  590. wait(1)
  591. end
  592. end)
  593.  
  594. -- Teleports
  595.  
  596.  
  597. d:Button("Teleport to Bob Hut", function (v)
  598. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Map.CozyCabin.Cabin.Part.CFrame + Vector3.new(0, 3.5, 0)
  599. end)
  600.  
  601.  
  602. d:Button("Teleport to Barn", function (v)
  603. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Map.FiestaFarm.Union.CFrame + Vector3.new(0, 3.5, 0)
  604. end)
  605.  
  606.  
  607. for i, child in ipairs(game.Players:GetChildren()) do
  608. if child.Name ~= plr.Name then
  609. child.Name = i
  610. Instance.new("Highlight", child.Character)
  611. Highlight.OutlineTransparency = 1
  612. Highlight.FillColor = Color3.FromRGB(255,0,0)
  613. Higlight.FillTransparency = 1
  614. end
  615. end
  616. local plrCount1 = game.Players:GetChildren()
  617. local plrCount = #plrCount1
  618.  
  619.  
  620. d:Button("Teleport to random person ", function ()
  621.  
  622. plr.Character:WaitForChild("HumanoidRootPart").CFrame = game.Players[math.random(1, plrCount)].Character.HumanoidRootPart.CFrame
  623. end)
  624.  
  625.  
  626.  
  627.  
  628. end
  629.  
  630. -- la fin
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement