SHOW:
|
|
- or go back to the newest paste.
| 1 | --------------------------------- | |
| 2 | --Kung Fu Man (From M.U.G.E.N.)-- | |
| 3 | --------------------------------- | |
| 4 | --By CKbackup (Sugarie Saffron)-- | |
| 5 | --------------------------------- | |
| 6 | ||
| 7 | wait(1/60) | |
| 8 | Effects = { }
| |
| 9 | local Player = game:service'Players'.localPlayer | |
| 10 | local chara = Player.Character | |
| 11 | local Humanoid = chara:FindFirstChildOfClass("Humanoid")
| |
| 12 | local Mouse = Player:GetMouse() | |
| 13 | local LeftArm = chara["Left Arm"] | |
| 14 | local RightArm = chara["Right Arm"] | |
| 15 | local LeftLeg = chara["Left Leg"] | |
| 16 | local RightLeg = chara["Right Leg"] | |
| 17 | local Head = chara.Head | |
| 18 | local Torso = chara.Torso | |
| 19 | local Camera = game.Workspace.CurrentCamera | |
| 20 | local RootPart = chara.HumanoidRootPart | |
| 21 | local RootJoint = RootPart.RootJoint | |
| 22 | local attack = false | |
| 23 | local Anim = 'Idle' | |
| 24 | local attacktype = 1 | |
| 25 | local delays = false | |
| 26 | local play = true | |
| 27 | local targetted = nil | |
| 28 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 29 | local velocity = RootPart.Velocity.y | |
| 30 | local sine = 0 | |
| 31 | local change = 1 | |
| 32 | local doe = 0 | |
| 33 | local Create = LoadLibrary("RbxUtility").Create
| |
| 34 | Humanoid.WalkSpeed = 16 | |
| 35 | ||
| 36 | Humanoid.Animator.Parent = nil | |
| 37 | chara.Animate.Parent = nil | |
| 38 | ||
| 39 | local newMotor = function(part0, part1, c0, c1) | |
| 40 | local w = Create('Motor'){
| |
| 41 | Parent = part0, | |
| 42 | Part0 = part0, | |
| 43 | Part1 = part1, | |
| 44 | C0 = c0, | |
| 45 | C1 = c1, | |
| 46 | } | |
| 47 | return w | |
| 48 | end | |
| 49 | ||
| 50 | function clerp(a, b, t) | |
| 51 | return a:lerp(b, t) | |
| 52 | end | |
| 53 | ||
| 54 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 55 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 56 | ||
| 57 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 58 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 59 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 60 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 61 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 62 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 63 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 64 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 65 | ||
| 66 | local rarmc1 = RW.C1 | |
| 67 | local larmc1 = LW.C1 | |
| 68 | local rlegc1 = RH.C1 | |
| 69 | local llegc1 = LH.C1 | |
| 70 | ||
| 71 | local resetc1 = false | |
| 72 | ||
| 73 | function PlayAnimationFromTable(table, speed, bool) | |
| 74 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 75 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 76 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 77 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 78 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 79 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 80 | if bool == true then | |
| 81 | if resetc1 == false then | |
| 82 | resetc1 = true | |
| 83 | RootJoint.C1 = RootJoint.C1 | |
| 84 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 85 | RW.C1 = rarmc1 | |
| 86 | LW.C1 = larmc1 | |
| 87 | RH.C1 = rlegc1 | |
| 88 | LH.C1 = llegc1 | |
| 89 | end | |
| 90 | end | |
| 91 | end | |
| 92 | ||
| 93 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 94 | ArtificialHB.Name = "Heartbeat" | |
| 95 | script:WaitForChild("Heartbeat")
| |
| 96 | frame = 0.03333333333333 | |
| 97 | tf = 0 | |
| 98 | allowframeloss = false | |
| 99 | tossremainder = false | |
| 100 | lastframe = tick() | |
| 101 | script.Heartbeat:Fire() | |
| 102 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 103 | tf = tf + s | |
| 104 | if tf >= frame then | |
| 105 | if allowframeloss then | |
| 106 | script.Heartbeat:Fire() | |
| 107 | lastframe = tick() | |
| 108 | else | |
| 109 | for i = 1, math.floor(tf / frame) do | |
| 110 | script.Heartbeat:Fire() | |
| 111 | end | |
| 112 | lastframe = tick() | |
| 113 | end | |
| 114 | if tossremainder then | |
| 115 | tf = 0 | |
| 116 | else | |
| 117 | tf = tf - frame * math.floor(tf / frame) | |
| 118 | end | |
| 119 | end | |
| 120 | end) | |
| 121 | function swait(num) | |
| 122 | if num == 0 or num == nil then | |
| 123 | ArtificialHB.Event:wait() | |
| 124 | else | |
| 125 | for i = 0, num do | |
| 126 | ArtificialHB.Event:wait() | |
| 127 | end | |
| 128 | end | |
| 129 | end | |
| 130 | ||
| 131 | function RemoveOutlines(part) | |
| 132 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 133 | end | |
| 134 | ||
| 135 | CFuncs = {
| |
| 136 | ["Part"] = {
| |
| 137 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 138 | local Part = Create("Part"){
| |
| 139 | Parent = Parent, | |
| 140 | Reflectance = Reflectance, | |
| 141 | Transparency = Transparency, | |
| 142 | CanCollide = false, | |
| 143 | Locked = true, | |
| 144 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 145 | Name = Name, | |
| 146 | Size = Size, | |
| 147 | Material = Material, | |
| 148 | } | |
| 149 | RemoveOutlines(Part) | |
| 150 | return Part | |
| 151 | end; | |
| 152 | }; | |
| 153 | ||
| 154 | ["Mesh"] = {
| |
| 155 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 156 | local Msh = Create(Mesh){
| |
| 157 | Parent = Part, | |
| 158 | Offset = OffSet, | |
| 159 | Scale = Scale, | |
| 160 | } | |
| 161 | if Mesh == "SpecialMesh" then | |
| 162 | Msh.MeshType = MeshType | |
| 163 | Msh.MeshId = MeshId | |
| 164 | end | |
| 165 | return Msh | |
| 166 | end; | |
| 167 | }; | |
| 168 | ||
| 169 | ["Mesh"] = {
| |
| 170 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 171 | local Msh = Create(Mesh){
| |
| 172 | Parent = Part, | |
| 173 | Offset = OffSet, | |
| 174 | Scale = Scale, | |
| 175 | } | |
| 176 | if Mesh == "SpecialMesh" then | |
| 177 | Msh.MeshType = MeshType | |
| 178 | Msh.MeshId = MeshId | |
| 179 | end | |
| 180 | return Msh | |
| 181 | end; | |
| 182 | }; | |
| 183 | ||
| 184 | ["Weld"] = {
| |
| 185 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 186 | local Weld = Create("Weld"){
| |
| 187 | Parent = Parent, | |
| 188 | Part0 = Part0, | |
| 189 | Part1 = Part1, | |
| 190 | C0 = C0, | |
| 191 | C1 = C1, | |
| 192 | } | |
| 193 | return Weld | |
| 194 | end; | |
| 195 | }; | |
| 196 | ||
| 197 | ["ParticleEmitter"] = {
| |
| 198 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 199 | local fp = Create("ParticleEmitter"){
| |
| 200 | Parent = Parent, | |
| 201 | Color = ColorSequence.new(Color1, Color2), | |
| 202 | LightEmission = LightEmission, | |
| 203 | Size = Size, | |
| 204 | Texture = Texture, | |
| 205 | Transparency = Transparency, | |
| 206 | ZOffset = ZOffset, | |
| 207 | Acceleration = Accel, | |
| 208 | Drag = Drag, | |
| 209 | LockedToPart = LockedToPart, | |
| 210 | VelocityInheritance = VelocityInheritance, | |
| 211 | EmissionDirection = EmissionDirection, | |
| 212 | Enabled = Enabled, | |
| 213 | Lifetime = LifeTime, | |
| 214 | Rate = Rate, | |
| 215 | Rotation = Rotation, | |
| 216 | RotSpeed = RotSpeed, | |
| 217 | Speed = Speed, | |
| 218 | VelocitySpread = VelocitySpread, | |
| 219 | } | |
| 220 | return fp | |
| 221 | end; | |
| 222 | }; | |
| 223 | ||
| 224 | CreateTemplate = {
| |
| 225 | ||
| 226 | }; | |
| 227 | } | |
| 228 | ||
| 229 | function so(id,par,pit,vol) | |
| 230 | local sou = Instance.new("Sound", par or workspace)
| |
| 231 | if par == chara then | |
| 232 | sou.Parent = chara.Torso | |
| 233 | end | |
| 234 | sou.Volume = vol | |
| 235 | sou.Pitch = pit or 1 | |
| 236 | sou.SoundId = "rbxassetid://" .. id | |
| 237 | sou.PlayOnRemove = true | |
| 238 | sou:Destroy() | |
| 239 | end | |
| 240 | ||
| 241 | New = function(Object, Parent, Name, Data) | |
| 242 | local Object = Instance.new(Object) | |
| 243 | for Index, Value in pairs(Data or {}) do
| |
| 244 | Object[Index] = Value | |
| 245 | end | |
| 246 | Object.Parent = Parent | |
| 247 | Object.Name = Name | |
| 248 | return Object | |
| 249 | end | |
| 250 | ||
| 251 | ||
| 252 | hatstuff = New("Model",chara,"hatstuff",{})
| |
| 253 | - | Hat2 = New("Part",hatstuff,"Hat2",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.100000001, 0.100000001, 0.100000001),CFrame = CFrame.new(38.400013, 5.04999828, -8.39998817, -1, -3.54432541e-18, -2.56937803e-22, -3.54432541e-18, 1, 5.04619589e-18, 2.56937803e-22, 5.04619589e-18, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
|
| 253 | + | |
| 254 | - | Mesh = New("SpecialMesh",Hat2,"Mesh",{Scale = Vector3.new(1, 2.0999999, 1.04999995),VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://74882381",TextureId = "rbxassetid://74882348",MeshType = Enum.MeshType.FileMesh,})
|
| 254 | + | |
| 255 | - | Weld = New("ManualWeld",Hat2,"Weld",{Part0 = Hat2,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, -3.54432541e-18, 2.56937803e-22, -3.54432541e-18, 1, 5.04619589e-18, -2.56937803e-22, 5.04619589e-18, -1),C1 = CFrame.new(0, 0.550000191, 0.100000381, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
|
| 255 | + | |
| 256 | if chara:FindFirstChild("FaysG") then
| |
| 257 | Hat1.BrickColor = BrickColor.new("Really black")
| |
| 258 | end | |
| 259 | for i, v in pairs(chara:children()) do | |
| 260 | - | Hat2:Destroy() |
| 260 | + | |
| 261 | v:Destroy() | |
| 262 | elseif v.Name == "Chest" then | |
| 263 | for a, b in pairs(v:children()) do | |
| 264 | if b.Name ~= "Tail" then | |
| 265 | b.Transparency = 1 | |
| 266 | end | |
| 267 | end | |
| 268 | end | |
| 269 | end | |
| 270 | ||
| 271 | --local bcols = Instance.new("BodyColors",chara)
| |
| 272 | --bcols.HeadColor=BrickColor.new("Light orange")
| |
| 273 | --bcols.LeftArmColor=BrickColor.new("Light orange")
| |
| 274 | - | local sh = Instance.new("Shirt",chara)
|
| 274 | + | |
| 275 | - | sh.ShirtTemplate = "rbxassetid://460500101" |
| 275 | + | |
| 276 | - | local pn = Instance.new("Pants",chara)
|
| 276 | + | |
| 277 | - | pn.PantsTemplate = "rbxassetid://460500209" |
| 277 | + | |
| 278 | - | if Head:FindFirstChild("face") then
|
| 278 | + | |
| 279 | - | Head.face.Texture = "rbxassetid://277939506" |
| 279 | + | |
| 280 | pemitt.Enabled = false | |
| 281 | pemitt.Transparency = NumberSequence.new(0,1) | |
| 282 | pemitt.Lifetime = NumberRange.new(1) | |
| 283 | pemitt.Size = NumberSequence.new(3,10) | |
| 284 | pemitt.LockedToPart = false | |
| 285 | pemitt.LightInfluence = 1 | |
| 286 | pemitt.Speed = NumberRange.new(7) | |
| 287 | pemitt.EmissionDirection = "Top" | |
| 288 | pemitt.Texture = "https://www.roblox.com/headshot-thumbnail/image?userId="..Player.UserId.."&width=420&height=420&format=png" | |
| 289 | if chara:FindFirstChild("FaysG") then
| |
| 290 | pemitt.Texture = "rbxassetid://1290985799" | |
| 291 | end | |
| 292 | ||
| 293 | function rayCast(Position, Direction, Range, Ignore) | |
| 294 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 295 | end | |
| 296 | ||
| 297 | --[[FindNearestTorso = function(pos) | |
| 298 | local list = (game.workspace:GetDescendants()) | |
| 299 | local torso = nil | |
| 300 | local dist = 1000 | |
| 301 | local temp, human, temp2 = nil, nil, nil | |
| 302 | for x = 1, #list do | |
| 303 | temp2 = list[x] | |
| 304 | if temp2.className == "Model" and temp2.Name ~= chara.Name then | |
| 305 | temp = temp2:findFirstChild("Torso")
| |
| 306 | human = temp2:FindFirstChildOfClass("Humanoid")
| |
| 307 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 308 | local dohit = true | |
| 309 | if dohit == true then | |
| 310 | torso = temp | |
| 311 | dist = (temp.Position - pos).magnitude | |
| 312 | end | |
| 313 | end | |
| 314 | end | |
| 315 | end | |
| 316 | return torso, dist | |
| 317 | end]] | |
| 318 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 319 | if SinglePlayer then | |
| 320 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
| 321 | end | |
| 322 | local List = {}
| |
| 323 | for i, v in pairs(workspace:GetDescendants()) do | |
| 324 | if v:IsA("Model") then
| |
| 325 | if v:findFirstChild("Head") then
| |
| 326 | if v ~= chara then | |
| 327 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 328 | table.insert(List, v) | |
| 329 | end | |
| 330 | end | |
| 331 | end | |
| 332 | end | |
| 333 | end | |
| 334 | return List | |
| 335 | end | |
| 336 | ||
| 337 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
| 338 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
| |
| 339 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
| |
| 340 | local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001,LightEmission = 1})
| |
| 341 | return TEff | |
| 342 | end | |
| 343 | ||
| 344 | LLTr = CreateTrailObj(LeftLeg,"White","White",0,0) | |
| 345 | RLTr = CreateTrailObj(RightLeg,"White","White",0,0) | |
| 346 | LATr = CreateTrailObj(LeftArm,"White","White",0,0) | |
| 347 | RATr = CreateTrailObj(RightArm,"White","White",0,0) | |
| 348 | ||
| 349 | EffectModel = Create("Model"){
| |
| 350 | Parent = chara, | |
| 351 | Name = "Effects", | |
| 352 | } | |
| 353 | ||
| 354 | Effects = {
| |
| 355 | Block = {
| |
| 356 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 357 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 358 | prt.Anchored = true | |
| 359 | prt.CFrame = cframe | |
| 360 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 361 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 362 | if Type == 1 or Type == nil then | |
| 363 | table.insert(Effects, {
| |
| 364 | prt, | |
| 365 | "Block1", | |
| 366 | delay, | |
| 367 | x3, | |
| 368 | y3, | |
| 369 | z3, | |
| 370 | msh | |
| 371 | }) | |
| 372 | elseif Type == 2 then | |
| 373 | table.insert(Effects, {
| |
| 374 | prt, | |
| 375 | "Block2", | |
| 376 | delay, | |
| 377 | x3, | |
| 378 | y3, | |
| 379 | z3, | |
| 380 | msh | |
| 381 | }) | |
| 382 | end | |
| 383 | end; | |
| 384 | }; | |
| 385 | ||
| 386 | Cylinder = {
| |
| 387 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 388 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 389 | prt.Anchored = true | |
| 390 | prt.CFrame = cframe | |
| 391 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 392 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 393 | table.insert(Effects, {
| |
| 394 | prt, | |
| 395 | "Cylinder", | |
| 396 | delay, | |
| 397 | x3, | |
| 398 | y3, | |
| 399 | z3, | |
| 400 | msh | |
| 401 | }) | |
| 402 | end; | |
| 403 | }; | |
| 404 | Head = {
| |
| 405 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 406 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 407 | prt.Anchored = true | |
| 408 | prt.CFrame = cframe | |
| 409 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 410 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 411 | table.insert(Effects, {
| |
| 412 | prt, | |
| 413 | "Cylinder", | |
| 414 | delay, | |
| 415 | x3, | |
| 416 | y3, | |
| 417 | z3, | |
| 418 | msh | |
| 419 | }) | |
| 420 | end; | |
| 421 | }; | |
| 422 | ||
| 423 | Sphere = {
| |
| 424 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 425 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 426 | prt.Anchored = true | |
| 427 | prt.CFrame = cframe | |
| 428 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 429 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 430 | table.insert(Effects, {
| |
| 431 | prt, | |
| 432 | "Cylinder", | |
| 433 | delay, | |
| 434 | x3, | |
| 435 | y3, | |
| 436 | z3, | |
| 437 | msh | |
| 438 | }) | |
| 439 | end; | |
| 440 | }; | |
| 441 | ||
| 442 | Elect = {
| |
| 443 | Create = function(cff, x, y, z) | |
| 444 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 445 | prt.Anchored = true | |
| 446 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 447 | prt.CFrame = CFrame.new(prt.Position) | |
| 448 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 449 | local xval = math.random() / 2 | |
| 450 | local yval = math.random() / 2 | |
| 451 | local zval = math.random() / 2 | |
| 452 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 453 | table.insert(Effects, {
| |
| 454 | prt, | |
| 455 | "Elec", | |
| 456 | 0.1, | |
| 457 | x, | |
| 458 | y, | |
| 459 | z, | |
| 460 | xval, | |
| 461 | yval, | |
| 462 | zval | |
| 463 | }) | |
| 464 | end; | |
| 465 | ||
| 466 | }; | |
| 467 | ||
| 468 | Ring = {
| |
| 469 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 470 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 471 | prt.Anchored = true | |
| 472 | prt.CFrame = cframe | |
| 473 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 474 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 475 | table.insert(Effects, {
| |
| 476 | prt, | |
| 477 | "Cylinder", | |
| 478 | delay, | |
| 479 | x3, | |
| 480 | y3, | |
| 481 | z3, | |
| 482 | msh | |
| 483 | }) | |
| 484 | end; | |
| 485 | }; | |
| 486 | ||
| 487 | ||
| 488 | Wave = {
| |
| 489 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 490 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 491 | prt.Anchored = true | |
| 492 | prt.CFrame = cframe | |
| 493 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 494 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 495 | table.insert(Effects, {
| |
| 496 | prt, | |
| 497 | "Cylinder", | |
| 498 | delay, | |
| 499 | x3, | |
| 500 | y3, | |
| 501 | z3, | |
| 502 | msh | |
| 503 | }) | |
| 504 | end; | |
| 505 | }; | |
| 506 | ||
| 507 | Break = {
| |
| 508 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 509 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 510 | prt.Anchored = true | |
| 511 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 512 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 513 | local num = math.random(10, 50) / 1000 | |
| 514 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 515 | table.insert(Effects, {
| |
| 516 | prt, | |
| 517 | "Shatter", | |
| 518 | num, | |
| 519 | prt.CFrame, | |
| 520 | math.random() - math.random(), | |
| 521 | 0, | |
| 522 | math.random(50, 100) / 100 | |
| 523 | }) | |
| 524 | end; | |
| 525 | }; | |
| 526 | ||
| 527 | Fire = {
| |
| 528 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 529 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 530 | prt.Anchored = true | |
| 531 | prt.CFrame = cframe | |
| 532 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 533 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 534 | table.insert(Effects, {
| |
| 535 | prt, | |
| 536 | "Fire", | |
| 537 | delay, | |
| 538 | 1, | |
| 539 | 1, | |
| 540 | 1, | |
| 541 | msh | |
| 542 | }) | |
| 543 | end; | |
| 544 | }; | |
| 545 | ||
| 546 | FireWave = {
| |
| 547 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 548 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 549 | prt.Anchored = true | |
| 550 | prt.CFrame = cframe | |
| 551 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 552 | local d = Create("Decal"){
| |
| 553 | Parent = prt, | |
| 554 | Texture = "rbxassetid://26356434", | |
| 555 | Face = "Top", | |
| 556 | } | |
| 557 | local d = Create("Decal"){
| |
| 558 | Parent = prt, | |
| 559 | Texture = "rbxassetid://26356434", | |
| 560 | Face = "Bottom", | |
| 561 | } | |
| 562 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 563 | table.insert(Effects, {
| |
| 564 | prt, | |
| 565 | "FireWave", | |
| 566 | 1, | |
| 567 | 30, | |
| 568 | math.random(400, 600) / 100, | |
| 569 | msh | |
| 570 | }) | |
| 571 | end; | |
| 572 | }; | |
| 573 | ||
| 574 | Lightning = {
| |
| 575 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 576 | local magz = (p0 - p1).magnitude | |
| 577 | local curpos = p0 | |
| 578 | local trz = {
| |
| 579 | -ofs, | |
| 580 | ofs | |
| 581 | } | |
| 582 | for i = 1, tym do | |
| 583 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 584 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 585 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 586 | li.Material = "Neon" | |
| 587 | if tym == i then | |
| 588 | local magz2 = (curpos - p1).magnitude | |
| 589 | li.Size = Vector3.new(th, th, magz2) | |
| 590 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 591 | table.insert(Effects, {
| |
| 592 | li, | |
| 593 | "Disappear", | |
| 594 | last | |
| 595 | }) | |
| 596 | else | |
| 597 | do | |
| 598 | do | |
| 599 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 600 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 601 | game.Debris:AddItem(li, 10) | |
| 602 | table.insert(Effects, {
| |
| 603 | li, | |
| 604 | "Disappear", | |
| 605 | last | |
| 606 | }) | |
| 607 | end | |
| 608 | end | |
| 609 | end | |
| 610 | end | |
| 611 | end | |
| 612 | }; | |
| 613 | ||
| 614 | EffectTemplate = {
| |
| 615 | ||
| 616 | }; | |
| 617 | } | |
| 618 | ||
| 619 | function ShowDamage(Dude, Text, Time, Color) | |
| 620 | coroutine.resume(coroutine.create(function() | |
| 621 | local naeeym2 = Instance.new("BillboardGui",Dude)
| |
| 622 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 623 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 624 | naeeym2.Adornee = Dude.Head | |
| 625 | naeeym2.Name = "TalkingBillBoard" | |
| 626 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 627 | tecks2.BackgroundTransparency = 1 | |
| 628 | tecks2.BorderSizePixel = 0 | |
| 629 | tecks2.Text = Text | |
| 630 | tecks2.Font = "Fantasy" | |
| 631 | tecks2.TextSize = 24 | |
| 632 | tecks2.TextStrokeTransparency = 0 | |
| 633 | tecks2.TextColor3 = BrickColor.new(Color).Color | |
| 634 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 635 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 636 | swait(10) | |
| 637 | for i = 0,1,.05 do | |
| 638 | swait() | |
| 639 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
| 640 | tecks2.TextStrokeTransparency = i | |
| 641 | tecks2.TextTransparency = i | |
| 642 | end | |
| 643 | naeeym2:Destroy() | |
| 644 | end)) | |
| 645 | end | |
| 646 | ||
| 647 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 648 | if hit.Parent==nil then | |
| 649 | return | |
| 650 | end | |
| 651 | local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
| |
| 652 | local h=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 653 | for _,v in pairs(hit.Parent:GetDescendants()) do | |
| 654 | if v:IsA("Humanoid") then
| |
| 655 | h=v | |
| 656 | end | |
| 657 | end | |
| 658 | if torsy~=nil then | |
| 659 | h=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 660 | end | |
| 661 | if hit.Parent:IsA("Accoutrement") then
| |
| 662 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 663 | end | |
| 664 | if h~=nil and hit.Parent.Name~=chara.Name and torsy~=nil then | |
| 665 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 666 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 667 | return | |
| 668 | end]] | |
| 669 | -- hs(hit,1.2) | |
| 670 | local c=Instance.new("ObjectValue")
| |
| 671 | c.Name="creator" | |
| 672 | c.Value=game:service("Players").LocalPlayer
| |
| 673 | c.Parent=h | |
| 674 | game:GetService("Debris"):AddItem(c,.5)
| |
| 675 | local Damage=math.random(minim,maxim) | |
| 676 | -- h:TakeDamage(Damage) | |
| 677 | local blocked=false | |
| 678 | local block=hit.Parent:findFirstChild("Block")
| |
| 679 | if block~=nil then | |
| 680 | print(block.className) | |
| 681 | if block.className=="NumberValue" then | |
| 682 | if block.Value>0 then | |
| 683 | blocked=true | |
| 684 | if decreaseblock==nil then | |
| 685 | block.Value=block.Value-1 | |
| 686 | end | |
| 687 | end | |
| 688 | end | |
| 689 | if block.className=="IntValue" then | |
| 690 | if block.Value>0 then | |
| 691 | blocked=true | |
| 692 | if decreaseblock~=nil then | |
| 693 | block.Value=block.Value-1 | |
| 694 | end | |
| 695 | end | |
| 696 | end | |
| 697 | end | |
| 698 | h.Health=h.Health-Damage | |
| 699 | ShowDamage(h.Parent, -Damage, 1.5, "White") | |
| 700 | if Type=="Knockdown" then | |
| 701 | local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 702 | hum.PlatformStand=true | |
| 703 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 704 | swait(30) | |
| 705 | HHumanoid.PlatformStand=false | |
| 706 | end),hum) | |
| 707 | --local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 708 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 709 | local bodvol=Instance.new("BodyVelocity")
| |
| 710 | bodvol.velocity=RootPart.CFrame.lookVector*knockback | |
| 711 | bodvol.P=50000 | |
| 712 | bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000 | |
| 713 | bodvol.Parent=torsy | |
| 714 | torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0) | |
| 715 | --local rl=Instance.new("BodyAngularVelocity")
| |
| 716 | --rl.P=3000 | |
| 717 | --rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 718 | --rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 719 | --rl.Parent=torsy | |
| 720 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 721 | --game:GetService("Debris"):AddItem(rl,.5)
| |
| 722 | elseif Type=="Normal" then | |
| 723 | local vp=Instance.new("BodyVelocity")
| |
| 724 | vp.P=500 | |
| 725 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 726 | vp.velocity=RootPart.CFrame.lookVector*knockback | |
| 727 | -- if KnockbackType==1 then | |
| 728 | -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 729 | -- elseif KnockbackType==2 then | |
| 730 | -- vp.velocity=Property.CFrame.lookVector*knockback | |
| 731 | -- end | |
| 732 | if knockback>0 then | |
| 733 | vp.Parent=torsy | |
| 734 | end | |
| 735 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 736 | elseif Type=="Up" then | |
| 737 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 738 | bodyVelocity.velocity=Vector3.new(0,knockback,0) | |
| 739 | bodyVelocity.P=5000 | |
| 740 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 741 | bodyVelocity.Parent=torsy | |
| 742 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 743 | local rl=Instance.new("BodyAngularVelocity")
| |
| 744 | rl.P=3000 | |
| 745 | rl.maxTorque=Vector3.new(500000,500000,500000) | |
| 746 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 747 | rl.Parent=torsy | |
| 748 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 749 | elseif Type=="Snare" then | |
| 750 | local bp=Instance.new("BodyPosition")
| |
| 751 | bp.P=2000 | |
| 752 | bp.D=100 | |
| 753 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 754 | bp.position=torsy.Position | |
| 755 | bp.Parent=torsy | |
| 756 | game:GetService("Debris"):AddItem(bp,1)
| |
| 757 | end | |
| 758 | local debounce=Instance.new("BoolValue")
| |
| 759 | debounce.Name="DebounceHit" | |
| 760 | debounce.Parent=torsy.Parent | |
| 761 | debounce.Value=true | |
| 762 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 763 | c=Instance.new("ObjectValue")
| |
| 764 | c.Name="creator" | |
| 765 | c.Value=Player | |
| 766 | c.Parent=h | |
| 767 | game:GetService("Debris"):AddItem(c,.5)
| |
| 768 | end | |
| 769 | end | |
| 770 | ||
| 771 | function MagnitudeDamage(par,magni,efftyp,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 772 | for _, c in pairs(workspace:GetDescendants()) do | |
| 773 | local hum = c:FindFirstChildOfClass("Humanoid")
| |
| 774 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
| |
| 775 | local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
| |
| 776 | if head ~= nil then | |
| 777 | local targ = head.Position - par.Position | |
| 778 | local mag = targ.magnitude | |
| 779 | if magni >= mag and c.Name ~= Player.Name then | |
| 780 | if efftyp == "Blunt" then | |
| 781 | puncheff(head) | |
| 782 | elseif efftyp == "HardBlunt" then | |
| 783 | hpuncheff(head) | |
| 784 | end | |
| 785 | Damagefunc(RootPart,head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 786 | end | |
| 787 | end | |
| 788 | end | |
| 789 | end | |
| 790 | end | |
| 791 | ||
| 792 | combo = 1 | |
| 793 | ||
| 794 | function puncheff(par) | |
| 795 | if par.Parent:FindFirstChild("DebounceHit")==nil then
| |
| 796 | so(386946017,par,math.random(80,120)/100,1) | |
| 797 | Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.1)
| |
| 798 | end | |
| 799 | end | |
| 800 | ||
| 801 | function hpuncheff(par) | |
| 802 | if par.Parent:FindFirstChild("DebounceHit")==nil then
| |
| 803 | so(137579113,par,math.random(70,75)/100,1) | |
| 804 | Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.05)
| |
| 805 | end | |
| 806 | end | |
| 807 | ||
| 808 | function supereff() | |
| 809 | pemitt:Emit(1) | |
| 810 | so(153092315,RootPart,.8,5) | |
| 811 | for i = 1, 7 do | |
| 812 | Effects.Break.Create(BrickColor.new("Baby blue"),RootPart.CFrame,0,math.random(5,20),0)
| |
| 813 | end | |
| 814 | Effects.Wave.Create(BrickColor.new("Baby blue"), RootPart.CFrame*CFrame.new(0,-1.5,0), 2, 0, 2, 5, .5, 5, 0.1)
| |
| 815 | end | |
| 816 | ||
| 817 | function attackone() | |
| 818 | attack = true | |
| 819 | LATr.Enabled = true | |
| 820 | Humanoid.WalkSpeed = 2 | |
| 821 | so(200632136, LeftArm, .9, 1) | |
| 822 | for i=0,1,.2 do | |
| 823 | swait() | |
| 824 | PlayAnimationFromTable({
| |
| 825 | CFrame.new(0.00827017333, -4.76837158e-07, -0.372066826, 4.32133675e-07, 0, -1.00000858, 0, 1, 0, 1.00000858, 0, 4.32133675e-07), | |
| 826 | CFrame.new(0.0720631108, 1.49999857, 0.00827036519, 4.32133675e-07, 0, 1.00000858, 0, 1, 0, -1.00000858, 0, 4.32133675e-07), | |
| 827 | CFrame.new(0.783987999, 0.5, -0.759807885, 0.500000238, 0.866025388, 0, 0, 0, -1, -0.866025388, 0.500000238, 0), | |
| 828 | CFrame.new(-1.58918715, 0.915114164, -0.0720625669, 0.0400159881, 0.992945373, -0.111617096, -0.999126732, 0.0411066711, 0.00748660602, 0.012021997, 0.111220047, 0.993723094), | |
| 829 | CFrame.new(0.800002694, -1.99999833, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 830 | CFrame.new(-0.495444268, -2.01339579, 0.00209511817, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968), | |
| 831 | MagnitudeDamage(LeftArm,3,"Blunt",6,8,3,"Normal",RootPart,.4,1) | |
| 832 | }, .5, false) | |
| 833 | end | |
| 834 | swait(1) | |
| 835 | Humanoid.WalkSpeed = 16 | |
| 836 | LATr.Enabled = false | |
| 837 | attack = false | |
| 838 | end | |
| 839 | ||
| 840 | function attacktwo() | |
| 841 | attack = true | |
| 842 | RLTr.Enabled = true | |
| 843 | Humanoid.WalkSpeed = 2 | |
| 844 | so(200632136, RightLeg, .7, 1) | |
| 845 | for i=0,1,.2 do | |
| 846 | swait() | |
| 847 | PlayAnimationFromTable({
| |
| 848 | CFrame.new(0.0551774763, -4.76837158e-07, -0.20956336, 0.984816253, 0, 0.173649907, 0, 1, 0, -0.173649907, 0, 0.984816253), | |
| 849 | CFrame.new(-0.0386328921, 1.49999857, -0.0986492559, 0.984816253, 0, -0.173649907, 0, 1, 0, 0.173649907, 0, 0.984816253), | |
| 850 | CFrame.new(1.42158043, 0.497783571, 0.499346852, 0.756716371, -0.361068547, -0.544986248, 0.530888021, 0.825873375, 0.189976722, 0.381495029, -0.433085173, 0.816638827), | |
| 851 | CFrame.new(-0.790363729, -0.207643896, -0.153322488, -0.919378817, 0.377208799, -0.111607477, 0.380347937, 0.924813211, -0.00749232853, 0.100389853, -0.0493379459, -0.993724108), | |
| 852 | CFrame.new(0.383741319, -1.47819519, -1.36227417, 0.971020937, 0.0849868506, 0.223373249, 0.201054975, 0.214821026, -0.95573467, -0.129210159, 0.97294873, 0.19150871), | |
| 853 | CFrame.new(-0.495439887, -2.01339579, 0.0020987913, 0.984807849, 0, 0.173648134, 0, 1, 0, -0.173648164, 0, 0.984807849), | |
| 854 | MagnitudeDamage(RightLeg,3,"Blunt",9,11,4,"Normal",RootPart,.4,1) | |
| 855 | }, .5, false) | |
| 856 | end | |
| 857 | swait(1.5) | |
| 858 | Humanoid.WalkSpeed = 16 | |
| 859 | RLTr.Enabled = false | |
| 860 | attack = false | |
| 861 | end | |
| 862 | ||
| 863 | function attackthree() | |
| 864 | attack = true | |
| 865 | LATr.Enabled = true | |
| 866 | Humanoid.WalkSpeed = 2 | |
| 867 | for i=0,1,.2 do | |
| 868 | swait() | |
| 869 | PlayAnimationFromTable({
| |
| 870 | CFrame.new(0.0436707325, 6.56809902e-07, -0.268135428, 1.00000322, -1.21071935e-08, 2.39349902e-07, 1.11758709e-08, 1, 2.19792128e-07, -3.00584361e-07, 2.01165676e-07, 1.0000031), | |
| 871 | CFrame.new(-0.0436706543, 1.49998975, -0.031870842, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 872 | CFrame.new(0.687333524, 0.211406618, -0.815611422, 0.500000238, 0.813797593, 0.296197981, 0, 0.342019975, -0.939692676, -0.866025388, 0.469846487, 0.171010062), | |
| 873 | CFrame.new(-1.30885708, 0.759990096, 0.515828252, -0.234716937, 0.926352441, -0.29458335, -0.0210989937, -0.307833105, -0.951206446, -0.971834779, -0.217048839, 0.0917987302), | |
| 874 | CFrame.new(0.500015259, -1.77985549, 0.729058385, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414), | |
| 875 | CFrame.new(-0.495445162, -2.01339388, 0.00208995491, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968), | |
| 876 | }, .5, false) | |
| 877 | end | |
| 878 | so(158037267,LeftArm,.8,1) | |
| 879 | for i=0,1,.2 do | |
| 880 | swait() | |
| 881 | PlayAnimationFromTable({
| |
| 882 | CFrame.new(0.00827010814, -4.09172827e-07, -0.57207197, 3.51455867e-07, -9.31427935e-10, -1.00000548, 7.15250906e-07, 1, -2.93939406e-15, 1.00000536, 2.98427949e-12, 4.13155988e-07), | |
| 883 | CFrame.new(0.0720604658, 1.49999046, 0.00826480612, 0.766044259, 3.42721876e-07, 0.642787874, -2.50567325e-07, 1, -2.34566073e-07, -0.642787874, 1.86263627e-08, 0.766044259), | |
| 884 | CFrame.new(1.04996192, -0.0618722625, -0.60625875, 0.500002384, 0.150384277, 0.852873385, -2.49386289e-09, 0.984807968, -0.173647016, -0.866030276, 0.0868239254, 0.492406517), | |
| 885 | CFrame.new(-0.550303876, 0.448357344, -0.729969025, 0.399810284, -0.915730119, 0.0400139615, 0.0270380024, -0.0318540074, -0.999126732, 0.916205108, 0.400543034, 0.0120239574), | |
| 886 | CFrame.new(0.80001545, -2.00000119, 7.61750289e-06, 0.939694345, -0.342015564, -3.68559938e-09, 0.342015594, 0.939694285, -7.42008988e-09, 6.00111605e-09, 5.71207437e-09, 1), | |
| 887 | CFrame.new(-0.495453179, -2.01340103, 0.00208870322, 0.984808028, 2.42602312e-08, 0.173647031, -2.73465162e-09, 1, -1.24201193e-07, -0.173647046, 1.21839477e-07, 0.984808028), | |
| 888 | MagnitudeDamage(LeftArm,3,"Blunt",10,12,6,"Normal",RootPart,.4,1) | |
| 889 | }, .5, false) | |
| 890 | end | |
| 891 | swait(2) | |
| 892 | Humanoid.WalkSpeed = 16 | |
| 893 | LATr.Enabled = false | |
| 894 | attack = false | |
| 895 | end | |
| 896 | ||
| 897 | function attackfour() | |
| 898 | attack = true | |
| 899 | LLTr.Enabled = true | |
| 900 | Humanoid.WalkSpeed = 2 | |
| 901 | for i=0,1,.2 do | |
| 902 | swait() | |
| 903 | PlayAnimationFromTable({
| |
| 904 | CFrame.new(-0.0301548094, -0.0724081025, -0.559211493, 0.321394473, 0.116978027, -0.939692438, -0.342020094, 0.939692676, 4.69497827e-08, 0.88302213, 0.321393639, 0.342020839), | |
| 905 | CFrame.new(0.0225492716, 1.48197627, 0.160110101, 0.321394086, -0.183489025, 0.928998351, 0.116977885, 0.981226087, 0.153335288, -0.939692557, 0.0593912005, 0.336824387), | |
| 906 | CFrame.new(0.7839908, 0.500000119, -0.759810984, 0.499999404, 0.866025865, 1.1920929e-07, -1.15483999e-07, 2.08616257e-07, -1.00000012, -0.866025805, 0.499999344, 2.01165676e-07), | |
| 907 | CFrame.new(-1.10313094, -0.119031914, -0.00966702402, 0.919376969, -0.377211034, -0.111615703, 0.380350292, 0.924812317, 0.00748884678, 0.10039869, -0.0493381247, 0.993723273), | |
| 908 | CFrame.new(0.800008416, -1.99999881, -3.87945101e-06, 0.939692795, -0.342020094, -5.36441803e-07, 0.342020065, 0.939692676, -2.30967999e-07, 5.36441803e-07, 4.69497827e-08, 1), | |
| 909 | CFrame.new(-0.42619139, -1.33903706, -0.172390282, 0.312324524, -0.336822361, 0.888259172, 0.171015799, 0.939692855, 0.296194136, -0.934455514, 0.0593976751, 0.351091057), | |
| 910 | }, .5, false) | |
| 911 | end | |
| 912 | so(200632136, LeftLeg, .7, 1) | |
| 913 | for i=0,1,.2 do | |
| 914 | swait() | |
| 915 | PlayAnimationFromTable({
| |
| 916 | CFrame.new(-0.0301469415, -0.0586996675, -0.437210172, 0.321393996, 0.116978295, -0.939692676, -0.49015975, 0.86961025, -0.0593912825, 0.810215533, 0.479687631, 0.336824983), | |
| 917 | CFrame.new(0.0225491524, 1.48198009, 0.160110533, 0.321394026, -0.183488876, 0.928998351, 0.116977893, 0.981226146, 0.153335184, -0.939692616, 0.0593912527, 0.336824328), | |
| 918 | CFrame.new(0.783987582, 0.500001311, -0.759808958, 0.499998629, 0.866026282, -2.08616257e-07, -4.13507223e-07, 8.94069672e-08, -1.00000012, -0.866026282, 0.499998659, 4.02331352e-07), | |
| 919 | CFrame.new(-1.10312903, -0.119031809, -0.00967045873, 0.919376493, -0.377212375, -0.111615419, 0.380351573, 0.92481184, 0.00748815387, 0.100398645, -0.0493375398, 0.993723273), | |
| 920 | CFrame.new(1.02219689, -1.90949571, 0.0872627348, 0.871276855, -0.49015975, -0.0249014199, 0.490767866, 0.86961025, 0.0541392565, -0.00488203764, -0.0593912825, 0.998223186), | |
| 921 | CFrame.new(-1.33761406, -1.70827067, -0.524259567, 0.486513674, 0.819252968, -0.303527921, -0.873673022, 0.456210732, -0.169018984, 3.40305269e-06, 0.347414166, 0.937711895), | |
| 922 | MagnitudeDamage(LeftLeg,3,"Blunt",12,14,6,"Normal",RootPart,.4,1) | |
| 923 | }, .5, false) | |
| 924 | end | |
| 925 | swait(3) | |
| 926 | Humanoid.WalkSpeed = 16 | |
| 927 | LLTr.Enabled = false | |
| 928 | attack = false | |
| 929 | end | |
| 930 | ||
| 931 | function jattack() | |
| 932 | attack = true | |
| 933 | LLTr.Enabled = true | |
| 934 | so(200632136, LeftLeg, .7, 1) | |
| 935 | local par | |
| 936 | coroutine.wrap(function() | |
| 937 | repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0 | |
| 938 | LLTr.Enabled = false | |
| 939 | attack = false | |
| 940 | end)() | |
| 941 | for i=0,1,.2 do | |
| 942 | swait() | |
| 943 | PlayAnimationFromTable({
| |
| 944 | CFrame.new(-0.0301543549, -0.0587017909, -0.437208563, 0.321394026, 0.116978273, -0.939692497, -0.49015981, 0.86961031, -0.0593912788, 0.810215592, 0.479687661, 0.336824954), | |
| 945 | CFrame.new(0.0225486755, 1.48198104, 0.160110414, 0.321394056, -0.183488876, 0.92899853, 0.116977863, 0.981226146, 0.153335184, -0.939692497, 0.0593912415, 0.336824298), | |
| 946 | CFrame.new(0.783988774, 0.500003517, -0.759812713, 0.499998719, 0.866026521, -2.08616257e-07, -4.35858965e-07, 8.94069672e-08, -1.00000024, -0.866026223, 0.499998599, 3.7252903e-07), | |
| 947 | CFrame.new(-1.5387224, 0.336511105, -0.0620384961, 0.879926026, 0.461813837, -0.111617982, -0.463960439, 0.885824561, 0.00748144835, 0.102328926, 0.0452032089, 0.993723154), | |
| 948 | CFrame.new(-0.315333247, -1.53402376, -0.49589175, -0.134368047, 0.810216188, -0.57052201, -0.407345563, 0.479686826, 0.777155399, 0.903335512, 0.336824328, 0.265583307), | |
| 949 | CFrame.new(-1.33761203, -1.70826972, -0.524270773, 0.486513793, 0.819253027, -0.303527981, -0.873673081, 0.456210762, -0.169018969, 3.40305269e-06, 0.347414106, 0.937711835), | |
| 950 | MagnitudeDamage(LeftLeg,6,"Blunt",9,11,4,"Normal",RootPart,.4,1) | |
| 951 | }, .5, false) | |
| 952 | end | |
| 953 | end | |
| 954 | ||
| 955 | zhold = false | |
| 956 | function kfpalm() | |
| 957 | attack = true | |
| 958 | LATr.Enabled = true | |
| 959 | Humanoid.WalkSpeed = 0 | |
| 960 | for i=0,1,.2 do | |
| 961 | swait() | |
| 962 | PlayAnimationFromTable({
| |
| 963 | CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 964 | CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238), | |
| 965 | CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0), | |
| 966 | CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1), | |
| 967 | CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1), | |
| 968 | CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
| 969 | }, .5, false) | |
| 970 | end | |
| 971 | local t = 0 | |
| 972 | repeat swait() t=t+1 until t == 10 or zhold == false | |
| 973 | if t == 10 then | |
| 974 | supereff() | |
| 975 | swait(5) | |
| 976 | for i=1,2 do | |
| 977 | so(158037267,LeftArm,.5,1) | |
| 978 | local ve = Instance.new("BodyVelocity", Torso)
| |
| 979 | ve.P = 6000 | |
| 980 | ve.Name = "WUUB" | |
| 981 | ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000 | |
| 982 | ve.velocity = RootPart.CFrame.lookVector * 30 | |
| 983 | game:GetService("Debris"):AddItem(ve,.1)
| |
| 984 | for i=0,1,.2 do | |
| 985 | swait() | |
| 986 | PlayAnimationFromTable({
| |
| 987 | CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06), | |
| 988 | CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729), | |
| 989 | CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0), | |
| 990 | CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274), | |
| 991 | CFrame.new(1.30833769, -1.50339675, -5.62785135e-06, 0.642791152, -0.766049802, -1.34110837e-06, 0.766044974, 0.64278698, 0, -8.59985107e-07, 1.05675122e-06, 1.00000548), | |
| 992 | CFrame.new(-0.357623726, -1.425565, -0.224466428, 0.813800395, -0.296199203, 0.500001609, 0.342020124, 0.939692616, 3.24837544e-07, -0.469848782, 0.171010628, 0.866027236), | |
| 993 | MagnitudeDamage(LeftArm,3,"HardBlunt",9,13,10,"Normal",RootPart,.4,1) | |
| 994 | }, .5, false) | |
| 995 | end | |
| 996 | swait(5) | |
| 997 | for i=0,1,.2 do | |
| 998 | swait() | |
| 999 | PlayAnimationFromTable({
| |
| 1000 | CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 1001 | CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238), | |
| 1002 | CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0), | |
| 1003 | CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1), | |
| 1004 | CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1), | |
| 1005 | CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
| 1006 | }, .5, false) | |
| 1007 | end | |
| 1008 | end | |
| 1009 | end | |
| 1010 | so(158037267,LeftArm,.5,1) | |
| 1011 | local ve = Instance.new("BodyVelocity", Torso)
| |
| 1012 | ve.P = 6000 | |
| 1013 | ve.Name = "WUUB" | |
| 1014 | ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000 | |
| 1015 | ve.velocity = RootPart.CFrame.lookVector * 50 | |
| 1016 | game:GetService("Debris"):AddItem(ve,.1)
| |
| 1017 | for i=0,1,.2 do | |
| 1018 | swait() | |
| 1019 | PlayAnimationFromTable({
| |
| 1020 | CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06), | |
| 1021 | CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729), | |
| 1022 | CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0), | |
| 1023 | CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274), | |
| 1024 | CFrame.new(1.30833769, -1.50339675, -5.62785135e-06, 0.642791152, -0.766049802, -1.34110837e-06, 0.766044974, 0.64278698, 0, -8.59985107e-07, 1.05675122e-06, 1.00000548), | |
| 1025 | CFrame.new(-0.357623726, -1.425565, -0.224466428, 0.813800395, -0.296199203, 0.500001609, 0.342020124, 0.939692616, 3.24837544e-07, -0.469848782, 0.171010628, 0.866027236), | |
| 1026 | MagnitudeDamage(LeftArm,3,"HardBlunt",15,18,15,"Knockdown",RootPart,.4,1) | |
| 1027 | }, .5, false) | |
| 1028 | end | |
| 1029 | swait(10) | |
| 1030 | Humanoid.WalkSpeed = 16 | |
| 1031 | LATr.Enabled = false | |
| 1032 | attack = false | |
| 1033 | end | |
| 1034 | ||
| 1035 | function kfblow() | |
| 1036 | attack = true | |
| 1037 | LATr.Enabled = true | |
| 1038 | Humanoid.WalkSpeed = 0 | |
| 1039 | swait(5) | |
| 1040 | so(158037267,LeftArm,.5,1) | |
| 1041 | for i=0,1,.2 do | |
| 1042 | swait() | |
| 1043 | PlayAnimationFromTable({
| |
| 1044 | CFrame.new(8.86628623e-05, -0.599999428, -2.50004721, 2.68223084e-06, 0, -1.00001097, 0, 1, 0, 1.00001287, 0, -2.68223084e-06), | |
| 1045 | CFrame.new(0, 1.49999619, 0, 0.500008941, 0, 0.866035163, 0, 1, 0, -0.866036177, 0, 0.500003278), | |
| 1046 | CFrame.new(1.46291614, 0.899966896, 0.0760855153, 3.90002497e-05, -1.00000644, -3.9845796e-05, 1, 3.89999987e-05, 0, 1.44937817e-09, -3.71635433e-05, 1.00000548), | |
| 1047 | CFrame.new(-1.5732199, 0.899998665, 2.13230014e-05, 0, 1.00000644, -7.88460457e-05, -1, 0, 0, 0, 7.61637566e-05, 1.00000548), | |
| 1048 | CFrame.new(1.3083545, -1.50339651, -7.38252675e-06, 0.642795265, -0.766054749, -2.68223084e-06, 0.766044974, 0.64278698, 0, -1.72204273e-06, 2.08411257e-06, 1.00001097), | |
| 1049 | CFrame.new(-0.494233549, -1.52556598, -0.261073679, 0.866031349, 0, 0.500002563, 0, 1, 0, -0.500004411, 0, 0.866029203), | |
| 1050 | MagnitudeDamage(LeftArm,3,"HardBlunt",17,20,20,"Knockdown",RootPart,.4,1) | |
| 1051 | }, .5, false) | |
| 1052 | end | |
| 1053 | swait(15) | |
| 1054 | Humanoid.WalkSpeed = 16 | |
| 1055 | LATr.Enabled = false | |
| 1056 | attack = false | |
| 1057 | end | |
| 1058 | ||
| 1059 | chold = false | |
| 1060 | function kfupper() | |
| 1061 | attack = true | |
| 1062 | LATr.Enabled = true | |
| 1063 | Humanoid.WalkSpeed = 0 | |
| 1064 | for i=0,1,.1 do | |
| 1065 | swait() | |
| 1066 | PlayAnimationFromTable({
| |
| 1067 | CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
| 1068 | CFrame.new(0.0354900658, 1.49999619, -0.054992158, 0.925416768, -0.163175747, -0.342019916, 0.173647985, 0.984807849, 0, 0.336823881, -0.0593910627, 0.939692736), | |
| 1069 | CFrame.new(1.12378109, 1.0451771, -0.257020772, 0.866024971, 0.500000834, -9.53674316e-07, 0.433012992, -0.749999881, -0.49999994, -0.250001103, 0.433012009, -0.866025448), | |
| 1070 | CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), | |
| 1071 | CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686), | |
| 1072 | CFrame.new(-0.5, -1.99999976, 1.37090683e-06, 1, 1.49011612e-08, 0, 0, 0.86602509, 0.500000656, -2.98023224e-08, -0.500000715, 0.86602509), | |
| 1073 | }, .3, false) | |
| 1074 | end | |
| 1075 | local t = 0 | |
| 1076 | repeat swait() t=t+1 until t == 10 or chold == false | |
| 1077 | if t == 10 then | |
| 1078 | supereff() | |
| 1079 | swait(5) | |
| 1080 | so(158037267,LeftArm,.5,1) | |
| 1081 | for i=0,1,.2 do | |
| 1082 | swait() | |
| 1083 | PlayAnimationFromTable({
| |
| 1084 | CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 1085 | CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0), | |
| 1086 | CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692), | |
| 1087 | CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0), | |
| 1088 | CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1089 | CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984), | |
| 1090 | MagnitudeDamage(LeftArm,3,"HardBlunt",25,36,50,"Up",RootPart,.4,1) | |
| 1091 | }, .5, false) | |
| 1092 | end | |
| 1093 | swait(20) | |
| 1094 | else | |
| 1095 | so(158037267,LeftArm,.5,1) | |
| 1096 | for i=0,1,.2 do | |
| 1097 | swait() | |
| 1098 | PlayAnimationFromTable({
| |
| 1099 | CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 1100 | CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0), | |
| 1101 | CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692), | |
| 1102 | CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0), | |
| 1103 | CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1104 | CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984), | |
| 1105 | MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,10,"Up",RootPart,.4,1) | |
| 1106 | }, .5, false) | |
| 1107 | end | |
| 1108 | swait(5) | |
| 1109 | end | |
| 1110 | Humanoid.WalkSpeed = 16 | |
| 1111 | LATr.Enabled = false | |
| 1112 | attack = false | |
| 1113 | end | |
| 1114 | ||
| 1115 | function kfupper() | |
| 1116 | attack = true | |
| 1117 | LATr.Enabled = true | |
| 1118 | Humanoid.WalkSpeed = 0 | |
| 1119 | for i=0,1,.1 do | |
| 1120 | swait() | |
| 1121 | PlayAnimationFromTable({
| |
| 1122 | CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
| 1123 | CFrame.new(0.0354900658, 1.49999619, -0.054992158, 0.925416768, -0.163175747, -0.342019916, 0.173647985, 0.984807849, 0, 0.336823881, -0.0593910627, 0.939692736), | |
| 1124 | CFrame.new(1.12378109, 1.0451771, -0.257020772, 0.866024971, 0.500000834, -9.53674316e-07, 0.433012992, -0.749999881, -0.49999994, -0.250001103, 0.433012009, -0.866025448), | |
| 1125 | CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), | |
| 1126 | CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686), | |
| 1127 | CFrame.new(-0.5, -1.99999976, 1.37090683e-06, 1, 1.49011612e-08, 0, 0, 0.86602509, 0.500000656, -2.98023224e-08, -0.500000715, 0.86602509), | |
| 1128 | }, .3, false) | |
| 1129 | end | |
| 1130 | so(158037267,LeftArm,.5,1) | |
| 1131 | for i=0,1,.2 do | |
| 1132 | swait() | |
| 1133 | PlayAnimationFromTable({
| |
| 1134 | CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 1135 | CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0), | |
| 1136 | CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692), | |
| 1137 | CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0), | |
| 1138 | CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1139 | CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984), | |
| 1140 | MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,50,"Up",RootPart,.4,1) | |
| 1141 | }, .5, false) | |
| 1142 | end | |
| 1143 | swait(20) | |
| 1144 | Humanoid.WalkSpeed = 16 | |
| 1145 | LATr.Enabled = false | |
| 1146 | attack = false | |
| 1147 | end | |
| 1148 | ||
| 1149 | vhold = false | |
| 1150 | function kfgrab() | |
| 1151 | attack = true | |
| 1152 | LATr.Enabled = true | |
| 1153 | RATr.Enabled = true | |
| 1154 | Humanoid.WalkSpeed = 0 | |
| 1155 | local grab | |
| 1156 | local torsy | |
| 1157 | local hum | |
| 1158 | so(200632136, RootPart, .7, 1) | |
| 1159 | for i=0,1,.2 do | |
| 1160 | swait() | |
| 1161 | PlayAnimationFromTable({
| |
| 1162 | CFrame.new(0, -0.395585239, -1.53837633, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414), | |
| 1163 | CFrame.new(0, 1.49998748, -1.19209304e-07, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
| 1164 | CFrame.new(1.17525268, 1.16086817, -0.78494978, 0.939693093, 0.342018992, 0, 0.219845742, -0.604023516, -0.76604414, -0.262001663, 0.719846368, -0.642788053), | |
| 1165 | CFrame.new(-1.02679563, 1.23295736, -0.870862126, 0.866025984, -0.499998987, 0, -0.321393371, -0.556671143, -0.76604414, 0.383021295, 0.663414121, -0.642788053), | |
| 1166 | CFrame.new(0.5, -2.00000238, -1.66893028e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
| 1167 | CFrame.new(-0.5, -1.16437745, -0.995859087, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), | |
| 1168 | }, .4, false) | |
| 1169 | end | |
| 1170 | for _, c in pairs(workspace:GetDescendants()) do | |
| 1171 | local hum = c:FindFirstChildOfClass("Humanoid")
| |
| 1172 | if hum ~= nil then | |
| 1173 | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
| |
| 1174 | if torsy ~= nil then | |
| 1175 | local targ = torsy.Position - (RootPart.Position+RootPart.CFrame.lookVector*3) | |
| 1176 | local mag = targ.magnitude | |
| 1177 | if 5 >= mag and c.Name ~= Player.Name then | |
| 1178 | grab = c | |
| 1179 | end | |
| 1180 | end | |
| 1181 | end | |
| 1182 | end | |
| 1183 | if grab ~= nil then | |
| 1184 | local hum = grab:FindFirstChildOfClass("Humanoid")
| |
| 1185 | local torsy = grab:findFirstChild("Torso") or grab:findFirstChild("UpperTorso")
| |
| 1186 | local gra = Instance.new("Part",chara)
| |
| 1187 | gra.Size = Vector3.new(0,0,0) | |
| 1188 | gra.CanCollide = false | |
| 1189 | gra.Anchored = true | |
| 1190 | gra.CFrame = RootPart.CFrame*CFrame.new(0,0,-2) | |
| 1191 | gra.Transparency = 1 | |
| 1192 | so(240429615, torsy, 1, 1) | |
| 1193 | for i=0,1,.1 do | |
| 1194 | swait() | |
| 1195 | PlayAnimationFromTable({
| |
| 1196 | CFrame.new(0.028383255, -0.0148591995, 0.0813131332, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1197 | CFrame.new(0, 1.49998522, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1198 | CFrame.new(1.38014948, 1.17801905, -0.00539569557, 0.984808207, 0.111618228, -0.133019865, 0.111618027, -0.993723094, -0.00748204906, -0.133020028, -0.00747903017, -0.991085231), | |
| 1199 | CFrame.new(-1.35678291, 1.26276112, 0.0936147273, 0.984807968, -0.111617692, 0.133022264, -0.111617997, -0.993723154, -0.00747833261, 0.133021995, -0.00748295756, -0.991084933), | |
| 1200 | CFrame.new(0.499997497, -1.99999893, 4.32133675e-07, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414), | |
| 1201 | CFrame.new(-0.991907299, -1.90381634, 0.00414514542, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1), | |
| 1202 | }, .2, false) | |
| 1203 | gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4) | |
| 1204 | torsy.CFrame = gra.CFrame | |
| 1205 | hum.PlatformStand = true | |
| 1206 | end | |
| 1207 | Humanoid.WalkSpeed = 6 | |
| 1208 | repeat | |
| 1209 | swait() | |
| 1210 | hum.PlatformStand = true | |
| 1211 | gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4) | |
| 1212 | torsy.CFrame = gra.CFrame | |
| 1213 | until vhold == false | |
| 1214 | Humanoid.WalkSpeed = 0 | |
| 1215 | so(200632136, RootPart, .8, 1) | |
| 1216 | for i=0,1,.2 do | |
| 1217 | swait() | |
| 1218 | PlayAnimationFromTable({
| |
| 1219 | CFrame.new(0.330770075, -0.873712957, -2.02488899, 0.586823881, -0.17589277, 0.790379405, -0.642787814, 0.492403865, 0.58682394, -0.492403865, -0.852408528, 0.175892636), | |
| 1220 | CFrame.new(-4.81307461e-06, 1.49998868, -5.76675029e-06, 1, -2.98023224e-08, 1.49011612e-08, -2.98023224e-08, 1.00000012, -2.98023224e-08, 1.49011612e-08, -2.98023224e-08, 1.00000024), | |
| 1221 | CFrame.new(1.24594641, 0.0247616023, 0.244213641, 0.864328623, -0.0301527083, -0.502022803, -0.229708791, 0.864329934, -0.447401255, 0.447403759, 0.502020836, 0.74013859), | |
| 1222 | CFrame.new(-1.32204497, 1.00634372, -0.37866655, 0.984807432, -0.173649818, 1.54972076e-06, -0.111619025, -0.633023739, -0.766043425, 0.133024216, 0.754405081, -0.642789066), | |
| 1223 | CFrame.new(0.630423486, -0.846706271, -0.543594122, 0.586823881, -0.642787814, -0.492403865, -0.17589277, 0.492403865, -0.852408528, 0.790379405, 0.58682394, 0.175892636), | |
| 1224 | CFrame.new(-0.175789148, -1.96953273, -0.437953353, 0.939692736, -0.342019975, -1.43051147e-06, 0.296197295, 0.81379807, -0.5, 0.171011195, 0.469845951, 0.866025507), | |
| 1225 | }, .4, false) | |
| 1226 | gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,2,-6)*CFrame.Angles(math.rad(90),0,0),.4) | |
| 1227 | torsy.CFrame = gra.CFrame | |
| 1228 | torsy.Velocity = RootPart.CFrame.lookVector*60 | |
| 1229 | end | |
| 1230 | coroutine.wrap(function() | |
| 1231 | local par,pos | |
| 1232 | repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par | |
| 1233 | Damagefunc(RootPart,torsy,15,20,0,"Normal",RootPart,.4,1) | |
| 1234 | MagnitudeDamage(torsy,6,0,10,15,5,"Knockdown",RootPart,.4,1) | |
| 1235 | Effects.Wave.Create(BrickColor.new("White"), CFrame.new(pos), 0, 0, 0, 1, .2, 1, 0.1)
| |
| 1236 | so(260430079,torsy,1,5) | |
| 1237 | swait(60) | |
| 1238 | hum.PlatformStand = false | |
| 1239 | end)() | |
| 1240 | gra:Destroy() | |
| 1241 | end | |
| 1242 | swait(5) | |
| 1243 | Humanoid.WalkSpeed = 16 | |
| 1244 | LATr.Enabled = false | |
| 1245 | RATr.Enabled = false | |
| 1246 | attack = false | |
| 1247 | end | |
| 1248 | ||
| 1249 | function kfbow() | |
| 1250 | attack = true | |
| 1251 | Humanoid.WalkSpeed = 0 | |
| 1252 | for i=0,1,.2 do | |
| 1253 | swait() | |
| 1254 | PlayAnimationFromTable({
| |
| 1255 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1256 | CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1257 | CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1258 | CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1259 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1260 | CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1261 | }, .3, false) | |
| 1262 | end | |
| 1263 | for i=0,1.5,.1 do | |
| 1264 | swait() | |
| 1265 | PlayAnimationFromTable({
| |
| 1266 | CFrame.new(0, -0.577677608, -0.882485688, 1, 0, 0, 0, 0.342019916, 0.939692736, 0, -0.939692736, 0.342019886), | |
| 1267 | CFrame.new(0, 1.49999499, 4.4554472e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
| 1268 | CFrame.new(1.20944607, -0.213502392, 1.31413049e-06, 0.939692974, 0.342019141, -4.0802891e-07, -0.342019141, 0.939692974, 0, 3.65078449e-07, 1.78813934e-07, 1), | |
| 1269 | CFrame.new(-1.20944905, -0.213505507, 1.67175949e-06, 0.939692974, -0.342019141, 4.0802891e-07, 0.342019141, 0.939692974, 0, -3.65078449e-07, 1.78813934e-07, 1), | |
| 1270 | CFrame.new(0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886), | |
| 1271 | CFrame.new(-0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886), | |
| 1272 | }, .2, false) | |
| 1273 | end | |
| 1274 | for i=0,1.5,.1 do | |
| 1275 | swait() | |
| 1276 | PlayAnimationFromTable({
| |
| 1277 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1278 | CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1279 | CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1280 | CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1), | |
| 1281 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1282 | CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1283 | }, .2, false) | |
| 1284 | end | |
| 1285 | Humanoid.WalkSpeed = 16 | |
| 1286 | LATr.Enabled = false | |
| 1287 | attack = false | |
| 1288 | end | |
| 1289 | ||
| 1290 | ehold = false | |
| 1291 | function kfblock() | |
| 1292 | attack = true | |
| 1293 | Humanoid.WalkSpeed = 0 | |
| 1294 | for i=0,1,.2 do | |
| 1295 | swait() | |
| 1296 | PlayAnimationFromTable({
| |
| 1297 | CFrame.new(0, 0, 1.90734863e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
| 1298 | CFrame.new(-1.90734863e-06, 1.49999642, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
| 1299 | CFrame.new(0.29999733, 0, -0.799991608, 0, 1, 0, 0, 0, -1, -1, 0, 0), | |
| 1300 | CFrame.new(-1.5, 0.999999762, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1), | |
| 1301 | CFrame.new(0.500000238, -2, 2.38418579e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
| 1302 | CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1303 | }, .3, false) | |
| 1304 | end | |
| 1305 | local oldhp = Humanoid.Health | |
| 1306 | repeat | |
| 1307 | swait() | |
| 1308 | if Humanoid.Health < oldhp then | |
| 1309 | so(260430060,Torso,math.random(9,11)/10,1) | |
| 1310 | local vp = Instance.new("BodyVelocity", Torso)
| |
| 1311 | vp.MaxForce = Vector3.new(4800000, 0, 4800000) | |
| 1312 | vp.P = 200000 | |
| 1313 | vp.Velocity = RootPart.CFrame.lookVector * -30 | |
| 1314 | game:GetService("Debris"):AddItem(vp,.01)
| |
| 1315 | end | |
| 1316 | Humanoid.Health = oldhp | |
| 1317 | until ehold == false | |
| 1318 | Humanoid.WalkSpeed = 16 | |
| 1319 | attack = false | |
| 1320 | end | |
| 1321 | ||
| 1322 | --Intro-- | |
| 1323 | Humanoid.WalkSpeed = 0 | |
| 1324 | for i=0,2,.1 do | |
| 1325 | swait() | |
| 1326 | PlayAnimationFromTable({
| |
| 1327 | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
| 1328 | CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), | |
| 1329 | CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0), | |
| 1330 | CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094), | |
| 1331 | CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1332 | CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1333 | }, .3, false) | |
| 1334 | end | |
| 1335 | local wood = Instance.new("Part",chara)
| |
| 1336 | wood.Size = Vector3.new(2,.4,1) | |
| 1337 | wood.BrickColor = BrickColor.new("Bright orange")
| |
| 1338 | wood.Material = "Wood" | |
| 1339 | wood.Anchored = true | |
| 1340 | wood.CanCollide = false | |
| 1341 | wood.CFrame = RootPart.CFrame * CFrame.new(0,0,-10) | |
| 1342 | for i=0,1,.1 do | |
| 1343 | swait() | |
| 1344 | PlayAnimationFromTable({
| |
| 1345 | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
| 1346 | CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), | |
| 1347 | CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0), | |
| 1348 | CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094), | |
| 1349 | CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1350 | CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1351 | }, .3, false) | |
| 1352 | wood.CFrame = RootPart.CFrame * CFrame.new(0,3-(i*3.5),-10+(i*6)) | |
| 1353 | end | |
| 1354 | LLTr.Enabled = true | |
| 1355 | local bwood = Instance.new("Part",chara)
| |
| 1356 | bwood.Size = Vector3.new(1,.4,1) | |
| 1357 | bwood.BrickColor = BrickColor.new("Bright orange")
| |
| 1358 | bwood.Material = "Wood" | |
| 1359 | bwood.CFrame = wood.CFrame * CFrame.new(.5,0,0) | |
| 1360 | bwood.Velocity = wood.CFrame.rightVector*10 | |
| 1361 | local bwood2 = bwood:Clone() | |
| 1362 | bwood2.Parent = chara | |
| 1363 | bwood2.CFrame = wood.CFrame * CFrame.new(-.5,0,0) | |
| 1364 | bwood2.Velocity = wood.CFrame.rightVector*-10 | |
| 1365 | wood:Destroy() | |
| 1366 | so(158712406,Torso,1,1) | |
| 1367 | for i=0,1,.25 do | |
| 1368 | swait() | |
| 1369 | PlayAnimationFromTable({
| |
| 1370 | CFrame.new(-0.0301469415, -0.0586996675, -0.437210172, 0.321393996, 0.116978295, -0.939692676, -0.49015975, 0.86961025, -0.0593912825, 0.810215533, 0.479687631, 0.336824983), | |
| 1371 | CFrame.new(0.0225491524, 1.48198009, 0.160110533, 0.321394026, -0.183488876, 0.928998351, 0.116977893, 0.981226146, 0.153335184, -0.939692616, 0.0593912527, 0.336824328), | |
| 1372 | CFrame.new(0.783987582, 0.500001311, -0.759808958, 0.499998629, 0.866026282, -2.08616257e-07, -4.13507223e-07, 8.94069672e-08, -1.00000012, -0.866026282, 0.499998659, 4.02331352e-07), | |
| 1373 | CFrame.new(-1.10312903, -0.119031809, -0.00967045873, 0.919376493, -0.377212375, -0.111615419, 0.380351573, 0.92481184, 0.00748815387, 0.100398645, -0.0493375398, 0.993723273), | |
| 1374 | CFrame.new(1.02219689, -1.90949571, 0.0872627348, 0.871276855, -0.49015975, -0.0249014199, 0.490767866, 0.86961025, 0.0541392565, -0.00488203764, -0.0593912825, 0.998223186), | |
| 1375 | CFrame.new(-1.33761406, -1.70827067, -0.524259567, 0.486513674, 0.819252968, -0.303527921, -0.873673022, 0.456210732, -0.169018984, 3.40305269e-06, 0.347414166, 0.937711895), | |
| 1376 | }, .7, false) | |
| 1377 | end | |
| 1378 | swait(30) | |
| 1379 | LLTr.Enabled = false | |
| 1380 | Humanoid.WalkSpeed = 16 | |
| 1381 | ||
| 1382 | qhold = false | |
| 1383 | justsprinted = false | |
| 1384 | function kfsprint() | |
| 1385 | attack = true | |
| 1386 | --print("supurinto?")
| |
| 1387 | --justsprinted = true | |
| 1388 | --coroutine.wrap(function() | |
| 1389 | --swait(10) | |
| 1390 | --justsprinted = false | |
| 1391 | --end)() | |
| 1392 | repeat | |
| 1393 | swait() | |
| 1394 | PlayAnimationFromTable({
| |
| 1395 | CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0), | |
| 1396 | CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1397 | CFrame.new(1.35015142, 0.126790166, -0.561941147, 0.984807968, 0.173646942, 7.42582699e-07, 7.4505806e-07, 2.98023224e-08, -1.00000012, -0.173646927, 0.984808028, -5.96046448e-08), | |
| 1398 | CFrame.new(-1.14804685, 0.0496482477, -0.419735074, 0.985491097, -0.134464785, 0.103568703, -0.000598754734, -0.612957954, -0.790115416, 0.16972594, 0.778589547, -0.604145229), | |
| 1399 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1400 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1401 | }, .3, false) | |
| 1402 | Humanoid.WalkSpeed = 40 | |
| 1403 | until qhold == false or Torso.Velocity == Vector3.new(0,0,0) | |
| 1404 | --print'sutoppu' | |
| 1405 | Humanoid.WalkSpeed = 16 | |
| 1406 | attack = false | |
| 1407 | end | |
| 1408 | ||
| 1409 | Mouse.Button1Down:connect(function() | |
| 1410 | if attack == false then | |
| 1411 | if Anim == "Jump" or Anim == "Fall" then | |
| 1412 | jattack() | |
| 1413 | else | |
| 1414 | if combo == 1 then | |
| 1415 | attackone() | |
| 1416 | combo = 2 | |
| 1417 | elseif combo == 2 then | |
| 1418 | attacktwo() | |
| 1419 | combo = 3 | |
| 1420 | elseif combo == 3 then | |
| 1421 | attackthree() | |
| 1422 | combo = 4 | |
| 1423 | elseif combo == 4 then | |
| 1424 | attackfour() | |
| 1425 | combo = 1 | |
| 1426 | end | |
| 1427 | end | |
| 1428 | end | |
| 1429 | end) | |
| 1430 | ||
| 1431 | local sprintt = 0 | |
| 1432 | Mouse.KeyDown:connect(function(k) | |
| 1433 | k = k:lower() | |
| 1434 | if attack == false then | |
| 1435 | if k == 'z' then | |
| 1436 | zhold = true | |
| 1437 | kfpalm() | |
| 1438 | elseif k == 'x' then | |
| 1439 | kfblow() | |
| 1440 | elseif k == 'c' then | |
| 1441 | chold = true | |
| 1442 | kfupper() | |
| 1443 | elseif k == 'v' then | |
| 1444 | vhold = true | |
| 1445 | kfgrab() | |
| 1446 | elseif k == 'g' then | |
| 1447 | kfbow() | |
| 1448 | elseif k == 'e' then | |
| 1449 | ehold = true | |
| 1450 | kfblock() | |
| 1451 | elseif k == 'q' then | |
| 1452 | qhold = true | |
| 1453 | -- if sprintt > 1 then | |
| 1454 | -- print("supurinto")
| |
| 1455 | kfsprint() | |
| 1456 | -- end | |
| 1457 | -- sprintt = 20 | |
| 1458 | end | |
| 1459 | end | |
| 1460 | end) | |
| 1461 | ||
| 1462 | Mouse.KeyUp:connect(function(k) | |
| 1463 | k = k:lower() | |
| 1464 | if k == 'e' then | |
| 1465 | ehold = false | |
| 1466 | elseif k == 'v' then | |
| 1467 | vhold = false | |
| 1468 | elseif k == 'q' then | |
| 1469 | qhold = false | |
| 1470 | elseif k == 'z' then | |
| 1471 | zhold = false | |
| 1472 | elseif k == 'c' then | |
| 1473 | chold = false | |
| 1474 | end | |
| 1475 | end) | |
| 1476 | ||
| 1477 | for i, v in pairs(chara:GetDescendants()) do | |
| 1478 | if v:IsA("BasePart") then
| |
| 1479 | v.CanCollide = false | |
| 1480 | end | |
| 1481 | end | |
| 1482 | ||
| 1483 | coroutine.wrap(function() | |
| 1484 | while 1 do | |
| 1485 | swait() | |
| 1486 | if doe <= 360 then | |
| 1487 | doe = doe + 2 | |
| 1488 | else | |
| 1489 | doe = 0 | |
| 1490 | end | |
| 1491 | end | |
| 1492 | end)() | |
| 1493 | while true do | |
| 1494 | swait() | |
| 1495 | for i, v in pairs(chara:GetChildren()) do | |
| 1496 | if v:IsA("Part") then
| |
| 1497 | v.Material = "SmoothPlastic" | |
| 1498 | elseif v:IsA("Accessory") then
| |
| 1499 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1500 | end | |
| 1501 | end | |
| 1502 | while true do | |
| 1503 | swait() | |
| 1504 | if sprintt >= 1 then | |
| 1505 | sprintt = sprintt - 1 | |
| 1506 | end | |
| 1507 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1508 | velocity = RootPart.Velocity.y | |
| 1509 | sine = sine + change | |
| 1510 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) | |
| 1511 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1512 | Anim = "Jump" | |
| 1513 | if attack == false then | |
| 1514 | PlayAnimationFromTable({
| |
| 1515 | CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1516 | CFrame.new(0, 1.48263168, -0.0984806865, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
| 1517 | CFrame.new(0.985772133, 0.399999619, -0.61283654, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0), | |
| 1518 | CFrame.new(-1.18379903, 0.160391688, -0.480695665, 0.904800713, -0.234747261, -0.355288029, -0.043829985, 0.778562307, -0.626034975, 0.423573852, 0.582009137, 0.69415462), | |
| 1519 | CFrame.new(0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987), | |
| 1520 | CFrame.new(-0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987), | |
| 1521 | }, .3, false) | |
| 1522 | end | |
| 1523 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1524 | Anim = "Fall" | |
| 1525 | if attack == false then | |
| 1526 | PlayAnimationFromTable({
| |
| 1527 | CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1528 | CFrame.new(0, 1.44842887, -0.192449093, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1529 | CFrame.new(0.985773325, 0.399999619, -0.61283505, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0), | |
| 1530 | CFrame.new(-1.11267483, 0.241841823, -0.624208629, 0.904803991, -0.355280727, 0.234745428, -0.043827001, -0.626036167, -0.778561532, 0.423566997, 0.694157362, -0.582010925), | |
| 1531 | CFrame.new(0.500001907, -1.41961551, 8.94069672e-07, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388), | |
| 1532 | CFrame.new(-0.499990463, -2.09950018, -0.492020726, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
| 1533 | }, .3, false) | |
| 1534 | end | |
| 1535 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1536 | Anim = "Idle" | |
| 1537 | if attack == false then | |
| 1538 | change = 1 | |
| 1539 | PlayAnimationFromTable({
| |
| 1540 | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698) * CFrame.new(0,.05 * math.cos((sine)/10), 0), | |
| 1541 | CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), | |
| 1542 | CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0), | |
| 1543 | CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094), | |
| 1544 | CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1545 | CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1546 | }, .3, false) | |
| 1547 | end | |
| 1548 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1549 | Anim = "Walk" | |
| 1550 | if attack == false then | |
| 1551 | PlayAnimationFromTable({
| |
| 1552 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0), | |
| 1553 | CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491), | |
| 1554 | CFrame.new(0.921487212, 0.226793781, -0.689451039, 0.76604414, 0.556670785, -0.321393877, 0, -0.499999821, -0.866025567, -0.642787933, 0.663413823, -0.383021951), | |
| 1555 | CFrame.new(-1.1480391, 0.049652271, -0.419738829, 0.985491574, -0.1695766, -0.00709223049, -0.000597000238, 0.0383229814, -0.999265254, 0.169723794, 0.984771609, 0.0376657322), | |
| 1556 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), | |
| 1557 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), | |
| 1558 | }, .3, false) | |
| 1559 | end | |
| 1560 | end | |
| 1561 | if 0 < #Effects then | |
| 1562 | for e = 1, #Effects do | |
| 1563 | if Effects[e] ~= nil then | |
| 1564 | local Thing = Effects[e] | |
| 1565 | if Thing ~= nil then | |
| 1566 | local Part = Thing[1] | |
| 1567 | local Mode = Thing[2] | |
| 1568 | local Delay = Thing[3] | |
| 1569 | local IncX = Thing[4] | |
| 1570 | local IncY = Thing[5] | |
| 1571 | local IncZ = Thing[6] | |
| 1572 | if Thing[2] == "Shoot" then | |
| 1573 | local Look = Thing[1] | |
| 1574 | local move = 30 | |
| 1575 | if Thing[8] == 3 then | |
| 1576 | move = 10 | |
| 1577 | end | |
| 1578 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 1579 | if Thing[10] ~= nil then | |
| 1580 | da = pos | |
| 1581 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 1582 | cfa = CFrame.new(Thing[4], pos) | |
| 1583 | tehCF = cfa:lerp(cf2, 0.2) | |
| 1584 | Thing[1] = tehCF.lookVector | |
| 1585 | end | |
| 1586 | local mag = (Thing[4] - pos).magnitude | |
| 1587 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
| 1588 | if Thing[8] == 2 then | |
| 1589 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
| 1590 | end | |
| 1591 | Thing[4] = Thing[4] + Look * move | |
| 1592 | Thing[3] = Thing[3] - 1 | |
| 1593 | if 2 < Thing[5] then | |
| 1594 | Thing[5] = Thing[5] - 0.3 | |
| 1595 | Thing[6] = Thing[6] - 0.3 | |
| 1596 | end | |
| 1597 | if hit ~= nil then | |
| 1598 | Thing[3] = 0 | |
| 1599 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 1600 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1601 | else | |
| 1602 | if Thing[8] == 2 then | |
| 1603 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1604 | if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
| |
| 1605 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1606 | ref.Anchored = true | |
| 1607 | ref.CFrame = CFrame.new(pos) | |
| 1608 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 1609 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 1610 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
| 1611 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
| |
| 1612 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 1613 | end | |
| 1614 | end | |
| 1615 | end | |
| 1616 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1617 | ref.Anchored = true | |
| 1618 | ref.CFrame = CFrame.new(pos) | |
| 1619 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 1620 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1621 | end | |
| 1622 | if Thing[3] <= 0 then | |
| 1623 | table.remove(Effects, e) | |
| 1624 | end | |
| 1625 | end | |
| 1626 | do | |
| 1627 | do | |
| 1628 | if Thing[2] == "FireWave" then | |
| 1629 | if Thing[3] <= Thing[4] then | |
| 1630 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 1631 | Thing[3] = Thing[3] + 1 | |
| 1632 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 1633 | else | |
| 1634 | Part.Parent = nil | |
| 1635 | table.remove(Effects, e) | |
| 1636 | end | |
| 1637 | end | |
| 1638 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 1639 | if Thing[1].Transparency <= 1 then | |
| 1640 | if Thing[2] == "Block1" then | |
| 1641 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1642 | Mesh = Thing[7] | |
| 1643 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1644 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1645 | else | |
| 1646 | if Thing[2] == "Block2" then | |
| 1647 | Thing[1].CFrame = Thing[1].CFrame | |
| 1648 | Mesh = Thing[7] | |
| 1649 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1650 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1651 | else | |
| 1652 | if Thing[2] == "Fire" then | |
| 1653 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 1654 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1655 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1656 | else | |
| 1657 | if Thing[2] == "Cylinder" then | |
| 1658 | Mesh = Thing[7] | |
| 1659 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1660 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1661 | else | |
| 1662 | if Thing[2] == "Blood" then | |
| 1663 | Mesh = Thing[7] | |
| 1664 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 1665 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1666 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1667 | else | |
| 1668 | if Thing[2] == "Elec" then | |
| 1669 | Mesh = Thing[10] | |
| 1670 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1671 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1672 | else | |
| 1673 | if Thing[2] == "Disappear" then | |
| 1674 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1675 | else | |
| 1676 | if Thing[2] == "Shatter" then | |
| 1677 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1678 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1679 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1680 | Thing[6] = Thing[6] + Thing[5] | |
| 1681 | end | |
| 1682 | end | |
| 1683 | end | |
| 1684 | end | |
| 1685 | end | |
| 1686 | end | |
| 1687 | end | |
| 1688 | end | |
| 1689 | else | |
| 1690 | Part.Parent = nil | |
| 1691 | table.remove(Effects, e) | |
| 1692 | end | |
| 1693 | end | |
| 1694 | end | |
| 1695 | end | |
| 1696 | end | |
| 1697 | end | |
| 1698 | end | |
| 1699 | end | |
| 1700 | end | |
| 1701 | end |