SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[Edgy Quote]]-- | |
| 2 | --「 Stand Name 」-- | |
| 3 | wait(1 / 60) | |
| 4 | Effects = { }
| |
| 5 | local Player = game.Players.localPlayer | |
| 6 | local Character = Player.Character | |
| 7 | Character.Archivable = true | |
| 8 | StandName = Character:Clone() | |
| 9 | StandName.Parent = Character | |
| 10 | torso = StandName.Torso | |
| 11 | hum = StandName.Humanoid | |
| 12 | StandName.Name = "Stand Name" | |
| 13 | pl = StandName | |
| 14 | for i,v in pairs (StandName:GetChildren()) do | |
| 15 | if v:IsA("BasePart") then
| |
| 16 | v.Transparency = 1 | |
| 17 | end | |
| 18 | end | |
| 19 | local Humanoid = StandName.Humanoid | |
| 20 | local Mouse = Player:GetMouse() | |
| 21 | local LeftArm = StandName["Left Arm"] | |
| 22 | local RightArm = StandName["Right Arm"] | |
| 23 | local LeftLeg = StandName["Left Leg"] | |
| 24 | local RightLeg = StandName["Right Leg"] | |
| 25 | local Head = StandName.Head | |
| 26 | local Torso = StandName.Torso | |
| 27 | local Camera = game.Workspace.CurrentCamera | |
| 28 | local RootPart = StandName.HumanoidRootPart | |
| 29 | local RootJoint = RootPart.RootJoint | |
| 30 | local attack = false | |
| 31 | local Anim = 'Idle' | |
| 32 | local attacktype = 1 | |
| 33 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 34 | local velocity = RootPart.Velocity.y | |
| 35 | local sine = 0 | |
| 36 | local change = 1 | |
| 37 | local Create = LoadLibrary("RbxUtility").Create
| |
| 38 | local TimeStop = false | |
| 39 | ||
| 40 | local m = Create("Model"){
| |
| 41 | Parent = StandName, | |
| 42 | Name = "WeaponModel", | |
| 43 | } | |
| 44 | ||
| 45 | Head.face:remove() | |
| 46 | StandName.Head.Name = "FHead" | |
| 47 | StandName.Torso.Name = "FTorso" | |
| 48 | StandName.HumanoidRootPart.Name = "FHumanoidRootPart" | |
| 49 | Humanoid.Animator.Parent = nil | |
| 50 | StandName.Animate.Parent = nil | |
| 51 | ||
| 52 | local newMotor = function(part0, part1, c0, c1) | |
| 53 | local w = Create('Weld'){
| |
| 54 | Parent = part0, | |
| 55 | Part0 = part0, | |
| 56 | Part1 = part1, | |
| 57 | C0 = c0, | |
| 58 | C1 = c1, | |
| 59 | } | |
| 60 | return w | |
| 61 | end | |
| 62 | ||
| 63 | function clerp(a, b, t) | |
| 64 | return a:lerp(b, t) | |
| 65 | end | |
| 66 | ||
| 67 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 68 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 69 | ||
| 70 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 71 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 72 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 73 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 74 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 75 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 76 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 77 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 78 | ||
| 79 | local rarmc1 = RW.C1 | |
| 80 | local larmc1 = LW.C1 | |
| 81 | local rlegc1 = RH.C1 | |
| 82 | local llegc1 = LH.C1 | |
| 83 | ||
| 84 | local resetc1 = false | |
| 85 | ||
| 86 | function PlayAnimationFromTable(table, speed, bool) | |
| 87 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 88 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 89 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 90 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 91 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 92 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 93 | if bool == true then | |
| 94 | if resetc1 == false then | |
| 95 | resetc1 = true | |
| 96 | RootJoint.C1 = RootJoint.C1 | |
| 97 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 98 | RW.C1 = rarmc1 | |
| 99 | LW.C1 = larmc1 | |
| 100 | RH.C1 = rlegc1 | |
| 101 | LH.C1 = llegc1 | |
| 102 | end | |
| 103 | end | |
| 104 | end | |
| 105 | ||
| 106 | ArtificialHB = Create("BindableEvent", script){
| |
| 107 | Parent = script, | |
| 108 | Name = "Heartbeat", | |
| 109 | } | |
| 110 | ||
| 111 | script:WaitForChild("Heartbeat")
| |
| 112 | ||
| 113 | frame = 1 / 30 | |
| 114 | tf = 0 | |
| 115 | allowframeloss = false | |
| 116 | tossremainder = false | |
| 117 | lastframe = tick() | |
| 118 | script.Heartbeat:Fire() | |
| 119 | ||
| 120 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 121 | tf = tf + s | |
| 122 | if tf >= frame then | |
| 123 | if allowframeloss then | |
| 124 | script.Heartbeat:Fire() | |
| 125 | lastframe = tick() | |
| 126 | else | |
| 127 | for i = 1, math.floor(tf / frame) do | |
| 128 | script.Heartbeat:Fire() | |
| 129 | end | |
| 130 | lastframe = tick() | |
| 131 | end | |
| 132 | if tossremainder then | |
| 133 | tf = 0 | |
| 134 | else | |
| 135 | tf = tf - frame * math.floor(tf / frame) | |
| 136 | end | |
| 137 | end | |
| 138 | end) | |
| 139 | ||
| 140 | function swait(num) | |
| 141 | if num == 0 or num == nil then | |
| 142 | ArtificialHB.Event:wait() | |
| 143 | else | |
| 144 | for i = 0, num do | |
| 145 | ArtificialHB.Event:wait() | |
| 146 | end | |
| 147 | end | |
| 148 | end | |
| 149 | ||
| 150 | function RemoveOutlines(part) | |
| 151 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 152 | end | |
| 153 | ||
| 154 | CFuncs = {
| |
| 155 | Part = {
| |
| 156 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 157 | local Part = Create("Part"){
| |
| 158 | Parent = Parent, | |
| 159 | Reflectance = Reflectance, | |
| 160 | Transparency = Transparency, | |
| 161 | CanCollide = false, | |
| 162 | Locked = true, | |
| 163 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 164 | Name = Name, | |
| 165 | Size = Size, | |
| 166 | Material = Material, | |
| 167 | } | |
| 168 | RemoveOutlines(Part) | |
| 169 | return Part | |
| 170 | end; | |
| 171 | }; | |
| 172 | ||
| 173 | Mesh = {
| |
| 174 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 175 | local Msh = Create(Mesh){
| |
| 176 | Parent = Part, | |
| 177 | Offset = OffSet, | |
| 178 | Scale = Scale, | |
| 179 | } | |
| 180 | if Mesh == "SpecialMesh" then | |
| 181 | Msh.MeshType = MeshType | |
| 182 | Msh.MeshId = MeshId | |
| 183 | end | |
| 184 | return Msh | |
| 185 | end; | |
| 186 | }; | |
| 187 | ||
| 188 | Weld = {
| |
| 189 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 190 | local Weld = Create("Weld"){
| |
| 191 | Parent = Parent, | |
| 192 | Part0 = Part0, | |
| 193 | Part1 = Part1, | |
| 194 | C0 = C0, | |
| 195 | C1 = C1, | |
| 196 | } | |
| 197 | return Weld | |
| 198 | end; | |
| 199 | }; | |
| 200 | ||
| 201 | Sound = {
| |
| 202 | Create = function(id, par, vol, pit) | |
| 203 | local Sound = Create("Sound"){
| |
| 204 | Volume = vol, | |
| 205 | Pitch = pit or 1, | |
| 206 | SoundId = "rbxassetid://" .. id, | |
| 207 | Parent = par or workspace, | |
| 208 | } | |
| 209 | Sound:play() | |
| 210 | game:GetService("Debris"):AddItem(Sound, 130)
| |
| 211 | return Sound | |
| 212 | end; | |
| 213 | }; | |
| 214 | ||
| 215 | Decal = {
| |
| 216 | Create = function(Color, Texture, Transparency, Name, Parent) | |
| 217 | local Decal = Create("Decal"){
| |
| 218 | Color3 = Color, | |
| 219 | Texture = "rbxassetid://" .. Texture, | |
| 220 | Transparency = Transparency, | |
| 221 | Name = Name, | |
| 222 | Parent = Parent, | |
| 223 | } | |
| 224 | return Decal | |
| 225 | end; | |
| 226 | }; | |
| 227 | ||
| 228 | BillboardGui = {
| |
| 229 | Create = function(Parent, Image, Position, Size) | |
| 230 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
| |
| 231 | BillPar.CFrame = CFrame.new(Position) | |
| 232 | local Bill = Create("BillboardGui"){
| |
| 233 | Parent = BillPar, | |
| 234 | Adornee = BillPar, | |
| 235 | Size = UDim2.new(1, 0, 1, 0), | |
| 236 | SizeOffset = Vector2.new(Size, Size), | |
| 237 | } | |
| 238 | local d = Create("ImageLabel", Bill){
| |
| 239 | Parent = Bill, | |
| 240 | BackgroundTransparency = 1, | |
| 241 | Size = UDim2.new(1, 0, 1, 0), | |
| 242 | Image = "rbxassetid://" .. Image, | |
| 243 | } | |
| 244 | return BillPar | |
| 245 | end | |
| 246 | }; | |
| 247 | ||
| 248 | ParticleEmitter = {
| |
| 249 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 250 | local Particle = Create("ParticleEmitter"){
| |
| 251 | Parent = Parent, | |
| 252 | Color = ColorSequence.new(Color1, Color2), | |
| 253 | LightEmission = LightEmission, | |
| 254 | Size = Size, | |
| 255 | Texture = Texture, | |
| 256 | Transparency = Transparency, | |
| 257 | ZOffset = ZOffset, | |
| 258 | Acceleration = Accel, | |
| 259 | Drag = Drag, | |
| 260 | LockedToPart = LockedToPart, | |
| 261 | VelocityInheritance = VelocityInheritance, | |
| 262 | EmissionDirection = EmissionDirection, | |
| 263 | Enabled = Enabled, | |
| 264 | Lifetime = LifeTime, | |
| 265 | Rate = Rate, | |
| 266 | Rotation = Rotation, | |
| 267 | RotSpeed = RotSpeed, | |
| 268 | Speed = Speed, | |
| 269 | VelocitySpread = VelocitySpread, | |
| 270 | } | |
| 271 | return Particle | |
| 272 | end; | |
| 273 | }; | |
| 274 | ||
| 275 | CreateTemplate = {
| |
| 276 | ||
| 277 | }; | |
| 278 | } | |
| 279 | ||
| 280 | function rayCast(Position, Direction, Range, Ignore) | |
| 281 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 282 | end | |
| 283 | ||
| 284 | FindNearestTorso = function(pos) | |
| 285 | local list = (game.Workspace:children()) | |
| 286 | local torso = nil | |
| 287 | local dist = 1000 | |
| 288 | local temp, human, temp2 = nil, nil, nil | |
| 289 | for x = 1, #list do | |
| 290 | temp2 = list[x] | |
| 291 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 292 | temp = temp2:findFirstChild("Torso")
| |
| 293 | human = temp2:findFirstChild("Humanoid")
| |
| 294 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 295 | local dohit = true | |
| 296 | if dohit == true then | |
| 297 | torso = temp | |
| 298 | dist = (temp.Position - pos).magnitude | |
| 299 | end | |
| 300 | end | |
| 301 | end | |
| 302 | end | |
| 303 | return torso, dist | |
| 304 | end | |
| 305 | ||
| 306 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 307 | if hit.Parent == nil then | |
| 308 | return | |
| 309 | end | |
| 310 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 311 | for _, v in pairs(hit.Parent:children()) do | |
| 312 | if v:IsA("Humanoid") then
| |
| 313 | h = v | |
| 314 | end | |
| 315 | end | |
| 316 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 317 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 318 | if hit.Parent.DebounceHit.Value == true then | |
| 319 | return | |
| 320 | end | |
| 321 | end | |
| 322 | local c = Create("ObjectValue"){
| |
| 323 | Name = "creator", | |
| 324 | Value = game:service("Players").LocalPlayer,
| |
| 325 | Parent = h, | |
| 326 | } | |
| 327 | game:GetService("Debris"):AddItem(c, .5)
| |
| 328 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 329 | local Damage = math.random(minim, maxim) | |
| 330 | local blocked = false | |
| 331 | local block = hit.Parent:findFirstChild("Block")
| |
| 332 | if block ~= nil then | |
| 333 | if block.className == "IntValue" then | |
| 334 | if block.Value > 0 then | |
| 335 | blocked = true | |
| 336 | block.Value = block.Value - 1 | |
| 337 | print(block.Value) | |
| 338 | end | |
| 339 | end | |
| 340 | end | |
| 341 | if TimeStop == false then | |
| 342 | h.Health = h.Health - Damage | |
| 343 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Royal purple").Color)
| |
| 344 | elseif TimeStop == true then | |
| 345 | repeat wait() until TimeStop == false | |
| 346 | h.Health = h.Health - (Damage / 2) | |
| 347 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Royal purple").Color)
| |
| 348 | end | |
| 349 | if Type == "Knockdown" then | |
| 350 | local hum = hit.Parent.Humanoid | |
| 351 | hum.PlatformStand = true | |
| 352 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 353 | swait(1) | |
| 354 | HHumanoid.PlatformStand = false | |
| 355 | end), hum) | |
| 356 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 357 | local bodvol = Create("BodyVelocity"){
| |
| 358 | velocity = angle * knockback, | |
| 359 | P = 5000, | |
| 360 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 361 | Parent = hit, | |
| 362 | } | |
| 363 | local rl = Create("BodyAngularVelocity"){
| |
| 364 | P = 3000, | |
| 365 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 366 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 367 | Parent = hit, | |
| 368 | } | |
| 369 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 370 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 371 | elseif Type == "Normal" then | |
| 372 | CamShake(1,10000) | |
| 373 | local vp = Create("BodyVelocity"){
| |
| 374 | P = 500, | |
| 375 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 376 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 377 | } | |
| 378 | if knockback > 0 then | |
| 379 | vp.Parent = hit.Parent.Torso | |
| 380 | end | |
| 381 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 382 | elseif Type == "Up" then | |
| 383 | local bodyVelocity = Create("BodyVelocity"){
| |
| 384 | velocity = Vector3.new(0, 20, 0), | |
| 385 | P = 5000, | |
| 386 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 387 | Parent = hit, | |
| 388 | } | |
| 389 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 390 | elseif Type == "DarkUp" then | |
| 391 | coroutine.resume(coroutine.create(function() | |
| 392 | for i = 0, 1, 0.1 do | |
| 393 | swait() | |
| 394 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 395 | end | |
| 396 | end)) | |
| 397 | local bodyVelocity = Create("BodyVelocity"){
| |
| 398 | velocity = Vector3.new(0, 20, 0), | |
| 399 | P = 5000, | |
| 400 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 401 | Parent = hit, | |
| 402 | } | |
| 403 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 404 | elseif Type == "Snare" then | |
| 405 | local bp = Create("BodyPosition"){
| |
| 406 | P = 2000, | |
| 407 | D = 100, | |
| 408 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 409 | position = hit.Parent.Torso.Position, | |
| 410 | Parent = hit.Parent.Torso, | |
| 411 | } | |
| 412 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 413 | elseif Type == "Freeze" then | |
| 414 | local BodPos = Create("BodyPosition"){
| |
| 415 | P = 50000, | |
| 416 | D = 1000, | |
| 417 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 418 | position = hit.Parent.Torso.Position, | |
| 419 | Parent = hit.Parent.Torso, | |
| 420 | } | |
| 421 | local BodGy = Create("BodyGyro") {
| |
| 422 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 423 | P = 20e+003, | |
| 424 | Parent = hit.Parent.Torso, | |
| 425 | cframe = hit.Parent.Torso.CFrame, | |
| 426 | } | |
| 427 | hit.Parent.Torso.Anchored = true | |
| 428 | coroutine.resume(coroutine.create(function(Part) | |
| 429 | swait(1.5) | |
| 430 | Part.Anchored = false | |
| 431 | end), hit.Parent.Torso) | |
| 432 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 433 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 434 | end | |
| 435 | local debounce = Create("BoolValue"){
| |
| 436 | Name = "DebounceHit", | |
| 437 | Parent = hit.Parent, | |
| 438 | Value = true, | |
| 439 | } | |
| 440 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 441 | c = Create("ObjectValue"){
| |
| 442 | Name = "creator", | |
| 443 | Value = Player, | |
| 444 | Parent = h, | |
| 445 | } | |
| 446 | game:GetService("Debris"):AddItem(c, .5)
| |
| 447 | end | |
| 448 | end | |
| 449 | ||
| 450 | function ShowDamage(Pos, Text, Time, Color) | |
| 451 | local Rate = (1 / 30) | |
| 452 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 453 | local Text = (Text or "") | |
| 454 | local Time = (Time or 2) | |
| 455 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 456 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 457 | EffectPart.Anchored = true | |
| 458 | local BillboardGui = Create("BillboardGui"){
| |
| 459 | Size = UDim2.new(3, 0, 3, 0), | |
| 460 | Adornee = EffectPart, | |
| 461 | Parent = EffectPart, | |
| 462 | } | |
| 463 | local TextLabel = Create("TextLabel"){
| |
| 464 | BackgroundTransparency = 1, | |
| 465 | Size = UDim2.new(1, 0, 1, 0), | |
| 466 | Text = Text, | |
| 467 | Font = "SciFi", | |
| 468 | TextColor3 = Color, | |
| 469 | TextScaled = true, | |
| 470 | Parent = BillboardGui, | |
| 471 | } | |
| 472 | game.Debris:AddItem(EffectPart, (Time)) | |
| 473 | EffectPart.Parent = game:GetService("Workspace")
| |
| 474 | delay(0, function() | |
| 475 | local Frames = (Time / Rate) | |
| 476 | for Frame = 1, Frames do | |
| 477 | wait(Rate) | |
| 478 | local Percent = (Frame / Frames) | |
| 479 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 480 | TextLabel.TextTransparency = Percent | |
| 481 | end | |
| 482 | if EffectPart and EffectPart.Parent then | |
| 483 | EffectPart:Destroy() | |
| 484 | end | |
| 485 | end) | |
| 486 | end | |
| 487 | ||
| 488 | local STDamage = false | |
| 489 | ||
| 490 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 491 | for _, c in pairs(workspace:children()) do | |
| 492 | local hum = c:findFirstChild("Humanoid")
| |
| 493 | if hum ~= nil then | |
| 494 | local head = c:findFirstChild("Torso")
| |
| 495 | if head ~= nil then | |
| 496 | local targ = head.Position - Part.Position | |
| 497 | local mag = targ.magnitude | |
| 498 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 499 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch) | |
| 500 | if STDamage == true then | |
| 501 | for i = 1, 3 do | |
| 502 | Effects.Block.Create(BrickColor.new("Royal purple"), head.CFrame, 1, 1, 1, 4, 4, 4, .07, 1)
| |
| 503 | end | |
| 504 | for i = 1, 10 do | |
| 505 | CamShake(1, 70000) | |
| 506 | Effects.Break.Create(BrickColor.new("Royal purple"), head.CFrame, 1, 1, 1)
| |
| 507 | end | |
| 508 | elseif STDamage == false then | |
| 509 | CamShake(1, 90000) | |
| 510 | Effects.Block.Create(BrickColor.new("Royal purple"), head.CFrame, .5, .5, .5, .5, .5, .5, .07, 1)
| |
| 511 | for i = 1, 2 do | |
| 512 | Effects.Break.Create(BrickColor.new("Royal purple"), head.CFrame, .4, .4, .4)
| |
| 513 | end | |
| 514 | end | |
| 515 | end | |
| 516 | end | |
| 517 | end | |
| 518 | end | |
| 519 | end | |
| 520 | ||
| 521 | HHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HHandle", Vector3.new(1.09999979, 0.299999923, 1.0999999)) | |
| 522 | HHandleWeld = CFuncs.Weld.Create(m, Head, HHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0646438599, -0.0500068665, -0.0646400452, -0.707107365, -3.21031663e-008, 0.707106411, -8.19564079e-008, 1.00000119, -1.41561088e-007, -0.707106352, 1.38630043e-007, -0.707107484)) | |
| 523 | Eye1 = CFuncs.Part.Create(StandName, Enum.Material.Neon, 0, 1, "Royal purple", "Eye1", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 524 | PartWeld = CFuncs.Weld.Create(m, HHandle, Eye1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0381011963, -0.0574798584, 0.471725464, -2.89082527e-006, 0.173647985, -0.984807968, -6.2584877e-007, 0.984808922, 0.173648104, 1.00000012, 1.02902288e-006, -2.77161598e-006)) | |
| 525 | CFuncs.Mesh.Create("SpecialMesh", Eye1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 526 | Eye2 = CFuncs.Part.Create(StandName, Enum.Material.Neon, 0, 1, "Royal purple", "Eye2", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
| 527 | PartWeld = CFuncs.Weld.Create(m, HHandle, Eye2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0115432739, -0.0487277508, 0.482452393, -0.981060266, -0.173648134, -0.0858327746, -0.172987267, 0.984808922, -0.0151339322, 0.0871568322, 3.96735317e-007, -0.996194839)) | |
| 528 | CFuncs.Mesh.Create("SpecialMesh", Eye2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 529 | THandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "THandle", Vector3.new(1, 0.799999893, 1)) | |
| 530 | THandleWeld = CFuncs.Weld.Create(m, Torso, THandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024)) | |
| 531 | AHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "AHandleR", Vector3.new(0.799999952, 0.800000012, 1.22000003)) | |
| 532 | AHandleRWeld = CFuncs.Weld.Create(m, RightArm, AHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.209915161, 0.00999641418, -3.81469727e-006, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024)) | |
| 533 | HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003)) | |
| 534 | HitboxRWeld = CFuncs.Weld.Create(m, AHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024)) | |
| 535 | AHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "AHandleL", Vector3.new(0.800000072, 0.800000012, 1.22000003)) | |
| 536 | AHandleLWeld = CFuncs.Weld.Create(m, LeftArm, AHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.210014343, 0.00999736786, 1.14440918e-005, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024)) | |
| 537 | HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxL", Vector3.new(0.800000072, 0.800000012, 1.22000003)) | |
| 538 | HitboxLWeld = CFuncs.Weld.Create(m, AHandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024)) | |
| 539 | LHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "LHandleR", Vector3.new(1.02999997, 1.00999999, 1.19000006)) | |
| 540 | LHandleRWeld = CFuncs.Weld.Create(m, RightLeg, LHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498962402, -0.0950021744, 0.00499534607, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024)) | |
| 541 | LHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "LHandleL", Vector3.new(1.02999997, 1.00999999, 1.19000006)) | |
| 542 | LHandleLWeld = CFuncs.Weld.Create(m, LeftLeg, LHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498199463, -0.095000267, 0.00502204895, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024)) | |
| 543 | ||
| 544 | EffectModel = Create("Model"){
| |
| 545 | Parent = Character, | |
| 546 | Name = "Effects", | |
| 547 | } | |
| 548 | ||
| 549 | Effects = {
| |
| 550 | Block = {
| |
| 551 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 552 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 553 | prt.Anchored = true | |
| 554 | prt.CFrame = cframe | |
| 555 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 556 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 557 | if Type == 1 or Type == nil then | |
| 558 | table.insert(Effects, {
| |
| 559 | prt, | |
| 560 | "Block1", | |
| 561 | delay, | |
| 562 | x3, | |
| 563 | y3, | |
| 564 | z3, | |
| 565 | msh | |
| 566 | }) | |
| 567 | elseif Type == 2 then | |
| 568 | table.insert(Effects, {
| |
| 569 | prt, | |
| 570 | "Block2", | |
| 571 | delay, | |
| 572 | x3, | |
| 573 | y3, | |
| 574 | z3, | |
| 575 | msh | |
| 576 | }) | |
| 577 | end | |
| 578 | end; | |
| 579 | }; | |
| 580 | ||
| 581 | Cylinder = {
| |
| 582 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 583 | local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
| 584 | prt.Anchored = true | |
| 585 | prt.CFrame = cframe | |
| 586 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 587 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 588 | Effects[#Effects + 1] = {
| |
| 589 | prt, | |
| 590 | "Cylinder", | |
| 591 | delay, | |
| 592 | x3, | |
| 593 | y3, | |
| 594 | z3 | |
| 595 | } | |
| 596 | end; | |
| 597 | }; | |
| 598 | ||
| 599 | Head = {
| |
| 600 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 601 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 602 | prt.Anchored = true | |
| 603 | prt.CFrame = cframe | |
| 604 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 605 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 606 | table.insert(Effects, {
| |
| 607 | prt, | |
| 608 | "Cylinder", | |
| 609 | delay, | |
| 610 | x3, | |
| 611 | y3, | |
| 612 | z3, | |
| 613 | msh | |
| 614 | }) | |
| 615 | end; | |
| 616 | }; | |
| 617 | ||
| 618 | Sphere = {
| |
| 619 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 620 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 621 | prt.Anchored = true | |
| 622 | prt.CFrame = cframe | |
| 623 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 624 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 625 | table.insert(Effects, {
| |
| 626 | prt, | |
| 627 | "Cylinder", | |
| 628 | delay, | |
| 629 | x3, | |
| 630 | y3, | |
| 631 | z3, | |
| 632 | msh | |
| 633 | }) | |
| 634 | end; | |
| 635 | }; | |
| 636 | ||
| 637 | Sphere2 = {
| |
| 638 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 639 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 640 | prt.Anchored = true | |
| 641 | prt.CFrame = cframe | |
| 642 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 643 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 644 | table.insert(Effects, {
| |
| 645 | prt, | |
| 646 | "Cylinder", | |
| 647 | delay, | |
| 648 | x3, | |
| 649 | y3, | |
| 650 | z3, | |
| 651 | msh | |
| 652 | }) | |
| 653 | end; | |
| 654 | }; | |
| 655 | ||
| 656 | Elec = {
| |
| 657 | Create = function(cff, x, y, z) | |
| 658 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Royal purple"), "Part", Vector3.new(1, 1, 1))
| |
| 659 | prt.Anchored = true | |
| 660 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 661 | prt.CFrame = CFrame.new(prt.Position) | |
| 662 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 663 | local xval = math.random() / 2 | |
| 664 | local yval = math.random() / 2 | |
| 665 | local zval = math.random() / 2 | |
| 666 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 667 | table.insert(Effects, {
| |
| 668 | prt, | |
| 669 | "Elec", | |
| 670 | 0.1, | |
| 671 | x, | |
| 672 | y, | |
| 673 | z, | |
| 674 | xval, | |
| 675 | yval, | |
| 676 | zval | |
| 677 | }) | |
| 678 | end; | |
| 679 | ||
| 680 | }; | |
| 681 | ||
| 682 | Ring = {
| |
| 683 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 684 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 685 | prt.Anchored = true | |
| 686 | prt.CFrame = cframe | |
| 687 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 688 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 689 | table.insert(Effects, {
| |
| 690 | prt, | |
| 691 | "Cylinder", | |
| 692 | delay, | |
| 693 | x3, | |
| 694 | y3, | |
| 695 | z3, | |
| 696 | msh | |
| 697 | }) | |
| 698 | end; | |
| 699 | }; | |
| 700 | ||
| 701 | ||
| 702 | Wave = {
| |
| 703 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 704 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 705 | prt.Anchored = true | |
| 706 | prt.CFrame = cframe | |
| 707 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 708 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 709 | table.insert(Effects, {
| |
| 710 | prt, | |
| 711 | "Cylinder", | |
| 712 | delay, | |
| 713 | x3, | |
| 714 | y3, | |
| 715 | z3, | |
| 716 | msh | |
| 717 | }) | |
| 718 | end; | |
| 719 | }; | |
| 720 | ||
| 721 | Break = {
| |
| 722 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 723 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 724 | prt.Anchored = true | |
| 725 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 726 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 727 | local num = math.random(10, 50) / 1000 | |
| 728 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 729 | table.insert(Effects, {
| |
| 730 | prt, | |
| 731 | "Shatter", | |
| 732 | num, | |
| 733 | prt.CFrame, | |
| 734 | math.random() - math.random(), | |
| 735 | 0, | |
| 736 | math.random(50, 100) / 100 | |
| 737 | }) | |
| 738 | end; | |
| 739 | }; | |
| 740 | ||
| 741 | Fire = {
| |
| 742 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 743 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 744 | prt.Anchored = true | |
| 745 | prt.CFrame = cframe | |
| 746 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 747 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 748 | table.insert(Effects, {
| |
| 749 | prt, | |
| 750 | "Fire", | |
| 751 | delay, | |
| 752 | 1, | |
| 753 | 1, | |
| 754 | 1, | |
| 755 | msh | |
| 756 | }) | |
| 757 | end; | |
| 758 | }; | |
| 759 | ||
| 760 | FireWave = {
| |
| 761 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 762 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 763 | prt.Anchored = true | |
| 764 | prt.CFrame = cframe | |
| 765 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 766 | local d = Create("Decal"){
| |
| 767 | Parent = prt, | |
| 768 | Texture = "rbxassetid://26356434", | |
| 769 | Face = "Top", | |
| 770 | } | |
| 771 | local d = Create("Decal"){
| |
| 772 | Parent = prt, | |
| 773 | Texture = "rbxassetid://26356434", | |
| 774 | Face = "Bottom", | |
| 775 | } | |
| 776 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 777 | table.insert(Effects, {
| |
| 778 | prt, | |
| 779 | "FireWave", | |
| 780 | 1, | |
| 781 | 30, | |
| 782 | math.random(400, 600) / 100, | |
| 783 | msh | |
| 784 | }) | |
| 785 | end; | |
| 786 | }; | |
| 787 | ||
| 788 | Lightning = {
| |
| 789 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 790 | local magz = (p0 - p1).magnitude | |
| 791 | local curpos = p0 | |
| 792 | local trz = {
| |
| 793 | -ofs, | |
| 794 | ofs | |
| 795 | } | |
| 796 | for i = 1, tym do | |
| 797 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 798 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 799 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 800 | li.Material = "Neon" | |
| 801 | if tym == i then | |
| 802 | local magz2 = (curpos - p1).magnitude | |
| 803 | li.Size = Vector3.new(th, th, magz2) | |
| 804 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 805 | table.insert(Effects, {
| |
| 806 | li, | |
| 807 | "Disappear", | |
| 808 | last | |
| 809 | }) | |
| 810 | else | |
| 811 | do | |
| 812 | do | |
| 813 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 814 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 815 | game.Debris:AddItem(li, 10) | |
| 816 | table.insert(Effects, {
| |
| 817 | li, | |
| 818 | "Disappear", | |
| 819 | last | |
| 820 | }) | |
| 821 | end | |
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | end | |
| 826 | }; | |
| 827 | ||
| 828 | EffectTemplate = {
| |
| 829 | ||
| 830 | }; | |
| 831 | } | |
| 832 | ||
| 833 | local Invisible = true | |
| 834 | ||
| 835 | function Reappear() | |
| 836 | for _, i in pairs(StandName:children()) do | |
| 837 | if i:IsA("BasePart") then
| |
| 838 | coroutine.resume(coroutine.create(function(Part) | |
| 839 | for i = 0, 1, 0.3 do | |
| 840 | swait() | |
| 841 | Part.Transparency = - i | |
| 842 | end | |
| 843 | Part.Transparency = 0 | |
| 844 | end), i) | |
| 845 | end | |
| 846 | end | |
| 847 | end | |
| 848 | ||
| 849 | function Disappear() | |
| 850 | for _, i in pairs(StandName:children()) do | |
| 851 | if i:IsA("BasePart") then
| |
| 852 | coroutine.resume(coroutine.create(function(Part) | |
| 853 | for i = 0, 1, 0.3 do | |
| 854 | swait() | |
| 855 | Part.Transparency = i | |
| 856 | end | |
| 857 | Part.Transparency = 1 | |
| 858 | end), i) | |
| 859 | end | |
| 860 | end | |
| 861 | end | |
| 862 | ||
| 863 | function CamShake(time, freq) | |
| 864 | coroutine.resume(coroutine.create(function() | |
| 865 | local cam = game:GetService("Workspace").CurrentCamera
| |
| 866 | local time = 10 | |
| 867 | local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0) | |
| 868 | if math.random(1, 2) == 1 then seed = Vector3.new(-seed.x, seed.y, 0) end | |
| 869 | if math.random(1, 2) == 1 then seed = Vector3.new(seed.x, -seed.y, 0) end | |
| 870 | cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude) | |
| 871 | for i = 1, time do | |
| 872 | cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude) | |
| 873 | wait() | |
| 874 | end | |
| 875 | end)) | |
| 876 | end | |
| 877 | ||
| 878 | local ora = false | |
| 879 | ||
| 880 | function ORA() | |
| 881 | attack = true | |
| 882 | local S = CFuncs.Sound.Create("616593932", Torso, 1, 1)
| |
| 883 | S.Looped = true | |
| 884 | if ora == true then | |
| 885 | while ora == true do | |
| 886 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 887 | MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1) | |
| 888 | for i = 0, 1, 0.8 do | |
| 889 | swait() | |
| 890 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 891 | PlayAnimationFromTable({
| |
| 892 | CFrame.new(-0.561874092, -0.346845925, -0.435822666, 0.64278698, -0.323744029, 0.694272816, 0, 0.906308115, 0.422617555, -0.766044974, -0.271653026, 0.582563102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 893 | CFrame.new(8.9481473e-006, 1.49999249, 5.2684918e-006, 0.704669476, 0.0560214818, -0.707321048, -0.0868221819, 0.996195257, -0.0075956285, 0.704204142, 0.0667634308, 0.706852198) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 894 | CFrame.new(1.97048378, 0.808467984, -0.254994273, -0.457079947, -0.7819345, 0.423859, 0.842444837, -0.227779076, 0.488266319, -0.285246044, 0.580254436, 0.762849629) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 895 | CFrame.new(-1.18535733, 0.530705392, -0.713678956, 0.778861284, -0.400152355, 0.482962847, 0.492400557, -0.0868335962, -0.866026342, 0.388479888, 0.912325621, 0.129403993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 896 | CFrame.new(0.708622813, -1.45549953, -0.199998885, 0.984808087, -0.167729571, -0.0449446738, 0.173646823, 0.951251328, 0.254887581, 1.4603138e-006, -0.258819878, 0.965925694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 897 | CFrame.new(-0.604502141, -1.943735, 0.000515520573, 0.982544005, 0.00845471025, 0.185841322, -0.0717865527, 0.938827574, 0.336824685, -0.17162481, -0.34428525, 0.923045695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 898 | }, .8, false) | |
| 899 | end | |
| 900 | CFuncs.Sound.Create("200632136", HitboxR, .3, math.random(1, 1.2))
| |
| 901 | MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "260430117", 1) | |
| 902 | for i = 0, 1, 0.8 do | |
| 903 | swait() | |
| 904 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 905 | PlayAnimationFromTable({
| |
| 906 | CFrame.new(1.1920929e-006, -0.0170394331, -0.52941519, 0.70710516, -2.21270369e-007, -0.707108498, 0.18301405, 0.965925574, 0.183012888, 0.683014154, -0.258820117, 0.683010995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 907 | CFrame.new(-1.22189522e-006, 1.49999356, 1.04308128e-006, 0.707110465, 0.122788236, 0.696360528, -1.4748274e-006, 0.98480773, -0.173648238, -0.707103193, 0.122787461, 0.696368098) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 908 | CFrame.new(1.44562268, 0.333473027, -0.475224167, 0.907739162, 0.217196256, 0.358959734, 0.40125221, -0.199453548, -0.893991232, -0.122576535, 0.955528319, -0.268199235) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 909 | CFrame.new(-1.884794, 0.881342709, -0.770847201, 0.0912726, 0.688403964, -0.719562054, -0.91795665, -0.221949756, -0.328776807, -0.386037856, 0.690535009, 0.611666858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 910 | CFrame.new(0.789779902, -1.8586235, 0.161380947, 0.965926766, -0.258817255, -8.10623169e-006, 0.243211254, 0.907672405, 0.342022836, -0.0885141194, -0.330371499, 0.939691722) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 911 | CFrame.new(-0.73783946, -1.45406294, -0.215006173, 0.882573366, -0.0180292428, 0.469829261, -0.163172901, 0.925412893, 0.342031717, -0.440952569, -0.378531486, 0.813802838) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 912 | }, .8, false) | |
| 913 | end | |
| 914 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 915 | MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1) | |
| 916 | for i = 0, 1, 0.8 do | |
| 917 | swait() | |
| 918 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 919 | PlayAnimationFromTable({
| |
| 920 | CFrame.new(0.215482175, -0.0393944569, -0.126133978, 0.259671897, -0.351393819, 0.8994959, -0.075478971, 0.921212733, 0.381667405, -0.962742627, -0.167001322, 0.212690249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 921 | CFrame.new(-1.26510859e-005, 1.49999118, -2.16066837e-007, 0.420251548, -0.0215960592, -0.90715003, -0.100918382, 0.992402375, -0.0703775883, 0.901778162, 0.12112467, 0.414879382) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 922 | CFrame.new(1.81840861, 0.705381036, -0.347923756, -0.236346364, -0.883376777, 0.404705286, 0.945798516, -0.113677993, 0.304209948, -0.222726092, 0.454668403, 0.862362981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 923 | CFrame.new(-1.21960759, 0.420275182, -0.728423595, -0.57802856, -0.255150676, 0.775100708, 0.665436089, -0.697164714, 0.266751111, 0.472311139, 0.669969678, 0.572767615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 924 | CFrame.new(0.620917439, -1.53014767, -0.12091887, 0.707106113, 0.241845652, -0.66446346, -1.2293458e-006, 0.939692676, 0.342019886, 0.707107484, -0.241843566, 0.664462805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 925 | CFrame.new(-0.873213649, -1.89646459, -0.100004375, 0.933012128, 0.353242815, -0.0686147735, -0.258823931, 0.791241407, 0.554028153, 0.249997303, -0.499155849, 0.829665601) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 926 | }, .8, false) | |
| 927 | end | |
| 928 | CFuncs.Sound.Create("200632136", HitboxR, .3, math.random(1, 1.2))
| |
| 929 | MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "260430117", 1) | |
| 930 | for i = 0, 1, 0.8 do | |
| 931 | swait() | |
| 932 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 933 | PlayAnimationFromTable({
| |
| 934 | CFrame.new(0.299998224, -0.0468490347, -0.211314023, 0.642786682, -2.87348001e-007, -0.766045272, 0.323744863, 0.906307757, 0.271653205, 0.694272637, -0.42261824, 0.582562685) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 935 | CFrame.new(2.71201134e-006, 1.4999969, 8.94069672e-007, 0.642777503, 0.133020476, 0.754416466, 4.31999706e-006, 0.984809279, -0.173647597, -0.766052961, 0.111620098, 0.633012772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 936 | CFrame.new(1.27057993, 0.327670783, -0.599993467, 0.638493001, 0.280156553, -0.716825664, -0.769049883, 0.196164608, -0.608343422, -0.0298155248, 0.939697862, 0.340704083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 937 | CFrame.new(-1.86040878, 1.02262986, -0.452570885, 0.386218816, 0.717701018, -0.579433978, -0.403004408, -0.433759809, -0.805879354, -0.829712272, 0.544763446, 0.121709965) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 938 | CFrame.new(0.779964924, -1.75316048, -0.0263362825, 0.826099217, -0.36394459, 0.43023771, 0.181541473, 0.894650102, 0.40822047, -0.533481896, -0.259124577, 0.805140793) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 939 | CFrame.new(-0.724003315, -1.47219872, -0.266945302, 0.766038954, -0.166370958, 0.620890498, 4.09781933e-006, 0.965925932, 0.258819997, -0.642794192, -0.198263675, 0.739937425) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 940 | }, .8, false) | |
| 941 | end | |
| 942 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 943 | MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1) | |
| 944 | end | |
| 945 | end | |
| 946 | S:Stop() | |
| 947 | local S2 = CFuncs.Sound.Create("276152532", Torso, 1.5, 1)
| |
| 948 | Instance.new("DistortionSoundEffect", S2).Level = .8
| |
| 949 | for i = 0, 1, 0.13 do | |
| 950 | swait() | |
| 951 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -3), .5) | |
| 952 | PlayAnimationFromTable({
| |
| 953 | CFrame.new(2.68220901e-006, -0.0739577487, 0.0232374109, 0.707105994, -3.47710994e-007, -0.707107604, -0.122787997, 0.98480767, -0.122788213, 0.696364999, 0.173648596, 0.696363389) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 954 | CFrame.new(-5.36441803e-007, 1.49999356, -1.28149986e-006, 0.707105994, -0.122788511, 0.696365297, -3.47710994e-007, 0.984808028, 0.173649326, -0.707107604, -0.122788727, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 955 | CFrame.new(1.13747835, 0.382733107, -0.729447305, 0.579597414, 0.772029877, -0.260839432, -0.351051509, -0.0523141921, -0.934893906, -0.735411942, 0.633429527, 0.240701318) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 956 | CFrame.new(-1.53455412, 0.605712295, -0.542039633, 0.786121905, 0.427828372, -0.446066588, -0.606968522, 0.398195386, -0.687771559, -0.116626531, 0.811420619, 0.572708428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 957 | CFrame.new(0.903839946, -1.70734286, 0.373858094, 0.863655448, -0.430708885, 0.261895239, 0.187955216, 0.757234871, 0.625514567, -0.46773085, -0.491004646, 0.734943748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 958 | CFrame.new(-0.596739769, -1.62411702, -0.0967329144, 0.725493789, -0.291957259, 0.623233199, -0.081900157, 0.86250174, 0.499382436, -0.683338165, -0.41334182, 0.601828396) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 959 | }, .2, false) | |
| 960 | end | |
| 961 | CFuncs.Sound.Create("471881954", HitboxR, 1, 1)
| |
| 962 | MagnitudeDamage(HitboxR, 7, 10, 15, 50, "Normal", "610359590", 1) | |
| 963 | for i = 0, 1, 0.1 do | |
| 964 | swait() | |
| 965 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), .3) | |
| 966 | PlayAnimationFromTable({
| |
| 967 | CFrame.new(-0.338160992, -0.0772590488, -0.484170675, 0.307024002, -0.153706044, 0.939207554, -0.403236002, 0.872901201, 0.274671286, -0.86205399, -0.463052958, 0.206021816) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 968 | CFrame.new(-0.0502282679, 1.50051379, -0.0864891857, 0.502356887, -0.246090144, -0.828901231, -0.00520065427, 0.957766473, -0.287500501, 0.864644766, 0.148738697, 0.479860842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 969 | CFrame.new(1.81698525, 1.20575511, -0.168038458, 0.0800605565, -0.859217465, 0.505307972, 0.457053572, -0.418860257, -0.784640014, 0.885828495, 0.293771386, 0.359173566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 970 | CFrame.new(-1.66351938, 0.691055655, 0.203685582, 0.309526145, 0.793331623, -0.524231553, -0.937197804, 0.347743452, -0.0271089375, 0.160791725, 0.499699503, 0.851144433) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 971 | CFrame.new(0.971616864, -1.6145575, 0.096719563, 0.544056833, -0.203144252, -0.814085484, 0.51142931, 0.849463344, 0.129818588, 0.665161908, -0.486975014, 0.566052973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 972 | CFrame.new(-0.676943898, -1.44413579, 0.206094518, 0.884253025, 0.0570309162, -0.463512957, 0.209485695, 0.838620007, 0.502824426, 0.417387724, -0.541723251, 0.729605079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 973 | }, .6, false) | |
| 974 | end | |
| 975 | attack = false | |
| 976 | end | |
| 977 | ||
| 978 | ||
| 979 | function MUDA() | |
| 980 | attack = true | |
| 981 | local S = CFuncs.Sound.Create("616593932", Torso, 1, 1) -- Stand Cry
| |
| 982 | S.Looped = true | |
| 983 | MovingForward = 0 | |
| 984 | HowFarDoe = 0.1 | |
| 985 | if ora == true then | |
| 986 | while ora == true do | |
| 987 | MovingForward = MovingForward + HowFarDoe | |
| 988 | for i = 0, 1, 0.8 do | |
| 989 | swait() | |
| 990 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 991 | PlayAnimationFromTable({
| |
| 992 | CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 993 | CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 994 | CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 995 | CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 996 | CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 997 | CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 998 | }, .8, false) | |
| 999 | end | |
| 1000 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 1001 | MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1,3), "Normal", "260430060", 1) | |
| 1002 | RootPart.Velocity = RootPart.CFrame.lookVector * 20 | |
| 1003 | MovingForward = MovingForward + HowFarDoe | |
| 1004 | for i = 0, 1, 0.8 do | |
| 1005 | swait() | |
| 1006 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1007 | PlayAnimationFromTable({
| |
| 1008 | CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1009 | CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1010 | CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1011 | CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1012 | CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1013 | CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 1014 | }, .8, false) | |
| 1015 | end | |
| 1016 | MovingForward = MovingForward + HowFarDoe | |
| 1017 | for i = 0, 1, 0.8 do | |
| 1018 | swait() | |
| 1019 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1020 | PlayAnimationFromTable({
| |
| 1021 | CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1022 | CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1023 | CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1024 | CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1025 | CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1026 | CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1027 | }, .8, false) | |
| 1028 | end | |
| 1029 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 1030 | MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1,3), "Normal", "260430060", 1) | |
| 1031 | RootPart.Velocity = RootPart.CFrame.lookVector * 20 | |
| 1032 | MovingForward = MovingForward + HowFarDoe | |
| 1033 | for i = 0, 1, 0.8 do | |
| 1034 | swait() | |
| 1035 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1036 | PlayAnimationFromTable({
| |
| 1037 | CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1038 | CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1039 | CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1040 | CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1041 | CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1042 | CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 1043 | }, .8, false) | |
| 1044 | end | |
| 1045 | MovingForward = MovingForward + HowFarDoe | |
| 1046 | for i = 0, 1, 0.8 do | |
| 1047 | swait() | |
| 1048 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1049 | PlayAnimationFromTable({
| |
| 1050 | CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1051 | CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1052 | CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1053 | CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1054 | CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1055 | CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1056 | }, .8, false) | |
| 1057 | end | |
| 1058 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 1059 | MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1,3), "Normal", "260430060", 1) | |
| 1060 | RootPart.Velocity = RootPart.CFrame.lookVector * 20 | |
| 1061 | MovingForward = MovingForward + HowFarDoe | |
| 1062 | for i = 0, 1, 0.8 do | |
| 1063 | swait() | |
| 1064 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1065 | PlayAnimationFromTable({
| |
| 1066 | CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1067 | CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1068 | CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1069 | CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1070 | CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1071 | CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 1072 | }, .8, false) | |
| 1073 | end | |
| 1074 | MovingForward = MovingForward + HowFarDoe | |
| 1075 | for i = 0, 1, 0.8 do | |
| 1076 | swait() | |
| 1077 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1078 | PlayAnimationFromTable({
| |
| 1079 | CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1080 | CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1081 | CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1082 | CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1083 | CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1084 | CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1085 | }, .8, false) | |
| 1086 | end | |
| 1087 | CFuncs.Sound.Create("200632136", HitboxL, .3, math.random(1, 1.2))
| |
| 1088 | MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1,3), "Normal", "260430060", 1) | |
| 1089 | RootPart.Velocity = RootPart.CFrame.lookVector * 20 | |
| 1090 | MovingForward = MovingForward + HowFarDoe | |
| 1091 | for i = 0, 1, 0.8 do | |
| 1092 | swait() | |
| 1093 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4 - MovingForward), .5) | |
| 1094 | PlayAnimationFromTable({
| |
| 1095 | CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1096 | CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1097 | CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1098 | CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1099 | CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1100 | CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), | |
| 1101 | }, .8, false) | |
| 1102 | end | |
| 1103 | MovingForward = MovingForward + HowFarDoe | |
| 1104 | end | |
| 1105 | end | |
| 1106 | S:Stop() | |
| 1107 | local S2 = CFuncs.Sound.Create("276152532", Torso, 1.5, 1)
| |
| 1108 | Instance.new("DistortionSoundEffect", S2).Level = .8
| |
| 1109 | for i = 0, 1, 0.13 do | |
| 1110 | swait() | |
| 1111 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 1112 | PlayAnimationFromTable({
| |
| 1113 | CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1114 | CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1115 | CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1116 | CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1117 | CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1118 | CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1119 | }, .2, false) | |
| 1120 | end | |
| 1121 | MagnitudeDamage(HitboxL, 7, 15, 20, math.random(3, 6), "Normal", "260430060", 1) | |
| 1122 | RootPart.Velocity = RootPart.CFrame.lookVector * 20 | |
| 1123 | for i = 0, 1, 0.1 do | |
| 1124 | swait() | |
| 1125 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), .5) | |
| 1126 | PlayAnimationFromTable({
| |
| 1127 | CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1128 | CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1129 | CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1130 | CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1131 | CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1132 | CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1133 | }, .6, false) | |
| 1134 | end | |
| 1135 | attack = false | |
| 1136 | end | |
| 1137 | ||
| 1138 | function CastleCrusherFist() | |
| 1139 | attack = true | |
| 1140 | STDamage = true | |
| 1141 | local S2 = CFuncs.Sound.Create("276152532", Torso, 1, 1) --Stand Cry #2
| |
| 1142 | Instance.new("DistortionSoundEffect", S2).Level = .8
| |
| 1143 | for i = 0, 1, 0.1 do | |
| 1144 | swait() | |
| 1145 | Effects.Block.Create(BrickColor.new("Royal purple"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, .3, 1)
| |
| 1146 | Effects.Break.Create(BrickColor.new("Royal purple"), HitboxR.CFrame, .5, .5, .5)
| |
| 1147 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), .2) | |
| 1148 | PlayAnimationFromTable({
| |
| 1149 | CFrame.new(-5.99771738e-007, -0.00717129931, 0.169464022, 0.422617912, -2.2671e-007, -0.906308055, -0.309975952, 0.939692557, -0.144544229, 0.851650834, 0.342020661, 0.397130787) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1150 | CFrame.new(-0.0102166235, 1.52751005, -0.239579424, 0.456926107, -0.171424359, 0.872835577, -0.167732254, 0.94705075, 0.273807496, -0.87355268, -0.271512181, 0.403976858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1151 | CFrame.new(0.944673777, 0.474064022, -0.539126158, 0.229199454, 0.762564063, 0.604949772, 0.809601307, 0.195682317, -0.553402781, -0.540382624, 0.616607308, -0.572522938) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1152 | CFrame.new(-1.61232829, 0.309644789, -0.24482432, 0.455398798, 0.536860108, -0.710207343, -0.887026072, 0.205374956, -0.413530886, -0.076149486, 0.818293095, 0.569735885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1153 | CFrame.new(1.08113468, -1.48232126, 0.656104684, 0.81421864, -0.517612338, 0.262917578, 0.175395042, 0.651024699, 0.738514543, -0.553430021, -0.555197835, 0.620862961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1154 | CFrame.new(-0.427128136, -1.50760674, -0.0473105907, 0.804508269, -0.373179317, 0.462065101, -0.173640698, 0.596196175, 0.783836842, -0.567992628, -0.71083647, 0.414845526) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1155 | }, .2, false) | |
| 1156 | end | |
| 1157 | MagnitudeDamage(HitboxR, 10, 50, 80, 100, "Normal", "610359515", 1) | |
| 1158 | Effects.Wave.Create(BrickColor.new("Royal purple"), RootPart.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .5, .5, .5, .6, .6, .6, 0.06)
| |
| 1159 | CFuncs.Sound.Create("471881980", HitboxR, 1, 0.9)
| |
| 1160 | CFuncs.Sound.Create("471881954", HitboxR, 1, 0.8)
| |
| 1161 | for i = 0, 1, 0.08 do | |
| 1162 | swait() | |
| 1163 | Effects.Block.Create(BrickColor.new("Royal purple"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, .3, 1)
| |
| 1164 | Effects.Break.Create(BrickColor.new("Royal purple"), HitboxR.CFrame, .5, .5, .5)
| |
| 1165 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), .3) | |
| 1166 | PlayAnimationFromTable({
| |
| 1167 | CFrame.new(-3.57627869e-007, -0.116980031, -2.22140098, 0.342020035, -6.11579551e-008, 0.939692736, -0.604023039, 0.766044259, 0.219846413, -0.71984607, -0.642787933, 0.262002468) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1168 | CFrame.new(-1.13248825e-006, 1.49999046, 8.94069672e-007, 0.422608167, -0.383014679, -0.82140249, -1.36196613e-005, 0.906310022, -0.422613323, 0.906312764, 0.17861104, 0.383008778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1169 | CFrame.new(1.72490048, 1.25688744, -0.021425128, -0.678134382, -0.731868863, 0.0670941696, 0.667953849, -0.575675249, 0.47163111, -0.306547582, 0.364645123, 0.879239857) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1170 | CFrame.new(-1.70565486, 0.469353855, 0.162862837, 0.82686162, 0.55728358, 0.0757693052, -0.414878726, 0.513436973, 0.751176, 0.379712611, -0.652546048, 0.655748963) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1171 | CFrame.new(0.757160306, -1.48393714, -0.193787217, 0.601814985, 0.305624545, -0.737842917, -2.98023224e-008, 0.923879623, 0.382683486, 0.798635662, -0.230304718, 0.556004763) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1172 | CFrame.new(-0.908789515, -1.60188651, -0.0663503706, 0.696367741, 0.548584938, -0.462741733, -0.173660636, 0.7544052, 0.633021533, 0.696362019, -0.360454619, 0.620610356) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1173 | }, .6, false) | |
| 1174 | end | |
| 1175 | STDamage = false | |
| 1176 | attack = false | |
| 1177 | end | |
| 1178 | ||
| 1179 | Mouse.Button1Down:connect(function() | |
| 1180 | if attack == false and attacktype == 1 then | |
| 1181 | attacktype = 2 | |
| 1182 | attackone() | |
| 1183 | elseif attack == false and attacktype == 2 then | |
| 1184 | attacktype = 1 | |
| 1185 | attacktwo() | |
| 1186 | end | |
| 1187 | end) | |
| 1188 | ||
| 1189 | game.Lighting.Outlines = false | |
| 1190 | ||
| 1191 | function attackone() | |
| 1192 | attack = true | |
| 1193 | for i = 0, 1, 0.12 do | |
| 1194 | swait() | |
| 1195 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), .3) | |
| 1196 | PlayAnimationFromTable({
| |
| 1197 | CFrame.new(0.000151857734, -0.310488015, -0.087417841, 0.707106054, 5.26835073e-008, -0.707107484, 0.122787014, 0.984807968, 0.122786865, 0.696365058, -0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1198 | CFrame.new(0.101928703, 1.50244772, -0.0383823365, 0.76589334, 0.0762532279, 0.638430059, -0.0196644422, 0.995256186, -0.095281601, -0.642666996, 0.0604211651, 0.763759375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1199 | CFrame.new(1.01774633, 0.557527065, -0.776187301, 0.541353703, 0.741649806, 0.396095604, 0.711713314, -0.153383806, -0.685520053, -0.447661191, 0.653015316, -0.610876858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1200 | CFrame.new(-1.07208586, 0.264054269, -0.716768324, 0.529938459, -0.260122895, -0.807156265, -0.752277017, 0.295165181, -0.589030504, 0.39146477, 0.919355154, -0.039265126) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1201 | CFrame.new(0.81415844, -1.89738977, 0.144144416, 0.866025925, -0.171008825, 0.469845951, -1.40815973e-006, 0.939692497, 0.342020512, -0.499999285, -0.296199232, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1202 | CFrame.new(-0.818738878, -1.59999573, -0.397991776, 0.642786622, 0.0667650178, 0.763130188, 4.3399632e-007, 0.99619472, -0.0871558338, -0.766045213, 0.0560229495, 0.640340626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1203 | }, .3, false) | |
| 1204 | end | |
| 1205 | MagnitudeDamage(HitboxR, 7, 10, 15, math.random(1, 3), "Normal", "260430079", 1) | |
| 1206 | CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
| |
| 1207 | RootPart.Velocity = RootPart.CFrame.lookVector * 40 | |
| 1208 | for i = 0, 1, 0.11 do | |
| 1209 | swait() | |
| 1210 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), .3) | |
| 1211 | PlayAnimationFromTable({
| |
| 1212 | CFrame.new(0.31380862, -0.320521832, 0.0252371654, 0.249517962, -0.150383011, 0.956622124, -0.0458769947, 0.984923244, 0.166798219, -0.967282891, -0.0855060965, 0.238856897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1213 | CFrame.new(0.101926193, 1.50244832, -0.0383800864, 0.337979913, 0.0762555003, -0.938059092, -0.0828148723, 0.995255768, 0.051067099, 0.937502801, 0.0604255944, 0.342691481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1214 | CFrame.new(1.96121001, 0.774859428, -0.462411612, 0.340120375, -0.92077136, 0.191045195, 0.466549307, -0.0111669078, -0.884424806, 0.816486418, 0.389942825, 0.42578721) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1215 | CFrame.new(-1.36170578, 0.526111126, -0.597925961, 0.81348151, -0.212761745, -0.541276693, -0.539894938, 0.0697831511, -0.838834763, 0.216243982, 0.974609077, -0.0581016839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1216 | CFrame.new(0.970680714, -1.68610644, -0.0975568295, 0.579166114, -0.127570763, -0.805166125, 0.110368893, 0.990856647, -0.0776019096, 0.807703912, -0.0439208932, 0.587950349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1217 | CFrame.new(-0.827146292, -1.8113209, -0.0556658059, 0.816036701, 0.217413262, -0.535551846, -0.0871567726, 0.962250471, 0.257832885, 0.571391284, -0.163724124, 0.804180741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1218 | }, .45, false) | |
| 1219 | end | |
| 1220 | attack = false | |
| 1221 | end | |
| 1222 | ||
| 1223 | function attacktwo() | |
| 1224 | attack = true | |
| 1225 | for i = 0, 1, 0.12 do | |
| 1226 | swait() | |
| 1227 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), .3) | |
| 1228 | PlayAnimationFromTable({
| |
| 1229 | CFrame.new(-0.0382043272, -0.447743475, -0.209081307, 0.653245032, -0.0733856931, 0.753581822, -0.271655023, 0.906307638, 0.323743671, -0.706735075, -0.416198224, 0.572105408) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1230 | CFrame.new(-2.74181366e-006, 1.49999321, -3.4570694e-006, 0.707105815, -0.183012873, -0.683013678, -8.7171793e-007, 0.965925694, -0.258819759, 0.707107782, 0.183013588, 0.683011472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1231 | CFrame.new(1.65075588, 0.743636727, -0.356577665, 0.542998552, -0.115416825, 0.831764221, 0.839699984, 0.0834951103, -0.536593378, -0.00751632452, 0.989801884, 0.142253295) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1232 | CFrame.new(-1.08620656, -0.00580590963, -0.864283919, 0.656464815, -0.698875248, 0.283949524, 0.478162557, 0.0943745971, -0.873186052, 0.583450615, 0.708990037, 0.396129608) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1233 | CFrame.new(0.856426239, -1.40340364, -0.356423855, 0.707105279, -0.122788861, -0.696365654, 9.42498446e-007, 0.98480767, -0.173648372, 0.707108438, 0.122787014, 0.696362913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1234 | CFrame.new(-0.695387185, -1.90375674, -0.304245114, 0.92541647, 0.246137589, -0.288133472, -0.173648298, 0.951251149, 0.254887551, 0.336824656, -0.185843274, 0.923044682) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1235 | }, .34, false) | |
| 1236 | end | |
| 1237 | MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1, 3), "Normal", "260430079", 1.1) | |
| 1238 | CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
| |
| 1239 | RootPart.Velocity = RootPart.CFrame.lookVector * 40 | |
| 1240 | for i = 0, 1, 0.12 do | |
| 1241 | swait() | |
| 1242 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), .3) | |
| 1243 | PlayAnimationFromTable({
| |
| 1244 | CFrame.new(-0.479634404, -0.393727064, -0.220339894, 0.248309121, 0.219825819, -0.94340837, 0.019257009, 0.972597659, 0.231695861, 0.968489468, -0.0756994039, 0.237271711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1245 | CFrame.new(-4.01586294e-006, 1.4999907, -1.59628689e-006, 0.237956509, -0.0991817266, 0.966198623, 0.22414881, 0.973527908, 0.0447304621, -0.945057809, 0.205928385, 0.253888786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1246 | CFrame.new(1.08192515, 0.657660127, -1.1749661, 0.228772208, 0.493058115, 0.839379132, 0.874719322, 0.27430138, -0.399530977, -0.427234828, 0.825622678, -0.368534833) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1247 | CFrame.new(-1.23054802, 1.29996836, -0.754827142, 0.94838953, -0.316170156, 0.0243683457, -0.269034386, -0.84291333, -0.465958893, 0.167862713, 0.43535465, -0.88447094) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1248 | CFrame.new(0.839919031, -1.81287205, 0.0102108568, 0.808574855, -0.267538428, 0.524051666, 0.171010748, 0.95905602, 0.22575888, -0.562994003, -0.0929245204, 0.821220458) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1249 | CFrame.new(-0.846072078, -1.7213496, -0.247524291, 0.693717241, 0.0689389557, 0.716940701, -0.0478171073, 0.997620881, -0.0496601462, -0.718658566, 0.000168083934, 0.695363283) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1250 | }, .45, false) | |
| 1251 | end | |
| 1252 | attack = false | |
| 1253 | end | |
| 1254 | ||
| 1255 | Mouse.KeyDown:connect(function(k) | |
| 1256 | k = k:lower() | |
| 1257 | if attack == false and ora == false and k == 'e' and IsWearingArmor == false and Invisible == false then | |
| 1258 | ora = true | |
| 1259 | ORA() | |
| 1260 | elseif attack == false and ora == false and k == 'q' and IsWearingArmor == false and Invisible == false then | |
| 1261 | ora = true | |
| 1262 | MUDA() | |
| 1263 | elseif attack == false and k == 'f' and Invisible == false and IsWearingArmor == false then | |
| 1264 | Invisible = true | |
| 1265 | Effects.Sphere.Create(BrickColor.new("Royal purple"), Torso.CFrame, 1, 1, 1, 4, 4, 4, .1)
| |
| 1266 | Effects.Block.Create(BrickColor.new("Royal purple"), Torso.CFrame, 1, 1, 1, 4, 4, 4, .1, 1)
| |
| 1267 | Disappear() | |
| 1268 | elseif attack == false and k == 'f' and Invisible == true and IsWearingArmor == false then | |
| 1269 | Invisible = false | |
| 1270 | CFuncs.Sound.Create("463010917", Torso, 1, 1)
| |
| 1271 | --CFuncs.Sound.Create("206083431", Torso, 1, 1.5)
| |
| 1272 | --CFuncs.Sound.Create("227942352", Torso, 1, 1)
| |
| 1273 | Effects.Sphere.Create(BrickColor.new("Royal purple"), Torso.CFrame, 1, 1, 1, 4, 4, 4, .08)
| |
| 1274 | for i = 1, 2 do | |
| 1275 | Effects.Block.Create(BrickColor.new("Royal purple"), Torso.CFrame, 1, 1, 1, 4, 4, 4, .1, 1)
| |
| 1276 | end | |
| 1277 | for i = 1, 20 do | |
| 1278 | Effects.Break.Create(BrickColor.new("Royal purple"), Torso.CFrame, 1, 1, 1)
| |
| 1279 | end | |
| 1280 | Reappear() | |
| 1281 | elseif attack == false and k == 'r' and IsWearingArmor == false and Invisible == false then | |
| 1282 | CastleCrusherFist() | |
| 1283 | end | |
| 1284 | end | |
| 1285 | ||
| 1286 | Mouse.KeyUp:connect(function(k) | |
| 1287 | k = k:lower() | |
| 1288 | if attack == true and ora == true and k == 'q' or attack == true and ora == true and k == 'e' then | |
| 1289 | ora = false | |
| 1290 | end) | |
| 1291 | ||
| 1292 | coroutine.resume(coroutine.create(function(Part, Part2) | |
| 1293 | while Part.Parent ~= nil do | |
| 1294 | swait(math.random(100, 150)) | |
| 1295 | for i = 0, 1, 0.2 do | |
| 1296 | wait() | |
| 1297 | Eye1.Mesh.Scale = Vector3.new(1, .7 - 1 * i, 1) | |
| 1298 | Eye2.Mesh.Scale = Vector3.new(1, .7 - 1 * i, 1) | |
| 1299 | end | |
| 1300 | for i = 0, 1, 0.2 do | |
| 1301 | swait() | |
| 1302 | Eye1.Mesh.Scale = Vector3.new(1, .7 + .3 * i, 1) | |
| 1303 | Eye2.Mesh.Scale = Vector3.new(1, .7 + .3 * i, 1) | |
| 1304 | end | |
| 1305 | end | |
| 1306 | end), Eye1, Eye2) | |
| 1307 | ||
| 1308 | while true do | |
| 1309 | swait() | |
| 1310 | for i,v in pairs(Character:children()) do | |
| 1311 | if v:IsA("Part") and IsWearingArmor == true then
| |
| 1312 | v.Anchored = false | |
| 1313 | end | |
| 1314 | end | |
| 1315 | for i, v in pairs(StandName:GetChildren()) do | |
| 1316 | if v:IsA("Part") then
| |
| 1317 | v.Material = "SmoothPlastic" | |
| 1318 | v.CanCollide = false | |
| 1319 | elseif v:IsA("Humanoid") then
| |
| 1320 | v:remove() | |
| 1321 | elseif v:IsA("Accessory") then
| |
| 1322 | v:remove() | |
| 1323 | elseif v:IsA("Shirt") then
| |
| 1324 | v:remove() | |
| 1325 | elseif v:IsA("Pants") then
| |
| 1326 | v:remove() | |
| 1327 | elseif v:IsA("Script") or v:IsA("LocalScript") then
| |
| 1328 | v:remove() | |
| 1329 | elseif v:IsA("BodyColors") then
| |
| 1330 | v:remove() | |
| 1331 | end | |
| 1332 | end | |
| 1333 | HHandle.Transparency = 1 | |
| 1334 | THandle.Transparency = 1 | |
| 1335 | AHandleR.Transparency = 1 | |
| 1336 | AHandleL.Transparency = 1 | |
| 1337 | LHandleR.Transparency = 1 | |
| 1338 | LHandleL.Transparency = 1 | |
| 1339 | RootPart.Transparency = 1 | |
| 1340 | HitboxR.Transparency = 1 | |
| 1341 | HitboxL.Transparency = 1 | |
| 1342 | Head.BrickColor = BrickColor.new("Institutional white")
| |
| 1343 | Torso.BrickColor = BrickColor.new("Institutional white")
| |
| 1344 | RightArm.BrickColor = BrickColor.new("Institutional white")
| |
| 1345 | LeftArm.BrickColor = BrickColor.new("Institutional white")
| |
| 1346 | RightLeg.BrickColor = BrickColor.new("Institutional white")
| |
| 1347 | LeftLeg.BrickColor = BrickColor.new("Institutional white")
| |
| 1348 | RootPart.Anchored = true | |
| 1349 | Torsovelocity = (Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1350 | velocity = Character.HumanoidRootPart.Velocity.y | |
| 1351 | sine = sine + change | |
| 1352 | Shield.Anchored = true | |
| 1353 | Shield.CFrame = Shield.CFrame:lerp(RootPart.CFrame * CFrame.new(0, 0, -3.2), 1) | |
| 1354 | local hit, pos = rayCast(Character.HumanoidRootPart.Position, (CFrame.new(Character.HumanoidRootPart.Position, Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1355 | if Character.HumanoidRootPart.Velocity.y > 1 and hit == nil then | |
| 1356 | Anim = "Jump" | |
| 1357 | if attack == false then | |
| 1358 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + .5 * math.cos(sine / 20), 3), .5) | |
| 1359 | PlayAnimationFromTable({
| |
| 1360 | CFrame.new(0, 0.00872418843, 0.0292903651, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1361 | CFrame.new(0, 1.49999177, -1.49011612e-007, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1362 | CFrame.new(1.64140427, 0.273908556, 0.192029893, 0.946035206, -0.31541416, 0.0743736848, 0.284469575, 0.91821146, 0.275617331, -0.155224368, -0.239586651, 0.958386064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1363 | CFrame.new(-1.59350562, 0.239538491, 0.192243189, 0.935008764, 0.347148597, -0.0724328309, -0.312019885, 0.902400434, 0.297181845, 0.168529674, -0.255267143, 0.952069581) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1364 | CFrame.new(0.602718651, -1.95556056, 0.410092652, 0.978475571, 0.0150757888, -0.205834776, 0.0853612274, 0.878464639, 0.470120817, 0.187906027, -0.477568805, 0.85826844) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1365 | CFrame.new(-0.41903314, -1.41877925, -0.229210436, 0.962251842, -0.0299757104, 0.270510197, -0.084186092, 0.912393093, 0.400567293, -0.258819073, -0.408219665, 0.875425339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1366 | }, .3, false) | |
| 1367 | end | |
| 1368 | elseif Character.HumanoidRootPart.Velocity.y < -1 and hit == nil then | |
| 1369 | Anim = "Fall" | |
| 1370 | if attack == false then | |
| 1371 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + .5 * math.cos(sine / 20), 3), .5) | |
| 1372 | PlayAnimationFromTable({
| |
| 1373 | CFrame.new(-0, -0.0366669223, -0.0478199311, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1374 | CFrame.new(0, 1.58110774, -0.115850762, 1, 0, 0, 0, 0.98480767, 0.173647821, 0, -0.173647821, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1375 | CFrame.new(1.72150326, 0.610064566, 0.0891361833, 0.724097908, -0.685675204, 0.0743751749, 0.645872176, 0.711960018, 0.275611937, -0.241932437, -0.151533186, 0.958387375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1376 | CFrame.new(-1.69228244, 0.568353653, 0.082095027, 0.759895504, 0.646005511, -0.0724337399, -0.601845145, 0.741260946, 0.297183931, 0.24567467, -0.182231784, 0.952074111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1377 | CFrame.new(0.60271728, -1.95556188, 0.410093039, 0.978470623, -0.00292155147, -0.206365243, 0.0853614658, 0.916095972, 0.391767859, 0.187905625, -0.400949359, 0.896622121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1378 | CFrame.new(-0.453899324, -1.81726217, -0.229221463, 0.962255239, -0.00628663599, 0.272094905, -0.0841865242, 0.943832874, 0.319526881, -0.258820891, -0.33037129, 0.90767473) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1379 | }, .3, false) | |
| 1380 | end | |
| 1381 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1382 | Anim = "Idle" | |
| 1383 | if attack == false then | |
| 1384 | change = 1 | |
| 1385 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + .5 * math.cos(sine / 20), 3), .5) | |
| 1386 | PlayAnimationFromTable({
| |
| 1387 | CFrame.new(0, -0.00190299738, -0.0435779989, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1388 | CFrame.new(0, 1.49999213, 3.27825546e-007, 1, 0, 0, 0, 0.99619478, 0.0871553123, 0, -0.0871553123, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1389 | CFrame.new(1.64141297, 0.173907071, -0.107973814, 0.946035922, -0.270955235, 0.177766502, 0.284470022, 0.957103431, -0.055051513, -0.155224428, 0.102649838, 0.982532144) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1390 | CFrame.new(-1.59350157, 0.139536366, -0.107754946, 0.935009062, 0.284010828, -0.212358981, -0.312018842, 0.943447471, -0.11203292, 0.168530986, 0.171011835, 0.970748305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1391 | CFrame.new(0.602711678, -1.89952374, -0.0967197716, 0.978471398, -0.0562333167, -0.198576227, 0.0853610933, 0.986278713, 0.141314447, 0.187904745, -0.155223012, 0.969844699) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1392 | CFrame.new(-0.619029164, -1.90815639, -0.0860156417, 0.962250412, 0.0410595387, 0.269051194, -0.0841863081, 0.984977186, 0.150772721, -0.258818805, -0.167731494, 0.951251626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1393 | }, .3, false) | |
| 1394 | end | |
| 1395 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1396 | Anim = "Walk" | |
| 1397 | if attack == false then | |
| 1398 | RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + .5 * math.cos(sine / 20), 3), .5) | |
| 1399 | PlayAnimationFromTable({
| |
| 1400 | CFrame.new(0, -0.0234659836, -0.171147972, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1401 | CFrame.new(0, 1.49999166, 1.1920929e-007, 1, 0, 0, 0, 0.98480773, -0.173648983, 0, 0.173648953, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1402 | CFrame.new(1.60905385, 0.122740321, 0.227665678, 0.946036339, -0.320693314, 0.0465966538, 0.284468234, 0.89069742, 0.354595304, -0.155219615, -0.322205007, 0.93385905) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1403 | CFrame.new(-1.55878484, 0.127169654, 0.148623466, 0.93500936, 0.339513272, -0.102411598, -0.312018752, 0.924868107, 0.217401206, 0.168527737, -0.171317667, 0.970695019) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1404 | CFrame.new(0.585851789, -1.60362172, -0.143285036, 0.978476226, 0.0150748575, -0.205834031, 0.0853618756, 0.878461003, 0.470117748, 0.187905103, -0.477570593, 0.858265638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1405 | CFrame.new(-0.563320339, -1.90456724, 0.225245774, 0.982039452, -0.00800410938, 0.188514173, -0.0707257539, 0.910641074, 0.407099873, -0.174927384, -0.413120717, 0.893718541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1406 | }, .3, false) | |
| 1407 | end | |
| 1408 | end | |
| 1409 | if 0 < #Effects then | |
| 1410 | for e = 1, #Effects do | |
| 1411 | if Effects[e] ~= nil then | |
| 1412 | local Thing = Effects[e] | |
| 1413 | if Thing ~= nil then | |
| 1414 | local Part = Thing[1] | |
| 1415 | local Mode = Thing[2] | |
| 1416 | local Delay = Thing[3] | |
| 1417 | local IncX = Thing[4] | |
| 1418 | local IncY = Thing[5] | |
| 1419 | local IncZ = Thing[6] | |
| 1420 | if Thing[2] == "Shoot" then | |
| 1421 | local Look = Thing[1] | |
| 1422 | local move = 30 | |
| 1423 | if Thing[8] == 3 then | |
| 1424 | move = 10 | |
| 1425 | end | |
| 1426 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 1427 | if Thing[10] ~= nil then | |
| 1428 | da = pos | |
| 1429 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 1430 | cfa = CFrame.new(Thing[4], pos) | |
| 1431 | tehCF = cfa:lerp(cf2, 0.2) | |
| 1432 | Thing[1] = tehCF.lookVector | |
| 1433 | end | |
| 1434 | local mag = (Thing[4] - pos).magnitude | |
| 1435 | 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) | |
| 1436 | if Thing[8] == 2 then | |
| 1437 | 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) | |
| 1438 | end | |
| 1439 | Thing[4] = Thing[4] + Look * move | |
| 1440 | Thing[3] = Thing[3] - 1 | |
| 1441 | if 2 < Thing[5] then | |
| 1442 | Thing[5] = Thing[5] - 0.3 | |
| 1443 | Thing[6] = Thing[6] - 0.3 | |
| 1444 | end | |
| 1445 | if hit ~= nil then | |
| 1446 | Thing[3] = 0 | |
| 1447 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 1448 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1449 | else | |
| 1450 | if Thing[8] == 2 then | |
| 1451 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1452 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
| |
| 1453 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Royal purple"), "Reference", Vector3.new())
| |
| 1454 | ref.Anchored = true | |
| 1455 | ref.CFrame = CFrame.new(pos) | |
| 1456 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 1457 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 1458 | 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) | |
| 1459 | 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)
| |
| 1460 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 1461 | end | |
| 1462 | end | |
| 1463 | end | |
| 1464 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Royal purple"), "Reference", Vector3.new())
| |
| 1465 | ref.Anchored = true | |
| 1466 | ref.CFrame = CFrame.new(pos) | |
| 1467 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 1468 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1469 | end | |
| 1470 | if Thing[3] <= 0 then | |
| 1471 | table.remove(Effects, e) | |
| 1472 | end | |
| 1473 | end | |
| 1474 | do | |
| 1475 | do | |
| 1476 | if Thing[2] == "FireWave" then | |
| 1477 | if Thing[3] <= Thing[4] then | |
| 1478 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 1479 | Thing[3] = Thing[3] + 1 | |
| 1480 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 1481 | else | |
| 1482 | Part.Parent = nil | |
| 1483 | table.remove(Effects, e) | |
| 1484 | end | |
| 1485 | end | |
| 1486 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 1487 | if Thing[1].Transparency <= 1 then | |
| 1488 | if Thing[2] == "Block1" then | |
| 1489 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1490 | Mesh = Thing[7] | |
| 1491 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1492 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1493 | else | |
| 1494 | if Thing[2] == "Block2" then | |
| 1495 | Thing[1].CFrame = Thing[1].CFrame | |
| 1496 | Mesh = Thing[7] | |
| 1497 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1498 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1499 | else | |
| 1500 | if Thing[2] == "Fire" then | |
| 1501 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 1502 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1503 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1504 | else | |
| 1505 | if Thing[2] == "Cylinder" then | |
| 1506 | Mesh = Thing[7] | |
| 1507 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1508 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1509 | else | |
| 1510 | if Thing[2] == "Blood" then | |
| 1511 | Mesh = Thing[7] | |
| 1512 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 1513 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1514 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1515 | else | |
| 1516 | if Thing[2] == "Elec" then | |
| 1517 | Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1518 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1519 | else | |
| 1520 | if Thing[2] == "Disappear" then | |
| 1521 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1522 | elseif Thing[2] == "Shatter" then | |
| 1523 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1524 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1525 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1526 | Thing[6] = Thing[6] + Thing[5] | |
| 1527 | end | |
| 1528 | end | |
| 1529 | end | |
| 1530 | end | |
| 1531 | end | |
| 1532 | end | |
| 1533 | end | |
| 1534 | else | |
| 1535 | Part.Parent = nil | |
| 1536 | table.remove(Effects, e) | |
| 1537 | end | |
| 1538 | end | |
| 1539 | end | |
| 1540 | end | |
| 1541 | end | |
| 1542 | end | |
| 1543 | end | |
| 1544 | end | |
| 1545 | end |