Advertisement
SpacecowboyHX

fencingBrickspam

Aug 25th, 2020 (edited)
1,751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.08 KB | None | 0 0
  1. local spamming = false
  2. local player = game.Players.LocalPlayer
  3. local char = player.Character
  4. repeat wait() char = player.Character until char
  5. char.Archivable = true
  6. local old = char:Clone()
  7. local framee
  8. local verify = player.Character
  9. local cooldown = 11
  10. local tillCD = 0
  11. wait(5)
  12. function chat(string)
  13.     game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(string,"All")
  14. end
  15. function reset(player)
  16.     local charr = player.Character
  17.     local framer = char:FindFirstChild("HumanoidRootPart")
  18.     local frame
  19.     if framer then
  20.         frame = framer.CFrame
  21.     end
  22.     if charr then
  23.         local new = old:Clone()
  24.         if new then
  25.             new.Parent = workspace
  26.             char:Remove()
  27.             player.Character = new
  28.             char = player.Character
  29.             workspace.CurrentCamera.CameraSubject = new:WaitForChild("Humanoid")
  30.             player.Character:SetPrimaryPartCFrame(frame)
  31.         end
  32.     end
  33. end
  34. function spam1()
  35.     spamming = true
  36.     while wait(1.3) do
  37.         local start = tick()
  38.         if spamming == true then
  39.             local start = tick()
  40.             repeat wait() until player.Character:FindFirstChildOfClass("Accessory")~=nil or tick()-start>=5
  41.             chat("b l o c k s")
  42.             tillCD = tillCD+1
  43.             if tillCD<= cooldown then
  44.                 verify = game.Players.LocalPlayer.Character
  45.                 if framee then
  46.                     workspace.CurrentCamera.CFrame= framee
  47.                 end
  48.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  49.                     if v:IsA("SpecialMesh") then v:Destroy() end
  50.                 end
  51.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  52.                     if v:IsA("Accessory") then
  53.                         v.Parent = game.Workspace
  54.                         v.Handle.CanCollide = true
  55.                     end
  56.                 end
  57.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  58.                     if v:IsA("Part") then
  59.                         v.CanCollide = false
  60.                         v.Parent = game.Workspace
  61.                         repeat wait() v.Parent = workspace until v.Parent == workspace
  62.                     end
  63.                 end
  64.                 --reset(player)
  65.                 framee = workspace.CurrentCamera.CFrame
  66.                 game.Players.LocalPlayer.Character.Humanoid.Health = 0
  67.                 repeat wait() local hum = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") until hum~=nil and hum.Health>0
  68.                 --game.ReplicatedStorage.Events.RefreshChar:FireServer(framee)
  69.             else
  70.                 tillCD = 0
  71.                 chat("did you like my b l o c k s ... ?")
  72.                 spam2()
  73.                 break
  74.             end
  75.         else
  76.             break
  77.         end
  78.     end
  79. end
  80. function spam2()
  81.     spamming = true
  82.     while wait(game.Players.RespawnTime/4) do
  83.         local start = tick()
  84.         if spamming == true then
  85.             local start = tick()
  86.             repeat wait() until player.Character:FindFirstChildOfClass("Accessory")~=nil or tick()-start>=5
  87.             chat("b l o c k s")
  88.             tillCD = tillCD+1
  89.             if tillCD<= cooldown then
  90.                 verify = game.Players.LocalPlayer.Character
  91.                 if framee then
  92.                     workspace.CurrentCamera.CFrame= framee
  93.                 end
  94.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  95.                     if v:IsA("SpecialMesh") then v:Destroy() end
  96.                 end
  97.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  98.                     if v:IsA("Accessory") then
  99.                         v.Parent = game.Workspace
  100.                         v.Handle.CanCollide = true
  101.                     end
  102.                 end
  103.                 for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  104.                     if v:IsA("Part") then
  105.                         v.CanCollide = false
  106.                         v.Parent = game.Workspace
  107.                         repeat wait() v.Parent = workspace until v.Parent == workspace
  108.                     end
  109.                 end
  110.                 --reset(player)
  111.                 framee = workspace.CurrentCamera.CFrame
  112.                 game.Players.LocalPlayer.Character.Humanoid.Health = 0
  113.                 repeat wait() local hum = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") until hum~=nil and hum.Health>0
  114.                 --game.ReplicatedStorage.Events.RefreshChar:FireServer(framee)
  115.             else
  116.                 tillCD = 0
  117.                 chat("did you like my b l o c k s ... ?")
  118.                 spam1()
  119.                 break
  120.             end
  121.         else
  122.             break
  123.         end
  124.     end
  125. end
  126. local mouse = player:GetMouse()
  127. if mouse then
  128.     warn("Loaded brickspam with cool yellow text")
  129.     mouse.KeyDown:Connect(function(key)
  130.         if key:lower() == "q" then
  131.             if spamming == false then
  132.                 spam1()
  133.             else
  134.                 if spamming == true then
  135.                     spamming = false
  136.                 end
  137.             end
  138.         end
  139.     end)
  140. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement