wait(0.05) Bin = script.Parent Backpack = Bin.Parent Me = Backpack.Parent PlayerGui = Me.PlayerGui Character = Me.Character Humanoid = Character.Humanoid Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] RightArm = Character["Right Arm"] LeftLeg = Character["Left Leg"] RightLeg = Character["Right Leg"] Neck = Torso["Neck"] RightShoulder = Torso["Right Shoulder"] LeftShoulder = Torso["Left Shoulder"] RightHip = Torso["Right Hip"] LeftHip = Torso["Left Hip"] NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) function RefreshWelds() Neck.C0 = NeckC0 Neck.C1 = NeckC1 RightShoulder.C0 = RightShoulderC0 RightShoulder.C1 = RightShoulderC1 LeftShoulder.C0 = LeftShoulderC0 LeftShoulder.C1 = LeftShoulderC1 RightHip.C0 = RightHipC0 RightHip.C1 = RightHipC1 LeftHip.C0 = LeftHipC0 LeftHip.C1 = LeftHipC1 end function CreateTag(Attacker, VictimHumanoid) for i, v in pairs(VictimHumanoid:GetChildren()) do if v.Name == "creator" then v:Remove() end end Tag = Instance.new("ObjectValue") Tag.Parent = VictimHumanoid Tag.Name = "creator" Tag.Value = Attacker end Thing = false Busy = script.Parent.Occupied function onKeyDown(Key) if not Thing and not Busy.Value then Key = Key:lower() if Key == "z" and Thing == false and Busy.Value == false and Character:findFirstChild("Humanoid") ~= nil then Thing = true Busy.Value = true if script.Parent:findFirstChild("Slash1") ~= nil then slash = script.Parent.Slash1:clone() slash.Parent = script.Parent game.Debris:AddItem(slash, 6) wait(0.1) slash = Humanoid:LoadAnimation(slash) wait() slash:Play() wait(0.5) p = Instance.new("Part") p.Parent = game.Workspace p.CanCollide = false p.Name = "Wave" p.Size = Vector3.new(5,1,5) p.BrickColor = BrickColor.new(1) p.Transparency = 0.8 p.TopSurface = "Smooth" p.BottomSurface = "Smooth" p.Shape = "Ball" p.CFrame = Torso.CFrame * CFrame.new(Vector3.new(0, 0, 0)) m = Instance.new("SpecialMesh") m.Parent = p m.MeshType = "Sphere" m.Scale = Vector3.new(3,0.1,3) Owner = Instance.new("ObjectValue") Owner.Parent = p Owner.Name = "Owner" Owner.Value = Me d = Instance.new("BodyGyro") d.Parent = p d.maxTorque = Vector3.new(math.huge, math.huge, math.huge) d.cframe = CFrame.fromEulerAnglesXYZ(0, 0, 0) b = Instance.new("BodyVelocity") b.Parent = p b.maxForce = Vector3.new(math.huge, math.huge, math.huge) b.velocity = Torso.CFrame.lookVector * 200 l = script.Dmg:clone() l.Parent = p l.Disabled = false slash:Remove() end wait(4) Thing = false Busy.Value = false end end end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.KeyDown:connect(onKeyDown) --mouse.Icon = "rbxasset://textures\GunCursor.png" --mouse.Button1Down:connect(function() onButton1Down(mouse) end) end Bin.Selected:connect(onEquippedLocal) function onDamage(Hit) if Activated and Melee then Safe = Humanoid.Health if Hit.Parent.Name ~= Me.Name then Humanoid.Health = Safe end end end LeftArm.Touched:connect(onDamage) RightArm.Touched:connect(onDamage)~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~