Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local player = owner
- local tool = Instance.new("Tool")
- local brick = Instance.new("Part",tool) brick.Name='Handle' brick.Size = Vector3.new(1.039, 1, 4.947)
- tool.GripForward=Vector3.new(0,0,-1) tool.GripUp=Vector3.new(0,1,0) tool.GripRight=Vector3.new(1,0,0)
- brick.FrontSurface=Enum.SurfaceType.Studs
- brick.RightSurface=Enum.SurfaceType.Studs
- brick.TopSurface=Enum.SurfaceType.Studs
- brick.BottomSurface=Enum.SurfaceType.Studs
- brick.LeftSurface=Enum.SurfaceType.Studs
- brick.BackSurface=Enum.SurfaceType.Studs tool.Name=':what:'
- local texting = Instance.new("BillboardGui",brick) texting.StudsOffset=Vector3.new(0,4,0)
- 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
- 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()
- tool.Parent=player.Backpack
- local fonts = Enum.Font:GetEnumItems()
- local texts = {'😡😡CrAZY BRicK😡😡😡😡','😡😡CRAzY BRICK 😡😡','😡😡CRAZY😡😡BRICK😡😡'}
- local n = text
- game:GetService("RunService").Heartbeat:Connect(function()
- n.Font = fonts[math.random(1,#fonts)]
- end)
- local BONK = brick:FindFirstChild('h')
- if BONK then
- else
- local bawnk = Instance.new("Sound",brick) bawnk.SoundId='rbxassetid://4164190231' bawnk.Volume=4 bawnk.Name='h'
- end
- local WHAT = brick:FindFirstChild('what')
- if WHAT then
- WHAT.TimePosition=1 WHAT:Play()
- WHAT.Volume=.7
- else
- local omg = Instance.new("Sound",brick) omg.SoundId='rbxassetid://135436466' omg.Name='what' omg.TimePosition=1 omg.Volume=.7
- end
- local attack = false
- local theforce = Instance.new("ForceField",tool) theforce.Visible=false
- local victim=brick
- local debris = game:GetService("Debris")
- tool.Unequipped:Connect(function()
- local BONK = brick:FindFirstChild('h')
- if BONK then
- else
- local bawnk = Instance.new("Sound",brick) bawnk.SoundId='rbxassetid://4164190231' bawnk.Volume=4 bawnk.Name='h'
- end
- local musix = brick:FindFirstChild('FUnny')
- if musix then
- musix.TimePosition=5
- musix:Pause()
- else
- local mus = Instance.new("Sound",brick) mus.Looped=true mus.Name='FUnny' mus.SoundId='rbxassetid://435019840' mus.Volume=6 mus.TimePosition=5
- local flance = Instance.new("FlangeSoundEffect",mus) flance.Mix=1 flance.Rate=1 flance.Depth=1
- local eq = Instance.new("EqualizerSoundEffect",mus) eq.Priority=999 eq.MidGain=2 eq.Enabled=true flance.Enabled=true
- end
- end)
- tool.equipped:Connect(function()
- local WHAT = brick:FindFirstChild('what')
- if WHAT then
- WHAT.TimePosition=1 WHAT:Play()
- WHAT.Volume=.7
- else
- local omg = Instance.new("Sound",brick) omg.SoundId='rbxassetid://135436466' omg.Name='what' omg.TimePosition=1 omg.Volume=.7
- end
- local musix = brick:FindFirstChild('FUnny')
- if musix then
- musix.TimePosition=5
- musix:Play()
- else
- local mus = Instance.new("Sound",brick)mus.Name='FUnny' mus.Looped=true mus.SoundId='rbxassetid://435019840' mus.Volume=6 mus.TimePosition=5
- local flance = Instance.new("FlangeSoundEffect",mus) flance.Mix=1 flance.Rate=1 flance.Depth=1
- local eq = Instance.new("EqualizerSoundEffect",mus) eq.Priority=999 eq.MidGain=2 eq.Enabled=true flance.Enabled=true mus:Play()
- end
- local force = tool.Parent:FindFirstChildOfClass("ForceField")
- if force then
- else
- theforce = Instance.new("ForceField",tool.Parent) theforce.Visible=false
- end
- end)
- tool.Activated:Connect(function()
- attack=true
- wait(.5)
- attack=false
- end)
- function CRAZY(OMG)
- local DIEE = brick:FindFirstChild('funnysoundeffectsofunnylol')
- if DIEE then
- DIEE:Play()
- else
- local fun = Instance.new("Sound",OMG) fun.Name='funnysoundeffectsofunnylol'
- fun.SoundId="rbxassetid://6011094380"
- fun.Volume=10
- --local loud = Instance.new("DistortionSoundEffect",fun)
- --loud.Level=.7
- fun:Play()
- end
- end
- brick.Touched:connect(function(Omg)
- if attack==true then
- local haha = Omg.Parent:FindFirstChildOfClass('Humanoid')
- if haha then
- CRAZY(brick)
- haha.Health=0 haha.Parent:BreakJoints()
- victim=Omg
- Omg.Parent=tool
- wait(.3)
- Omg:Destroy()
- else
- local what =Omg.Size
- local size =what.x
- if what.y >= size then
- size = what.y
- end
- if what.z >= size then
- size = what.z
- end
- if size <= 35 then
- CRAZY(brick)
- victim=Omg
- Omg.Parent=tool
- wait(.3)
- local DIE = Omg:Destroy()
- end
- end
- end
- end)
- Tool = tool
- Handle = brick
- function Create(ty)
- return function(data)
- local obj = Instance.new(ty)
- for k, v in pairs(data) do
- if type(k) == 'number' then
- v.Parent = obj
- else
- obj[k] = v
- end
- end
- return obj
- end
- end
- local BaseUrl = "rbxassetid://"
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- RunService = game:GetService("RunService")
- DamageValues = {
- BaseDamage = 0,
- SlashDamage = 10,
- LungeDamage = math.huge
- }
- --For R15 avatars
- Animations = {
- R15Slash = 522635514,
- R15Lunge = 522638767
- }
- Damage = DamageValues.BaseDamage
- Grips = {
- Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
- Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- }
- Sounds = {
- Lunge = Handle:WaitForChild("h"),
- Unsheath = Handle:WaitForChild("what")
- }
- ToolEquipped = false
- for i, v in pairs(Handle:GetChildren()) do
- if v:IsA("ParticleEmitter") then
- v.Rate = 20
- end
- end
- Tool.Grip = Grips.Up
- Tool.Enabled = true
- function IsTeamMate(Player1, Player2)
- return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
- end
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function Blow(Hit)
- if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
- return
- end
- local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
- if not RightArm then
- return
- end
- local RightGrip = RightArm:FindFirstChild("RightGrip")
- if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
- return
- end
- local character = Hit.Parent
- if character == Character then
- return
- end
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if not humanoid or humanoid.Health == 0 then
- return
- end
- local player = Players:GetPlayerFromCharacter(character)
- if player and (player == Player or IsTeamMate(Player, player)) then
- return
- end
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid:TakeDamage(Damage)
- end
- function Attack()
- Damage = DamageValues.SlashDamage
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Slash")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- end
- function Lunge()
- Damage = DamageValues.LungeDamage
- Sounds.Lunge:Play()
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Lunge")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- --[[
- if CheckIfAlive() then
- local Force = Instance.new("BodyVelocity")
- Force.velocity = Vector3.new(0, 10, 0)
- Force.maxForce = Vector3.new(0, 4000, 0)
- Debris:AddItem(Force, 0.4)
- Force.Parent = Torso
- end
- ]]
- wait(0.2)
- Tool.Grip = Grips.Out
- wait(0.6)
- Tool.Grip = Grips.Up
- Damage = DamageValues.SlashDamage
- end
- Tool.Enabled = true
- LastAttack = 0
- function Activated()
- if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
- return
- end
- Tool.Enabled = false
- local Tick = RunService.Stepped:wait()
- if (Tick - LastAttack < 0.2) then
- Lunge()
- else
- Attack()
- end
- LastAttack = Tick
- --wait(0.5)
- Damage = DamageValues.BaseDamage
- local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
- Name = "R15Slash",
- AnimationId = BaseUrl .. Animations.R15Slash,
- Parent = Tool
- })
- local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
- Name = "R15Lunge",
- AnimationId = BaseUrl .. Animations.R15Lunge,
- Parent = Tool
- })
- Tool.Enabled = true
- end
- function CheckIfAlive()
- 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)
- end
- function Equipped()
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
- if not CheckIfAlive() then
- return
- end
- ToolEquipped = true
- Sounds.Unsheath:Play()
- end
- function Unequipped()
- Tool.Grip = Grips.Up
- ToolEquipped = false
- end
- Tool.Activated:Connect(Activated)
- Tool.Equipped:Connect(Equipped)
- Tool.Unequipped:Connect(Unequipped)
- Connection = Handle.Touched:Connect(Blow)
- while wait() do
- for i = 1, 255 do
- --script.Parent.TextStrokeColor3 = Color3.fromHSV(i/255, 1, 1)
- n.TextColor3 = Color3.fromHSV(i/255, 1, 1)
- wait()
- n.Text=texts[math.random(1,#texts)]
- brick.BrickColor=BrickColor.Random()
- victim.Color=brick.Color
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement