SHOW:
|
|
- or go back to the newest paste.
| 1 | --By Rufus14 | |
| 2 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 3 | function sandbox(var,func) | |
| 4 | local env = getfenv(func) | |
| 5 | local newenv = setmetatable({},{
| |
| 6 | __index = function(self,k) | |
| 7 | if k=="script" then | |
| 8 | return var | |
| 9 | else | |
| 10 | return env[k] | |
| 11 | end | |
| 12 | end, | |
| 13 | }) | |
| 14 | setfenv(func,newenv) | |
| 15 | return func | |
| 16 | end | |
| 17 | cors = {}
| |
| 18 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 19 | Tool0 = Instance.new("Tool")
| |
| 20 | Part1 = Instance.new("Part")
| |
| 21 | SpecialMesh2 = Instance.new("SpecialMesh")
| |
| 22 | Sound3 = Instance.new("Sound")
| |
| 23 | Sound4 = Instance.new("Sound")
| |
| 24 | Sound5 = Instance.new("Sound")
| |
| 25 | Sound6 = Instance.new("Sound")
| |
| 26 | Sound7 = Instance.new("Sound")
| |
| 27 | Sound8 = Instance.new("Sound")
| |
| 28 | Sound9 = Instance.new("Sound")
| |
| 29 | Sound10 = Instance.new("Sound")
| |
| 30 | Script11 = Instance.new("Script")
| |
| 31 | Tool0.Name = "Chainsaw" | |
| 32 | Tool0.Parent = mas | |
| 33 | Tool0.ToolTip = "really cuts people in half" | |
| 34 | Part1.Name = "Handle" | |
| 35 | Part1.Parent = Tool0 | |
| 36 | Part1.CFrame = CFrame.new(-0.100341909, 2.97482109, 5.56015015, -0.999999762, 7.57067573e-06, 1.3017052e-07, -4.55088411e-08, 2.98023224e-08, -0.99999994, -7.71969371e-06, -0.999999881, -2.98023224e-07) | |
| 37 | Part1.Orientation = Vector3.new(89.9800034, 156.410004, -56.7799988) | |
| 38 | Part1.Position = Vector3.new(-0.100341909, 2.97482109, 5.56015015) | |
| 39 | Part1.Rotation = Vector3.new(90, 0, -180) | |
| 40 | Part1.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
| 41 | Part1.Size = Vector3.new(0.200000003, 0.880000353, 3.94999981) | |
| 42 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 43 | Part1.BrickColor = BrickColor.new("Dark stone grey")
| |
| 44 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 45 | Part1.brickColor = BrickColor.new("Dark stone grey")
| |
| 46 | Part1.FormFactor = Enum.FormFactor.Custom | |
| 47 | Part1.formFactor = Enum.FormFactor.Custom | |
| 48 | SpecialMesh2.Parent = Part1 | |
| 49 | SpecialMesh2.MeshId = "http://roblox.com/asset/?id=2766469" | |
| 50 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=185441602" | |
| 51 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
| 52 | Sound3.Name = "Hit" | |
| 53 | Sound3.Parent = Part1 | |
| 54 | Sound3.SoundId = "rbxassetid://3848646775" | |
| 55 | Sound4.Name = "Charge" | |
| 56 | Sound4.Parent = Part1 | |
| 57 | Sound4.Looped = true | |
| 58 | Sound4.SoundId = "rbxassetid://3848643367" | |
| 59 | Sound5.Name = "Idle" | |
| 60 | Sound5.Parent = Part1 | |
| 61 | - | Tool0.Parent = owner.Character |
| 61 | + | |
| 62 | - | coroutine.wrap(function() |
| 62 | + | |
| 63 | Sound5.Volume = 0.25 | |
| 64 | Sound6.Name = "Equip" | |
| 65 | Sound6.Parent = Part1 | |
| 66 | Sound6.SoundId = "rbxassetid://3848640975" | |
| 67 | - | tool = Tool0 |
| 67 | + | |
| 68 | Sound7.Parent = Part1 | |
| 69 | Sound7.SoundId = "rbxassetid://4459571342" | |
| 70 | Sound8.Name = "Swoosh" | |
| 71 | Sound8.Parent = Part1 | |
| 72 | Sound8.SoundId = "rbxassetid://3755636438" | |
| 73 | Sound9.Name = "Crush2" | |
| 74 | Sound9.Parent = Part1 | |
| 75 | Sound9.SoundId = "rbxassetid://4459573786" | |
| 76 | Sound10.Name = "Crush3" | |
| 77 | Sound10.Parent = Part1 | |
| 78 | Sound10.SoundId = "rbxassetid://4459571443" | |
| 79 | Script11.Parent = Tool0 | |
| 80 | table.insert(cors,sandbox(Script11,function() | |
| 81 | --By Rufus14 | |
| 82 | canattack = true | |
| 83 | cananimate = false | |
| 84 | equipped = false | |
| 85 | tool = script.Parent | |
| 86 | handle = tool.Handle | |
| 87 | equipsound = handle.Equip | |
| 88 | charge = handle.Charge | |
| 89 | swishsound = handle.Swoosh | |
| 90 | hitsound = handle.Hit | |
| 91 | idlesound = handle.Idle | |
| 92 | goresound = handle.Crush | |
| 93 | goresound3 = handle.Crush3 | |
| 94 | goresound2 = handle.Crush2 | |
| 95 | goreplaying = false | |
| 96 | owner = nil | |
| 97 | character = nil | |
| 98 | mouseclick = false | |
| 99 | attacknumber = 1 | |
| 100 | swingspeed = 0.07 | |
| 101 | counter = 0 | |
| 102 | gotsomeone = false | |
| 103 | runservice = game:GetService("RunService")
| |
| 104 | -- | |
| 105 | tool.Activated:connect(function() | |
| 106 | mouseclick = true | |
| 107 | end) | |
| 108 | tool.Deactivated:connect(function() | |
| 109 | mouseclick = false | |
| 110 | end) | |
| 111 | -- | |
| 112 | function ragdollkill(character) | |
| 113 | local victimshumanoid = character:findFirstChildOfClass("Humanoid")
| |
| 114 | local checkragd = character:findFirstChild("ragded")
| |
| 115 | if not checkragd then | |
| 116 | local boolvalue = Instance.new("BoolValue", character)
| |
| 117 | boolvalue.Name = "ragded" | |
| 118 | if not character:findFirstChild("UpperTorso") then
| |
| 119 | local ragdollmodel = Instance.new("Model", workspace)
| |
| 120 | ragdollmodel.Name = character.Name | |
| 121 | character.Archivable = true | |
| 122 | for i,v in pairs(character:GetChildren()) do | |
| 123 | if v.ClassName == "Sound" then | |
| 124 | v:remove() | |
| 125 | end | |
| 126 | for q,w in pairs(v:GetChildren()) do | |
| 127 | if w.ClassName == "Sound" then | |
| 128 | w:remove() | |
| 129 | end | |
| 130 | end | |
| 131 | end | |
| 132 | local ragdollright = character:Clone() | |
| 133 | local ragdollleft = character:Clone() | |
| 134 | for i,v in pairs(ragdollright:GetDescendants()) do | |
| 135 | if v.ClassName == "Motor" or v.ClassName == "Motor6D" then | |
| 136 | v:destroy() | |
| 137 | end | |
| 138 | end | |
| 139 | ragdollright:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
| |
| 140 | ragdollright:findFirstChildOfClass("Humanoid").Health = 0
| |
| 141 | if ragdollright:findFirstChild("Health") then
| |
| 142 | if ragdollright:findFirstChild("Health").ClassName == "Script" then
| |
| 143 | ragdollright:findFirstChild("Health").Disabled = true
| |
| 144 | end | |
| 145 | end | |
| 146 | -- | |
| 147 | for i,v in pairs(ragdollleft:GetDescendants()) do | |
| 148 | if v.ClassName == "Motor" or v.ClassName == "Motor6D" then | |
| 149 | v:destroy() | |
| 150 | end | |
| 151 | end | |
| 152 | ragdollleft:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
| |
| 153 | ragdollleft:findFirstChildOfClass("Humanoid").Health = 0
| |
| 154 | if ragdollleft:findFirstChild("Health") then
| |
| 155 | if ragdollleft:findFirstChild("Health").ClassName == "Script" then
| |
| 156 | ragdollright:findFirstChild("Health").Disabled = true
| |
| 157 | end | |
| 158 | end | |
| 159 | for i,v in pairs(character:GetChildren()) do | |
| 160 | if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
| 161 | v:destroy() | |
| 162 | end | |
| 163 | end | |
| 164 | for i,v in pairs(character:GetChildren()) do | |
| 165 | if v.ClassName == "Accessory" then | |
| 166 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
| |
| 167 | if attachment1 then | |
| 168 | for q,w in pairs(character:GetChildren()) do | |
| 169 | if w.ClassName == "Part" then | |
| 170 | local attachment2 = w:findFirstChild(attachment1.Name) | |
| 171 | if attachment2 then | |
| 172 | local hinge = Instance.new("HingeConstraint", v.Handle)
| |
| 173 | hinge.Attachment0 = attachment1 | |
| 174 | hinge.Attachment1 = attachment2 | |
| 175 | hinge.LimitsEnabled = true | |
| 176 | hinge.LowerAngle = 0 | |
| 177 | hinge.UpperAngle = 0 | |
| 178 | end | |
| 179 | end | |
| 180 | end | |
| 181 | end | |
| 182 | end | |
| 183 | end | |
| 184 | ragdollright.Parent = ragdollmodel | |
| 185 | ragdollleft.Parent = ragdollmodel | |
| 186 | -- | |
| 187 | ragdollleft.Torso.Transparency = 0.01 | |
| 188 | ragdollright.Torso.Transparency = 0.01 | |
| 189 | if ragdollleft:findFirstChild("HumanoidRootPart") then
| |
| 190 | ragdollleft:findFirstChild("HumanoidRootPart").Transparency = 1
| |
| 191 | end | |
| 192 | -- | |
| 193 | local leftinvisible = Instance.new("Part", ragdollmodel)
| |
| 194 | leftinvisible.Size = Vector3.new(1.2,2.2,1.2) | |
| 195 | leftinvisible.Material = "Glass" | |
| 196 | leftinvisible.CanCollide = false | |
| 197 | leftinvisible.Transparency = 0.999 | |
| 198 | local leftweld = Instance.new("Weld", leftinvisible)
| |
| 199 | leftweld.Part0 = ragdollleft.Torso | |
| 200 | leftweld.Part1 = leftinvisible | |
| 201 | leftweld.C0 = CFrame.new(0.5,0,0) | |
| 202 | local leftred = Instance.new("Part", ragdollleft.Torso)
| |
| 203 | leftred.Size = Vector3.new(0.925,1.925,0.925) | |
| 204 | leftred.Material = "Pebble" | |
| 205 | leftred.CanCollide = false | |
| 206 | leftred.BrickColor = BrickColor.new("Maroon")
| |
| 207 | local leftredweld = Instance.new("Weld", leftred)
| |
| 208 | leftredweld.Part0 = ragdollleft.Torso | |
| 209 | leftredweld.Part1 = leftred | |
| 210 | leftredweld.C0 = CFrame.new(-0.5,0,0) | |
| 211 | -- | |
| 212 | local rightinvisible = Instance.new("Part", ragdollmodel)
| |
| 213 | rightinvisible.Size = Vector3.new(1.2,2.2,1.2) | |
| 214 | rightinvisible.Material = "Glass" | |
| 215 | rightinvisible.CanCollide = false | |
| 216 | rightinvisible.Transparency = 0.999 | |
| 217 | local rightweld = Instance.new("Weld", rightinvisible)
| |
| 218 | rightweld.Part0 = ragdollright.Torso | |
| 219 | rightweld.Part1 = rightinvisible | |
| 220 | rightweld.C0 = CFrame.new(-0.5,0,0) | |
| 221 | local rightred = Instance.new("Part", ragdollright.Torso)
| |
| 222 | rightred.Size = Vector3.new(0.925,1.925,0.925) | |
| 223 | rightred.Material = "Pebble" | |
| 224 | rightred.CanCollide = false | |
| 225 | rightred.BrickColor = BrickColor.new("Maroon")
| |
| 226 | local rightredweld = Instance.new("Weld", rightred)
| |
| 227 | rightredweld.Part0 = ragdollright.Torso | |
| 228 | rightredweld.Part1 = rightred | |
| 229 | rightredweld.C0 = CFrame.new(0.5,0,0) | |
| 230 | -- | |
| 231 | if ragdollleft:findFirstChild("Right Arm") then
| |
| 232 | ragdollleft["Right Arm"]:destroy() | |
| 233 | end | |
| 234 | if ragdollright:findFirstChild("Right Arm") then
| |
| 235 | local glue = Instance.new("Glue", ragdollright.Torso)
| |
| 236 | glue.Part0 = ragdollright.Torso | |
| 237 | glue.Part1 = ragdollright:findFirstChild("Right Arm")
| |
| 238 | glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 239 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 240 | local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Arm"))
| |
| 241 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 242 | limbcollider.Shape = "Cylinder" | |
| 243 | limbcollider.Transparency = 1 | |
| 244 | limbcollider.Name = "LimbCollider" | |
| 245 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 246 | limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Arm")
| |
| 247 | limbcolliderweld.Part1 = limbcollider | |
| 248 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 249 | end | |
| 250 | if ragdollright:findFirstChild("Left Arm") then
| |
| 251 | ragdollright["Left Arm"]:destroy() | |
| 252 | end | |
| 253 | if ragdollleft:findFirstChild("Left Arm") then
| |
| 254 | local glue = Instance.new("Glue", ragdollleft.Torso)
| |
| 255 | glue.Part0 = ragdollleft.Torso | |
| 256 | glue.Part1 = ragdollleft:findFirstChild("Left Arm")
| |
| 257 | glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 258 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 259 | local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Arm"))
| |
| 260 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 261 | limbcollider.Shape = "Cylinder" | |
| 262 | limbcollider.Name = "LimbCollider" | |
| 263 | limbcollider.Transparency = 1 | |
| 264 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 265 | limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Arm")
| |
| 266 | limbcolliderweld.Part1 = limbcollider | |
| 267 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 268 | end | |
| 269 | if ragdollright:findFirstChild("Left Leg") then
| |
| 270 | ragdollright["Left Leg"]:destroy() | |
| 271 | end | |
| 272 | if ragdollleft:findFirstChild("Left Leg") then
| |
| 273 | local glue = Instance.new("Glue", ragdollleft.Torso)
| |
| 274 | glue.Part0 = ragdollleft.Torso | |
| 275 | glue.Part1 = ragdollleft:findFirstChild("Left Leg")
| |
| 276 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 277 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 278 | local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Leg"))
| |
| 279 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 280 | limbcollider.Shape = "Cylinder" | |
| 281 | limbcollider.Name = "LimbCollider" | |
| 282 | limbcollider.Transparency = 1 | |
| 283 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 284 | limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Leg")
| |
| 285 | limbcolliderweld.Part1 = limbcollider | |
| 286 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 287 | end | |
| 288 | if ragdollleft:findFirstChild("Right Leg") then
| |
| 289 | ragdollleft["Right Leg"]:destroy() | |
| 290 | end | |
| 291 | if ragdollright:findFirstChild("Right Leg") then
| |
| 292 | local glue = Instance.new("Glue", ragdollright.Torso)
| |
| 293 | glue.Part0 = ragdollright.Torso | |
| 294 | glue.Part1 = ragdollright:findFirstChild("Right Leg")
| |
| 295 | glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 296 | glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 297 | local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Leg"))
| |
| 298 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 299 | limbcollider.Shape = "Cylinder" | |
| 300 | limbcollider.Name = "LimbCollider" | |
| 301 | limbcollider.Transparency = 1 | |
| 302 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 303 | limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Leg")
| |
| 304 | limbcolliderweld.Part1 = limbcollider | |
| 305 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 306 | end | |
| 307 | if ragdollleft:findFirstChild("Head") then
| |
| 308 | ragdollleft["Head"]:destroy() | |
| 309 | end | |
| 310 | if ragdollright:findFirstChild("Head") and ragdollright.Torso:findFirstChild("NeckAttachment") then
| |
| 311 | local HeadAttachment = Instance.new("Attachment", ragdollright["Head"])
| |
| 312 | HeadAttachment.Position = Vector3.new(0, -0.5, 0) | |
| 313 | local connection = Instance.new('HingeConstraint', ragdollright["Head"])
| |
| 314 | connection.LimitsEnabled = true | |
| 315 | connection.Attachment0 = ragdollright.Torso.NeckAttachment | |
| 316 | connection.Attachment1 = HeadAttachment | |
| 317 | connection.UpperAngle = 60 | |
| 318 | connection.LowerAngle = -60 | |
| 319 | elseif ragdollright:findFirstChild("Head") and not ragdollright.Torso:findFirstChild("NeckAttachment") then
| |
| 320 | local hedweld = Instance.new("Weld", ragdollright.Torso)
| |
| 321 | hedweld.Part0 = ragdollright.Torso | |
| 322 | hedweld.Part1 = ragdollright.Head | |
| 323 | hedweld.C0 = CFrame.new(0,1.5,0) | |
| 324 | end | |
| 325 | game.Debris:AddItem(ragdollmodel, 30) | |
| 326 | local function aaaalol() | |
| 327 | wait(0.2) | |
| 328 | local function searchforvelocity(wot) | |
| 329 | for i,v in pairs(wot:GetChildren()) do | |
| 330 | searchforvelocity(v) | |
| 331 | if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then | |
| 332 | v:destroy() | |
| 333 | end | |
| 334 | end | |
| 335 | end | |
| 336 | searchforvelocity(ragdollleft) | |
| 337 | searchforvelocity(ragdollright) | |
| 338 | wait(0.5) | |
| 339 | if ragdollleft:findFirstChildOfClass("Humanoid") then
| |
| 340 | ragdollleft:findFirstChildOfClass("Humanoid").PlatformStand = true
| |
| 341 | end | |
| 342 | if ragdollleft:findFirstChild("HumanoidRootPart") then
| |
| 343 | ragdollleft:findFirstChild("HumanoidRootPart"):destroy()
| |
| 344 | end | |
| 345 | if ragdollright:findFirstChildOfClass("Humanoid") then
| |
| 346 | ragdollright:findFirstChildOfClass("Humanoid").PlatformStand = true
| |
| 347 | end | |
| 348 | if ragdollright:findFirstChild("HumanoidRootPart") then
| |
| 349 | ragdollright:findFirstChild("HumanoidRootPart"):destroy()
| |
| 350 | end | |
| 351 | end | |
| 352 | spawn(aaaalol) | |
| 353 | elseif character:findFirstChild("UpperTorso") then
| |
| 354 | character.Archivable = true | |
| 355 | for i,v in pairs(character:GetChildren()) do | |
| 356 | if v.ClassName == "Sound" then | |
| 357 | v:remove() | |
| 358 | end | |
| 359 | for q,w in pairs(v:GetChildren()) do | |
| 360 | if w.ClassName == "Sound" then | |
| 361 | w:remove() | |
| 362 | end | |
| 363 | end | |
| 364 | end | |
| 365 | local ragdoll = character:Clone() | |
| 366 | ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
| |
| 367 | for i,v in pairs(ragdoll:GetDescendants()) do | |
| 368 | if v.ClassName == "Motor" or v.ClassName == "Motor6D" then | |
| 369 | v:destroy() | |
| 370 | end | |
| 371 | end | |
| 372 | ragdoll:BreakJoints() | |
| 373 | ragdoll:findFirstChildOfClass("Humanoid").Health = 0
| |
| 374 | if ragdoll:findFirstChild("Health") then
| |
| 375 | if ragdoll:findFirstChild("Health").ClassName == "Script" then
| |
| 376 | ragdoll:findFirstChild("Health").Disabled = true
| |
| 377 | end | |
| 378 | end | |
| 379 | for i,v in pairs(character:GetChildren()) do | |
| 380 | if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then | |
| 381 | v:destroy() | |
| 382 | end | |
| 383 | end | |
| 384 | for i,v in pairs(character:GetChildren()) do | |
| 385 | if v.ClassName == "Accessory" then | |
| 386 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
| |
| 387 | if attachment1 then | |
| 388 | for q,w in pairs(character:GetChildren()) do | |
| 389 | if w.ClassName == "Part" or w.ClassName == "MeshPart" then | |
| 390 | local attachment2 = w:findFirstChild(attachment1.Name) | |
| 391 | if attachment2 then | |
| 392 | local hinge = Instance.new("HingeConstraint", v.Handle)
| |
| 393 | hinge.Attachment0 = attachment1 | |
| 394 | hinge.Attachment1 = attachment2 | |
| 395 | hinge.LimitsEnabled = true | |
| 396 | hinge.LowerAngle = 0 | |
| 397 | hinge.UpperAngle = 0 | |
| 398 | end | |
| 399 | end | |
| 400 | end | |
| 401 | end | |
| 402 | end | |
| 403 | end | |
| 404 | ragdoll.Parent = workspace | |
| 405 | local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
| |
| 406 | Humanoid.PlatformStand = true | |
| 407 | local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper) | |
| 408 | local connection = Instance.new('BallSocketConstraint', limb)
| |
| 409 | connection.LimitsEnabled = true | |
| 410 | connection.Attachment0 = attachementone | |
| 411 | connection.Attachment1 = attachmenttwo | |
| 412 | connection.TwistLimitsEnabled = true | |
| 413 | connection.TwistLowerAngle = twistlower | |
| 414 | connection.TwistUpperAngle = twistupper | |
| 415 | local limbcollider = Instance.new("Part", limb)
| |
| 416 | limbcollider.Size = Vector3.new(0.1,1,1) | |
| 417 | limbcollider.Shape = "Cylinder" | |
| 418 | limbcollider.Transparency = 1 | |
| 419 | limbcollider:BreakJoints() | |
| 420 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 421 | limbcolliderweld.Part0 = limb | |
| 422 | limbcolliderweld.Part1 = limbcollider | |
| 423 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) | |
| 424 | end | |
| 425 | local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper) | |
| 426 | local connection = Instance.new('HingeConstraint', limb)
| |
| 427 | connection.LimitsEnabled = true | |
| 428 | connection.Attachment0 = attachementone | |
| 429 | connection.Attachment1 = attachmenttwo | |
| 430 | connection.LimitsEnabled = true | |
| 431 | connection.LowerAngle = lower | |
| 432 | connection.UpperAngle = upper | |
| 433 | local limbcollider = Instance.new("Part", limb)
| |
| 434 | limbcollider.Size = Vector3.new(0.1,1,1) | |
| 435 | limbcollider.Shape = "Cylinder" | |
| 436 | limbcollider.Transparency = 1 | |
| 437 | limbcollider:BreakJoints() | |
| 438 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 439 | limbcolliderweld.Part0 = limb | |
| 440 | limbcolliderweld.Part1 = limbcollider | |
| 441 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) | |
| 442 | end | |
| 443 | local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
| |
| 444 | HeadAttachment.Position = Vector3.new(0, -0.5, 0) | |
| 445 | if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
| |
| 446 | makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50) | |
| 447 | end | |
| 448 | makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50) | |
| 449 | makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180) | |
| 450 | makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60) | |
| 451 | makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20) | |
| 452 | -- | |
| 453 | makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180) | |
| 454 | makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60) | |
| 455 | makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20) | |
| 456 | -- | |
| 457 | makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80) | |
| 458 | makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60) | |
| 459 | makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20) | |
| 460 | -- | |
| 461 | makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80) | |
| 462 | makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60) | |
| 463 | makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20) | |
| 464 | for i,v in pairs(Humanoid.Parent:GetChildren()) do | |
| 465 | if v.ClassName == "Accessory" then | |
| 466 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
| |
| 467 | if attachment1 then | |
| 468 | for q,w in pairs(Humanoid.Parent:GetChildren()) do | |
| 469 | if w.ClassName == "Part" then | |
| 470 | local attachment2 = w:findFirstChild(attachment1.Name) | |
| 471 | if attachment2 then | |
| 472 | local hinge = Instance.new("HingeConstraint", v.Handle)
| |
| 473 | hinge.Attachment0 = attachment1 | |
| 474 | hinge.Attachment1 = attachment2 | |
| 475 | hinge.LimitsEnabled = true | |
| 476 | hinge.LowerAngle = 0 | |
| 477 | hinge.UpperAngle = 0 | |
| 478 | end | |
| 479 | end | |
| 480 | end | |
| 481 | end | |
| 482 | end | |
| 483 | end | |
| 484 | for i,v in pairs(ragdoll:GetChildren()) do | |
| 485 | for q,w in pairs(v:GetChildren()) do | |
| 486 | if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then | |
| 487 | w:destroy() | |
| 488 | end | |
| 489 | end | |
| 490 | end | |
| 491 | if ragdoll:findFirstChild("HumanoidRootPart") then
| |
| 492 | ragdoll.HumanoidRootPart:destroy() | |
| 493 | end | |
| 494 | if ragdoll:findFirstChildOfClass("Humanoid") then
| |
| 495 | ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
| |
| 496 | end | |
| 497 | local function waitfordatmoment() | |
| 498 | wait(0.2) | |
| 499 | local function searchforvelocity(wot) | |
| 500 | for i,v in pairs(wot:GetChildren()) do | |
| 501 | searchforvelocity(v) | |
| 502 | if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then | |
| 503 | v:destroy() | |
| 504 | end | |
| 505 | end | |
| 506 | end | |
| 507 | searchforvelocity(ragdoll) | |
| 508 | end | |
| 509 | spawn(waitfordatmoment) | |
| 510 | game.Debris:AddItem(ragdoll, 30) | |
| 511 | end | |
| 512 | end | |
| 513 | end | |
| 514 | function damage(dmg) | |
| 515 | for i,v in pairs(workspace:GetDescendants()) do | |
| 516 | if v.ClassName == "Model" and v ~= character then | |
| 517 | local headdude = v:findFirstChild("Head")
| |
| 518 | if headdude then | |
| 519 | if (headdude.Position - handle.Position).magnitude < 3.25 then | |
| 520 | if headdude.Parent ~= nil then | |
| 521 | local humm = v:findFirstChildOfClass("Humanoid")
| |
| 522 | if humm then | |
| 523 | if humm.Parent ~= character then | |
| 524 | if humm.Health > 0 then | |
| 525 | gotsomeone = true | |
| 526 | charge.TimePosition = 1 | |
| 527 | charge:Play() | |
| 528 | character.HumanoidRootPart.CFrame = CFrame.new(character.HumanoidRootPart.Position, Vector3.new(headdude.Position.x,character.HumanoidRootPart.Position.y,headdude.Position.z)) | |
| 529 | humm.Health = humm.Health - dmg | |
| 530 | coroutine.wrap(function() | |
| 531 | wait() | |
| 532 | damage(dmg) | |
| 533 | end)() | |
| 534 | local rightarmweld = character.Torso:findFirstChild("RightArmWeldsaw")
| |
| 535 | local leftarmweld = character.Torso:findFirstChild("LeftArmWeldsaw")
| |
| 536 | local grip = character["Right Arm"]:WaitForChild("RightGrip")
| |
| 537 | local headweld = character.Torso:findFirstChild("HeadWeldsaw")
| |
| 538 | local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldsaw")
| |
| 539 | local random = math.random(-10,10)/100 | |
| 540 | grip.C0 = CFrame.new(-0.0732569695, -1.92370892, -0.641631603, 0.969727159, 0.0133714303, -0.243824616, 0.238927066, 0.154250577, 0.95870775, 0.050429374, -0.987941206, 0.146386176) | |
| 541 | headweld.C0 = CFrame.new(-0.0150766373, 1.49240398, 0.0855045319, 0.984807789, -0.0301536527, -0.171009883, -8.14907253e-10, 0.98480773, -0.173648179, 0.173647955, 0.171010077, 0.969846368) | |
| 542 | rootweld.C0 = CFrame.new(0, 0, 0, 0.984807789, -0.0301536173, 0.171009868, 0, 0.984807789, 0.17364797, -0.17364797, -0.171009868, 0.969846368) | |
| 543 | rightarmweld.C0 = CFrame.new(1.23043251, 0.356081486, -0.816204071, 0.939692616, 0.342020154, -6.33299351e-08, -0.0593911633, 0.163175702, -0.98480767, -0.336824059, 0.925416589, 0.17364797) * CFrame.fromEulerAnglesXYZ(random,0,0) | |
| 544 | leftarmweld.C0 = CFrame.new(-0.310541153, 1.13866043, -1.10306931, 0.49999997, -0.813797772, 0.2961981, 0.15038377, -0.25523603, -0.95511198, 0.852868557, 0.522099376, -0.00523606688) * CFrame.fromEulerAnglesXYZ(random,0,0) | |
| 545 | if not goreplaying then | |
| 546 | goreplaying = true | |
| 547 | hitsound:Play() | |
| 548 | local goresounds = {goresound, goresound2, goresound3}
| |
| 549 | local pickedsound = goresounds[math.random(1,#goresounds)] | |
| 550 | pickedsound:Play() | |
| 551 | coroutine.wrap(function() | |
| 552 | wait(pickedsound.TimeLength) | |
| 553 | goreplaying = false | |
| 554 | end)() | |
| 555 | end | |
| 556 | else | |
| 557 | ragdollkill(humm.Parent) | |
| 558 | counter = 0 | |
| 559 | goreplaying = false | |
| 560 | gotsomeone = false | |
| 561 | canattack = false | |
| 562 | cananimate = false | |
| 563 | local grip = character["Right Arm"]:WaitForChild("RightGrip")
| |
| 564 | local rightarmweld = character.Torso:findFirstChild("RightArmWeldsaw")
| |
| 565 | local leftarmweld = character.Torso:findFirstChild("LeftArmWeldsaw")
| |
| 566 | local headweld = character.Torso:findFirstChild("HeadWeldsaw")
| |
| 567 | local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldsaw")
| |
| 568 | for i = 0,1 , 0.07 do | |
| 569 | grip.C0 = grip.C0:lerp(CFrame.new(0.338353157, -2.24114323, -0.897329807, 0.928362608, 0.214593962, -0.303466737, 0.149478868, 0.531971872, 0.833463669, 0.340291977, -0.819118381, 0.461785525),i) | |
| 570 | rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.18301249, 0.158493519, -0.591506004, 0.866025269, 0.49999994, -1.49011612e-08, -0.24999994, 0.433012664, -0.866025388, -0.433012694, 0.74999994, 0.499999851),i) | |
| 571 | leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-0.33951664, 0.407286167, -1.21828938, 0.649518967, -0.759164333, 0.0423575863, 0.0593911484, -0.00488249958, -0.998222709, 0.75802207, 0.650880337, 0.0419163257),i) | |
| 572 | rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.939692676, -0.0593911223, 0.336823821, 0, 0.98480773, 0.173648149, -0.342019886, -0.163175881, 0.925416589) * CFrame.fromEulerAnglesXYZ(0,math.rad(20),0),i) | |
| 573 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.939692497, -3.7252903e-09, -0.342020094, 1.97906047e-09, 0.999999881, 1.49011612e-08, 0.342020035, 1.49011612e-08, 0.939692438),i) | |
| 574 | runservice.Stepped:wait() | |
| 575 | end | |
| 576 | charge:Stop() | |
| 577 | canattack = true | |
| 578 | cananimate = true | |
| 579 | end | |
| 580 | end | |
| 581 | end | |
| 582 | end | |
| 583 | end | |
| 584 | end | |
| 585 | end | |
| 586 | end | |
| 587 | end | |
| 588 | tool.Unequipped:connect(function() | |
| 589 | equipped = false | |
| 590 | mouseclick = false | |
| 591 | cananimate = false | |
| 592 | idlesound:Stop() | |
| 593 | charge:Stop() | |
| 594 | if character.Torso:findFirstChild("LeftArmWeldsaw") then
| |
| 595 | character.Torso:findFirstChild("LeftArmWeldsaw"):destroy()
| |
| 596 | end | |
| 597 | if character.Torso:findFirstChild("RightArmWeldsaw") then
| |
| 598 | character.Torso:findFirstChild("RightArmWeldsaw"):destroy()
| |
| 599 | end | |
| 600 | if character.Torso:findFirstChild("HeadWeldsaw") then
| |
| 601 | character.Torso:findFirstChild("HeadWeldsaw"):destroy()
| |
| 602 | end | |
| 603 | if character:findFirstChild("HumanoidRootPart") then
| |
| 604 | if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldsaw") then
| |
| 605 | character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldsaw"):destroy()
| |
| 606 | end | |
| 607 | end | |
| 608 | end) | |
| 609 | tool.Equipped:connect(function() | |
| 610 | equipped = true | |
| 611 | cananimate = true | |
| 612 | canattack = false | |
| 613 | equipsound:Play() | |
| 614 | idlesound:Play() | |
| 615 | owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
| |
| 616 | character = owner.Character | |
| 617 | local grip = character["Right Arm"]:WaitForChild("RightGrip")
| |
| 618 | local rightarm = Instance.new("Weld", character.Torso)
| |
| 619 | rightarm.Part0 = character.Torso | |
| 620 | rightarm.Part1 = character["Right Arm"] | |
| 621 | rightarm.C0 = CFrame.new(1.5,0,0) | |
| 622 | rightarm.Name = "RightArmWeldsaw" | |
| 623 | local leftarm = Instance.new("Weld", character.Torso)
| |
| 624 | leftarm.Part0 = character.Torso | |
| 625 | leftarm.Part1 = character["Left Arm"] | |
| 626 | leftarm.C0 = CFrame.new(-1.5,0,0) | |
| 627 | leftarm.Name = "LeftArmWeldsaw" | |
| 628 | local head = Instance.new("Weld", character.Torso)
| |
| 629 | head.Part0 = character.Torso | |
| 630 | head.Part1 = character.Head | |
| 631 | head.C0 = CFrame.new(0,1.5,0) | |
| 632 | head.Name = "HeadWeldsaw" | |
| 633 | local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
| |
| 634 | humanoidrootpart.Part0 = character.HumanoidRootPart | |
| 635 | humanoidrootpart.Part1 = character.Torso | |
| 636 | humanoidrootpart.Name = "HumanoidRootPartWeldsaw" | |
| 637 | for i = 0,1 , 0.07 do | |
| 638 | grip.C0 = grip.C0:lerp(CFrame.new(-1.05606174, -2.31819725, 0.326734543, 0.737709045, -0.431000441, 0.519638062, -0.593709648, -0.0477490723, 0.803261399, -0.321393758, -0.901087344, -0.291114032),i) | |
| 639 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.18301249, 0.266395807, -0.641820908, 0.866025329, 0.49999994, -2.98023224e-08, -0.171010047, 0.29619807, -0.939692497, -0.469846189, 0.813797653, 0.342020094),i) | |
| 640 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.961470604, 0.328989744, -0.685032845, 0.642787576, -0.719846189, -0.262002558, 0, 0.342020094, -0.939692497, 0.766044378, 0.604022741, 0.219846293),i) | |
| 641 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.342020094, 0, -0.939692616, 0.163175717, 0.984807789, 0.0593910962, 0.925416589, -0.17364797, 0.336824059),i) | |
| 642 | head.C0 = head.C0:lerp(CFrame.new(-0.0855050087, 1.46984625, -0.148098946, 0.974494398, -0.171010137, 0.145312965, 0.116977841, 0.939692557, 0.321393967, -0.191511184, -0.296198308, 0.935729682),i) | |
| 643 | runservice.Stepped:wait() | |
| 644 | end | |
| 645 | wait(0.45) | |
| 646 | for i = 0,1 , 0.07 do | |
| 647 | grip.C0 = grip.C0:lerp(CFrame.new(-0.772166252, -2.19977283, -0.396611214, 0.845839143, -0.296142429, 0.443684131, -0.404046834, 0.187376171, 0.895341277, -0.348284483, -0.936584055, 0.038834691),i) | |
| 648 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.250000238, -0.433012486, 0.999999881, 0, 1.49011612e-08, 1.49011603e-08, 0.499999553, -0.866025567, 5.96046448e-08, 0.866025448, 0.499999583),i) | |
| 649 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.68301296, 0.808493614, 0.534326553, 0.866025388, 0.5, 1.49011612e-08, -0.24999994, 0.433012575, -0.866025388, -0.433012724, 0.75, 0.499999881),i) | |
| 650 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.766044438, 0, -0.642787576, 0, 1, 0, 0.642787576, 0, 0.766044438),i) | |
| 651 | head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.866025388, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025388),i) | |
| 652 | runservice.Stepped:wait() | |
| 653 | end | |
| 654 | wait(0.5) | |
| 655 | canattack = true | |
| 656 | coroutine.wrap(function() | |
| 657 | while equipped and runservice.Stepped:wait() do | |
| 658 | if cananimate and not gotsomeone then | |
| 659 | grip.C0 = grip.C0:lerp(CFrame.new(-0.242508888, -2.5377059, -0.631694317, 0.946577728, -0.296142906, 0.127631813, -0.0734542608, 0.18737559, 0.979537964, -0.313998401, -0.936583996, 0.155612677),0.1) | |
| 660 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.930742264, 0.177621126, -0.385728598, 0.642787576, 0.719846249, 0.262002587, -0.262002587, 0.527981639, -0.807830274, -0.719846249, 0.450617909, 0.527981758) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*45)/40,0,0),0.1) | |
| 661 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.18301296, 0.266396046, -0.64182198, 0.866025269, -0.5, 0, 0.171010062, 0.29619807, -0.939692557, 0.469846249, 0.813797593, 0.342020154) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*45)/40,0,0),0.1) | |
| 662 | head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.98480767, 0, 0.173648164, 0, 1, 0, -0.173648164, 0, 0.98480767),0.1) | |
| 663 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0, -0.173648179, 0, 1, 0, 0.173648179, 0, 0.98480773),0.1) | |
| 664 | end | |
| 665 | end | |
| 666 | end)() | |
| 667 | end) | |
| 668 | tool.Activated:connect(function() | |
| 669 | if canattack then | |
| 670 | canattack = false | |
| 671 | cananimate = false | |
| 672 | local grip = character["Right Arm"]:WaitForChild("RightGrip")
| |
| 673 | local rightarmweld = character.Torso:findFirstChild("RightArmWeldsaw")
| |
| 674 | local leftarmweld = character.Torso:findFirstChild("LeftArmWeldsaw")
| |
| 675 | local headweld = character.Torso:findFirstChild("HeadWeldsaw")
| |
| 676 | local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldsaw")
| |
| 677 | charge:Play() | |
| 678 | for i = 0,1 , 0.04 do | |
| 679 | grip.C0 = grip.C0:lerp(CFrame.new(0.338353157, -2.24114323, -0.897329807, 0.928362608, 0.214593962, -0.303466737, 0.149478868, 0.531971872, 0.833463669, 0.340291977, -0.819118381, 0.461785525),i) | |
| 680 | rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.27280998, 0.726655483, -0.622729301, 0.984807372, -0.173648089, -7.4505806e-08, -0.0593910888, -0.336823702, -0.939691901, 0.163175941, 0.925416112, -0.342019677),i) | |
| 681 | leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(0.686654091, 1.62646389, -1.40339398, 0.649519086, -0.727868378, 0.219846457, -0.315068483, -0.520797014, -0.793411732, 0.691994667, 0.44606936, -0.567595959),i) | |
| 682 | rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, -0.0593911707, -0.336824059, 0, 0.98480773, -0.173648179, 0.342020124, 0.163175911, 0.925416529),i) | |
| 683 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999952, 0, 0.939692616, 0, 0.342020094, 3.78349796e-09, 0.999999881, 0, -0.342020124, 0, 0.939692497),i) | |
| 684 | runservice.Stepped:wait() | |
| 685 | end | |
| 686 | swishsound:Play() | |
| 687 | for i = 0,1 , 0.07 do | |
| 688 | if not gotsomeone then | |
| 689 | - | end)() |
| 689 | + | |
| 690 | grip.C0 = grip.C0:lerp(CFrame.new(0.338353157, -2.24114323, -0.897329807, 0.928362608, 0.214593962, -0.303466737, 0.149478868, 0.531971872, 0.833463669, 0.340291977, -0.819118381, 0.461785525),i) | |
| 691 | rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.18301249, 0.158493519, -0.591506004, 0.866025269, 0.49999994, -1.49011612e-08, -0.24999994, 0.433012664, -0.866025388, -0.433012694, 0.74999994, 0.499999851),i) | |
| 692 | leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-0.33951664, 0.407286167, -1.21828938, 0.649518967, -0.759164333, 0.0423575863, 0.0593911484, -0.00488249958, -0.998222709, 0.75802207, 0.650880337, 0.0419163257),i) | |
| 693 | rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.939692676, -0.0593911223, 0.336823821, 0, 0.98480773, 0.173648149, -0.342019886, -0.163175881, 0.925416589) * CFrame.fromEulerAnglesXYZ(0,math.rad(20),0),i) | |
| 694 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.939692497, -3.7252903e-09, -0.342020094, 1.97906047e-09, 0.999999881, 1.49011612e-08, 0.342020035, 1.49011612e-08, 0.939692438),i) | |
| 695 | runservice.Stepped:wait() | |
| 696 | end | |
| 697 | end | |
| 698 | charge:Stop() | |
| 699 | if gotsomeone then | |
| 700 | wait(2) | |
| 701 | end | |
| 702 | gotsomeone = false | |
| 703 | canattack = true | |
| 704 | cananimate = true | |
| 705 | end | |
| 706 | end) | |
| 707 | end)) | |
| 708 | for i,v in pairs(mas:GetChildren()) do | |
| 709 | v.Parent = owner.Character | |
| 710 | pcall(function() v:MakeJoints() end) | |
| 711 | end | |
| 712 | mas:Destroy() | |
| 713 | for i,v in pairs(cors) do | |
| 714 | spawn(function() | |
| 715 | pcall(v) | |
| 716 | end) | |
| 717 | end |