SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- (Edit by kiukiubol & lilh3) |
| 1 | + | CV="Maroon" |
| 2 | Player = game.Players.LocalPlayer | |
| 3 | char = Player.Character | |
| 4 | local txt = Instance.new("BillboardGui", Character)
| |
| 5 | txt.Adornee = Character .Head | |
| 6 | txt.Name = "_status" | |
| 7 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 8 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 9 | local text = Instance.new("TextLabel", txt)
| |
| 10 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 11 | - | char.Head.face.Texture = "rbxassetid://405587215" |
| 11 | + | text.FontSize = "Size24" |
| 12 | text.TextScaled = true | |
| 13 | text.TextTransparency = 0 | |
| 14 | text.BackgroundTransparency = 1 | |
| 15 | text.TextTransparency = 0 | |
| 16 | text.TextStrokeTransparency = 0 | |
| 17 | text.Font = "Bodoni" | |
| 18 | text.TextStrokeColor3 = Color3.new(255,255,255) | |
| 19 | ||
| 20 | v=Instance.new("Part")
| |
| 21 | v.Name = "ColorBrick" | |
| 22 | v.Parent=Player.Character | |
| 23 | v.FormFactor="Symmetric" | |
| 24 | v.Anchored=true | |
| 25 | v.CanCollide=false | |
| 26 | v.BottomSurface="Smooth" | |
| 27 | v.TopSurface="Smooth" | |
| 28 | v.Size=Vector3.new(10,5,3) | |
| 29 | v.Transparency=1 | |
| 30 | v.CFrame=Character.Torso.CFrame | |
| 31 | v.BrickColor=BrickColor.new(CV) | |
| 32 | v.Transparency=1 | |
| 33 | text.TextColor3 = Color3.new(255,0,0) | |
| 34 | v.Shape="Block" | |
| 35 | text.Text = "NIPPLES THE ENCHILADA" | |
| 36 | wait(1 / 60) | |
| 37 | - | z.SoundId = "rbxassetid://264396581" -- Put Music ID Here. |
| 37 | + | |
| 38 | char = p.Character | |
| 39 | torso = char.Torso | |
| 40 | neck = char.Torso.Neck | |
| 41 | hum = char.Humanoid | |
| 42 | hum.MaxHealth = 75000 | |
| 43 | - | char["Body Colors"].HeadColor = BrickColor.new("Pastel Blue")
|
| 43 | + | |
| 44 | - | char["Body Colors"].TorsoColor = BrickColor.new("Pastel Blue")
|
| 44 | + | |
| 45 | - | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel Blue")
|
| 45 | + | char.Head.face.Texture = "rbxassetid://891118431" |
| 46 | - | char["Body Colors"].RightArmColor = BrickColor.new("Pastel Blue")
|
| 46 | + | |
| 47 | - | char["Body Colors"].LeftLegColor = BrickColor.new("Pastel Blue")
|
| 47 | + | |
| 48 | - | char["Body Colors"].RightLegColor = BrickColor.new("Pastel Blue")
|
| 48 | + | |
| 49 | local m = Instance.new("Model", char)
| |
| 50 | m.Name = "* C" | |
| 51 | local chat = Instance.new("Part", m)
| |
| 52 | chat.TopSurface = "Smooth" | |
| 53 | chat.BottomSurface = "Smooth" | |
| 54 | - | char.Shirt.ShirtTemplate = "rbxassetid://496506720" |
| 54 | + | |
| 55 | - | char.Pants.PantsTemplate = "rbxassetid://496512137" |
| 55 | + | |
| 56 | chat.Size = Vector3.new(0.05, 0.05, 0.1) | |
| 57 | chat.Transparency = 0.9 | |
| 58 | chat.CanCollide = false | |
| 59 | local Weld7 = Instance.new("Weld", char)
| |
| 60 | Weld7.Part0 = char.Head | |
| 61 | Weld7.Part1 = chat | |
| 62 | - | rh.BrickColor = BrickColor.new("Really black")
|
| 62 | + | |
| 63 | local cy7 = Instance.new("BlockMesh", chat)
| |
| 64 | local h = Instance.new("Humanoid", m)
| |
| 65 | h.MaxHealth = 0 | |
| 66 | m.Name = "Star Platinum" | |
| 67 | end)) | |
| 68 | end | |
| 69 | ||
| 70 | z = Instance.new("Sound", torso)
| |
| 71 | z.SoundId = "rbxassetid://575167014" -- Put Music ID Here. | |
| 72 | z.Looped = true | |
| 73 | z.Volume = 1 | |
| 74 | wait(.1) | |
| 75 | z:Play() | |
| 76 | ||
| 77 | char["Body Colors"].HeadColor = BrickColor.new("Red")
| |
| 78 | char["Body Colors"].TorsoColor = BrickColor.new("Red")
| |
| 79 | char["Body Colors"].LeftArmColor = BrickColor.new("Red")
| |
| 80 | char["Body Colors"].RightArmColor = BrickColor.new("Red")
| |
| 81 | char["Body Colors"].LeftLegColor = BrickColor.new("Red")
| |
| 82 | char["Body Colors"].RightLegColor = BrickColor.new("Red")
| |
| 83 | ||
| 84 | shirt = Instance.new("Shirt", char)
| |
| 85 | shirt.Name = "Shirt" | |
| 86 | pants = Instance.new("Pants", char)
| |
| 87 | pants.Name = "Pants" | |
| 88 | char.Shirt.ShirtTemplate = "rbxassetid://792124236" | |
| 89 | char.Pants.PantsTemplate = "rbxassetid://852708543" | |
| 90 | ||
| 91 | Hat = Instance.new("Model")
| |
| 92 | Hat.Parent = char | |
| 93 | Hat.Name = "Hat" | |
| 94 | rh = Instance.new("Part")
| |
| 95 | rh.Parent = Hat | |
| 96 | rh.BrickColor = BrickColor.new("Red")
| |
| 97 | rh.Locked = true | |
| 98 | rh.CanCollide = false | |
| 99 | mesh = Instance.new("SpecialMesh")
| |
| 100 | rh.formFactor = "Symmetric" | |
| 101 | mesh.MeshType = "FileMesh" | |
| 102 | mesh.MeshId = "rbxassetid://439736904" | |
| 103 | mesh.Parent = rh | |
| 104 | local weld = Instance.new("Weld")
| |
| 105 | weld.Parent = rh | |
| 106 | weld.Part0 = rh | |
| 107 | weld.Part1 =char.Head | |
| 108 | weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0) | |
| 109 | mesh.Scale = Vector3.new(0.002,0.002, 0.002) | |
| 110 | ||
| 111 | Effects = { }
| |
| 112 | local Player = game.Players.localPlayer | |
| 113 | local Character = Player.Character | |
| 114 | local Humanoid = Character.Humanoid | |
| 115 | Humanoid.WalkSpeed = 20 | |
| 116 | local Mouse = Player:GetMouse() | |
| 117 | local LeftArm = Character["Left Arm"] | |
| 118 | local RightArm = Character["Right Arm"] | |
| 119 | local LeftLeg = Character["Left Leg"] | |
| 120 | local RightLeg = Character["Right Leg"] | |
| 121 | local Head = Character.Head | |
| 122 | local Torso = Character.Torso | |
| 123 | local Camera = game.Workspace.CurrentCamera | |
| 124 | local RootPart = Character.HumanoidRootPart | |
| 125 | local RootJoint = RootPart.RootJoint | |
| 126 | local attack = false | |
| 127 | local Anim = 'Idle' | |
| 128 | local attacktype = 1 | |
| 129 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 130 | local velocity = RootPart.Velocity.y | |
| 131 | local sine = 0 | |
| 132 | local change = 1 | |
| 133 | local Create = LoadLibrary("RbxUtility").Create
| |
| 134 | local TimeStop = false | |
| 135 | ||
| 136 | local m = Create("Model"){
| |
| 137 | Parent = Character, | |
| 138 | Name = "WeaponModel", | |
| 139 | } | |
| 140 | ||
| 141 | Humanoid.Animator.Parent = nil | |
| 142 | Character.Animate.Parent = nil | |
| 143 | ||
| 144 | local newMotor = function(part0, part1, c0, c1) | |
| 145 | local w = Create('Motor'){
| |
| 146 | Parent = part0, | |
| 147 | Part0 = part0, | |
| 148 | Part1 = part1, | |
| 149 | C0 = c0, | |
| 150 | C1 = c1, | |
| 151 | } | |
| 152 | return w | |
| 153 | end | |
| 154 | ||
| 155 | function clerp(a, b, t) | |
| 156 | return a:lerp(b, t) | |
| 157 | end | |
| 158 | ||
| 159 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 160 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 161 | ||
| 162 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 163 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 164 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 165 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 166 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 167 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 168 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 169 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 170 | ||
| 171 | local rarmc1 = RW.C1 | |
| 172 | local larmc1 = LW.C1 | |
| 173 | local rlegc1 = RH.C1 | |
| 174 | local llegc1 = LH.C1 | |
| 175 | ||
| 176 | local resetc1 = false | |
| 177 | ||
| 178 | function PlayAnimationFromTable(table, speed, bool) | |
| 179 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 180 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 181 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 182 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 183 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 184 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 185 | if bool == true then | |
| 186 | if resetc1 == false then | |
| 187 | resetc1 = true | |
| 188 | RootJoint.C1 = RootJoint.C1 | |
| 189 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 190 | RW.C1 = rarmc1 | |
| 191 | LW.C1 = larmc1 | |
| 192 | RH.C1 = rlegc1 | |
| 193 | LH.C1 = llegc1 | |
| 194 | end | |
| 195 | end | |
| 196 | end | |
| 197 | ||
| 198 | ArtificialHB = Create("BindableEvent", script){
| |
| 199 | Parent = script, | |
| 200 | Name = "Heartbeat", | |
| 201 | } | |
| 202 | ||
| 203 | script:WaitForChild("Heartbeat")
| |
| 204 | ||
| 205 | frame = 1 / 35 | |
| 206 | tf = 0 | |
| 207 | allowframeloss = false | |
| 208 | tossremainder = false | |
| 209 | lastframe = tick() | |
| 210 | script.Heartbeat:Fire() | |
| 211 | ||
| 212 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 213 | tf = tf + s | |
| 214 | if tf >= frame then | |
| 215 | if allowframeloss then | |
| 216 | script.Heartbeat:Fire() | |
| 217 | lastframe = tick() | |
| 218 | else | |
| 219 | for i = 1, math.floor(tf / frame) do | |
| 220 | script.Heartbeat:Fire() | |
| 221 | end | |
| 222 | lastframe = tick() | |
| 223 | end | |
| 224 | if tossremainder then | |
| 225 | tf = 0 | |
| 226 | else | |
| 227 | tf = tf - frame * math.floor(tf / frame) | |
| 228 | end | |
| 229 | end | |
| 230 | end) | |
| 231 | ||
| 232 | function swait(num) | |
| 233 | if num == 0 or num == nil then | |
| 234 | ArtificialHB.Event:wait() | |
| 235 | else | |
| 236 | for i = 0, num do | |
| 237 | ArtificialHB.Event:wait() | |
| 238 | end | |
| 239 | end | |
| 240 | end | |
| 241 | ||
| 242 | function RemoveOutlines(part) | |
| 243 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 244 | end | |
| 245 | ||
| 246 | CFuncs = {
| |
| 247 | Part = {
| |
| 248 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 249 | local Part = Create("Part"){
| |
| 250 | Parent = Parent, | |
| 251 | Reflectance = Reflectance, | |
| 252 | Transparency = Transparency, | |
| 253 | CanCollide = false, | |
| 254 | Locked = true, | |
| 255 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 256 | Name = Name, | |
| 257 | Size = Size, | |
| 258 | Material = Material, | |
| 259 | } | |
| 260 | RemoveOutlines(Part) | |
| 261 | return Part | |
| 262 | end; | |
| 263 | }; | |
| 264 | ||
| 265 | Mesh = {
| |
| 266 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 267 | local Msh = Create(Mesh){
| |
| 268 | Parent = Part, | |
| 269 | Offset = OffSet, | |
| 270 | Scale = Scale, | |
| 271 | } | |
| 272 | if Mesh == "SpecialMesh" then | |
| 273 | Msh.MeshType = MeshType | |
| 274 | Msh.MeshId = MeshId | |
| 275 | end | |
| 276 | return Msh | |
| 277 | end; | |
| 278 | }; | |
| 279 | ||
| 280 | Weld = {
| |
| 281 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 282 | local Weld = Create("Weld"){
| |
| 283 | Parent = Parent, | |
| 284 | Part0 = Part0, | |
| 285 | Part1 = Part1, | |
| 286 | C0 = C0, | |
| 287 | - | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
|
| 287 | + | |
| 288 | } | |
| 289 | return Weld | |
| 290 | end; | |
| 291 | }; | |
| 292 | ||
| 293 | Sound = {
| |
| 294 | Create = function(id, par, vol, pit) | |
| 295 | local Sound = Create("Sound"){
| |
| 296 | Volume = vol, | |
| 297 | Pitch = pit or 1, | |
| 298 | SoundId = "rbxassetid://" .. id, | |
| 299 | Parent = par or workspace, | |
| 300 | } | |
| 301 | Sound:play() | |
| 302 | return Sound | |
| 303 | end; | |
| 304 | }; | |
| 305 | ||
| 306 | Decal = {
| |
| 307 | Create = function(Color, Texture, Transparency, Name, Parent) | |
| 308 | local Decal = Create("Decal"){
| |
| 309 | Color3 = Color, | |
| 310 | Texture = "rbxassetid://" .. Texture, | |
| 311 | Transparency = Transparency, | |
| 312 | Name = Name, | |
| 313 | Parent = Parent, | |
| 314 | } | |
| 315 | return Decal | |
| 316 | end; | |
| 317 | }; | |
| 318 | ||
| 319 | BillboardGui = {
| |
| 320 | Create = function(Parent, Image, Position, Size) | |
| 321 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Red"), "BillboardGuiPart", Vector3.new(1, 1, 1))
| |
| 322 | BillPar.CFrame = CFrame.new(Position) | |
| 323 | local Bill = Create("BillboardGui"){
| |
| 324 | Parent = BillPar, | |
| 325 | Adornee = BillPar, | |
| 326 | Size = UDim2.new(1, 0, 1, 0), | |
| 327 | SizeOffset = Vector2.new(Size, Size), | |
| 328 | } | |
| 329 | local d = Create("ImageLabel", Bill){
| |
| 330 | Parent = Bill, | |
| 331 | BackgroundTransparency = 1, | |
| 332 | Size = UDim2.new(1, 0, 1, 0), | |
| 333 | Image = "rbxassetid://" .. Image, | |
| 334 | } | |
| 335 | return BillPar | |
| 336 | end | |
| 337 | }; | |
| 338 | ||
| 339 | ParticleEmitter = {
| |
| 340 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 341 | local Particle = Create("ParticleEmitter"){
| |
| 342 | Parent = Parent, | |
| 343 | Color = ColorSequence.new(Color1, Color2), | |
| 344 | LightEmission = LightEmission, | |
| 345 | Size = Size, | |
| 346 | Texture = Texture, | |
| 347 | Transparency = Transparency, | |
| 348 | ZOffset = ZOffset, | |
| 349 | Acceleration = Accel, | |
| 350 | Drag = Drag, | |
| 351 | LockedToPart = LockedToPart, | |
| 352 | VelocityInheritance = VelocityInheritance, | |
| 353 | EmissionDirection = EmissionDirection, | |
| 354 | Enabled = Enabled, | |
| 355 | Lifetime = LifeTime, | |
| 356 | Rate = Rate, | |
| 357 | Rotation = Rotation, | |
| 358 | RotSpeed = RotSpeed, | |
| 359 | Speed = Speed, | |
| 360 | VelocitySpread = VelocitySpread, | |
| 361 | } | |
| 362 | return Particle | |
| 363 | end; | |
| 364 | }; | |
| 365 | ||
| 366 | CreateTemplate = {
| |
| 367 | ||
| 368 | }; | |
| 369 | } | |
| 370 | ||
| 371 | function rayCast(Position, Direction, Range, Ignore) | |
| 372 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 373 | end | |
| 374 | ||
| 375 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 376 | if SinglePlayer then | |
| 377 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 378 | end | |
| 379 | local List = {}
| |
| 380 | for i, v in pairs(workspace:GetChildren()) do | |
| 381 | if v:IsA("Model") then
| |
| 382 | if v:findFirstChild("Torso") then
| |
| 383 | if v ~= Character then | |
| 384 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 385 | table.insert(List, v) | |
| 386 | end | |
| 387 | end | |
| 388 | end | |
| 389 | end | |
| 390 | end | |
| 391 | return List | |
| 392 | end | |
| 393 | ||
| 394 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 395 | if hit.Parent == nil then | |
| 396 | return | |
| 397 | end | |
| 398 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 399 | for _, v in pairs(hit.Parent:children()) do | |
| 400 | if v:IsA("Humanoid") then
| |
| 401 | h = v | |
| 402 | end | |
| 403 | end | |
| 404 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 405 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 406 | if hit.Parent.DebounceHit.Value == true then | |
| 407 | return | |
| 408 | end | |
| 409 | end | |
| 410 | local c = Create("ObjectValue"){
| |
| 411 | Name = "creator", | |
| 412 | Value = game:service("Players").LocalPlayer,
| |
| 413 | Parent = h, | |
| 414 | } | |
| 415 | game:GetService("Debris"):AddItem(c, .5)
| |
| 416 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 417 | local Damage = math.random(minim, maxim) | |
| 418 | local blocked = false | |
| 419 | local block = hit.Parent:findFirstChild("Block")
| |
| 420 | if block ~= nil then | |
| 421 | if block.className == "IntValue" then | |
| 422 | if block.Value > 0 then | |
| 423 | blocked = true | |
| 424 | block.Value = block.Value - 1 | |
| 425 | print(block.Value) | |
| 426 | end | |
| 427 | end | |
| 428 | end | |
| 429 | if TimeStop == false then | |
| 430 | h.Health = h.Health - Damage | |
| 431 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
| |
| 432 | elseif TimeStop == true then | |
| 433 | repeat wait() until TimeStop == false | |
| 434 | h.Health = h.Health - (Damage / 2) | |
| 435 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
| |
| 436 | end | |
| 437 | if Type == "Knockdown" then | |
| 438 | local hum = hit.Parent.Humanoid | |
| 439 | hum.PlatformStand = true | |
| 440 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 441 | swait(1) | |
| 442 | HHumanoid.PlatformStand = false | |
| 443 | end), hum) | |
| 444 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 445 | local bodvol = Create("BodyVelocity"){
| |
| 446 | velocity = angle * knockback, | |
| 447 | - | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
|
| 447 | + | |
| 448 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 449 | Parent = hit, | |
| 450 | } | |
| 451 | local rl = Create("BodyAngularVelocity"){
| |
| 452 | P = 3000, | |
| 453 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 454 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 455 | Parent = hit, | |
| 456 | } | |
| 457 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 458 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 459 | elseif Type == "Normal" then | |
| 460 | local vp = Create("BodyVelocity"){
| |
| 461 | P = 500, | |
| 462 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 463 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 464 | } | |
| 465 | if knockback > 0 then | |
| 466 | vp.Parent = hit.Parent.Torso | |
| 467 | end | |
| 468 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 469 | elseif Type == "Up" then | |
| 470 | local bodyVelocity = Create("BodyVelocity"){
| |
| 471 | velocity = Vector3.new(0, 20, 0), | |
| 472 | P = 5000, | |
| 473 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 474 | Parent = hit, | |
| 475 | } | |
| 476 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 477 | elseif Type == "DarkUp" then | |
| 478 | coroutine.resume(coroutine.create(function() | |
| 479 | for i = 0, 1, 0.1 do | |
| 480 | swait() | |
| 481 | Effects.Block.Create(BrickColor.new("Red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 482 | end | |
| 483 | end)) | |
| 484 | local bodyVelocity = Create("BodyVelocity"){
| |
| 485 | velocity = Vector3.new(0, 20, 0), | |
| 486 | P = 5000, | |
| 487 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 488 | Parent = hit, | |
| 489 | } | |
| 490 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 491 | elseif Type == "Snare" then | |
| 492 | local bp = Create("BodyPosition"){
| |
| 493 | P = 2000, | |
| 494 | D = 100, | |
| 495 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 496 | position = hit.Parent.Torso.Position, | |
| 497 | Parent = hit.Parent.Torso, | |
| 498 | } | |
| 499 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 500 | elseif Type == "Freeze" then | |
| 501 | local BodPos = Create("BodyPosition"){
| |
| 502 | P = 50000, | |
| 503 | D = 1000, | |
| 504 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 505 | position = hit.Parent.Torso.Position, | |
| 506 | Parent = hit.Parent.Torso, | |
| 507 | } | |
| 508 | local BodGy = Create("BodyGyro") {
| |
| 509 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 510 | P = 20e+003, | |
| 511 | Parent = hit.Parent.Torso, | |
| 512 | cframe = hit.Parent.Torso.CFrame, | |
| 513 | } | |
| 514 | hit.Parent.Torso.Anchored = true | |
| 515 | coroutine.resume(coroutine.create(function(Part) | |
| 516 | swait(1.5) | |
| 517 | Part.Anchored = false | |
| 518 | end), hit.Parent.Torso) | |
| 519 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 520 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 521 | end | |
| 522 | local debounce = Create("BoolValue"){
| |
| 523 | Name = "DebounceHit", | |
| 524 | Parent = hit.Parent, | |
| 525 | Value = true, | |
| 526 | } | |
| 527 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 528 | c = Create("ObjectValue"){
| |
| 529 | Name = "creator", | |
| 530 | Value = Player, | |
| 531 | Parent = h, | |
| 532 | } | |
| 533 | game:GetService("Debris"):AddItem(c, .5)
| |
| 534 | end | |
| 535 | end | |
| 536 | ||
| 537 | function ShowDamage(Pos, Text, Time, Color) | |
| 538 | local Rate = (1 / 30) | |
| 539 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 540 | local Text = (Text or "") | |
| 541 | local Time = (Time or 2) | |
| 542 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 543 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 544 | EffectPart.Anchored = true | |
| 545 | local BillboardGui = Create("BillboardGui"){
| |
| 546 | Size = UDim2.new(3, 0, 3, 0), | |
| 547 | Adornee = EffectPart, | |
| 548 | Parent = EffectPart, | |
| 549 | } | |
| 550 | local TextLabel = Create("TextLabel"){
| |
| 551 | BackgroundTransparency = 1, | |
| 552 | Size = UDim2.new(1, 0, 1, 0), | |
| 553 | Text = Text, | |
| 554 | Font = "SciFi", | |
| 555 | TextColor3 = Color, | |
| 556 | TextScaled = true, | |
| 557 | Parent = BillboardGui, | |
| 558 | } | |
| 559 | game.Debris:AddItem(EffectPart, (Time)) | |
| 560 | EffectPart.Parent = game:GetService("Workspace")
| |
| 561 | delay(0, function() | |
| 562 | local Frames = (Time / Rate) | |
| 563 | for Frame = 1, Frames do | |
| 564 | wait(Rate) | |
| 565 | local Percent = (Frame / Frames) | |
| 566 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 567 | TextLabel.TextTransparency = Percent | |
| 568 | end | |
| 569 | if EffectPart and EffectPart.Parent then | |
| 570 | - | sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
|
| 570 | + | |
| 571 | end | |
| 572 | end) | |
| 573 | end | |
| 574 | ||
| 575 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 576 | for _, c in pairs(workspace:children()) do | |
| 577 | local hum = c:findFirstChild("Humanoid")
| |
| 578 | if hum ~= nil then | |
| 579 | local head = c:findFirstChild("Torso")
| |
| 580 | if head ~= nil then | |
| 581 | local targ = head.Position - Part.Position | |
| 582 | local mag = targ.magnitude | |
| 583 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 584 | for i = 1, 10 do | |
| 585 | Effects.Elect.Create(head.CFrame, 10, 10, 10) | |
| 586 | end | |
| 587 | CFuncs.Sound.Create("0", head, 1, 1)
| |
| 588 | Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05)
| |
| 589 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch) | |
| 590 | end | |
| 591 | end | |
| 592 | end | |
| 593 | end | |
| 594 | end | |
| 595 | ||
| 596 | HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977)) | |
| 597 | HandleRWeld = CFuncs.Weld.Create(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997161865, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1)) | |
| 598 | HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109)) | |
| 599 | HitboxRWeld = CFuncs.Weld.Create(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 0, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 600 | HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977)) | |
| 601 | HandleLWeld = CFuncs.Weld.Create(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997924805, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1)) | |
| 602 | HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109)) | |
| 603 | HitboxLWeld = CFuncs.Weld.Create(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 3.81469727e-006, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 604 | sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Red"), "Reference", Vector3.new())
| |
| 605 | sref.Anchored = true | |
| 606 | ||
| 607 | EffectModel = Create("Model"){
| |
| 608 | Parent = Character, | |
| 609 | Name = "Effects", | |
| 610 | } | |
| 611 | ||
| 612 | Effects = {
| |
| 613 | Block = {
| |
| 614 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 615 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 616 | prt.Anchored = true | |
| 617 | prt.CFrame = cframe | |
| 618 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 619 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 620 | if Type == 1 or Type == nil then | |
| 621 | table.insert(Effects, {
| |
| 622 | prt, | |
| 623 | "Block1", | |
| 624 | delay, | |
| 625 | x3, | |
| 626 | y3, | |
| 627 | z3, | |
| 628 | msh | |
| 629 | }) | |
| 630 | elseif Type == 2 then | |
| 631 | table.insert(Effects, {
| |
| 632 | prt, | |
| 633 | "Block2", | |
| 634 | delay, | |
| 635 | x3, | |
| 636 | y3, | |
| 637 | z3, | |
| 638 | msh | |
| 639 | }) | |
| 640 | end | |
| 641 | end; | |
| 642 | }; | |
| 643 | ||
| 644 | Cylinder = {
| |
| 645 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 646 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
| 647 | prt.Anchored = true | |
| 648 | prt.CFrame = cframe | |
| 649 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 650 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 651 | table.insert(Effects, {
| |
| 652 | prt, | |
| 653 | "Cylinder", | |
| 654 | delay, | |
| 655 | x3, | |
| 656 | y3, | |
| 657 | z3, | |
| 658 | msh | |
| 659 | }) | |
| 660 | end; | |
| 661 | }; | |
| 662 | ||
| 663 | Head = {
| |
| 664 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 665 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 666 | prt.Anchored = true | |
| 667 | prt.CFrame = cframe | |
| 668 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 669 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 670 | table.insert(Effects, {
| |
| 671 | prt, | |
| 672 | "Cylinder", | |
| 673 | delay, | |
| 674 | x3, | |
| 675 | y3, | |
| 676 | z3, | |
| 677 | msh | |
| 678 | }) | |
| 679 | end; | |
| 680 | }; | |
| 681 | ||
| 682 | Sphere = {
| |
| 683 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 684 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 685 | prt.Anchored = true | |
| 686 | prt.CFrame = cframe | |
| 687 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", 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 | Elect = {
| |
| 702 | Create = function(cff, x, y, z) | |
| 703 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1))
| |
| 704 | prt.Anchored = true | |
| 705 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 706 | prt.CFrame = CFrame.new(prt.Position) | |
| 707 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 708 | local xval = math.random() / 2 | |
| 709 | local yval = math.random() / 2 | |
| 710 | local zval = math.random() / 2 | |
| 711 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 712 | table.insert(Effects, {
| |
| 713 | prt, | |
| 714 | "Elec", | |
| 715 | 0.1, | |
| 716 | x, | |
| 717 | y, | |
| 718 | z, | |
| 719 | xval, | |
| 720 | yval, | |
| 721 | zval | |
| 722 | }) | |
| 723 | end; | |
| 724 | ||
| 725 | }; | |
| 726 | ||
| 727 | Ring = {
| |
| 728 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 729 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 730 | prt.Anchored = true | |
| 731 | prt.CFrame = cframe | |
| 732 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 733 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 734 | table.insert(Effects, {
| |
| 735 | prt, | |
| 736 | "Cylinder", | |
| 737 | delay, | |
| 738 | x3, | |
| 739 | y3, | |
| 740 | z3, | |
| 741 | msh | |
| 742 | }) | |
| 743 | end; | |
| 744 | }; | |
| 745 | ||
| 746 | ||
| 747 | Wave = {
| |
| 748 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 749 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 750 | prt.Anchored = true | |
| 751 | prt.CFrame = cframe | |
| 752 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 753 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 754 | table.insert(Effects, {
| |
| 755 | prt, | |
| 756 | "Cylinder", | |
| 757 | delay, | |
| 758 | x3, | |
| 759 | y3, | |
| 760 | z3, | |
| 761 | msh | |
| 762 | }) | |
| 763 | end; | |
| 764 | }; | |
| 765 | ||
| 766 | Break = {
| |
| 767 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 768 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 769 | prt.Anchored = true | |
| 770 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 771 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 772 | local num = math.random(10, 50) / 1000 | |
| 773 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 774 | table.insert(Effects, {
| |
| 775 | prt, | |
| 776 | "Shatter", | |
| 777 | num, | |
| 778 | prt.CFrame, | |
| 779 | math.random() - math.random(), | |
| 780 | 0, | |
| 781 | math.random(50, 100) / 100 | |
| 782 | }) | |
| 783 | end; | |
| 784 | }; | |
| 785 | ||
| 786 | Fire = {
| |
| 787 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 788 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 789 | prt.Anchored = true | |
| 790 | prt.CFrame = cframe | |
| 791 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 792 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 793 | table.insert(Effects, {
| |
| 794 | prt, | |
| 795 | "Fire", | |
| 796 | delay, | |
| 797 | 1, | |
| 798 | 1, | |
| 799 | 1, | |
| 800 | msh | |
| 801 | }) | |
| 802 | end; | |
| 803 | }; | |
| 804 | ||
| 805 | FireWave = {
| |
| 806 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 807 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 808 | prt.Anchored = true | |
| 809 | prt.CFrame = cframe | |
| 810 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 811 | local d = Create("Decal"){
| |
| 812 | Parent = prt, | |
| 813 | Texture = "rbxassetid://26356434", | |
| 814 | Face = "Top", | |
| 815 | } | |
| 816 | local d = Create("Decal"){
| |
| 817 | Parent = prt, | |
| 818 | Texture = "rbxassetid://26356434", | |
| 819 | Face = "Bottom", | |
| 820 | } | |
| 821 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 822 | table.insert(Effects, {
| |
| 823 | prt, | |
| 824 | "FireWave", | |
| 825 | 1, | |
| 826 | 30, | |
| 827 | math.random(400, 600) / 100, | |
| 828 | msh | |
| 829 | }) | |
| 830 | end; | |
| 831 | }; | |
| 832 | ||
| 833 | Lightning = {
| |
| 834 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 835 | local magz = (p0 - p1).magnitude | |
| 836 | local curpos = p0 | |
| 837 | local trz = {
| |
| 838 | -ofs, | |
| 839 | ofs | |
| 840 | } | |
| 841 | for i = 1, tym do | |
| 842 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 843 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 844 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 845 | li.Material = "Neon" | |
| 846 | if tym == i then | |
| 847 | local magz2 = (curpos - p1).magnitude | |
| 848 | li.Size = Vector3.new(th, th, magz2) | |
| 849 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 850 | table.insert(Effects, {
| |
| 851 | li, | |
| 852 | "Disappear", | |
| 853 | last | |
| 854 | }) | |
| 855 | else | |
| 856 | do | |
| 857 | do | |
| 858 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 859 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 860 | game.Debris:AddItem(li, 10) | |
| 861 | table.insert(Effects, {
| |
| 862 | li, | |
| 863 | "Disappear", | |
| 864 | last | |
| 865 | }) | |
| 866 | end | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | end | |
| 871 | }; | |
| 872 | ||
| 873 | EffectTemplate = {
| |
| 874 | ||
| 875 | }; | |
| 876 | } | |
| 877 | ||
| 878 | local DORARA = false | |
| 879 | ||
| 880 | function ORA() | |
| 881 | attack = true | |
| 882 | for i = 0, 1, 0.2 do | |
| 883 | swait() | |
| 884 | PlayAnimationFromTable({
| |
| 885 | CFrame.new(4.76837158e-007, -0.107780606, -0.0868092626, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 886 | CFrame.new(0, 1.4999913, 2.38418608e-007, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 887 | CFrame.new(1.50214899, 0.590444803, 0.195881441, 0.965925872, 3.76027884e-007, 0.258818895, 0.257834077, -0.0871552154, -0.962250412, 0.0225570519, 0.99619478, -0.0841855928) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 888 | CFrame.new(-1.60470915, 0.600643516, 0.204860806, 0.937436998, -0.0449436344, -0.345242023, -0.345831364, -0.00582624972, -0.938278675, 0.0401581824, 0.998972595, -0.0210046768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 889 | CFrame.new(0.636808395, -1.93472588, -0.370165229, 0.936116338, -0.0517791435, -0.347858071, 0.0266665779, 0.996705353, -0.0765988752, 0.350678325, 0.0624292716, 0.934412897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 890 | CFrame.new(-0.6665681, -1.92173398, -0.343467057, 0.962250233, 0.0613082647, 0.265171379, -0.0410595685, 0.99584806, -0.0812460929, -0.269051433, 0.0672912449, 0.960772276) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 891 | }, .3, false) | |
| 892 | end | |
| 893 | local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1)
| |
| 894 | Instance.new("DistortionSoundEffect", DORA).Level = .45
| |
| 895 | DORA.Looped = true | |
| 896 | local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end) | |
| 897 | local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end) | |
| 898 | while DORARA == true do | |
| 899 | RootPart.Velocity = RootPart.CFrame.lookVector * 5 | |
| 900 | for i = 0, 1, 0.7 do | |
| 901 | swait() | |
| 902 | Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4) | |
| 903 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
| |
| 904 | PlayAnimationFromTable({
| |
| 905 | CFrame.new(-0.0223142356, -0.107780628, -0.249816686, 0.906307876, 0.0733869597, -0.416197479, 0, 0.98480773, 0.173648462, 0.422617942, -0.157378972, 0.892539084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 906 | CFrame.new(-2.22850417e-007, 1.49999118, 1.16660271e-006, 0.906307936, 1.49011612e-008, 0.422617972, -7.27595761e-009, 1, 0, -0.422618032, 0, 0.906308055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 907 | CFrame.new(1.5318948, 0.588474631, 0.207054406, 0.899958313, 0.340718478, 0.272003621, 0.314965397, -0.0767233223, -0.945997, -0.301449746, 0.9370296, -0.176362336) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 908 | CFrame.new(-1.27977741, 0.723447502, -1.20010054, 0.726744413, 0.46058476, -0.509611845, -0.503104627, -0.148215696, -0.851421177, -0.46768418, 0.875153661, 0.124007396) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 909 | CFrame.new(0.636807501, -1.93472636, -0.370165735, 0.868198872, -0.0517790169, 0.493507534, 0.075819321, 0.996705353, -0.0288097262, -0.490389913, 0.0624299645, 0.869264364) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 910 | CFrame.new(-0.666569352, -1.92173386, -0.343467534, 0.86083132, 0.0613082871, 0.505183935, -0.018632248, 0.995848, -0.0891051888, -0.508549333, 0.0672918186, 0.858399451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 911 | }, .9, false) | |
| 912 | end | |
| 913 | CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
| |
| 914 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15)
| |
| 915 | RootPart.Velocity = RootPart.CFrame.lookVector * 5 | |
| 916 | for i = 0, 1, 0.7 do | |
| 917 | swait() | |
| 918 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2)
| |
| 919 | PlayAnimationFromTable({
| |
| 920 | CFrame.new(0.0767437443, -0.107780531, -0.279432267, 0.866025388, -0.0868241936, 0.492404073, 0, 0.98480773, 0.173648342, -0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 921 | CFrame.new(-2.61076184e-006, 1.4999913, -6.19508683e-007, 0.866025209, 2.98023224e-007, -0.500000656, -2.56928615e-007, 1, 1.1920929e-007, 0.500000596, 2.98023224e-008, 0.866025209) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 922 | CFrame.new(1.40606534, 0.812639356, -1.14933658, 0.82139349, -0.422619373, 0.383021921, 0.349686205, -0.157378837, -0.923553765, 0.450591207, 0.892538428, 0.0185142085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 923 | CFrame.new(-1.64197171, 0.599264741, 0.212680459, 0.807513177, -0.456930667, -0.373010725, -0.413006425, 0.0134942085, -0.9106282, 0.421127379, 0.889400065, -0.177818552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 924 | CFrame.new(0.636808515, -1.93472552, -0.37016958, 0.814187765, -0.0517790765, -0.578288436, 0.00593282748, 0.996705353, -0.0808905214, 0.580571651, 0.0624291934, 0.811812401) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 925 | CFrame.new(-0.666569233, -1.92173398, -0.343468547, 0.867917657, 0.0613080971, -0.492910266, -0.0864830092, 0.99584806, -0.0284160972, 0.489121556, 0.0672912076, 0.869616032) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 926 | }, .9, false) | |
| 927 | end | |
| 928 | ||
| 929 | fat = Instance.new("BindableEvent", script)
| |
| 930 | fat.Name = "Heartbeat" | |
| 931 | script:WaitForChild("Heartbeat")
| |
| 932 | frame = 0.013333333333333 | |
| 933 | tf = 0 | |
| 934 | allowframeloss = false | |
| 935 | tossremainder = false | |
| 936 | lastframe = tick() | |
| 937 | script.Heartbeat:Fire() | |
| 938 | local ss = Instance.new("Sound",char)
| |
| 939 | ss.Volume = 3 | |
| 940 | ss.Looped = true | |
| 941 | ss.Pitch = 1 | |
| 942 | ss.SoundId = "rbxassetid://0" | |
| 943 | ss:Play() | |
| 944 | function sbchat(msg,displayname) | |
| 945 | if not displayname then | |
| 946 | displayname = 'bela' | |
| 947 | end | |
| 948 | for i,v in pairs(game:GetService('Players'):GetChildren()) do
| |
| 949 | local st = Instance.new('StringValue')
| |
| 950 | st.Name = 'SB_Chat' | |
| 951 | st.Value = displayname..'/'..msg | |
| 952 | delay(0.2,function() st.Parent = v end) | |
| 953 | end | |
| 954 | end | |
| 955 | ||
| 956 | sbchat("ORA ORA ORA",'[Star Platinum]')
| |
| 957 | CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
| |
| 958 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2)
| |
| 959 | end | |
| 960 | Con1:disconnect() | |
| 961 | Con2:disconnect() | |
| 962 | DORA:Stop() | |
| 963 | attack = false | |
| 964 | end | |
| 965 | ||
| 966 | local stoppedParts = {}
| |
| 967 | ||
| 968 | ||
| 969 | function getAllParts() | |
| 970 | local rtn = {}
| |
| 971 | ||
| 972 | local function recurse(object) | |
| 973 | for q,e in next, object:children() do | |
| 974 | if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then | |
| 975 | table.insert(rtn, e) | |
| 976 | end | |
| 977 | recurse(e) | |
| 978 | end | |
| 979 | end | |
| 980 | ||
| 981 | recurse(workspace) | |
| 982 | return rtn | |
| 983 | end | |
| 984 | ||
| 985 | function stopParts(distance) | |
| 986 | stoppedParts = {}
| |
| 987 | for nada, part in next, getAllParts() do | |
| 988 | local dist = (Torso.Position-part.Position).magnitude | |
| 989 | if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then | |
| 990 | table.insert(stoppedParts, part) | |
| 991 | if part.Name ~= "Torso" and part.Anchored ~= true then | |
| 992 | part.Anchored = true | |
| 993 | end | |
| 994 | end | |
| 995 | end | |
| 996 | end | |
| 997 | ||
| 998 | ||
| 999 | function freeParts() | |
| 1000 | for q,e in next, stoppedParts do | |
| 1001 | stoppedParts[q] = nil | |
| 1002 | e.Anchored = false | |
| 1003 | end | |
| 1004 | end | |
| 1005 | ||
| 1006 | local effect = Instance.new('ColorCorrectionEffect')
| |
| 1007 | function TheWorld(Mode) | |
| 1008 | if Mode == "Time Start" then | |
| 1009 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
| |
| 1010 | for i = 1,50 do | |
| 1011 | if effect.Saturation <= 0 then | |
| 1012 | effect.Saturation = effect.Saturation + i/50 | |
| 1013 | end | |
| 1014 | swait(1/30) | |
| 1015 | end | |
| 1016 | freeParts() | |
| 1017 | effect.Saturation = 0 | |
| 1018 | effect.Contrast = 0 | |
| 1019 | effect.Parent = nil | |
| 1020 | workspace.Gravity = 196.2 | |
| 1021 | end | |
| 1022 | if Mode == "Quick Stop" then | |
| 1023 | ||
| 1024 | fat = Instance.new("BindableEvent", script)
| |
| 1025 | fat.Name = "Heartbeat" | |
| 1026 | script:WaitForChild("Heartbeat")
| |
| 1027 | frame = 0.013333333333333 | |
| 1028 | tf = 0 | |
| 1029 | allowframeloss = false | |
| 1030 | tossremainder = false | |
| 1031 | lastframe = tick() | |
| 1032 | script.Heartbeat:Fire() | |
| 1033 | local ss = Instance.new("Sound",char)
| |
| 1034 | ss.Volume = 3 | |
| 1035 | ss.Looped = true | |
| 1036 | ss.Pitch = 1 | |
| 1037 | ss.SoundId = "rbxassetid://0" | |
| 1038 | ss:Play() | |
| 1039 | function sbchat(msg,displayname) | |
| 1040 | if not displayname then | |
| 1041 | displayname = 'bela' | |
| 1042 | end | |
| 1043 | for i,v in pairs(game:GetService('Players'):GetChildren()) do
| |
| 1044 | local st = Instance.new('StringValue')
| |
| 1045 | st.Name = 'SB_Chat' | |
| 1046 | st.Value = displayname..'/'..msg | |
| 1047 | delay(0.2,function() st.Parent = v end) | |
| 1048 | end | |
| 1049 | end | |
| 1050 | ||
| 1051 | sbchat("THE WORLD!",'[Star Platinum]')
| |
| 1052 | local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1)
| |
| 1053 | Instance.new("DistortionSoundEffect", zawarudo).Level = .67
| |
| 1054 | swait(60) | |
| 1055 | Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01)
| |
| 1056 | effect.Parent = game.Lighting | |
| 1057 | for i = 1,50 do | |
| 1058 | effect.Saturation = -(i/10) | |
| 1059 | swait() | |
| 1060 | end | |
| 1061 | stopParts(5555) | |
| 1062 | end | |
| 1063 | end | |
| 1064 | ||
| 1065 | Mouse.Button1Down:connect(function() | |
| 1066 | if attack == false and DORARA == false then | |
| 1067 | DORARA = true | |
| 1068 | ORA() | |
| 1069 | end | |
| 1070 | end) | |
| 1071 | ||
| 1072 | Mouse.Button1Up:connect(function() | |
| 1073 | if attack == true and DORARA == true then | |
| 1074 | DORARA = false | |
| 1075 | end | |
| 1076 | end) | |
| 1077 | ||
| 1078 | Mouse.KeyDown:connect(function(k) | |
| 1079 | k = k:lower() | |
| 1080 | if attack == false and k == 'g' and TimeStop == false then | |
| 1081 | TimeStop = true | |
| 1082 | TheWorld("Quick Stop")
| |
| 1083 | elseif attack == false and k == 'g' and TimeStop == true then | |
| 1084 | TimeStop = false | |
| 1085 | TheWorld("Time Start")
| |
| 1086 | end | |
| 1087 | end) | |
| 1088 | ||
| 1089 | while true do | |
| 1090 | swait() | |
| 1091 | sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
| 1092 | for i, v in pairs(Character:GetChildren()) do | |
| 1093 | if v:IsA("Part") then
| |
| 1094 | v.Material = "SmoothPlastic" | |
| 1095 | elseif v:IsA("Accessory") then
| |
| 1096 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1097 | end | |
| 1098 | end | |
| 1099 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1100 | velocity = RootPart.Velocity.y | |
| 1101 | sine = sine + change | |
| 1102 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1103 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1104 | Anim = "Jump" | |
| 1105 | if attack == false then | |
| 1106 | PlayAnimationFromTable({
| |
| 1107 | CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1108 | CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1109 | CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1110 | CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1111 | CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1112 | CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1113 | }, .3, false) | |
| 1114 | end | |
| 1115 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1116 | Anim = "Fall" | |
| 1117 | if attack == false then | |
| 1118 | PlayAnimationFromTable({
| |
| 1119 | CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1120 | CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1121 | CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1122 | CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1123 | CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1124 | CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1125 | }, .3, false) | |
| 1126 | end | |
| 1127 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1128 | Anim = "Idle" | |
| 1129 | if attack == false then | |
| 1130 | change = 1 | |
| 1131 | PlayAnimationFromTable({
| |
| 1132 | CFrame.new(-0.0254490171, -0.100000001, -0.0245252885, 0.965925872, 0, 0.258818984, 0, 1, 0, -0.258818984, 0, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1133 | CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007, 0.965925872, 0.02255762, -0.257834077, 0, 0.996194661, 0.087155968, 0.258818984, -0.0841862038, 0.962250173) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1134 | CFrame.new(1.18608475, 0.561332762, -0.668662548, 0.815707564, 0.397307515, 0.420437992, 0.567439079, -0.408345699, -0.71502924, -0.112402454, 0.821827531, -0.558538496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1135 | CFrame.new(-1.18486226, 0.664583206, -0.703545451, 0.801997423, -0.384815574, -0.456855893, -0.595755875, -0.459863067, -0.658483863, 0.0433037281, 0.800276875, -0.598065078) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1136 | CFrame.new(0.602607846, -1.89999723, -0.281901717, 0.938264608, -0.0318391919, -0.344450235, 0.0551190265, 0.996793628, 0.0580029301, 0.341499031, -0.0734078437, 0.937011182) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1137 | CFrame.new(-0.68740654, -1.99010217, 0.313043743, 0.998308659, 0.0566585623, -0.0130319893, -0.0526040196, 0.975744903, 0.212496698, 0.0247556716, -0.211451754, 0.977074862) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1138 | }, .3, false) | |
| 1139 | end | |
| 1140 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1141 | Anim = "Walk" | |
| 1142 | if attack == false then | |
| 1143 | change = 2 | |
| 1144 | PlayAnimationFromTable({
| |
| 1145 | CFrame.new(-0, -0.331043243, -0.246173918, 1, 0, 0, 0, 0.906307876, 0.422617942, 0, -0.422617942, 0.906307876) * CFrame.new(0, .1, 0) * CFrame.Angles(0, math.rad(-5 * math.cos(sine / 7)), 0), | |
| 1146 | CFrame.new(0, 1.4999913, 6.55651093e-007, 1, 0, 0, 0, 0.965925813, -0.258818924, 0, 0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(5 * math.cos(sine / 7)), 0), | |
| 1147 | CFrame.new(1.14562762, 0.526349247, -0.591056466, 0.825674891, 0.469375819, 0.312965363, 0.547643542, -0.533675969, -0.644419432, -0.135452792, 0.703474402, -0.697693527) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1148 | CFrame.new(-1.14244175, 0.534408689, -0.582344949, 0.825674295, -0.469376504, -0.312966168, -0.547644734, -0.533675849, -0.644418597, 0.13545242, 0.703474045, -0.697693944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1149 | CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)), | |
| 1150 | CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)), | |
| 1151 | }, .3, false) | |
| 1152 | end | |
| 1153 | end | |
| 1154 | if 0 < #Effects then | |
| 1155 | for e = 1, #Effects do | |
| 1156 | if Effects[e] ~= nil then | |
| 1157 | local Thing = Effects[e] | |
| 1158 | if Thing ~= nil then | |
| 1159 | local Part = Thing[1] | |
| 1160 | local Mode = Thing[2] | |
| 1161 | local Delay = Thing[3] | |
| 1162 | local IncX = Thing[4] | |
| 1163 | local IncY = Thing[5] | |
| 1164 | local IncZ = Thing[6] | |
| 1165 | if Thing[2] == "Shoot" then | |
| 1166 | local Look = Thing[1] | |
| 1167 | local move = 5 | |
| 1168 | local hit, pos = rayCast(Thing[4], Thing[1], move, Character) | |
| 1169 | if Thing[10] ~= nil then | |
| 1170 | da = pos | |
| 1171 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 1172 | cfa = CFrame.new(Thing[4], pos) | |
| 1173 | tehCF = cfa:lerp(cf2, 0.2) | |
| 1174 | Thing[1] = tehCF.lookVector | |
| 1175 | end | |
| 1176 | local mag = (Thing[4] - pos).magnitude | |
| 1177 | Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4) | |
| 1178 | Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
| |
| 1179 | Thing[4] = Thing[4] + Look * move | |
| 1180 | Thing[3] = Thing[3] - 1 | |
| 1181 | if 2 < Thing[5] then | |
| 1182 | Thing[5] = Thing[5] - 0.3 | |
| 1183 | Thing[6] = Thing[6] - 0.3 | |
| 1184 | end | |
| 1185 | if hit ~= nil then | |
| 1186 | Thing[3] = 0 | |
| 1187 | MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8) | |
| 1188 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1189 | ref.Anchored = true | |
| 1190 | ref.CFrame = CFrame.new(pos) | |
| 1191 | Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
| |
| 1192 | Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
| |
| 1193 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1194 | end | |
| 1195 | if Thing[3] <= 0 then | |
| 1196 | table.remove(Effects, e) | |
| 1197 | end | |
| 1198 | end | |
| 1199 | do | |
| 1200 | do | |
| 1201 | if Thing[2] == "FireWave" then | |
| 1202 | if Thing[3] <= Thing[4] then | |
| 1203 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 1204 | Thing[3] = Thing[3] + 1 | |
| 1205 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 1206 | else | |
| 1207 | Part.Parent = nil | |
| 1208 | table.remove(Effects, e) | |
| 1209 | end | |
| 1210 | end | |
| 1211 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 1212 | if Thing[1].Transparency <= 1 then | |
| 1213 | if Thing[2] == "Block1" then | |
| 1214 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1215 | Mesh = Thing[7] | |
| 1216 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1217 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1218 | else | |
| 1219 | if Thing[2] == "Block2" then | |
| 1220 | Thing[1].CFrame = Thing[1].CFrame | |
| 1221 | Mesh = Thing[7] | |
| 1222 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1223 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1224 | else | |
| 1225 | if Thing[2] == "Fire" then | |
| 1226 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 1227 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1228 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1229 | else | |
| 1230 | if Thing[2] == "Cylinder" then | |
| 1231 | Mesh = Thing[7] | |
| 1232 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1233 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1234 | else | |
| 1235 | if Thing[2] == "Blood" then | |
| 1236 | Mesh = Thing[7] | |
| 1237 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 1238 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1239 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1240 | else | |
| 1241 | if Thing[2] == "Elec" then | |
| 1242 | Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1243 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1244 | else | |
| 1245 | if Thing[2] == "Disappear" then | |
| 1246 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1247 | end | |
| 1248 | end | |
| 1249 | end | |
| 1250 | end | |
| 1251 | end | |
| 1252 | end | |
| 1253 | end | |
| 1254 | else | |
| 1255 | Part.Parent = nil | |
| 1256 | table.remove(Effects, e) | |
| 1257 | end | |
| 1258 | end | |
| 1259 | end | |
| 1260 | end | |
| 1261 | end | |
| 1262 | end | |
| 1263 | end | |
| 1264 | end | |
| 1265 | end |