SHOW:
|
|
- or go back to the newest paste.
| 1 | --By Rufus14 | |
| 2 | NLS([[ | |
| 3 | mouse = game:GetService("Players").LocalPlayer:GetMouse()
| |
| 4 | for i,v in pairs(game.ReplicatedStorage:GetChildren()) do | |
| 5 | if v.Name == "BatAttack" then | |
| 6 | v:destroy() | |
| 7 | end | |
| 8 | end | |
| 9 | attackname = "Normal" | |
| 10 | local attackevent = game.ReplicatedStorage:WaitForChild("BatAttack")
| |
| 11 | local human0id = game:GetService("Players").LocalPlayer.Character:findFirstChildOfClass("Humanoid")
| |
| 12 | can = true | |
| 13 | dead = false | |
| 14 | function attack() | |
| 15 | attackevent:FireServer(attackname) | |
| 16 | end | |
| 17 | mouse.Button1Down:connect(attack) | |
| 18 | function keyattack(key) | |
| 19 | key = key:lower() | |
| 20 | if key == "r" and dead then | |
| 21 | dead = false | |
| 22 | attackname = "Respawn" | |
| 23 | attackevent:FireServer(attackname) | |
| 24 | script.Disabled = true | |
| 25 | end | |
| 26 | if key == "q" and can then | |
| 27 | attackname = "Finish" | |
| 28 | attackevent:FireServer(attackname) | |
| 29 | attackname = "Normal" | |
| 30 | end | |
| 31 | end | |
| 32 | mouse.KeyDown:connect(keyattack) | |
| 33 | while game:GetService("Players").LocalPlayer.Character:findFirstChildOfClass("Humanoid") do
| |
| 34 | game:GetService("RunService").RenderStepped:wait()
| |
| 35 | end | |
| 36 | dead = true | |
| 37 | print("dead")
| |
| 38 | workspace.CurrentCamera.FieldOfView = 90 | |
| 39 | for i = 1,20 do | |
| 40 | workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 1 | |
| 41 | game:GetService("RunService").RenderStepped:wait()
| |
| 42 | end]], owner.Character) | |
| 43 | wait(0.6) | |
| 44 | --owner = game.Players[script.Parent.Name] | |
| 45 | script.Name = "Bat" | |
| 46 | local attackevent = Instance.new("RemoteEvent", game.ReplicatedStorage)
| |
| 47 | attackevent.Name = "BatAttack" | |
| 48 | ownerhumanoid = owner.Character:findFirstChildOfClass("Humanoid")
| |
| 49 | cananimate = true | |
| 50 | canattack = true | |
| 51 | running = false | |
| 52 | jumping = false | |
| 53 | rootpart = owner.Character.HumanoidRootPart | |
| 54 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 55 | function sandbox(var,func) | |
| 56 | local env = getfenv(func) | |
| 57 | local newenv = setmetatable({},{
| |
| 58 | __index = function(self,k) | |
| 59 | if k=="script" then | |
| 60 | return var | |
| 61 | else | |
| 62 | return env[k] | |
| 63 | end | |
| 64 | end, | |
| 65 | }) | |
| 66 | setfenv(func,newenv) | |
| 67 | return func | |
| 68 | end | |
| 69 | cors = {}
| |
| 70 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 71 | Part0 = Instance.new("Part")
| |
| 72 | SpecialMesh1 = Instance.new("SpecialMesh")
| |
| 73 | Part0.Name = "bat" | |
| 74 | Part0.Parent = mas | |
| 75 | Part0.CFrame = CFrame.new(-21.7585564, 9.37138653, 31.5601826, 0.879920006, 0.321368992, -0.349946141, 0.111618973, 0.576104701, 0.809718668, 0.461824059, -0.751548648, 0.471055239) | |
| 76 | Part0.Orientation = Vector3.new(-54.0699997, -36.6100006, 10.9700003) | |
| 77 | Part0.Position = Vector3.new(-21.7585564, 9.37138653, 31.5601826) | |
| 78 | Part0.Rotation = Vector3.new(-59.8100014, -20.4799995, -20.0599995) | |
| 79 | Part0.Size = Vector3.new(1, 1, 4) | |
| 80 | Part0.BottomSurface = Enum.SurfaceType.Smooth | |
| 81 | Part0.TopSurface = Enum.SurfaceType.Smooth | |
| 82 | SpecialMesh1.Parent = Part0 | |
| 83 | SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=54983181 " | |
| 84 | SpecialMesh1.Scale = Vector3.new(2, 2, 1.5) | |
| 85 | SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=55764440" | |
| 86 | SpecialMesh1.MeshType = Enum.MeshType.FileMesh | |
| 87 | for i,v in pairs(mas:GetChildren()) do | |
| 88 | v.Parent = script | |
| 89 | pcall(function() v:MakeJoints() end) | |
| 90 | end | |
| 91 | mas:Destroy() | |
| 92 | for i,v in pairs(cors) do | |
| 93 | spawn(function() | |
| 94 | pcall(v) | |
| 95 | end) | |
| 96 | end | |
| 97 | Part0.Parent = owner.Character["Right Arm"] | |
| 98 | Part0.CanCollide = false | |
| 99 | Part0:BreakJoints() | |
| 100 | Part0.Locked = true | |
| 101 | local batweld = Instance.new("Weld", owner.Character.Torso)
| |
| 102 | batweld.Part0 = owner.Character["Right Arm"] | |
| 103 | batweld.Part1 = Part0 | |
| 104 | batweld.C0 = CFrame.new(-5.7220459e-06, 0.786361694, -0.703529358, 0.999999881, 5.96046448e-08, -7.4505806e-08, 1.1920929e-07, -0.258817732, 0.965926111, 2.98023224e-08, -0.96592617, -0.258817703) | |
| 105 | local rightarm = Instance.new("Weld", owner.Character.Torso)
| |
| 106 | rightarm.Part0 = owner.Character.Torso | |
| 107 | rightarm.Part1 = owner.Character["Right Arm"] | |
| 108 | rightarm.C0 = CFrame.new(1.5,0,0) | |
| 109 | rightarm.Name = "RightArmWeld" | |
| 110 | local rightleg = Instance.new("Weld", owner.Character.Torso)
| |
| 111 | rightleg.Part0 = owner.Character.Torso | |
| 112 | rightleg.Part1 = owner.Character["Right Leg"] | |
| 113 | rightleg.C0 = CFrame.new(0.5,-2,0) | |
| 114 | rightleg.Name = "RightLegWeld" | |
| 115 | local leftarm = Instance.new("Weld", owner.Character.Torso)
| |
| 116 | leftarm.Part0 = owner.Character.Torso | |
| 117 | leftarm.Part1 = owner.Character["Left Arm"] | |
| 118 | leftarm.C0 = CFrame.new(-1.5,0,0) | |
| 119 | leftarm.Name = "LeftArmWeld" | |
| 120 | local leftleg = Instance.new("Weld", owner.Character.Torso)
| |
| 121 | leftleg.Part0 = owner.Character.Torso | |
| 122 | leftleg.Part1 = owner.Character["Left Leg"] | |
| 123 | leftleg.C0 = CFrame.new(-0.5,-2,0) | |
| 124 | leftleg.Name = "LeftLegWeld" | |
| 125 | local head = Instance.new("Weld", owner.Character.Torso)
| |
| 126 | head.Part0 = owner.Character.Torso | |
| 127 | head.Part1 = owner.Character.Head | |
| 128 | head.C0 = CFrame.new(0,1.5,0) | |
| 129 | head.Name = "HeadWeld" | |
| 130 | local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
| |
| 131 | humanoidrootpart.Part0 = owner.Character.HumanoidRootPart | |
| 132 | humanoidrootpart.Part1 = owner.Character.Torso | |
| 133 | humanoidrootpart.Name = "HumanoidRootPartWeld" | |
| 134 | ownerhumanoid.WalkSpeed = 22 | |
| 135 | local woosh = Instance.new("Sound", Part0)
| |
| 136 | woosh.SoundId = "http://www.roblox.com/asset/?id=184474135" | |
| 137 | woosh.Volume = 2 | |
| 138 | woosh.PlaybackSpeed = 0.7 | |
| 139 | local hitted = Instance.new("Sound", Part0)
| |
| 140 | hitted.SoundId = "rbxassetid://220025689" | |
| 141 | hitted.Volume = 2 | |
| 142 | local splat = Instance.new("Sound", Part0)
| |
| 143 | splat.SoundId = "rbxassetid://150315649" | |
| 144 | splat.Volume = 2 | |
| 145 | local musicrandom = math.random(1,7) | |
| 146 | if musicrandom == 1 then | |
| 147 | local music = Instance.new("Sound", rootpart)
| |
| 148 | music.SoundId = "rbxassetid://2901128915" | |
| 149 | music:Play() | |
| 150 | music.Volume = 2 | |
| 151 | music.Looped = true | |
| 152 | music.Name = "moosic" | |
| 153 | elseif musicrandom == 2 then | |
| 154 | local music = Instance.new("Sound", rootpart)
| |
| 155 | music.SoundId = "rbxassetid://1676048932" | |
| 156 | music:Play() | |
| 157 | music.Volume = 1.5 | |
| 158 | music.Looped = true | |
| 159 | music.Name = "moosic" | |
| 160 | elseif musicrandom == 3 then | |
| 161 | local music = Instance.new("Sound", rootpart)
| |
| 162 | music.SoundId = "rbxassetid://2310301799" | |
| 163 | music:Play() | |
| 164 | music.Volume = 1 | |
| 165 | music.Looped = true | |
| 166 | music.Name = "moosic" | |
| 167 | elseif musicrandom == 4 then | |
| 168 | local music = Instance.new("Sound", rootpart)
| |
| 169 | music.SoundId = "rbxassetid://2297359893" | |
| 170 | music:Play() | |
| 171 | music.Volume = 1 | |
| 172 | music.TimePosition = 143.5 | |
| 173 | music.Looped = true | |
| 174 | music.Name = "moosic" | |
| 175 | elseif musicrandom == 5 then | |
| 176 | local music = Instance.new("Sound", rootpart)
| |
| 177 | music.SoundId = "rbxassetid://890429322" | |
| 178 | music:Play() | |
| 179 | music.Volume = 1 | |
| 180 | music.Looped = true | |
| 181 | music.Name = "moosic" | |
| 182 | elseif musicrandom == 6 then | |
| 183 | local music = Instance.new("Sound", rootpart)
| |
| 184 | music.SoundId = "rbxassetid://150744047" | |
| 185 | music:Play() | |
| 186 | music.Volume = 1 | |
| 187 | music.Looped = true | |
| 188 | music.Name = "moosic" | |
| 189 | elseif musicrandom == 7 then | |
| 190 | local music = Instance.new("Sound", rootpart)
| |
| 191 | music.SoundId = "rbxassetid://2518599835" | |
| 192 | music:Play() | |
| 193 | music.Volume = 1 | |
| 194 | music.Looped = true | |
| 195 | music.Name = "moosic" | |
| 196 | end | |
| 197 | punchvalue = 1 | |
| 198 | function killem(character) | |
| 199 | character.Archivable = true | |
| 200 | if character:findFirstChild("UpperTorso") then
| |
| 201 | if character:findFirstChildOfClass("Humanoid") then
| |
| 202 | character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
| |
| 203 | character:findFirstChildOfClass("Humanoid").JumpPower = 0
| |
| 204 | character:findFirstChildOfClass("Humanoid").Health = 0
| |
| 205 | end | |
| 206 | return | |
| 207 | end | |
| 208 | for i,v in pairs(character:GetChildren()) do | |
| 209 | if v.ClassName == "Sound" or v.ClassName == "BodyVelocity" then | |
| 210 | v:destroy() | |
| 211 | end | |
| 212 | for q,w in pairs(v:GetChildren()) do | |
| 213 | if w.ClassName == "Sound" or w.ClassName == "BodyVelocity" then | |
| 214 | w:destroy() | |
| 215 | end | |
| 216 | end | |
| 217 | end | |
| 218 | if character:findFirstChildOfClass("Humanoid") then
| |
| 219 | character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
| |
| 220 | character:findFirstChildOfClass("Humanoid").JumpPower = 0
| |
| 221 | character:findFirstChildOfClass("Humanoid").Health = 0
| |
| 222 | end | |
| 223 | local clone = character:Clone() | |
| 224 | for i,v in pairs(character:GetChildren()) do | |
| 225 | if v.ClassName == "Part" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then | |
| 226 | v:destroy() | |
| 227 | end | |
| 228 | end | |
| 229 | if not clone:findFirstChild("HumanoidRootPart") then
| |
| 230 | local root = Instance.new("Part", clone)
| |
| 231 | root.Size = Vector3.new(2,2,1) | |
| 232 | root.CanCollide = false | |
| 233 | root.CFrame = clone.Torso.CFrame | |
| 234 | root.Name = "HumanoidRootPart" | |
| 235 | root.Transparency = 1 | |
| 236 | root.CanCollide = false | |
| 237 | end | |
| 238 | if clone:findFirstChild("HumanoidRootPart") then
| |
| 239 | clone:findFirstChild("HumanoidRootPart").CanCollide = false
| |
| 240 | end | |
| 241 | clone.Parent = workspace | |
| 242 | game.Debris:AddItem(clone, 40) | |
| 243 | clone.HumanoidRootPart.CFrame = CFrame.new(clone.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position) | |
| 244 | if clone:findFirstChild("Health") then
| |
| 245 | clone:findFirstChild("Health"):Remove()
| |
| 246 | end | |
| 247 | for i,v in pairs(clone:GetChildren()) do | |
| 248 | if v.ClassName == "Accessory" then | |
| 249 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
| |
| 250 | if attachment1 then | |
| 251 | for q,w in pairs(clone:GetChildren()) do | |
| 252 | if w.ClassName == "Part" then | |
| 253 | local attachment2 = w:findFirstChild(attachment1.Name) | |
| 254 | if attachment2 then | |
| 255 | local hinge = Instance.new("HingeConstraint", v.Handle)
| |
| 256 | hinge.Attachment0 = attachment1 | |
| 257 | hinge.Attachment1 = attachment2 | |
| 258 | hinge.LimitsEnabled = true | |
| 259 | hinge.LowerAngle = 0 | |
| 260 | hinge.UpperAngle = 0 | |
| 261 | end | |
| 262 | end | |
| 263 | end | |
| 264 | end | |
| 265 | end | |
| 266 | end | |
| 267 | if clone:findFirstChild("Right Arm") and clone:findFirstChild("Torso") then
| |
| 268 | local welddead = Instance.new("Weld", clone["Right Arm"])
| |
| 269 | welddead.Part0 = clone.Torso | |
| 270 | welddead.Part1 = clone["Right Arm"] | |
| 271 | local pose = math.random(1,2) | |
| 272 | if pose == 1 then | |
| 273 | welddead.C0 = CFrame.new(1.57922745, 0.0944194794, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 274 | elseif pose == 2 then | |
| 275 | welddead.C0 = CFrame.new(1.5, 1, 2.98023224e-08, 0.999999821, 0, 0, 0, -0.999999881, 8.74227695e-08, 0, -8.74227766e-08, -1) | |
| 276 | end | |
| 277 | end | |
| 278 | if clone:findFirstChild("Left Arm") and clone:findFirstChild("Torso") then
| |
| 279 | local welddead = Instance.new("Weld", clone["Left Arm"])
| |
| 280 | welddead.Part0 = clone.Torso | |
| 281 | welddead.Part1 = clone["Left Arm"] | |
| 282 | local pose = math.random(1,2) | |
| 283 | if pose == 1 then | |
| 284 | welddead.C0 = CFrame.new(-1.5, 1, -5.96046448e-08, 0.999999881, 0, 0, 0, -0.99999994, -8.74227695e-08, 0, 8.74227766e-08, -1) | |
| 285 | elseif pose == 2 then | |
| 286 | welddead.C0 = CFrame.new(-1.57922745, 0.0944194794, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 287 | end | |
| 288 | end | |
| 289 | if clone:findFirstChild("Left Leg") and clone:findFirstChild("Torso") then
| |
| 290 | local welddead = Instance.new("Weld", clone["Left Leg"])
| |
| 291 | welddead.Part0 = clone.Torso | |
| 292 | welddead.Part1 = clone["Left Leg"] | |
| 293 | local pose = math.random(1,2) | |
| 294 | if pose == 1 then | |
| 295 | welddead.C0 = CFrame.new(-0.681243896, -2.07163239, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 296 | elseif pose == 2 then | |
| 297 | welddead.C0 = CFrame.new(-1.25976563, -2.08743858, 0, 0.766044319, 0.642787457, 0, -0.642787516, 0.766044378, 0, 0, 0, 1) | |
| 298 | end | |
| 299 | end | |
| 300 | if clone:findFirstChild("Right Leg") and clone:findFirstChild("Torso") then
| |
| 301 | local welddead = Instance.new("Weld", clone["Right Leg"])
| |
| 302 | welddead.Part0 = clone.Torso | |
| 303 | welddead.Part1 = clone["Right Leg"] | |
| 304 | local pose = math.random(1,2) | |
| 305 | if pose == 1 then | |
| 306 | welddead.C0 = CFrame.new(0.681243896, -2.07163239, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 307 | elseif pose == 2 then | |
| 308 | welddead.C0 = CFrame.new(0.5, -2, 0, 0.999999881, 0, 0, 0, 0.99999994, 0, 0, 0, 1) | |
| 309 | end | |
| 310 | end | |
| 311 | if clone:findFirstChild("Head") and clone:findFirstChild("Torso") then
| |
| 312 | local welddead = Instance.new("Weld", clone["Head"])
| |
| 313 | welddead.Part0 = clone.Torso | |
| 314 | welddead.Part1 = clone["Head"] | |
| 315 | welddead.C0 = CFrame.new(0, 1.5, 0, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 316 | end | |
| 317 | if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("Torso") then
| |
| 318 | local welddead = Instance.new("Weld", clone["Torso"])
| |
| 319 | welddead.Part0 = clone.HumanoidRootPart | |
| 320 | welddead.Part1 = clone["Torso"] | |
| 321 | welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08) | |
| 322 | end | |
| 323 | if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("UpperTorso") then
| |
| 324 | local welddead = Instance.new("Weld", clone["UpperTorso"])
| |
| 325 | welddead.Part0 = clone.HumanoidRootPart | |
| 326 | welddead.Part1 = clone["UpperTorso"] | |
| 327 | welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08) | |
| 328 | end | |
| 329 | for i,v in pairs(clone:GetChildren()) do | |
| 330 | if v.ClassName == "Sound" or v.ClassName == "BodyVelocity" then | |
| 331 | v:destroy() | |
| 332 | end | |
| 333 | for q,w in pairs(v:GetChildren()) do | |
| 334 | if w.ClassName == "Sound" or w.ClassName == "BodyVelocity" then | |
| 335 | w:destroy() | |
| 336 | end | |
| 337 | end | |
| 338 | end | |
| 339 | local function keepzeroing() | |
| 340 | while wait() do | |
| 341 | if clone:findFirstChildOfClass("Humanoid") then
| |
| 342 | clone:findFirstChildOfClass("Humanoid").WalkSpeed = 0
| |
| 343 | clone:findFirstChildOfClass("Humanoid").JumpPower = 0
| |
| 344 | end | |
| 345 | end | |
| 346 | end | |
| 347 | spawn(keepzeroing) | |
| 348 | local value = 0.4 | |
| 349 | while value > 0 do | |
| 350 | value = value - 0.02 | |
| 351 | if clone:findFirstChild("HumanoidRootPart") then
| |
| 352 | clone:findFirstChild("HumanoidRootPart").CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,value)
| |
| 353 | end | |
| 354 | game:GetService("RunService").Heartbeat:wait()
| |
| 355 | end | |
| 356 | end | |
| 357 | function attack(player, attackname) | |
| 358 | if player == owner and canattack then | |
| 359 | canattack = false | |
| 360 | cananimate = false | |
| 361 | if attackname == "Respawn" then | |
| 362 | if owner:findFirstChildOfClass("PlayerGui"):findFirstChild("press_pls") then
| |
| 363 | owner:findFirstChildOfClass("PlayerGui"):findFirstChild("press_pls"):destroy()
| |
| 364 | end | |
| 365 | owner:LoadCharacter() | |
| 366 | script.Disabled = true | |
| 367 | end | |
| 368 | ownerhumanoid.Name = "Immunity" | |
| 369 | if attackname == "Normal" then | |
| 370 | if punchvalue == 1 then | |
| 371 | punchvalue = 2 | |
| 372 | for i = 0,1 , 0.11 do | |
| 373 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.895418167, 0.216991425, -0.362640381, 0.7065292, -0.408184737, 0.578101695, -0.67302078, -0.135030389, 0.727193058, -0.218767852, -0.902857542, -0.37011984),i) | |
| 374 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.50000191, 0.5, -0.5, 0.99999994, 2.98023224e-08, -1.07047995e-07, 1.1920929e-07, 5.96046448e-08, -0.999999881, 0, 0.99999994, -7.93995838e-08),i) | |
| 375 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.682813644, 0.5, -0.931747437, 0.342020094, -0.939692497, 2.22044605e-16, 1.12057217e-08, 4.07854905e-09, -0.99999994, 0.939692497, 0.342020094, 1.19248789e-08),i) | |
| 376 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i) | |
| 377 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i) | |
| 378 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648149, 0, -0.98480773, 0, 1, 0, 0.98480773, 0, 0.173648149),i) | |
| 379 | head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648119, 0, 0.984807611, 0, 1, 0, -0.984807611, 0, 0.173648119),i) | |
| 380 | game:GetService("RunService").Heartbeat:wait()
| |
| 381 | end | |
| 382 | wait(0.1) | |
| 383 | woosh:Play() | |
| 384 | for i = 0,1 , 0.11 do | |
| 385 | if i == 0.55 then | |
| 386 | local function damageit() | |
| 387 | for i,v in pairs(workspace:GetChildren()) do | |
| 388 | if v.ClassName == "Model" and v ~= owner.Character then | |
| 389 | if v:findFirstChild("Head") then
| |
| 390 | if (v.Head.Position - Part0.Position).magnitude < 4.5 then | |
| 391 | local human0id = v:findFirstChildOfClass("Humanoid")
| |
| 392 | if human0id then | |
| 393 | hitted:Play() | |
| 394 | local whohit = v | |
| 395 | if human0id.MaxHealth > 300 then | |
| 396 | human0id.MaxHealth = 300 | |
| 397 | human0id.Health = 300 | |
| 398 | end | |
| 399 | if whohit:findFirstChild("UpperTorso") then
| |
| 400 | local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("UpperTorso"))
| |
| 401 | velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 402 | velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15 | |
| 403 | whohit.UpperTorso.CFrame = CFrame.new(whohit.UpperTorso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
| 404 | game.Debris:AddItem(velo0, 0.2) | |
| 405 | elseif whohit:findFirstChild("Torso") then
| |
| 406 | local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("Torso"))
| |
| 407 | velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 408 | velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15 | |
| 409 | whohit.Torso.CFrame = CFrame.new(whohit.Torso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
| 410 | game.Debris:AddItem(velo0, 0.2) | |
| 411 | end | |
| 412 | local dmg = math.random(50,140) | |
| 413 | if human0id.Health <= dmg and not human0id.PlatformStand then | |
| 414 | killem(whohit) | |
| 415 | else | |
| 416 | human0id.PlatformStand = true | |
| 417 | human0id.Health = human0id.Health - dmg | |
| 418 | local function stoplaying() | |
| 419 | wait(2) | |
| 420 | human0id.PlatformStand = false | |
| 421 | end | |
| 422 | spawn(stoplaying) | |
| 423 | end | |
| 424 | end | |
| 425 | end | |
| 426 | end | |
| 427 | end | |
| 428 | end | |
| 429 | end | |
| 430 | spawn(damageit) | |
| 431 | end | |
| 432 | rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,-0.3) | |
| 433 | batweld.C0 = batweld.C0:lerp(CFrame.new(1.36004066, -1.74136543, 0.362408638, 0.529688239, -0.0257967729, 0.847799838, 0.731815279, 0.519221127, -0.441424638, -0.428808272, 0.85425061, 0.293903798),i) | |
| 434 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.40557861, 0.5, -0.579227448, 0.984807551, 0.173648104, 0, 7.59040031e-09, -4.30473115e-08, -0.99999994, -0.173648134, 0.98480767, -4.37113847e-08),i) | |
| 435 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.238529205, 0.5, -0.982877731, 0.342020094, -0.939692497, 0, -4.10752641e-08, -1.49501744e-08, -0.99999994, 0.939692557, 0.342020154, -4.37113847e-08),i) | |
| 436 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i) | |
| 437 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i) | |
| 438 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648223, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, 0.173648223),i) | |
| 439 | head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648134, 0, -0.98480767, 0, 1, 0, 0.98480767, 0, 0.173648134),i) | |
| 440 | game:GetService("RunService").Heartbeat:wait()
| |
| 441 | end | |
| 442 | elseif punchvalue == 2 then | |
| 443 | punchvalue = 1 | |
| 444 | for i = 0,1 , 0.11 do | |
| 445 | batweld.C0 = batweld.C0:lerp(CFrame.new(-1.60438728, -1.27208328, -0.492827177, 0.0523819327, -0.365687072, -0.92926234, -0.852657855, 0.468016267, -0.232239366, 0.519837022, 0.804508269, -0.287290454),i) | |
| 446 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.40557861, 0.5, -0.579227448, 0.984807551, 0.173648104, 0, 7.59040031e-09, -4.30473115e-08, -0.99999994, -0.173648134, 0.98480767, -4.37113847e-08),i) | |
| 447 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.238529205, 0.5, -0.982877731, 0.342020094, -0.939692497, 0, -4.10752641e-08, -1.49501744e-08, -0.99999994, 0.939692557, 0.342020154, -4.37113847e-08),i) | |
| 448 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i) | |
| 449 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i) | |
| 450 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.173648223, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, 0.173648223),i) | |
| 451 | head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648134, 0, -0.98480767, 0, 1, 0, 0.98480767, 0, 0.173648134),i) | |
| 452 | game:GetService("RunService").Heartbeat:wait()
| |
| 453 | end | |
| 454 | wait(0.1) | |
| 455 | woosh:Play() | |
| 456 | for i = 0,1 , 0.11 do | |
| 457 | if i == 0.55 then | |
| 458 | local function damageit() | |
| 459 | for i,v in pairs(workspace:GetChildren()) do | |
| 460 | if v.ClassName == "Model" and v ~= owner.Character then | |
| 461 | if v:findFirstChild("Head") then
| |
| 462 | if (v.Head.Position - Part0.Position).magnitude < 4.5 then | |
| 463 | local human0id = v:findFirstChildOfClass("Humanoid")
| |
| 464 | if human0id then | |
| 465 | hitted:Play() | |
| 466 | local whohit = v | |
| 467 | if human0id.MaxHealth > 300 then | |
| 468 | human0id.MaxHealth = 300 | |
| 469 | human0id.Health = 300 | |
| 470 | end | |
| 471 | if whohit:findFirstChild("UpperTorso") then
| |
| 472 | local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("UpperTorso"))
| |
| 473 | velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 474 | velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15 | |
| 475 | whohit.UpperTorso.CFrame = CFrame.new(whohit.UpperTorso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
| 476 | game.Debris:AddItem(velo0, 0.2) | |
| 477 | elseif whohit:findFirstChild("Torso") then
| |
| 478 | local velo0 = Instance.new("BodyVelocity", whohit:findFirstChild("Torso"))
| |
| 479 | velo0.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 480 | velo0.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 15 | |
| 481 | whohit.Torso.CFrame = CFrame.new(whohit.Torso.Position, player.Character.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(1,0,0) | |
| 482 | game.Debris:AddItem(velo0, 0.2) | |
| 483 | end | |
| 484 | local dmg = math.random(50,140) | |
| 485 | if human0id.Health <= dmg and not human0id.PlatformStand then | |
| 486 | killem(whohit) | |
| 487 | else | |
| 488 | human0id.PlatformStand = true | |
| 489 | human0id.Health = human0id.Health - dmg | |
| 490 | local function stoplaying() | |
| 491 | wait(2) | |
| 492 | human0id.PlatformStand = false | |
| 493 | end | |
| 494 | spawn(stoplaying) | |
| 495 | end | |
| 496 | end | |
| 497 | end | |
| 498 | end | |
| 499 | end | |
| 500 | end | |
| 501 | end | |
| 502 | spawn(damageit) | |
| 503 | end | |
| 504 | rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,-0.3) | |
| 505 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.69889665, 0.394170761, 0.0185413361, 0.690658808, -0.707134247, -0.1514979, -0.0369449481, 0.174714148, -0.98392576, 0.722236574, 0.6851542, 0.0945428461),i) | |
| 506 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57185173, 0.459482908, -0.413936973, 0.987541318, 0.156162173, 0.0193825662, 0.00802944601, 0.0730058104, -0.997299075, -0.157155514, 0.985029876, 0.070842348),i) | |
| 507 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.589058399, -2.03977251, 0, 0.996194661, 0.087155737, 0, -0.0871557295, 0.996194661, 0, 0, 1.86264515e-09, 1),i) | |
| 508 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.589058638, -2.03977251, 0, 0.996194661, -0.087155737, 0, 0.0871557295, 0.996194661, 0, 0, -1.86264515e-09, 1),i) | |
| 509 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.0178173669, 0.0954422951, -0.0489528179, 0.33682394, -0.0593913794, -0.939692736, 0.173648328, 0.98480773, -1.82639241e-07, 0.925416648, -0.163176015, 0.342020035),i) | |
| 510 | head.C0 = head.C0:lerp(CFrame.new(2.38418579e-07, 1.5, 0, 0.342020154, -1.49011612e-08, 0.939692795, -1.14669092e-08, 0.99999994, -4.47034836e-08, -0.939692795, 3.7252903e-09, 0.342020184),i) | |
| 511 | game:GetService("RunService").Heartbeat:wait()
| |
| 512 | end | |
| 513 | end | |
| 514 | wait(0.1) | |
| 515 | elseif attackname == "Finish" then | |
| 516 | ownerhumanoid.WalkSpeed = 0 | |
| 517 | ownerhumanoid.JumpPower = 0 | |
| 518 | for i = 0,1 , 0.08 do | |
| 519 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i) | |
| 520 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i) | |
| 521 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i) | |
| 522 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i) | |
| 523 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i) | |
| 524 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i) | |
| 525 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i) | |
| 526 | game:GetService("RunService").Heartbeat:wait()
| |
| 527 | end | |
| 528 | wait(0.3) | |
| 529 | local sizevalue = 4 | |
| 530 | torsopos = owner.Character.HumanoidRootPart.CFrame | |
| 531 | for i = 1,3 do | |
| 532 | woosh:Play() | |
| 533 | for i = 0,1 , 0.3 do | |
| 534 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.77614975, -1.95986652, -0.740211487, 0.0141179711, -0.773501039, 0.633637846, -0.58085382, -0.522155762, -0.624469519, 0.813885331, -0.359234661, -0.456662863),i) | |
| 535 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 0.377679825, -0.693714142, 0.642787635, 0.766044438, 0, -0.133022219, 0.111618921, -0.984807611, -0.754406512, 0.633022249, 0.173648208),i) | |
| 536 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 0.377679825, -0.693714142, 0.642787635, -0.766044378, 0, 0.133022308, 0.111618996, -0.984807551, 0.754406393, 0.633022189, 0.173648387),i) | |
| 537 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.86602497, 0.5, 1, 0, 0, 0, 0.866025329, 0.49999994, 0, -0.49999997, 0.866025329),i) | |
| 538 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.602511406, -1.69209099, 1, 0, 0, 0, 0.766044378, -0.642787516, 0, 0.642787576, 0.766044438) * CFrame.new(0,0,0.2),i) | |
| 539 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 0, 0, 0, 0.866025388, 0.5, 0, -0.5, 0.866025388) * CFrame.new(0,0,-0.2),i) | |
| 540 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868263245, 1, 0, 0, 0, 0.984807789, 0.17364797, 0, -0.17364797, 0.984807789),i) | |
| 541 | game:GetService("RunService").Heartbeat:wait()
| |
| 542 | end | |
| 543 | wait(0.1) | |
| 544 | for i,v in pairs(workspace:GetChildren()) do | |
| 545 | if v.ClassName == "Model" and v ~= owner.Character then | |
| 546 | if v:findFirstChild("Head") then
| |
| 547 | if (v.Head.Position - Part0.Position).magnitude < 4.5 then | |
| 548 | local human0id = v:findFirstChildOfClass("Humanoid")
| |
| 549 | if human0id then | |
| 550 | hitted:Play() | |
| 551 | local whohit = v | |
| 552 | if human0id.MaxHealth > 300 then | |
| 553 | human0id.MaxHealth = 300 | |
| 554 | human0id.Health = 300 | |
| 555 | end | |
| 556 | if whohit:findFirstChild("UpperTorso") then
| |
| 557 | whohit.UpperTorso.Anchored = true | |
| 558 | elseif whohit:findFirstChild("Torso") then
| |
| 559 | whohit.Torso.Anchored = true | |
| 560 | end | |
| 561 | human0id.Health = human0id.Health - math.random(5,15) | |
| 562 | human0id.JumpPower = 0 | |
| 563 | human0id.PlatformStand = true | |
| 564 | local blood = Instance.new("Part", workspace)
| |
| 565 | blood.Shape = "Cylinder" | |
| 566 | blood.BrickColor = BrickColor.new("Maroon")
| |
| 567 | blood.Anchored = true | |
| 568 | blood.Size = Vector3.new(0.1,sizevalue,sizevalue) | |
| 569 | blood.CFrame = torsopos * CFrame.new(0,-3,-3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2) | |
| 570 | blood.CanCollide = false | |
| 571 | game.Debris:AddItem(blood, 8) | |
| 572 | sizevalue = sizevalue + 1 | |
| 573 | end | |
| 574 | end | |
| 575 | end | |
| 576 | end | |
| 577 | end | |
| 578 | for i = 0,1 , 0.12 do | |
| 579 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i) | |
| 580 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i) | |
| 581 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i) | |
| 582 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i) | |
| 583 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i) | |
| 584 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i) | |
| 585 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i) | |
| 586 | game:GetService("RunService").Heartbeat:wait()
| |
| 587 | end | |
| 588 | wait(0.1) | |
| 589 | end | |
| 590 | wait(0.25) | |
| 591 | woosh:Play() | |
| 592 | for i = 0,1 , 0.3 do | |
| 593 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.77614975, -1.95986652, -0.740211487, 0.0141179711, -0.773501039, 0.633637846, -0.58085382, -0.522155762, -0.624469519, 0.813885331, -0.359234661, -0.456662863),i) | |
| 594 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 0.377679825, -0.693714142, 0.642787635, 0.766044438, 0, -0.133022219, 0.111618921, -0.984807611, -0.754406512, 0.633022249, 0.173648208),i) | |
| 595 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 0.377679825, -0.693714142, 0.642787635, -0.766044378, 0, 0.133022308, 0.111618996, -0.984807551, 0.754406393, 0.633022189, 0.173648387),i) | |
| 596 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.86602497, 0.5, 1, 0, 0, 0, 0.866025329, 0.49999994, 0, -0.49999997, 0.866025329),i) | |
| 597 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.602511406, -1.69209099, 1, 0, 0, 0, 0.766044378, -0.642787516, 0, 0.642787576, 0.766044438) * CFrame.new(0,0,0.2),i) | |
| 598 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 0, 0, 0, 0.866025388, 0.5, 0, -0.5, 0.866025388) * CFrame.new(0,0,-0.2),i) | |
| 599 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868263245, 1, 0, 0, 0, 0.984807789, 0.17364797, 0, -0.17364797, 0.984807789),i) | |
| 600 | game:GetService("RunService").Heartbeat:wait()
| |
| 601 | end | |
| 602 | for i,v in pairs(workspace:GetChildren()) do | |
| 603 | if v.ClassName == "Model" and v ~= owner.Character then | |
| 604 | if v:findFirstChild("Head") then
| |
| 605 | if (v.Head.Position - Part0.Position).magnitude < 4.5 then | |
| 606 | local human0id = v:findFirstChildOfClass("Humanoid")
| |
| 607 | if human0id then | |
| 608 | hitted:Play() | |
| 609 | local whohit = v | |
| 610 | if human0id.MaxHealth > 300 then | |
| 611 | human0id.MaxHealth = 300 | |
| 612 | human0id.Health = 300 | |
| 613 | end | |
| 614 | if whohit:findFirstChild("UpperTorso") then
| |
| 615 | whohit.UpperTorso.Anchored = false | |
| 616 | elseif whohit:findFirstChild("Torso") then
| |
| 617 | whohit.Torso.Anchored = false | |
| 618 | end | |
| 619 | human0id.Health = human0id.Health - 300 | |
| 620 | human0id.JumpPower = 0 | |
| 621 | human0id.PlatformStand = false | |
| 622 | local blood = Instance.new("Part", workspace)
| |
| 623 | blood.Shape = "Cylinder" | |
| 624 | blood.BrickColor = BrickColor.new("Maroon")
| |
| 625 | blood.Anchored = true | |
| 626 | blood.Size = Vector3.new(0.1,sizevalue,sizevalue) | |
| 627 | blood.CFrame = torsopos * CFrame.new(0,-3,-3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2) | |
| 628 | blood.CanCollide = false | |
| 629 | game.Debris:AddItem(blood, 8) | |
| 630 | splat:Play() | |
| 631 | end | |
| 632 | end | |
| 633 | end | |
| 634 | end | |
| 635 | end | |
| 636 | wait(0.2) | |
| 637 | for i = 0,1 , 0.08 do | |
| 638 | batweld.C0 = batweld.C0:lerp(CFrame.new(0.637763023, -1.80996704, -1.21629524, 0.0523821563, -0.893855155, 0.445285141, -0.852660179, -0.272144109, -0.445991099, 0.519833207, -0.356314987, -0.776410401),i) | |
| 639 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.938371658, 1.03961468, 0.452787399, 0.642787576, 0.766044319, 0, 0.58682394, -0.492403865, 0.642787576, 0.492403805, -0.413175881, -0.766044438),i) | |
| 640 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.938371658, 1.03961468, 0.452787399, 0.642787635, -0.766044378, 0, -0.586823821, -0.492403775, 0.642787635, -0.492403835, -0.413175941, -0.766044319),i) | |
| 641 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.76604366, 0.642786026, 1, 0, 0, 0, 0.766044199, 0.642787695, 0, -0.642787695, 0.766044319),i) | |
| 642 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -0.919614792, -1.30000114, 1, 0, 0, 0, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025329),i) | |
| 643 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -1, 0, 1, 1.12020089e-07, 4.0771976e-08, -1.1920929e-07, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616),i) | |
| 644 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, -0.0868244171, 1, 0, 0, 0, 0.984807611, 0.173648179, 0, -0.173648179, 0.984807611),i) | |
| 645 | game:GetService("RunService").Heartbeat:wait()
| |
| 646 | end | |
| 647 | ownerhumanoid.WalkSpeed = 22 | |
| 648 | ownerhumanoid.JumpPower = 50 | |
| 649 | wait(0.4) | |
| 650 | end | |
| 651 | ownerhumanoid.Name = "Humanoid" | |
| 652 | cananimate = true | |
| 653 | canattack = true | |
| 654 | end | |
| 655 | end | |
| 656 | attackevent.OnServerEvent:connect(attack) | |
| 657 | function run(speed) | |
| 658 | if speed > 5 and not jumping and cananimate then | |
| 659 | running = true | |
| 660 | else | |
| 661 | running = false | |
| 662 | end | |
| 663 | end | |
| 664 | ownerhumanoid.Running:connect(run) | |
| 665 | function checkjump() | |
| 666 | while wait() do | |
| 667 | if rootpart.Velocity.y > 1 or rootpart.Velocity.y < - 1 and cananimate then | |
| 668 | jumping = true | |
| 669 | else | |
| 670 | jumping = false | |
| 671 | end | |
| 672 | end | |
| 673 | end | |
| 674 | spawn(run) | |
| 675 | spawn(checkjump) | |
| 676 | ownerhumanoid.WalkSpeed = 22 | |
| 677 | function dead() | |
| 678 | canattack = true | |
| 679 | owner.Character.Archivable = true | |
| 680 | ownerhumanoid.WalkSpeed = 0 | |
| 681 | ownerhumanoid.JumpPower = 0 | |
| 682 | if Part0.Parent ~= nil then | |
| 683 | Part0.CanCollide = true | |
| 684 | Part0:BreakJoints() | |
| 685 | end | |
| 686 | if rootpart:findFirstChild("moosic") then
| |
| 687 | rootpart.moosic:destroy() | |
| 688 | end | |
| 689 | hitted:Play() | |
| 690 | local clone = owner.Character:Clone() | |
| 691 | if owner.Character:findFirstChildOfClass("Humanoid") then
| |
| 692 | owner.Character:findFirstChildOfClass("Humanoid"):destroy()
| |
| 693 | end | |
| 694 | for i,v in pairs(owner.Character:GetChildren()) do | |
| 695 | if v.ClassName == "Part" or v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
| 696 | v:destroy() | |
| 697 | end | |
| 698 | end | |
| 699 | clone.Parent = workspace | |
| 700 | if clone:findFirstChild("Health") then
| |
| 701 | clone:findFirstChild("Health"):Remove()
| |
| 702 | end | |
| 703 | for i,v in pairs(clone:GetChildren()) do | |
| 704 | if v.ClassName == "Accessory" then | |
| 705 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
| |
| 706 | if attachment1 then | |
| 707 | for q,w in pairs(clone:GetChildren()) do | |
| 708 | if w.ClassName == "Part" then | |
| 709 | local attachment2 = w:findFirstChild(attachment1.Name) | |
| 710 | if attachment2 then | |
| 711 | local hinge = Instance.new("HingeConstraint", v.Handle)
| |
| 712 | hinge.Attachment0 = attachment1 | |
| 713 | hinge.Attachment1 = attachment2 | |
| 714 | hinge.LimitsEnabled = true | |
| 715 | hinge.LowerAngle = 0 | |
| 716 | hinge.UpperAngle = 0 | |
| 717 | end | |
| 718 | end | |
| 719 | end | |
| 720 | end | |
| 721 | end | |
| 722 | end | |
| 723 | if clone:findFirstChild("Right Arm") and clone:findFirstChild("Torso") then
| |
| 724 | local welddead = Instance.new("Weld", clone["Right Arm"])
| |
| 725 | welddead.Part0 = clone.Torso | |
| 726 | welddead.Part1 = clone["Right Arm"] | |
| 727 | local pose = math.random(1,2) | |
| 728 | if pose == 1 then | |
| 729 | welddead.C0 = CFrame.new(1.57922745, 0.0944194794, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 730 | elseif pose == 2 then | |
| 731 | welddead.C0 = CFrame.new(1.5, 1, 2.98023224e-08, 0.999999821, 0, 0, 0, -0.999999881, 8.74227695e-08, 0, -8.74227766e-08, -1) | |
| 732 | end | |
| 733 | end | |
| 734 | if clone:findFirstChild("Left Arm") and clone:findFirstChild("Torso") then
| |
| 735 | local welddead = Instance.new("Weld", clone["Left Arm"])
| |
| 736 | welddead.Part0 = clone.Torso | |
| 737 | welddead.Part1 = clone["Left Arm"] | |
| 738 | local pose = math.random(1,2) | |
| 739 | if pose == 1 then | |
| 740 | welddead.C0 = CFrame.new(-1.5, 1, -5.96046448e-08, 0.999999881, 0, 0, 0, -0.99999994, -8.74227695e-08, 0, 8.74227766e-08, -1) | |
| 741 | elseif pose == 2 then | |
| 742 | welddead.C0 = CFrame.new(-1.57922745, 0.0944194794, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 743 | end | |
| 744 | end | |
| 745 | if clone:findFirstChild("Left Leg") and clone:findFirstChild("Torso") then
| |
| 746 | local welddead = Instance.new("Weld", clone["Left Leg"])
| |
| 747 | welddead.Part0 = clone.Torso | |
| 748 | welddead.Part1 = clone["Left Leg"] | |
| 749 | local pose = math.random(1,2) | |
| 750 | if pose == 1 then | |
| 751 | welddead.C0 = CFrame.new(-0.681243896, -2.07163239, 0, 0.984807611, 0.173648149, 0, -0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 752 | elseif pose == 2 then | |
| 753 | welddead.C0 = CFrame.new(-1.25976563, -2.08743858, 0, 0.766044319, 0.642787457, 0, -0.642787516, 0.766044378, 0, 0, 0, 1) | |
| 754 | end | |
| 755 | end | |
| 756 | if clone:findFirstChild("Right Leg") and clone:findFirstChild("Torso") then
| |
| 757 | local welddead = Instance.new("Weld", clone["Right Leg"])
| |
| 758 | welddead.Part0 = clone.Torso | |
| 759 | welddead.Part1 = clone["Right Leg"] | |
| 760 | local pose = math.random(1,2) | |
| 761 | if pose == 1 then | |
| 762 | welddead.C0 = CFrame.new(0.681243896, -2.07163239, 0, 0.984807611, -0.173648149, 0, 0.173648164, 0.98480767, 0, 0, 0, 1) | |
| 763 | elseif pose == 2 then | |
| 764 | welddead.C0 = CFrame.new(0.5, -2, 0, 0.999999881, 0, 0, 0, 0.99999994, 0, 0, 0, 1) | |
| 765 | end | |
| 766 | end | |
| 767 | if clone:findFirstChild("Head") and clone:findFirstChild("Torso") then
| |
| 768 | local welddead = Instance.new("Weld", clone["Head"])
| |
| 769 | welddead.Part0 = clone.Torso | |
| 770 | welddead.Part1 = clone["Head"] | |
| 771 | welddead.C0 = CFrame.new(0, 1.5, 0, 0.999999881, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 772 | end | |
| 773 | if clone:findFirstChild("HumanoidRootPart") and clone:findFirstChild("Torso") then
| |
| 774 | local welddead = Instance.new("Weld", clone["Torso"])
| |
| 775 | welddead.Part0 = clone.HumanoidRootPart | |
| 776 | welddead.Part1 = clone["Torso"] | |
| 777 | welddead.C0 = CFrame.new(0, -2.79999995, 0.399999619, 0.99999994, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08) | |
| 778 | end | |
| 779 | local value = 0.35 | |
| 780 | -- Version: 2.82 | |
| 781 | -- Instances: | |
| 782 | local presspls = Instance.new("ScreenGui")
| |
| 783 | local Frame = Instance.new("Frame")
| |
| 784 | local TextLabel = Instance.new("TextLabel")
| |
| 785 | --Properties: | |
| 786 | presspls.Name = "press_pls" | |
| 787 | presspls.Parent = owner:findFirstChildOfClass("PlayerGui")
| |
| 788 | presspls.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
| 789 | ||
| 790 | Frame.Parent = presspls | |
| 791 | Frame.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 792 | Frame.Position = UDim2.new(0.325911194, 0, 0.864347696, 0) | |
| 793 | Frame.Size = UDim2.new(0, 614, 0, 88) | |
| 794 | ||
| 795 | TextLabel.Parent = Frame | |
| 796 | TextLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 797 | TextLabel.BackgroundTransparency = 1 | |
| 798 | TextLabel.Position = UDim2.new(0.0293159597, 0, 0, 0) | |
| 799 | TextLabel.Size = UDim2.new(0, 578, 0, 88) | |
| 800 | TextLabel.Font = Enum.Font.Arcade | |
| 801 | TextLabel.Text = "PRESS R TO RESTART" | |
| 802 | TextLabel.TextColor3 = Color3.fromRGB(1,1,1) | |
| 803 | TextLabel.TextScaled = true | |
| 804 | TextLabel.TextSize = 25 | |
| 805 | TextLabel.TextWrapped = true | |
| 806 | local music = Instance.new("Sound", presspls)
| |
| 807 | local randomdedmusic = math.random(1,2) | |
| 808 | if randomdedmusic == 1 then | |
| 809 | music.SoundId = "rbxassetid://542118363" | |
| 810 | music.Volume = 3 | |
| 811 | elseif randomdedmusic == 2 then | |
| 812 | music.SoundId = "rbxassetid://226195819" | |
| 813 | music.Volume = 2 | |
| 814 | end | |
| 815 | music:Play() | |
| 816 | music.Name = "dead" | |
| 817 | while value > 0 do | |
| 818 | value = value - 0.02 | |
| 819 | if clone:findFirstChild("HumanoidRootPart") then
| |
| 820 | clone:findFirstChild("HumanoidRootPart").CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,value)
| |
| 821 | end | |
| 822 | game:GetService("RunService").Heartbeat:wait()
| |
| 823 | end | |
| 824 | if clone:findFirstChild("HumanoidRootPart") then
| |
| 825 | local blood = Instance.new("Part", workspace)
| |
| 826 | blood.Shape = "Cylinder" | |
| 827 | blood.BrickColor = BrickColor.new("Maroon")
| |
| 828 | blood.Anchored = true | |
| 829 | blood.Size = Vector3.new(0.1,1,1) | |
| 830 | blood.CFrame = clone:findFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,-3.25,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,math.pi/2)
| |
| 831 | blood.CanCollide = false | |
| 832 | local function bleeed() | |
| 833 | while blood.Size.y < 6 and wait() do | |
| 834 | blood.Size = blood.Size + Vector3.new(0,0.007,0.007) | |
| 835 | end | |
| 836 | end | |
| 837 | spawn(bleeed) | |
| 838 | game.Debris:AddItem(blood, 40) | |
| 839 | end | |
| 840 | if clone:findFirstChild("HumanoidRootPart") then
| |
| 841 | clone:findFirstChild("HumanoidRootPart").CanCollide = false
| |
| 842 | end | |
| 843 | game.Debris:AddItem(clone, 40) | |
| 844 | local function rainbow() | |
| 845 | while wait() do | |
| 846 | TextLabel.TextColor3 = Color3.fromRGB(0,255,255) | |
| 847 | wait(.1) | |
| 848 | TextLabel.TextColor3 = Color3.fromRGB(30,255,255) | |
| 849 | wait(.1) | |
| 850 | TextLabel.TextColor3 = Color3.fromRGB(60,255,255) | |
| 851 | wait(.1) | |
| 852 | TextLabel.TextColor3 = Color3.fromRGB(90,255,255) | |
| 853 | wait(.1) | |
| 854 | TextLabel.TextColor3 = Color3.fromRGB(120,255,255) | |
| 855 | wait(.1) | |
| 856 | TextLabel.TextColor3 = Color3.fromRGB(150,255,255) | |
| 857 | wait(.1) | |
| 858 | TextLabel.TextColor3 = Color3.fromRGB(180,255,255) | |
| 859 | wait(.1) | |
| 860 | TextLabel.TextColor3 = Color3.fromRGB(210,255,255) | |
| 861 | wait(.1) | |
| 862 | TextLabel.TextColor3 = Color3.fromRGB(240,255,255) | |
| 863 | wait(.1) | |
| 864 | TextLabel.TextColor3 = Color3.fromRGB(255,255,255) | |
| 865 | wait(.1) | |
| 866 | -- | |
| 867 | TextLabel.TextColor3 = Color3.fromRGB(255,240,255) | |
| 868 | wait(.1) | |
| 869 | TextLabel.TextColor3 = Color3.fromRGB(255,210,255) | |
| 870 | wait(.1) | |
| 871 | TextLabel.TextColor3 = Color3.fromRGB(255,180,255) | |
| 872 | wait(.1) | |
| 873 | TextLabel.TextColor3 = Color3.fromRGB(255,150,255) | |
| 874 | wait(.1) | |
| 875 | TextLabel.TextColor3 = Color3.fromRGB(255,120,255) | |
| 876 | wait(.1) | |
| 877 | TextLabel.TextColor3 = Color3.fromRGB(255,90,255) | |
| 878 | wait(.1) | |
| 879 | TextLabel.TextColor3 = Color3.fromRGB(255,60,255) | |
| 880 | wait(.1) | |
| 881 | TextLabel.TextColor3 = Color3.fromRGB(255,30,255) | |
| 882 | wait(.1) | |
| 883 | TextLabel.TextColor3 = Color3.fromRGB(255,0,255) | |
| 884 | wait(.1) | |
| 885 | TextLabel.TextColor3 = Color3.fromRGB(255,0,255) | |
| 886 | wait(.1) | |
| 887 | --E | |
| 888 | TextLabel.TextColor3 = Color3.fromRGB(255,0,230) | |
| 889 | wait(.1) | |
| 890 | TextLabel.TextColor3 = Color3.fromRGB(255,0,200) | |
| 891 | wait(.1) | |
| 892 | TextLabel.TextColor3 = Color3.fromRGB(255,0,170) | |
| 893 | wait(.1) | |
| 894 | TextLabel.TextColor3 = Color3.fromRGB(255,0,140) | |
| 895 | wait(.1) | |
| 896 | TextLabel.TextColor3 = Color3.fromRGB(255,0,110) | |
| 897 | wait(.1) | |
| 898 | TextLabel.TextColor3 = Color3.fromRGB(255,0,80) | |
| 899 | wait(.1) | |
| 900 | TextLabel.TextColor3 = Color3.fromRGB(255,0,50) | |
| 901 | wait(.1) | |
| 902 | TextLabel.TextColor3 = Color3.fromRGB(255,0,20) | |
| 903 | wait(.1) | |
| 904 | TextLabel.TextColor3 = Color3.fromRGB(255,0,0) | |
| 905 | wait(.1) | |
| 906 | TextLabel.TextColor3 = Color3.fromRGB(255,0,0) | |
| 907 | wait(.1) | |
| 908 | --E | |
| 909 | TextLabel.TextColor3 = Color3.fromRGB(230,0,0) | |
| 910 | wait(.1) | |
| 911 | TextLabel.TextColor3 = Color3.fromRGB(200,30,0) | |
| 912 | wait(.1) | |
| 913 | TextLabel.TextColor3 = Color3.fromRGB(170,60,0) | |
| 914 | wait(.1) | |
| 915 | TextLabel.TextColor3 = Color3.fromRGB(140,90,0) | |
| 916 | wait(.1) | |
| 917 | TextLabel.TextColor3 = Color3.fromRGB(110,120,0) | |
| 918 | wait(.1) | |
| 919 | TextLabel.TextColor3 = Color3.fromRGB(80,150,0) | |
| 920 | wait(.1) | |
| 921 | TextLabel.TextColor3 = Color3.fromRGB(50,180,0) | |
| 922 | wait(.1) | |
| 923 | TextLabel.TextColor3 = Color3.fromRGB(20,210,0) | |
| 924 | wait(.1) | |
| 925 | TextLabel.TextColor3 = Color3.fromRGB(0,240,0) | |
| 926 | wait(.1) | |
| 927 | TextLabel.TextColor3 = Color3.fromRGB(0,255,0) | |
| 928 | wait(.1) | |
| 929 | -- | |
| 930 | TextLabel.TextColor3 = Color3.fromRGB(0,255,0) | |
| 931 | wait(.1) | |
| 932 | TextLabel.TextColor3 = Color3.fromRGB(0,255,30) | |
| 933 | wait(.1) | |
| 934 | TextLabel.TextColor3 = Color3.fromRGB(0,255,60) | |
| 935 | wait(.1) | |
| 936 | TextLabel.TextColor3 = Color3.fromRGB(0,255,90) | |
| 937 | wait(.1) | |
| 938 | TextLabel.TextColor3 = Color3.fromRGB(0,255,120) | |
| 939 | wait(.1) | |
| 940 | TextLabel.TextColor3 = Color3.fromRGB(0,255,160) | |
| 941 | wait(.1) | |
| 942 | TextLabel.TextColor3 = Color3.fromRGB(0,255,190) | |
| 943 | wait(.1) | |
| 944 | TextLabel.TextColor3 = Color3.fromRGB(0,255,220) | |
| 945 | wait(.1) | |
| 946 | TextLabel.TextColor3 = Color3.fromRGB(0,255,240) | |
| 947 | wait(.1) | |
| 948 | TextLabel.TextColor3 = Color3.fromRGB(0,255,255) | |
| 949 | wait(.1) | |
| 950 | end | |
| 951 | end | |
| 952 | local function spin() | |
| 953 | value = 0.1 | |
| 954 | while true do | |
| 955 | canattack = true | |
| 956 | TextLabel.Rotation = 0 | |
| 957 | while value > -0.11 do | |
| 958 | TextLabel.Rotation = TextLabel.Rotation + value | |
| 959 | value = value - 0.0012 | |
| 960 | wait() | |
| 961 | canattack = true | |
| 962 | end | |
| 963 | local interpolation = -0.1088 | |
| 964 | for i = 1,160 do | |
| 965 | interpolation = interpolation + 0.0014 | |
| 966 | TextLabel.Rotation = TextLabel.Rotation + interpolation | |
| 967 | wait() | |
| 968 | canattack = true | |
| 969 | end | |
| 970 | value = 0.1 | |
| 971 | wait() | |
| 972 | end | |
| 973 | end | |
| 974 | spawn(spin) | |
| 975 | spawn(rainbow) | |
| 976 | end | |
| 977 | ownerhumanoid.Died:connect(dead) | |
| 978 | while game:GetService("RunService").Heartbeat:wait() do
| |
| 979 | if jumping then | |
| 980 | for i = 0,1 , 0.11 do | |
| 981 | if jumping and cananimate then | |
| 982 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.53904724, 0.0755195618, 0.171010971, 0.99619472, -0.0818995908, -0.0298090335, 0.0871557295, 0.936116695, 0.340718776, 4.04947187e-09, -0.342020273, 0.939692557),i) | |
| 983 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.53904724, 0.0755195618, 0.171010971, 0.99619472, 0.081899628, 0.0298090335, -0.0871557519, 0.936116695, 0.340718746, 8.98904418e-09, -0.342020243, 0.939692557),i) | |
| 984 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.586088657, -2.0058279, 0.25881958, 0.99619472, 0.0841859505, 0.0225575529, -0.0871556997, 0.962250173, 0.257834017, -2.40219578e-09, -0.258818954, 0.965925872),i) | |
| 985 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.536765099, -1.44205523, -1, 0.99619472, -0.0871554911, 0, 0.0871554837, 0.996194661, -4.4408921e-16, 0, 4.4408921e-16, 1),i) | |
| 986 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
| 987 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49240398, 0.0868244171, 1, -3.62258703e-08, -2.05447037e-07, -1.24344979e-14, 0.98480773, -0.173648298, 2.08616399e-07, 0.173648298, 0.98480773),i) | |
| 988 | game:GetService("RunService").Heartbeat:wait()
| |
| 989 | end | |
| 990 | end | |
| 991 | end -------------------------------------------- | |
| 992 | if running and not jumping and cananimate then | |
| 993 | local rarmc0 = rightarm.C0 | |
| 994 | local larmc0 = leftarm.C0 | |
| 995 | local llegc0 = leftleg.C0 | |
| 996 | local rlegc0 = rightleg.C0 | |
| 997 | local humrootc0 = humanoidrootpart.C0 | |
| 998 | local headc0 = head.C0 | |
| 999 | for i = 0,1 , 0.13 do | |
| 1000 | if running and not jumping and cananimate then | |
| 1001 | batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i) | |
| 1002 | rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i) | |
| 1003 | leftarm.C0 = larmc0:lerp(CFrame.new(-1.29883623, 0.500000954, -1.24085808, 0.939692557, -0.342020124, -3.6282124e-09, -3.7252903e-08, -8.94069672e-08, -0.99999994, 0.342020124, 0.939692616, -5.96046448e-08),i) | |
| 1004 | leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.34202051, 0.939691544, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i) | |
| 1005 | rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.04278755, -1.56604576, 1, 0, 0, 0, 0.642787635, -0.766044319, 0, 0.766044378, 0.642787755),i) | |
| 1006 | humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i) | |
| 1007 | head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171009064, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i) | |
| 1008 | game:GetService("RunService").Heartbeat:wait()
| |
| 1009 | end | |
| 1010 | end | |
| 1011 | local rarmc0 = rightarm.C0 | |
| 1012 | local larmc0 = leftarm.C0 | |
| 1013 | local llegc0 = leftleg.C0 | |
| 1014 | local rlegc0 = rightleg.C0 | |
| 1015 | local humrootc0 = humanoidrootpart.C0 | |
| 1016 | local headc0 = head.C0 | |
| 1017 | for i = 0,1 , 0.13 do | |
| 1018 | if running and not jumping and cananimate then | |
| 1019 | batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i) | |
| 1020 | rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i) | |
| 1021 | leftarm.C0 = larmc0:lerp(CFrame.new(-1.51513863, -0.129981518, -0.155303955, 0.998369873, 0.0540187061, 0.0184263606, -0.0462776423, 0.955111921, -0.292607933, -0.0334055424, 0.291278243, 0.956054926),i) | |
| 1022 | leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -0.863191605, -0.37587738, 1, 3.55271368e-15, 0, -7.10542736e-15, 0.342020154, 0.939692616, 1.77635705e-15, -0.939692616, 0.342020154),i) | |
| 1023 | rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -2.06334591, 0.204090118, 1, 8.8817842e-16, 0, -8.8817842e-16, 0.98480767, 0.173648238, 0, -0.173648268, 0.98480773),i) | |
| 1024 | humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i) | |
| 1025 | head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i) | |
| 1026 | game:GetService("RunService").Heartbeat:wait()
| |
| 1027 | end | |
| 1028 | end | |
| 1029 | local rarmc0 = rightarm.C0 | |
| 1030 | local larmc0 = leftarm.C0 | |
| 1031 | local llegc0 = leftleg.C0 | |
| 1032 | local rlegc0 = rightleg.C0 | |
| 1033 | local humrootc0 = humanoidrootpart.C0 | |
| 1034 | local headc0 = head.C0 | |
| 1035 | for i = 0,1 , 0.13 do | |
| 1036 | if running and not jumping and cananimate then | |
| 1037 | batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i) | |
| 1038 | rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i) | |
| 1039 | leftarm.C0 = larmc0:lerp(CFrame.new(-1.48023987, -0.0610394478, 0.792190552, 0.998369932, -0.0087661799, 0.0563976094, -0.0462775454, 0.454015464, 0.889791071, -0.033405453, -0.890950739, 0.452869713),i) | |
| 1040 | leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.26786566, -1.64663887, 1, 0, 0, 0, 0.642787933, -0.76604414, 0, 0.76604414, 0.642787993),i) | |
| 1041 | rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -1.42055845, 0.970134735, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i) | |
| 1042 | humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0.18793869, -0.068403244, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i) | |
| 1043 | head.C0 = headc0:lerp(CFrame.new(0, 1.46984673, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i) | |
| 1044 | game:GetService("RunService").Heartbeat:wait()
| |
| 1045 | end | |
| 1046 | end | |
| 1047 | local rarmc0 = rightarm.C0 | |
| 1048 | local larmc0 = leftarm.C0 | |
| 1049 | local llegc0 = leftleg.C0 | |
| 1050 | local rlegc0 = rightleg.C0 | |
| 1051 | local humrootc0 = humanoidrootpart.C0 | |
| 1052 | local headc0 = head.C0 | |
| 1053 | for i = 0,1 , 0.13 do | |
| 1054 | if running and not jumping and cananimate then | |
| 1055 | batweld.C0 = batweld.C0:lerp(CFrame.new(-1.08476353, 0.49840641, -1.01060486, 0.819151759, 5.06639481e-07, -0.573576689, 0.519837201, -0.422617912, 0.742403686, -0.242403388, -0.906307817, -0.346188605),i) | |
| 1056 | rightarm.C0 = rarmc0:lerp(CFrame.new(1.49999905, 0.969845772, -0.171009064, 0.99999994, 7.4505806e-09, 0, 0, -0.939692557, -0.342020184, 0, 0.342020214, -0.939692557),i) | |
| 1057 | leftarm.C0 = larmc0:lerp(CFrame.new(-1.49622726, 0.0558686256, 0.152441025, 0.998369813, 0.0444596186, 0.03579133, -0.0462785624, 0.99758935, 0.0517075658, -0.0334061533, -0.0532796681, 0.998020709),i) | |
| 1058 | leftleg.C0 = llegc0:lerp(CFrame.new(-0.5, -1.93537951, 0.411506653, 1, 0, 0, 0, 0.939692199, 0.342021108, 0, -0.342021137, 0.939692259),i) | |
| 1059 | rightleg.C0 = rlegc0:lerp(CFrame.new(0.5, -0.941730499, -0.345434189, 1, 0, 0, 3.55271368e-15, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154),i) | |
| 1060 | humanoidrootpart.C0 = humrootc0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692497, 0.342020482, 0, -0.342020482, 0.939692497) * CFrame.new(0,-0.35,0),i) | |
| 1061 | head.C0 = headc0:lerp(CFrame.new(0, 1.46984625, 0.171010971, 1, 0, 0, 0, 0.939692497, -0.342020482, 0, 0.342020482, 0.939692497),i) | |
| 1062 | game:GetService("RunService").Heartbeat:wait()
| |
| 1063 | end | |
| 1064 | end | |
| 1065 | else ----------------------------------------------------------------- | |
| 1066 | for i = 0,1 , 0.03 do | |
| 1067 | if not running and not jumping and cananimate then | |
| 1068 | batweld.C0 = batweld.C0:lerp(CFrame.new(-5.7220459e-06, 0.786361694, -0.703529358, 0.999999881, 5.96046448e-08, -7.4505806e-08, 1.1920929e-07, -0.258817732, 0.965926111, 2.98023224e-08, -0.96592617, -0.258817703),i) | |
| 1069 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.57922745, 0.239297867, -0.310691833, 0.984807611, -0.173648193, 0, 0.111618936, 0.633022428, -0.766044199, 0.133022189, 0.754406273, 0.642787933),i) | |
| 1070 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57922745, 0.094420433, 0, 0.98480767, 0.173648164, 0, -0.173648164, 0.98480767, -1.74845539e-07, 0, 1.71363354e-07, 0.99999994),i) | |
| 1071 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.535205841, -2.01684046, 3.81469727e-06, 0.999390841, 0.0348994955, 0, -0.0348994918, 0.999390781, 0, 2.98023224e-08, 0, 0.99999994),i) | |
| 1072 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.535203934, -2.01684046, 0, 0.999390841, -0.0348994955, 0, 0.0348994918, 0.999390781, 0, 2.98023224e-08, 0, 0.99999994),i) | |
| 1073 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0, -0.342020124, 0, 1, 0, 0.342020124, 0, 0.939692616),i) | |
| 1074 | head.C0 = head.C0:lerp(CFrame.new(0.0188541412, 1.49959755, -0.00685882568, 0.938935518, 0.0377115496, 0.342020094, -0.0401317924, 0.999194384, 0, -0.341744572, -0.0137258805, 0.939692557),i) | |
| 1075 | game:GetService("RunService").Heartbeat:wait()
| |
| 1076 | end | |
| 1077 | end | |
| 1078 | end | |
| 1079 | end |