Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local color = BrickColor.new("Brown")
- local material = "Slate"
- local lifetime = 7
- local debuff = 25 -- debuff dureation pog
- function Use(...)
- local args = {...}
- local torso = args[1].Character.Torso
- local p = Instance.new("Part")
- p.CanCollide, p.BrickColor, p.Material, p.Position, p.Size
- = false, color, material, torso.CFrame * CFrame.new(0, 0, -7), Vector3.new(5, 5, 5)
- p.Parent = workspace
- local bv = Instance.new("LinearVelocity")
- bv.VelocityConstraintMode, bv.MaxForce, bv.VectorVelocity = Enum.VelocityConstraintMode.Vector, Vector3.new(math.huge, math.huge, math.huge), args[3]
- bv.Parent = p
- local junk = Instance.new("Part")
- junk.Anchored, junk.CanCollide, junk.Transparency =
- true, false, 1
- junk.Parent = workspace
- local bg = Instance.new("AlignOrientation")
- local att = Instance.new("Attachment", p)
- local att1 = Instance.new("Attachment", junk)
- bg.AlignType, bg.Mode, bg.Attachment0, bg.Attachment1, bg.RigidityEnabled
- = Enum.AlignType.Parallel, Enum.OrientationAlignmentMode.TwoAttachment, att, att1, true
- att1.Orientation = Vector3.new(0, 0, 0)
- coroutine.wrap(function()
- task.wait(0.2)
- bg:Destroy()
- att:Destroy()
- att1.Orientation = Vector3.new(0, 0, 270)
- task.wait(lifetime)
- att1:Destroy()
- junk:Destroy()
- end)()
- require(game.ServerScriptService.Libraries.DamageService):RegisterDamage(args[1], {p}, 50, function(hit)
- if game.Players:FindFirstChild(hit.Parent.Name) then
- local hitHum = hit.Parent:FindFirstChild("Humanoid")
- if hitHum and hitHum.Health > 0 and hit.Parent:FindFirstChild("Torso") then
- coroutine.wrap(function()
- local old = hitHum.JumpPower
- hitHum.JumpPower = 0
- task.wait(debuff)
- hitHum.JumpPower = old
- end)()
- local newbg = Instance.new("AlignOrientation")
- local att0 = Instance.new("Attachment", hit.Parent.Torso)
- newbg.MaxTorque, newbg.AlignType, newbg.Mode, newbg.Responsiveness, newbg.Attachment0, newbg.Attachment1
- = Vector3.new(math.huge, math.huge, math.huge), Enum.AlignType.Parallel, Enum.OrientationAlignmentMode.TwoAttachment, 100, att0, att1
- task.wait(3)
- newbg:Destroy()
- att0:Destroy()
- end
- end
- end)
- game:GetService("Debris"):AddItem(p, lifetime)
- end
- return Use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement