Advertisement
Prephy

Bruh

May 20th, 2021 (edited)
1,046
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.27 KB | None | 0 0
  1. wait()
  2. local player = owner
  3. local tool = Instance.new("Tool")
  4. local brick = Instance.new("Part",tool) brick.Name='Handle' brick.Size = Vector3.new(1.039, 1, 4.947)
  5. tool.GripForward=Vector3.new(0,0,-1) tool.GripUp=Vector3.new(0,1,0) tool.GripRight=Vector3.new(1,0,0)
  6. brick.FrontSurface=Enum.SurfaceType.Studs
  7. brick.RightSurface=Enum.SurfaceType.Studs
  8. brick.TopSurface=Enum.SurfaceType.Studs
  9. brick.BottomSurface=Enum.SurfaceType.Studs
  10. brick.LeftSurface=Enum.SurfaceType.Studs
  11. brick.BackSurface=Enum.SurfaceType.Studs tool.Name=':what:'
  12. local texting = Instance.new("BillboardGui",brick) texting.StudsOffset=Vector3.new(0,4,0)
  13. texting.ZIndexBehavior=Enum.ZIndexBehavior.Sibling texting.LightInfluence=0 texting.Size=UDim2.new(7,0,2,0) texting.ClipsDescendants=true texting.AutoLocalize=true texting.AlwaysOnTop=true texting.Active=true
  14. local text = Instance.new("TextLabel",texting) text.TextScaled=true text.BackgroundTransparency=1 text.LineHeight=1 text.AutomaticSize=Enum.AutomaticSize.None  text.MaxVisibleGraphemes=-1 text.Visible=true text.TextWrapped=true  text.TextSize=50 text.Size=UDim2.new(1,0,1,0)  text.SizeConstraint=Enum.SizeConstraint.RelativeXY text.ZIndex=1 text.BorderMode=Enum.BorderMode.Outline text.BackgroundColor3=Color3.new(1, 1, 1) text.BorderColor3=Color3.new()
  15. tool.Parent=player.Backpack
  16.  
  17.  
  18. local fonts = Enum.Font:GetEnumItems()
  19. local texts = {'😡😡CrAZY BRicK😡😡😡😡','😡😡CRAzY BRICK 😡😡','😡😡CRAZY😡😡BRICK😡😡'}
  20. local n = text
  21.  
  22. game:GetService("RunService").Heartbeat:Connect(function()
  23.     n.Font = fonts[math.random(1,#fonts)]
  24. end)
  25.  
  26.  
  27.  
  28.  
  29. local BONK = brick:FindFirstChild('h')
  30. if BONK then
  31.  
  32. else
  33. local bawnk = Instance.new("Sound",brick) bawnk.SoundId='rbxassetid://4164190231' bawnk.Volume=4 bawnk.Name='h'
  34. end
  35.  
  36.  
  37.  
  38. local WHAT = brick:FindFirstChild('what')
  39. if WHAT then
  40.     WHAT.TimePosition=1 WHAT:Play()
  41.     WHAT.Volume=.7
  42. else
  43.     local omg = Instance.new("Sound",brick) omg.SoundId='rbxassetid://135436466' omg.Name='what' omg.TimePosition=1 omg.Volume=.7
  44. end
  45.  
  46. local attack = false
  47. local theforce = Instance.new("ForceField",tool) theforce.Visible=false
  48. local victim=brick
  49. local debris = game:GetService("Debris")
  50.  
  51. tool.Unequipped:Connect(function()
  52.     local BONK = brick:FindFirstChild('h')
  53.     if BONK then
  54.  
  55.     else
  56.         local bawnk = Instance.new("Sound",brick) bawnk.SoundId='rbxassetid://4164190231' bawnk.Volume=4 bawnk.Name='h'
  57.     end
  58.     local musix = brick:FindFirstChild('FUnny')
  59.     if musix then
  60.         musix.TimePosition=5
  61.         musix:Pause()
  62.     else
  63.         local mus = Instance.new("Sound",brick) mus.Looped=true mus.Name='FUnny' mus.SoundId='rbxassetid://435019840' mus.Volume=6 mus.TimePosition=5
  64.         local flance = Instance.new("FlangeSoundEffect",mus) flance.Mix=1 flance.Rate=1 flance.Depth=1
  65.         local eq = Instance.new("EqualizerSoundEffect",mus) eq.Priority=999 eq.MidGain=2 eq.Enabled=true flance.Enabled=true
  66.     end
  67. end)
  68.  
  69. tool.equipped:Connect(function()
  70.    
  71.     local WHAT = brick:FindFirstChild('what')
  72.     if WHAT then
  73.         WHAT.TimePosition=1 WHAT:Play()
  74.         WHAT.Volume=.7
  75.     else
  76.         local omg = Instance.new("Sound",brick) omg.SoundId='rbxassetid://135436466' omg.Name='what' omg.TimePosition=1 omg.Volume=.7
  77.     end
  78.  
  79.     local musix = brick:FindFirstChild('FUnny')
  80.     if musix then
  81.         musix.TimePosition=5
  82.         musix:Play()
  83.     else
  84.         local mus = Instance.new("Sound",brick)mus.Name='FUnny' mus.Looped=true mus.SoundId='rbxassetid://435019840'  mus.Volume=6 mus.TimePosition=5
  85.         local flance = Instance.new("FlangeSoundEffect",mus) flance.Mix=1 flance.Rate=1 flance.Depth=1
  86.         local eq = Instance.new("EqualizerSoundEffect",mus) eq.Priority=999 eq.MidGain=2 eq.Enabled=true flance.Enabled=true mus:Play()
  87.     end
  88.  
  89.     local force = tool.Parent:FindFirstChildOfClass("ForceField")
  90.     if force then
  91.     else
  92.         theforce = Instance.new("ForceField",tool.Parent) theforce.Visible=false
  93.     end
  94. end)
  95.  
  96.  
  97.  
  98. tool.Activated:Connect(function()
  99.     attack=true
  100.     wait(.5)
  101.     attack=false
  102. end)
  103.  
  104. function CRAZY(OMG)
  105.     local DIEE = brick:FindFirstChild('funnysoundeffectsofunnylol')
  106.     if DIEE then
  107.         DIEE:Play()
  108.     else
  109.         local fun = Instance.new("Sound",OMG) fun.Name='funnysoundeffectsofunnylol'
  110.         fun.SoundId="rbxassetid://6011094380"
  111.         fun.Volume=10
  112.         --local loud = Instance.new("DistortionSoundEffect",fun)
  113.         --loud.Level=.7
  114.         fun:Play()
  115.     end
  116.  
  117.  
  118. end
  119.  
  120. brick.Touched:connect(function(Omg)
  121.     if attack==true then
  122.  
  123.         local haha = Omg.Parent:FindFirstChildOfClass('Humanoid')
  124.         if haha then
  125.             CRAZY(brick)
  126.             haha.Health=0 haha.Parent:BreakJoints()
  127.             victim=Omg
  128.             Omg.Parent=tool
  129.             wait(.3)
  130.             Omg:Destroy()
  131.         else
  132.             local what =Omg.Size
  133.             local size =what.x
  134.             if what.y >= size then
  135.                 size = what.y
  136.             end
  137.             if what.z >= size then
  138.                 size = what.z
  139.             end
  140.             if size <= 35 then
  141.                 CRAZY(brick)
  142.                 victim=Omg
  143.                 Omg.Parent=tool
  144.                 wait(.3)
  145.                 local DIE = Omg:Destroy()
  146.  
  147.  
  148.  
  149.  
  150.  
  151.             end
  152.         end
  153.  
  154.  
  155.     end
  156. end)
  157.  
  158.  
  159.  
  160.  
  161. Tool = tool
  162. Handle = brick
  163.  
  164. function Create(ty)
  165.     return function(data)
  166.         local obj = Instance.new(ty)
  167.         for k, v in pairs(data) do
  168.             if type(k) == 'number' then
  169.                 v.Parent = obj
  170.             else
  171.                 obj[k] = v
  172.             end
  173.         end
  174.         return obj
  175.     end
  176. end
  177.  
  178. local BaseUrl = "rbxassetid://"
  179.  
  180. Players = game:GetService("Players")
  181. Debris = game:GetService("Debris")
  182. RunService = game:GetService("RunService")
  183.  
  184. DamageValues = {
  185.     BaseDamage = 0,
  186.     SlashDamage = 10,
  187.     LungeDamage = math.huge
  188. }
  189.  
  190. --For R15 avatars
  191. Animations = {
  192.     R15Slash = 522635514,
  193.     R15Lunge = 522638767
  194. }
  195.  
  196. Damage = DamageValues.BaseDamage
  197.  
  198. Grips = {
  199.     Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  200.     Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  201. }
  202.  
  203. Sounds = {
  204.     Lunge = Handle:WaitForChild("h"),
  205.     Unsheath = Handle:WaitForChild("what")
  206. }
  207.  
  208. ToolEquipped = false
  209.  
  210. for i, v in pairs(Handle:GetChildren()) do
  211.     if v:IsA("ParticleEmitter") then
  212.         v.Rate = 20
  213.     end
  214. end
  215.  
  216. Tool.Grip = Grips.Up
  217. Tool.Enabled = true
  218.  
  219. function IsTeamMate(Player1, Player2)
  220.     return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
  221. end
  222.  
  223. function TagHumanoid(humanoid, player)
  224.     local Creator_Tag = Instance.new("ObjectValue")
  225.     Creator_Tag.Name = "creator"
  226.     Creator_Tag.Value = player
  227.     Debris:AddItem(Creator_Tag, 2)
  228.     Creator_Tag.Parent = humanoid
  229. end
  230.  
  231. function UntagHumanoid(humanoid)
  232.     for i, v in pairs(humanoid:GetChildren()) do
  233.         if v:IsA("ObjectValue") and v.Name == "creator" then
  234.             v:Destroy()
  235.         end
  236.     end
  237. end
  238.  
  239. function Blow(Hit)
  240.     if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
  241.         return
  242.     end
  243.     local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
  244.     if not RightArm then
  245.         return
  246.     end
  247.     local RightGrip = RightArm:FindFirstChild("RightGrip")
  248.     if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
  249.         return
  250.     end
  251.     local character = Hit.Parent
  252.     if character == Character then
  253.         return
  254.     end
  255.     local humanoid = character:FindFirstChildOfClass("Humanoid")
  256.     if not humanoid or humanoid.Health == 0 then
  257.         return
  258.     end
  259.     local player = Players:GetPlayerFromCharacter(character)
  260.     if player and (player == Player or IsTeamMate(Player, player)) then
  261.         return
  262.     end
  263.     UntagHumanoid(humanoid)
  264.     TagHumanoid(humanoid, Player)
  265.     humanoid:TakeDamage(Damage)
  266. end
  267.  
  268.  
  269. function Attack()
  270.     Damage = DamageValues.SlashDamage
  271.  
  272.     if Humanoid then
  273.         if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  274.             local Anim = Instance.new("StringValue")
  275.             Anim.Name = "toolanim"
  276.             Anim.Value = "Slash"
  277.             Anim.Parent = Tool
  278.         elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  279.             local Anim = Tool:FindFirstChild("R15Slash")
  280.             if Anim then
  281.                 local Track = Humanoid:LoadAnimation(Anim)
  282.                 Track:Play(0)
  283.             end
  284.         end
  285.     end
  286. end
  287.  
  288. function Lunge()
  289.     Damage = DamageValues.LungeDamage
  290.  
  291.     Sounds.Lunge:Play()
  292.  
  293.     if Humanoid then
  294.         if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  295.             local Anim = Instance.new("StringValue")
  296.             Anim.Name = "toolanim"
  297.             Anim.Value = "Lunge"
  298.             Anim.Parent = Tool
  299.         elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  300.             local Anim = Tool:FindFirstChild("R15Lunge")
  301.             if Anim then
  302.                 local Track = Humanoid:LoadAnimation(Anim)
  303.                 Track:Play(0)
  304.             end
  305.         end
  306.     end
  307.     --[[
  308.     if CheckIfAlive() then
  309.         local Force = Instance.new("BodyVelocity")
  310.         Force.velocity = Vector3.new(0, 10, 0)
  311.         Force.maxForce = Vector3.new(0, 4000, 0)
  312.         Debris:AddItem(Force, 0.4)
  313.         Force.Parent = Torso
  314.     end
  315.     ]]
  316.  
  317.     wait(0.2)
  318.     Tool.Grip = Grips.Out
  319.     wait(0.6)
  320.     Tool.Grip = Grips.Up
  321.  
  322.     Damage = DamageValues.SlashDamage
  323. end
  324.  
  325. Tool.Enabled = true
  326. LastAttack = 0
  327.  
  328. function Activated()
  329.     if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
  330.         return
  331.     end
  332.     Tool.Enabled = false
  333.     local Tick = RunService.Stepped:wait()
  334.     if (Tick - LastAttack < 0.2) then
  335.         Lunge()
  336.     else
  337.         Attack()
  338.     end
  339.     LastAttack = Tick
  340.     --wait(0.5)
  341.     Damage = DamageValues.BaseDamage
  342.     local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
  343.         Name = "R15Slash",
  344.         AnimationId = BaseUrl .. Animations.R15Slash,
  345.         Parent = Tool
  346.     })
  347.  
  348.     local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
  349.         Name = "R15Lunge",
  350.         AnimationId = BaseUrl .. Animations.R15Lunge,
  351.         Parent = Tool
  352.     })
  353.     Tool.Enabled = true
  354. end
  355.  
  356. function CheckIfAlive()
  357.     return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
  358. end
  359.  
  360. function Equipped()
  361.     Character = Tool.Parent
  362.     Player = Players:GetPlayerFromCharacter(Character)
  363.     Humanoid = Character:FindFirstChildOfClass("Humanoid")
  364.     Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
  365.     if not CheckIfAlive() then
  366.         return
  367.     end
  368.     ToolEquipped = true
  369.     Sounds.Unsheath:Play()
  370. end
  371.  
  372. function Unequipped()
  373.     Tool.Grip = Grips.Up
  374.     ToolEquipped = false
  375. end
  376.  
  377. Tool.Activated:Connect(Activated)
  378. Tool.Equipped:Connect(Equipped)
  379. Tool.Unequipped:Connect(Unequipped)
  380.  
  381. Connection = Handle.Touched:Connect(Blow)
  382.  
  383.  
  384.  
  385.  
  386. while wait() do
  387.     for i = 1, 255 do
  388.         --script.Parent.TextStrokeColor3 = Color3.fromHSV(i/255, 1, 1)
  389.         n.TextColor3 = Color3.fromHSV(i/255, 1, 1)
  390.         wait()
  391.         n.Text=texts[math.random(1,#texts)]
  392.         brick.BrickColor=BrickColor.Random()
  393.         victim.Color=brick.Color
  394.     end
  395. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement