Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local regmod = require(game.ServerScriptService.RotatedRegion3)
- debounce = false
- game.ReplicatedStorage.Classes.Demon.Trigger.OnServerEvent:Connect(function(player, Action)
- local char = player.Character
- local Combo = char:FindFirstChild("Combo")
- local humanoid = char:FindFirstChild("Humanoid")
- local attack1 = humanoid:LoadAnimation(script.Combo1)
- local attack2 = humanoid:LoadAnimation(script.Combo2)
- local attack3 = humanoid:LoadAnimation(script.Combo3)
- local attack4 = humanoid:LoadAnimation(script.Combo4)
- local attack5 = humanoid:LoadAnimation(script.Combo5)
- local IC = game.ReplicatedStorage.Effects.Demon.Otherthing:Clone()
- local transformation = game.ReplicatedStorage.Effects.Demon.Transformation:Clone()
- local HB = game.ReplicatedStorage.Classes.Demon.Hitbox:Clone()
- local LA = game.ReplicatedStorage.Classes.Demon.Left:Clone()
- local RA = game.ReplicatedStorage.Classes.Demon.Right:Clone()
- local torso = game.ReplicatedStorage.Classes.Demon.Torso:Clone()
- if Action == "Attack" then
- if debounce == true then return end
- if Combo.Value == 1 then
- HB.Parent = workspace
- HB.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,1,-2.5)
- HB.Size = Vector3.new(3.4, 6.3, 3)
- HB.Orientation = HB.Orientation + Vector3.new(0, 0, -35)
- local BV = Instance.new("BodyVelocity", char.HumanoidRootPart) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = BV.Parent.CFrame.lookVector * 5
- debounce = true
- wait()
- char["Right Arm"].Right.one.Enabled = true
- char["Right Arm"].Right.two.Enabled = true
- char["Right Arm"].Right.three.Enabled = true
- char["Left Arm"].Left.one.Enabled = true
- char["Left Arm"].Left.two.Enabled = true
- char["Left Arm"].Left.three.Enabled = true
- attack1:Play()
- game:GetService("Debris"):AddItem(BV, .1)
- wait(.1)
- HB.BrickColor = BrickColor.new("Really red")
- HB.SelectionBox.Color3 = Color3.new(255,0,0)
- local NewRegion = regmod.Block(HB.CFrame, HB.Size) local RTable = NewRegion.Cast(NewRegion)
- for i,v in ipairs(RTable) do
- if v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") and v.Parent:FindFirstChild("Torso") and v.Parent:FindFirstChild("Head") and v.Parent:FindFirstChild("Left Arm") and v.Parent:FindFirstChild("Right Arm") and v.Parent:FindFirstChild("Left Leg") and v.Parent:FindFirstChild("Right Leg") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~= char then
- local Deb = Instance.new("BoolValue", v.Parent)Deb.Name = "Deb" game:GetService("Debris"):AddItem(Deb,1)
- v.Parent.Humanoid:TakeDamage(25)
- elseif v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") == nil and v.Parent:FindFirstChild("Torso") == nil and v.Parent:FindFirstChild("Head") == nil and v.Parent:FindFirstChild("Left Arm") == nil and v.Parent:FindFirstChild("Right Arm") == nil and v.Parent:FindFirstChild("Left Leg") == nil and v.Parent:FindFirstChild("Right Leg") == nil and v.Parent == char then
- Combo.Value = 1
- end
- end
- wait(.45)
- char["Right Arm"].Right.one.Enabled = false
- char["Right Arm"].Right.two.Enabled = false
- char["Right Arm"].Right.three.Enabled = false
- char["Left Arm"].Left.one.Enabled = false
- char["Left Arm"].Left.two.Enabled = false
- char["Left Arm"].Left.three.Enabled = false
- Combo.Value = 2
- game:GetService("Debris"):AddItem(HB, .35)
- debounce = false
- elseif Combo.Value == 2 then
- HB.Parent = workspace
- HB.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,1, -2.5)
- HB.Size = Vector3.new(3, 6.3, 3)
- HB.Orientation = HB.Orientation + Vector3.new(0,0,35)
- local BV = Instance.new("BodyVelocity", char.HumanoidRootPart) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = BV.Parent.CFrame.lookVector * 5
- debounce = true
- wait()
- char["Right Arm"].Right.one.Enabled = true
- char["Right Arm"].Right.two.Enabled = true
- char["Right Arm"].Right.three.Enabled = true
- char["Left Arm"].Left.one.Enabled = true
- char["Left Arm"].Left.two.Enabled = true
- char["Left Arm"].Left.three.Enabled = true
- attack2:Play()
- game:GetService("Debris"):AddItem(BV, .1)
- wait(.1)
- HB.BrickColor = BrickColor.new("Really red")
- HB.SelectionBox.Color3 = Color3.new(255,0,0)
- local NewRegion = regmod.Block(HB.CFrame, HB.Size) local RTable = NewRegion.Cast(NewRegion)
- for i,v in ipairs(RTable) do
- if v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") and v.Parent:FindFirstChild("Torso") and v.Parent:FindFirstChild("Head") and v.Parent:FindFirstChild("Left Arm") and v.Parent:FindFirstChild("Right Arm") and v.Parent:FindFirstChild("Left Leg") and v.Parent:FindFirstChild("Right Leg") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~= char then
- local Deb = Instance.new("BoolValue", v.Parent)Deb.Name = "Deb" game:GetService("Debris"):AddItem(Deb,1)
- v.Parent.Humanoid:TakeDamage(25)
- elseif v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") == nil and v.Parent:FindFirstChild("Torso") == nil and v.Parent:FindFirstChild("Head") == nil and v.Parent:FindFirstChild("Left Arm") == nil and v.Parent:FindFirstChild("Right Arm") == nil and v.Parent:FindFirstChild("Left Leg") == nil and v.Parent:FindFirstChild("Right Leg") == nil and v.Parent == char then
- Combo.Value = 1
- end
- end
- wait(.45)
- char["Right Arm"].Right.one.Enabled = false
- char["Right Arm"].Right.two.Enabled = false
- char["Right Arm"].Right.three.Enabled = false
- char["Left Arm"].Left.one.Enabled = false
- char["Left Arm"].Left.two.Enabled = false
- char["Left Arm"].Left.three.Enabled = false
- Combo.Value = 3
- game:GetService("Debris"):AddItem(HB, .35)
- debounce = false
- elseif Combo.Value == 3 then
- HB.Parent = workspace
- HB.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,-3)
- HB.Size = Vector3.new(4, 6.2, 3.1)
- local BV = Instance.new("BodyVelocity", char.HumanoidRootPart) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = BV.Parent.CFrame.lookVector * 5
- debounce = true
- wait()
- char["Right Arm"].Right.one.Enabled = true
- char["Right Arm"].Right.two.Enabled = true
- char["Right Arm"].Right.three.Enabled = true
- char["Left Arm"].Left.one.Enabled = true
- char["Left Arm"].Left.two.Enabled = true
- char["Left Arm"].Left.three.Enabled = true
- attack3:Play()
- game:GetService("Debris"):AddItem(BV, .1)
- wait(.1)
- HB.BrickColor = BrickColor.new("Really red")
- HB.SelectionBox.Color3 = Color3.new(255,0,0)
- local NewRegion = regmod.Block(HB.CFrame, HB.Size) local RTable = NewRegion.Cast(NewRegion)
- for i,v in ipairs(RTable) do
- if v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") and v.Parent:FindFirstChild("Torso") and v.Parent:FindFirstChild("Head") and v.Parent:FindFirstChild("Left Arm") and v.Parent:FindFirstChild("Right Arm") and v.Parent:FindFirstChild("Left Leg") and v.Parent:FindFirstChild("Right Leg") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~= char then
- local Deb = Instance.new("BoolValue", v.Parent)Deb.Name = "Deb" game:GetService("Debris"):AddItem(Deb,1)
- v.Parent.Humanoid:TakeDamage(25)
- elseif v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") == nil and v.Parent:FindFirstChild("Torso") == nil and v.Parent:FindFirstChild("Head") == nil and v.Parent:FindFirstChild("Left Arm") == nil and v.Parent:FindFirstChild("Right Arm") == nil and v.Parent:FindFirstChild("Left Leg") == nil and v.Parent:FindFirstChild("Right Leg") == nil and v.Parent == char then
- Combo.Value = 1
- end
- end
- wait(.4)
- char["Right Arm"].Right.one.Enabled = false
- char["Right Arm"].Right.two.Enabled = false
- char["Right Arm"].Right.three.Enabled = false
- char["Left Arm"].Left.one.Enabled = false
- char["Left Arm"].Left.two.Enabled = false
- char["Left Arm"].Left.three.Enabled = false
- Combo.Value = 4
- game:GetService("Debris"):AddItem(HB, .35)
- debounce = false
- elseif Combo.Value == 4 then
- HB.Parent = workspace
- HB.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0, -2.5)
- HB.Size = Vector3.new(2.6, 5.4, 2.5)
- HB.Orientation = HB.Orientation + Vector3.new(0,0,65)
- local BV = Instance.new("BodyVelocity", char.HumanoidRootPart) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = BV.Parent.CFrame.lookVector * 5
- debounce = true
- wait()
- char["Right Arm"].Right.one.Enabled = true
- char["Right Arm"].Right.two.Enabled = true
- char["Right Arm"].Right.three.Enabled = true
- char["Left Arm"].Left.one.Enabled = true
- char["Left Arm"].Left.two.Enabled = true
- char["Left Arm"].Left.three.Enabled = true
- attack4:Play()
- game:GetService("Debris"):AddItem(BV, .1)
- wait(.1)
- HB.BrickColor = BrickColor.new("Really red")
- HB.SelectionBox.Color3 = Color3.new(255,0,0)
- local NewRegion = regmod.Block(HB.CFrame, HB.Size) local RTable = NewRegion.Cast(NewRegion)
- for i,v in ipairs(RTable) do
- if v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") and v.Parent:FindFirstChild("Torso") and v.Parent:FindFirstChild("Head") and v.Parent:FindFirstChild("Left Arm") and v.Parent:FindFirstChild("Right Arm") and v.Parent:FindFirstChild("Left Leg") and v.Parent:FindFirstChild("Right Leg") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~= char then
- local Deb = Instance.new("BoolValue", v.Parent)Deb.Name = "Deb" game:GetService("Debris"):AddItem(Deb,1)
- v.Parent.Humanoid:TakeDamage(25)
- elseif v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") == nil and v.Parent:FindFirstChild("Torso") == nil and v.Parent:FindFirstChild("Head") == nil and v.Parent:FindFirstChild("Left Arm") == nil and v.Parent:FindFirstChild("Right Arm") == nil and v.Parent:FindFirstChild("Left Leg") == nil and v.Parent:FindFirstChild("Right Leg") == nil and v.Parent == char then
- Combo.Value = 1
- end
- end
- wait(.45)
- char["Right Arm"].Right.one.Enabled = false
- char["Right Arm"].Right.two.Enabled = false
- char["Right Arm"].Right.three.Enabled = false
- char["Left Arm"].Left.one.Enabled = false
- char["Left Arm"].Left.two.Enabled = false
- char["Left Arm"].Left.three.Enabled = false
- Combo.Value = 5
- game:GetService("Debris"):AddItem(HB, .35)
- debounce = false
- elseif Combo.Value == 5 then
- HB.Parent = workspace
- HB.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,.5,-3)
- HB.Size = Vector3.new(3.2, 2.7, 3.2)
- local BV = Instance.new("BodyVelocity", char.HumanoidRootPart) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = BV.Parent.CFrame.lookVector * 5
- debounce = true
- wait()
- char["Right Arm"].Right.one.Enabled = true
- char["Right Arm"].Right.two.Enabled = true
- char["Right Arm"].Right.three.Enabled = true
- char["Left Arm"].Left.one.Enabled = true
- char["Left Arm"].Left.two.Enabled = true
- char["Left Arm"].Left.three.Enabled = true
- attack5:Play()
- game:GetService("Debris"):AddItem(BV, .1)
- wait(.1)
- HB.BrickColor = BrickColor.new("Really red")
- HB.SelectionBox.Color3 = Color3.new(255,0,0)
- local NewRegion = regmod.Block(HB.CFrame, HB.Size) local RTable = NewRegion.Cast(NewRegion)
- for i,v in ipairs(RTable) do
- if v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") and v.Parent:FindFirstChild("Torso") and v.Parent:FindFirstChild("Head") and v.Parent:FindFirstChild("Left Arm") and v.Parent:FindFirstChild("Right Arm") and v.Parent:FindFirstChild("Left Leg") and v.Parent:FindFirstChild("Right Leg") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~= char then
- local Deb = Instance.new("BoolValue", v.Parent)Deb.Name = "Deb" game:GetService("Debris"):AddItem(Deb,1)
- v.Parent.Humanoid:TakeDamage(25)
- elseif v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("HumanoidRootPart") == nil and v.Parent:FindFirstChild("Torso") == nil and v.Parent:FindFirstChild("Head") == nil and v.Parent:FindFirstChild("Left Arm") == nil and v.Parent:FindFirstChild("Right Arm") == nil and v.Parent:FindFirstChild("Left Leg") == nil and v.Parent:FindFirstChild("Right Leg") == nil and v.Parent == char then
- Combo.Value = 1
- end
- end
- wait(1)
- char["Right Arm"].Right.one.Enabled = false
- char["Right Arm"].Right.two.Enabled = false
- char["Right Arm"].Right.three.Enabled = false
- char["Left Arm"].Left.one.Enabled = false
- char["Left Arm"].Left.two.Enabled = false
- char["Left Arm"].Left.three.Enabled = false
- Combo.Value = 1
- game:GetService("Debris"):AddItem(HB, .35)
- debounce = false
- end
- end
- end)
RAW Paste Data