Advertisement
SpacecowboyHX

BrookHaven brickSpam

Aug 25th, 2020
35,290
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.40 KB | None | 1 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. function reset()
  8.     local charr = player.Character
  9.     local framer = char:FindFirstChild("HumanoidRootPart")
  10.     local frame
  11.     if framer then
  12.         frame = framer.CFrame
  13.     end
  14.     if charr then
  15.         local new = old:Clone()
  16.         if new then
  17.             new.Parent = workspace
  18.             char:Remove()
  19.             player.Character = new
  20.             char = player.Character
  21.             workspace.CurrentCamera.CameraSubject = new:WaitForChild("Humanoid")
  22.             player.Character:SetPrimaryPartCFrame(frame)
  23.         end
  24.     end
  25. end
  26. function spam()
  27.     spamming = true
  28.     while wait() do
  29.         if spamming == true then
  30.             for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  31.                 if v:IsA("SpecialMesh") then v:Destroy() end
  32.             end
  33.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  34.                 if v:IsA("Accessory") then
  35.                     v.Parent = game.Workspace
  36.                 end
  37.             end
  38.             --reset()
  39.             game.ReplicatedStorage.RemoteEvents.AvatarOriginalCharacter:FireServer()
  40.         else
  41.             break
  42.         end
  43.     end
  44. end
  45. local mouse = player:GetMouse()
  46. if mouse then
  47.     mouse.KeyDown:Connect(function(key)
  48.         if key:lower() == "q" then
  49.             if spamming == false then
  50.                 spamming = true
  51.             else
  52.                 if spamming == true then
  53.                     spamming = false
  54.                 end
  55.             end
  56.         end
  57.     end)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement