SHOW:
|
|
- or go back to the newest paste.
1 | --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- (Edit by kiukiubol & lilh3) | |
2 | wait(1 / 60) | |
3 | p = game.Players.LocalPlayer | |
4 | char = p.Character | |
5 | torso = char.Torso | |
6 | neck = char.Torso.Neck | |
7 | hum = char.Humanoid | |
8 | hum.MaxHealth = 75000 | |
9 | wait() | |
10 | hum.Health =hum.MaxHealth | |
11 | char.Head.face.Texture = "rbxassetid://405587215" | |
12 | ||
13 | function startup() | |
14 | coroutine.resume(coroutine.create(function() | |
15 | local m = Instance.new("Model", char) | |
16 | m.Name = "* C" | |
17 | local chat = Instance.new("Part", m) | |
18 | chat.TopSurface = "Smooth" | |
19 | chat.BottomSurface = "Smooth" | |
20 | chat.Name = "Head" | |
21 | chat.FormFactor = "Custom" | |
22 | chat.Size = Vector3.new(0.05, 0.05, 0.1) | |
23 | chat.Transparency = 0.9 | |
24 | chat.CanCollide = false | |
25 | local Weld7 = Instance.new("Weld", char) | |
26 | Weld7.Part0 = char.Head | |
27 | Weld7.Part1 = chat | |
28 | Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
29 | local cy7 = Instance.new("BlockMesh", chat) | |
30 | local h = Instance.new("Humanoid", m) | |
31 | h.MaxHealth = 0 | |
32 | m.Name = "Star Platinum" | |
33 | end)) | |
34 | end | |
35 | ||
36 | - | z = Instance.new("sound", torso) |
36 | + | |
37 | - | z.SoundId = "rbxassetid://264396581" -- Put Music ID Here. |
37 | + | |
38 | - | z.Looped = true |
38 | + | |
39 | - | z.Volume = 1 |
39 | + | |
40 | - | wait(.1) |
40 | + | |
41 | - | z:Play() |
41 | + | |
42 | ||
43 | shirt = Instance.new("Shirt", char) | |
44 | shirt.Name = "Shirt" | |
45 | pants = Instance.new("Pants", char) | |
46 | pants.Name = "Pants" | |
47 | char.Shirt.ShirtTemplate = "rbxassetid://496506720" | |
48 | char.Pants.PantsTemplate = "rbxassetid://496512137" | |
49 | ||
50 | Hat = Instance.new("Model") | |
51 | Hat.Parent = char | |
52 | Hat.Name = "Hat" | |
53 | rh = Instance.new("Part") | |
54 | rh.Parent = Hat | |
55 | rh.BrickColor = BrickColor.new("Really black") | |
56 | rh.Locked = true | |
57 | rh.CanCollide = false | |
58 | mesh = Instance.new("SpecialMesh") | |
59 | rh.formFactor = "Symmetric" | |
60 | mesh.MeshType = "FileMesh" | |
61 | mesh.MeshId = "rbxassetid://439736904" | |
62 | mesh.Parent = rh | |
63 | local weld = Instance.new("Weld") | |
64 | weld.Parent = rh | |
65 | weld.Part0 = rh | |
66 | weld.Part1 =char.Head | |
67 | weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0) | |
68 | mesh.Scale = Vector3.new(0.002,0.002, 0.002) | |
69 | ||
70 | Effects = { } | |
71 | local Player = game.Players.localPlayer | |
72 | local Character = Player.Character | |
73 | local Humanoid = Character.Humanoid | |
74 | Humanoid.WalkSpeed = 20 | |
75 | local Mouse = Player:GetMouse() | |
76 | local LeftArm = Character["Left Arm"] | |
77 | local RightArm = Character["Right Arm"] | |
78 | local LeftLeg = Character["Left Leg"] | |
79 | local RightLeg = Character["Right Leg"] | |
80 | local Head = Character.Head | |
81 | local Torso = Character.Torso | |
82 | local Camera = game.Workspace.CurrentCamera | |
83 | local RootPart = Character.HumanoidRootPart | |
84 | local RootJoint = RootPart.RootJoint | |
85 | local attack = false | |
86 | local Anim = 'Idle' | |
87 | local attacktype = 1 | |
88 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
89 | local velocity = RootPart.Velocity.y | |
90 | local sine = 0 | |
91 | local change = 1 | |
92 | local Create = LoadLibrary("RbxUtility").Create | |
93 | local TimeStop = false | |
94 | ||
95 | local m = Create("Model"){ | |
96 | Parent = Character, | |
97 | Name = "WeaponModel", | |
98 | } | |
99 | ||
100 | Humanoid.Animator.Parent = nil | |
101 | Character.Animate.Parent = nil | |
102 | ||
103 | local newMotor = function(part0, part1, c0, c1) | |
104 | local w = Create('Motor'){ | |
105 | Parent = part0, | |
106 | Part0 = part0, | |
107 | Part1 = part1, | |
108 | C0 = c0, | |
109 | C1 = c1, | |
110 | } | |
111 | return w | |
112 | end | |
113 | ||
114 | function clerp(a, b, t) | |
115 | return a:lerp(b, t) | |
116 | end | |
117 | ||
118 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
119 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
120 | ||
121 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
122 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
123 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
124 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
125 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
126 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
127 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
128 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
129 | ||
130 | local rarmc1 = RW.C1 | |
131 | local larmc1 = LW.C1 | |
132 | local rlegc1 = RH.C1 | |
133 | local llegc1 = LH.C1 | |
134 | ||
135 | local resetc1 = false | |
136 | ||
137 | function PlayAnimationFromTable(table, speed, bool) | |
138 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
139 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
140 | RW.C0 = clerp(RW.C0, table[3], speed) | |
141 | LW.C0 = clerp(LW.C0, table[4], speed) | |
142 | RH.C0 = clerp(RH.C0, table[5], speed) | |
143 | LH.C0 = clerp(LH.C0, table[6], speed) | |
144 | if bool == true then | |
145 | if resetc1 == false then | |
146 | resetc1 = true | |
147 | RootJoint.C1 = RootJoint.C1 | |
148 | Torso.Neck.C1 = Torso.Neck.C1 | |
149 | RW.C1 = rarmc1 | |
150 | LW.C1 = larmc1 | |
151 | RH.C1 = rlegc1 | |
152 | LH.C1 = llegc1 | |
153 | end | |
154 | end | |
155 | end | |
156 | ||
157 | ArtificialHB = Create("BindableEvent", script){ | |
158 | Parent = script, | |
159 | Name = "Heartbeat", | |
160 | } | |
161 | ||
162 | script:WaitForChild("Heartbeat") | |
163 | ||
164 | frame = 1 / 35 | |
165 | tf = 0 | |
166 | allowframeloss = false | |
167 | tossremainder = false | |
168 | lastframe = tick() | |
169 | script.Heartbeat:Fire() | |
170 | ||
171 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
172 | tf = tf + s | |
173 | if tf >= frame then | |
174 | if allowframeloss then | |
175 | script.Heartbeat:Fire() | |
176 | lastframe = tick() | |
177 | else | |
178 | for i = 1, math.floor(tf / frame) do | |
179 | script.Heartbeat:Fire() | |
180 | end | |
181 | lastframe = tick() | |
182 | end | |
183 | if tossremainder then | |
184 | tf = 0 | |
185 | else | |
186 | tf = tf - frame * math.floor(tf / frame) | |
187 | end | |
188 | end | |
189 | end) | |
190 | ||
191 | function swait(num) | |
192 | if num == 0 or num == nil then | |
193 | ArtificialHB.Event:wait() | |
194 | else | |
195 | for i = 0, num do | |
196 | ArtificialHB.Event:wait() | |
197 | end | |
198 | end | |
199 | end | |
200 | ||
201 | function RemoveOutlines(part) | |
202 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
203 | end | |
204 | ||
205 | CFuncs = { | |
206 | Part = { | |
207 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
208 | local Part = Create("Part"){ | |
209 | Parent = Parent, | |
210 | Reflectance = Reflectance, | |
211 | Transparency = Transparency, | |
212 | CanCollide = false, | |
213 | Locked = true, | |
214 | BrickColor = BrickColor.new(tostring(BColor)), | |
215 | Name = Name, | |
216 | Size = Size, | |
217 | Material = Material, | |
218 | } | |
219 | RemoveOutlines(Part) | |
220 | return Part | |
221 | end; | |
222 | }; | |
223 | ||
224 | Mesh = { | |
225 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
226 | local Msh = Create(Mesh){ | |
227 | Parent = Part, | |
228 | Offset = OffSet, | |
229 | Scale = Scale, | |
230 | } | |
231 | if Mesh == "SpecialMesh" then | |
232 | Msh.MeshType = MeshType | |
233 | Msh.MeshId = MeshId | |
234 | end | |
235 | return Msh | |
236 | end; | |
237 | }; | |
238 | ||
239 | Weld = { | |
240 | Create = function(Parent, Part0, Part1, C0, C1) | |
241 | local Weld = Create("Weld"){ | |
242 | Parent = Parent, | |
243 | Part0 = Part0, | |
244 | Part1 = Part1, | |
245 | C0 = C0, | |
246 | C1 = C1, | |
247 | } | |
248 | return Weld | |
249 | end; | |
250 | }; | |
251 | ||
252 | Sound = { | |
253 | Create = function(id, par, vol, pit) | |
254 | local Sound = Create("Sound"){ | |
255 | Volume = vol, | |
256 | Pitch = pit or 1, | |
257 | SoundId = "rbxassetid://" .. id, | |
258 | Parent = par or workspace, | |
259 | } | |
260 | Sound:play() | |
261 | return Sound | |
262 | end; | |
263 | }; | |
264 | ||
265 | Decal = { | |
266 | Create = function(Color, Texture, Transparency, Name, Parent) | |
267 | local Decal = Create("Decal"){ | |
268 | Color3 = Color, | |
269 | Texture = "rbxassetid://" .. Texture, | |
270 | Transparency = Transparency, | |
271 | Name = Name, | |
272 | Parent = Parent, | |
273 | } | |
274 | return Decal | |
275 | end; | |
276 | }; | |
277 | ||
278 | BillboardGui = { | |
279 | Create = function(Parent, Image, Position, Size) | |
280 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
281 | BillPar.CFrame = CFrame.new(Position) | |
282 | local Bill = Create("BillboardGui"){ | |
283 | Parent = BillPar, | |
284 | Adornee = BillPar, | |
285 | Size = UDim2.new(1, 0, 1, 0), | |
286 | SizeOffset = Vector2.new(Size, Size), | |
287 | } | |
288 | local d = Create("ImageLabel", Bill){ | |
289 | Parent = Bill, | |
290 | BackgroundTransparency = 1, | |
291 | Size = UDim2.new(1, 0, 1, 0), | |
292 | Image = "rbxassetid://" .. Image, | |
293 | } | |
294 | return BillPar | |
295 | end | |
296 | }; | |
297 | ||
298 | ParticleEmitter = { | |
299 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
300 | local Particle = Create("ParticleEmitter"){ | |
301 | Parent = Parent, | |
302 | Color = ColorSequence.new(Color1, Color2), | |
303 | LightEmission = LightEmission, | |
304 | Size = Size, | |
305 | Texture = Texture, | |
306 | Transparency = Transparency, | |
307 | ZOffset = ZOffset, | |
308 | Acceleration = Accel, | |
309 | Drag = Drag, | |
310 | LockedToPart = LockedToPart, | |
311 | VelocityInheritance = VelocityInheritance, | |
312 | EmissionDirection = EmissionDirection, | |
313 | Enabled = Enabled, | |
314 | Lifetime = LifeTime, | |
315 | Rate = Rate, | |
316 | Rotation = Rotation, | |
317 | RotSpeed = RotSpeed, | |
318 | Speed = Speed, | |
319 | VelocitySpread = VelocitySpread, | |
320 | } | |
321 | return Particle | |
322 | end; | |
323 | }; | |
324 | ||
325 | CreateTemplate = { | |
326 | ||
327 | }; | |
328 | } | |
329 | ||
330 | function rayCast(Position, Direction, Range, Ignore) | |
331 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
332 | end | |
333 | ||
334 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
335 | if SinglePlayer then | |
336 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
337 | end | |
338 | local List = {} | |
339 | for i, v in pairs(workspace:GetChildren()) do | |
340 | if v:IsA("Model") then | |
341 | if v:findFirstChild("Torso") then | |
342 | if v ~= Character then | |
343 | if (v.Torso.Position - Position).magnitude <= Distance then | |
344 | table.insert(List, v) | |
345 | end | |
346 | end | |
347 | end | |
348 | end | |
349 | end | |
350 | return List | |
351 | end | |
352 | ||
353 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
354 | if hit.Parent == nil then | |
355 | return | |
356 | end | |
357 | local h = hit.Parent:FindFirstChild("Humanoid") | |
358 | for _, v in pairs(hit.Parent:children()) do | |
359 | if v:IsA("Humanoid") then | |
360 | h = v | |
361 | end | |
362 | end | |
363 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
364 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
365 | if hit.Parent.DebounceHit.Value == true then | |
366 | return | |
367 | end | |
368 | end | |
369 | local c = Create("ObjectValue"){ | |
370 | Name = "creator", | |
371 | Value = game:service("Players").LocalPlayer, | |
372 | Parent = h, | |
373 | } | |
374 | game:GetService("Debris"):AddItem(c, .5) | |
375 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
376 | local Damage = math.random(minim, maxim) | |
377 | local blocked = false | |
378 | local block = hit.Parent:findFirstChild("Block") | |
379 | if block ~= nil then | |
380 | if block.className == "IntValue" then | |
381 | if block.Value > 0 then | |
382 | blocked = true | |
383 | block.Value = block.Value - 1 | |
384 | print(block.Value) | |
385 | end | |
386 | end | |
387 | end | |
388 | if TimeStop == false then | |
389 | h.Health = h.Health - Damage | |
390 | 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) | |
391 | elseif TimeStop == true then | |
392 | repeat wait() until TimeStop == false | |
393 | h.Health = h.Health - (Damage / 2) | |
394 | 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) | |
395 | end | |
396 | if Type == "Knockdown" then | |
397 | local hum = hit.Parent.Humanoid | |
398 | hum.PlatformStand = true | |
399 | coroutine.resume(coroutine.create(function(HHumanoid) | |
400 | swait(1) | |
401 | HHumanoid.PlatformStand = false | |
402 | end), hum) | |
403 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
404 | local bodvol = Create("BodyVelocity"){ | |
405 | velocity = angle * knockback, | |
406 | P = 5000, | |
407 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
408 | Parent = hit, | |
409 | } | |
410 | local rl = Create("BodyAngularVelocity"){ | |
411 | P = 3000, | |
412 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
413 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
414 | Parent = hit, | |
415 | } | |
416 | game:GetService("Debris"):AddItem(bodvol, .5) | |
417 | game:GetService("Debris"):AddItem(rl, .5) | |
418 | elseif Type == "Normal" then | |
419 | local vp = Create("BodyVelocity"){ | |
420 | P = 500, | |
421 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
422 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
423 | } | |
424 | if knockback > 0 then | |
425 | vp.Parent = hit.Parent.Torso | |
426 | end | |
427 | game:GetService("Debris"):AddItem(vp, .5) | |
428 | elseif Type == "Up" then | |
429 | local bodyVelocity = Create("BodyVelocity"){ | |
430 | velocity = Vector3.new(0, 20, 0), | |
431 | P = 5000, | |
432 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
433 | Parent = hit, | |
434 | } | |
435 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
436 | elseif Type == "DarkUp" then | |
437 | coroutine.resume(coroutine.create(function() | |
438 | for i = 0, 1, 0.1 do | |
439 | swait() | |
440 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
441 | end | |
442 | end)) | |
443 | local bodyVelocity = Create("BodyVelocity"){ | |
444 | velocity = Vector3.new(0, 20, 0), | |
445 | P = 5000, | |
446 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
447 | Parent = hit, | |
448 | } | |
449 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
450 | elseif Type == "Snare" then | |
451 | local bp = Create("BodyPosition"){ | |
452 | P = 2000, | |
453 | D = 100, | |
454 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
455 | position = hit.Parent.Torso.Position, | |
456 | Parent = hit.Parent.Torso, | |
457 | } | |
458 | game:GetService("Debris"):AddItem(bp, 1) | |
459 | elseif Type == "Freeze" then | |
460 | local BodPos = Create("BodyPosition"){ | |
461 | P = 50000, | |
462 | D = 1000, | |
463 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
464 | position = hit.Parent.Torso.Position, | |
465 | Parent = hit.Parent.Torso, | |
466 | } | |
467 | local BodGy = Create("BodyGyro") { | |
468 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
469 | P = 20e+003, | |
470 | Parent = hit.Parent.Torso, | |
471 | cframe = hit.Parent.Torso.CFrame, | |
472 | } | |
473 | hit.Parent.Torso.Anchored = true | |
474 | coroutine.resume(coroutine.create(function(Part) | |
475 | swait(1.5) | |
476 | Part.Anchored = false | |
477 | end), hit.Parent.Torso) | |
478 | game:GetService("Debris"):AddItem(BodPos, 3) | |
479 | game:GetService("Debris"):AddItem(BodGy, 3) | |
480 | end | |
481 | local debounce = Create("BoolValue"){ | |
482 | Name = "DebounceHit", | |
483 | Parent = hit.Parent, | |
484 | Value = true, | |
485 | } | |
486 | game:GetService("Debris"):AddItem(debounce, Delay) | |
487 | c = Create("ObjectValue"){ | |
488 | Name = "creator", | |
489 | Value = Player, | |
490 | Parent = h, | |
491 | } | |
492 | game:GetService("Debris"):AddItem(c, .5) | |
493 | end | |
494 | end | |
495 | ||
496 | function ShowDamage(Pos, Text, Time, Color) | |
497 | local Rate = (1 / 30) | |
498 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
499 | local Text = (Text or "") | |
500 | local Time = (Time or 2) | |
501 | local Color = (Color or Color3.new(1, 0, 1)) | |
502 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
503 | EffectPart.Anchored = true | |
504 | local BillboardGui = Create("BillboardGui"){ | |
505 | Size = UDim2.new(3, 0, 3, 0), | |
506 | Adornee = EffectPart, | |
507 | Parent = EffectPart, | |
508 | } | |
509 | local TextLabel = Create("TextLabel"){ | |
510 | BackgroundTransparency = 1, | |
511 | Size = UDim2.new(1, 0, 1, 0), | |
512 | Text = Text, | |
513 | Font = "SciFi", | |
514 | TextColor3 = Color, | |
515 | TextScaled = true, | |
516 | Parent = BillboardGui, | |
517 | } | |
518 | game.Debris:AddItem(EffectPart, (Time)) | |
519 | EffectPart.Parent = game:GetService("Workspace") | |
520 | delay(0, function() | |
521 | local Frames = (Time / Rate) | |
522 | for Frame = 1, Frames do | |
523 | wait(Rate) | |
524 | local Percent = (Frame / Frames) | |
525 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
526 | TextLabel.TextTransparency = Percent | |
527 | end | |
528 | if EffectPart and EffectPart.Parent then | |
529 | EffectPart:Destroy() | |
530 | end | |
531 | end) | |
532 | end | |
533 | ||
534 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
535 | for _, c in pairs(workspace:children()) do | |
536 | local hum = c:findFirstChild("Humanoid") | |
537 | if hum ~= nil then | |
538 | local head = c:findFirstChild("Torso") | |
539 | if head ~= nil then | |
540 | local targ = head.Position - Part.Position | |
541 | local mag = targ.magnitude | |
542 | if mag <= Magnitude and c.Name ~= Player.Name then | |
543 | for i = 1, 10 do | |
544 | Effects.Elect.Create(head.CFrame, 10, 10, 10) | |
545 | end | |
546 | CFuncs.Sound.Create("0", head, 1, 1) | |
547 | Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05) | |
548 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch) | |
549 | end | |
550 | end | |
551 | end | |
552 | end | |
553 | end | |
554 | ||
555 | HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977)) | |
556 | 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)) | |
557 | HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109)) | |
558 | 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)) | |
559 | HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977)) | |
560 | 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)) | |
561 | HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109)) | |
562 | 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)) | |
563 | sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
564 | sref.Anchored = true | |
565 | ||
566 | EffectModel = Create("Model"){ | |
567 | Parent = Character, | |
568 | Name = "Effects", | |
569 | } | |
570 | ||
571 | Effects = { | |
572 | Block = { | |
573 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
574 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
575 | prt.Anchored = true | |
576 | prt.CFrame = cframe | |
577 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
578 | game:GetService("Debris"):AddItem(prt, 10) | |
579 | if Type == 1 or Type == nil then | |
580 | table.insert(Effects, { | |
581 | prt, | |
582 | "Block1", | |
583 | delay, | |
584 | x3, | |
585 | y3, | |
586 | z3, | |
587 | msh | |
588 | }) | |
589 | elseif Type == 2 then | |
590 | table.insert(Effects, { | |
591 | prt, | |
592 | "Block2", | |
593 | delay, | |
594 | x3, | |
595 | y3, | |
596 | z3, | |
597 | msh | |
598 | }) | |
599 | end | |
600 | end; | |
601 | }; | |
602 | ||
603 | Cylinder = { | |
604 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
605 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
606 | prt.Anchored = true | |
607 | prt.CFrame = cframe | |
608 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
609 | game:GetService("Debris"):AddItem(prt, 2) | |
610 | table.insert(Effects, { | |
611 | prt, | |
612 | "Cylinder", | |
613 | delay, | |
614 | x3, | |
615 | y3, | |
616 | z3, | |
617 | msh | |
618 | }) | |
619 | end; | |
620 | }; | |
621 | ||
622 | Head = { | |
623 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
624 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
625 | prt.Anchored = true | |
626 | prt.CFrame = cframe | |
627 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
628 | game:GetService("Debris"):AddItem(prt, 10) | |
629 | table.insert(Effects, { | |
630 | prt, | |
631 | "Cylinder", | |
632 | delay, | |
633 | x3, | |
634 | y3, | |
635 | z3, | |
636 | msh | |
637 | }) | |
638 | end; | |
639 | }; | |
640 | ||
641 | Sphere = { | |
642 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
643 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
644 | prt.Anchored = true | |
645 | prt.CFrame = cframe | |
646 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
647 | game:GetService("Debris"):AddItem(prt, 10) | |
648 | table.insert(Effects, { | |
649 | prt, | |
650 | "Cylinder", | |
651 | delay, | |
652 | x3, | |
653 | y3, | |
654 | z3, | |
655 | msh | |
656 | }) | |
657 | end; | |
658 | }; | |
659 | ||
660 | Elect = { | |
661 | Create = function(cff, x, y, z) | |
662 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1)) | |
663 | prt.Anchored = true | |
664 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
665 | prt.CFrame = CFrame.new(prt.Position) | |
666 | game:GetService("Debris"):AddItem(prt, 2) | |
667 | local xval = math.random() / 2 | |
668 | local yval = math.random() / 2 | |
669 | local zval = math.random() / 2 | |
670 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
671 | table.insert(Effects, { | |
672 | prt, | |
673 | "Elec", | |
674 | 0.1, | |
675 | x, | |
676 | y, | |
677 | z, | |
678 | xval, | |
679 | yval, | |
680 | zval | |
681 | }) | |
682 | end; | |
683 | ||
684 | }; | |
685 | ||
686 | Ring = { | |
687 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
688 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
689 | prt.Anchored = true | |
690 | prt.CFrame = cframe | |
691 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
692 | game:GetService("Debris"):AddItem(prt, 10) | |
693 | table.insert(Effects, { | |
694 | prt, | |
695 | "Cylinder", | |
696 | delay, | |
697 | x3, | |
698 | y3, | |
699 | z3, | |
700 | msh | |
701 | }) | |
702 | end; | |
703 | }; | |
704 | ||
705 | ||
706 | Wave = { | |
707 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
708 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
709 | prt.Anchored = true | |
710 | prt.CFrame = cframe | |
711 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
712 | game:GetService("Debris"):AddItem(prt, 10) | |
713 | table.insert(Effects, { | |
714 | prt, | |
715 | "Cylinder", | |
716 | delay, | |
717 | x3, | |
718 | y3, | |
719 | z3, | |
720 | msh | |
721 | }) | |
722 | end; | |
723 | }; | |
724 | ||
725 | Break = { | |
726 | Create = function(brickcolor, cframe, x1, y1, z1) | |
727 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
728 | prt.Anchored = true | |
729 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
730 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
731 | local num = math.random(10, 50) / 1000 | |
732 | game:GetService("Debris"):AddItem(prt, 10) | |
733 | table.insert(Effects, { | |
734 | prt, | |
735 | "Shatter", | |
736 | num, | |
737 | prt.CFrame, | |
738 | math.random() - math.random(), | |
739 | 0, | |
740 | math.random(50, 100) / 100 | |
741 | }) | |
742 | end; | |
743 | }; | |
744 | ||
745 | Fire = { | |
746 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
747 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
748 | prt.Anchored = true | |
749 | prt.CFrame = cframe | |
750 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
751 | game:GetService("Debris"):AddItem(prt, 10) | |
752 | table.insert(Effects, { | |
753 | prt, | |
754 | "Fire", | |
755 | delay, | |
756 | 1, | |
757 | 1, | |
758 | 1, | |
759 | msh | |
760 | }) | |
761 | end; | |
762 | }; | |
763 | ||
764 | FireWave = { | |
765 | Create = function(brickcolor, cframe, x1, y1, z1) | |
766 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
767 | prt.Anchored = true | |
768 | prt.CFrame = cframe | |
769 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
770 | local d = Create("Decal"){ | |
771 | Parent = prt, | |
772 | Texture = "rbxassetid://26356434", | |
773 | Face = "Top", | |
774 | } | |
775 | local d = Create("Decal"){ | |
776 | Parent = prt, | |
777 | Texture = "rbxassetid://26356434", | |
778 | Face = "Bottom", | |
779 | } | |
780 | game:GetService("Debris"):AddItem(prt, 10) | |
781 | table.insert(Effects, { | |
782 | prt, | |
783 | "FireWave", | |
784 | 1, | |
785 | 30, | |
786 | math.random(400, 600) / 100, | |
787 | msh | |
788 | }) | |
789 | end; | |
790 | }; | |
791 | ||
792 | Lightning = { | |
793 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
794 | local magz = (p0 - p1).magnitude | |
795 | local curpos = p0 | |
796 | local trz = { | |
797 | -ofs, | |
798 | ofs | |
799 | } | |
800 | for i = 1, tym do | |
801 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
802 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
803 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
804 | li.Material = "Neon" | |
805 | if tym == i then | |
806 | local magz2 = (curpos - p1).magnitude | |
807 | li.Size = Vector3.new(th, th, magz2) | |
808 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
809 | table.insert(Effects, { | |
810 | li, | |
811 | "Disappear", | |
812 | last | |
813 | }) | |
814 | else | |
815 | do | |
816 | do | |
817 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
818 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
819 | game.Debris:AddItem(li, 10) | |
820 | table.insert(Effects, { | |
821 | li, | |
822 | "Disappear", | |
823 | last | |
824 | }) | |
825 | end | |
826 | end | |
827 | end | |
828 | end | |
829 | end | |
830 | }; | |
831 | ||
832 | EffectTemplate = { | |
833 | ||
834 | }; | |
835 | } | |
836 | ||
837 | local DORARA = false | |
838 | ||
839 | function ORA() | |
840 | attack = true | |
841 | for i = 0, 1, 0.2 do | |
842 | swait() | |
843 | PlayAnimationFromTable({ | |
844 | 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), | |
845 | 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), | |
846 | 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), | |
847 | 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), | |
848 | 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), | |
849 | 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), | |
850 | }, .3, false) | |
851 | end | |
852 | local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1) | |
853 | Instance.new("DistortionSoundEffect", DORA).Level = .45 | |
854 | DORA.Looped = true | |
855 | local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end) | |
856 | local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end) | |
857 | while DORARA == true do | |
858 | RootPart.Velocity = RootPart.CFrame.lookVector * 5 | |
859 | for i = 0, 1, 0.7 do | |
860 | swait() | |
861 | Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4) | |
862 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15) | |
863 | PlayAnimationFromTable({ | |
864 | 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), | |
865 | 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), | |
866 | 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), | |
867 | 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), | |
868 | 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), | |
869 | 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), | |
870 | }, .9, false) | |
871 | end | |
872 | CFuncs.Sound.Create("200632136", HitboxL, 1, 1) | |
873 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15) | |
874 | RootPart.Velocity = RootPart.CFrame.lookVector * 5 | |
875 | for i = 0, 1, 0.7 do | |
876 | swait() | |
877 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2) | |
878 | PlayAnimationFromTable({ | |
879 | 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), | |
880 | 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), | |
881 | 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), | |
882 | 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), | |
883 | 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), | |
884 | 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), | |
885 | }, .9, false) | |
886 | end | |
887 | ||
888 | fat = Instance.new("BindableEvent", script) | |
889 | fat.Name = "Heartbeat" | |
890 | script:WaitForChild("Heartbeat") | |
891 | frame = 0.013333333333333 | |
892 | tf = 0 | |
893 | allowframeloss = false | |
894 | tossremainder = false | |
895 | lastframe = tick() | |
896 | script.Heartbeat:Fire() | |
897 | local ss = Instance.new("Sound",char) | |
898 | ss.Volume = 3 | |
899 | ss.Looped = true | |
900 | ss.Pitch = 1 | |
901 | ss.SoundId = "rbxassetid://0" | |
902 | ss:Play() | |
903 | function sbchat(msg,displayname) | |
904 | if not displayname then | |
905 | displayname = 'bela' | |
906 | end | |
907 | for i,v in pairs(game:GetService('Players'):GetChildren()) do | |
908 | local st = Instance.new('StringValue') | |
909 | st.Name = 'SB_Chat' | |
910 | st.Value = displayname..'/'..msg | |
911 | delay(0.2,function() st.Parent = v end) | |
912 | end | |
913 | end | |
914 | ||
915 | sbchat("ORA ORA ORA",'[Star Platinum]') | |
916 | CFuncs.Sound.Create("200632136", HitboxR, 1, 1) | |
917 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2) | |
918 | end | |
919 | Con1:disconnect() | |
920 | Con2:disconnect() | |
921 | DORA:Stop() | |
922 | attack = false | |
923 | end | |
924 | ||
925 | local stoppedParts = {} | |
926 | ||
927 | ||
928 | function getAllParts() | |
929 | local rtn = {} | |
930 | ||
931 | local function recurse(object) | |
932 | for q,e in next, object:children() do | |
933 | if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then | |
934 | table.insert(rtn, e) | |
935 | end | |
936 | recurse(e) | |
937 | end | |
938 | end | |
939 | ||
940 | recurse(workspace) | |
941 | return rtn | |
942 | end | |
943 | ||
944 | function stopParts(distance) | |
945 | stoppedParts = {} | |
946 | for nada, part in next, getAllParts() do | |
947 | local dist = (Torso.Position-part.Position).magnitude | |
948 | if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then | |
949 | table.insert(stoppedParts, part) | |
950 | if part.Name ~= "Torso" and part.Anchored ~= true then | |
951 | part.Anchored = true | |
952 | end | |
953 | end | |
954 | end | |
955 | end | |
956 | ||
957 | ||
958 | function freeParts() | |
959 | for q,e in next, stoppedParts do | |
960 | stoppedParts[q] = nil | |
961 | e.Anchored = false | |
962 | end | |
963 | end | |
964 | ||
965 | local effect = Instance.new('ColorCorrectionEffect') | |
966 | function TheWorld(Mode) | |
967 | if Mode == "Time Start" then | |
968 | Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15) | |
969 | for i = 1,50 do | |
970 | if effect.Saturation <= 0 then | |
971 | effect.Saturation = effect.Saturation + i/50 | |
972 | end | |
973 | swait(1/30) | |
974 | end | |
975 | freeParts() | |
976 | effect.Saturation = 0 | |
977 | effect.Contrast = 0 | |
978 | effect.Parent = nil | |
979 | workspace.Gravity = 196.2 | |
980 | end | |
981 | if Mode == "Quick Stop" then | |
982 | ||
983 | fat = Instance.new("BindableEvent", script) | |
984 | fat.Name = "Heartbeat" | |
985 | script:WaitForChild("Heartbeat") | |
986 | frame = 0.013333333333333 | |
987 | tf = 0 | |
988 | allowframeloss = false | |
989 | tossremainder = false | |
990 | lastframe = tick() | |
991 | script.Heartbeat:Fire() | |
992 | local ss = Instance.new("Sound",char) | |
993 | ss.Volume = 3 | |
994 | ss.Looped = true | |
995 | ss.Pitch = 1 | |
996 | ss.SoundId = "rbxassetid://0" | |
997 | ss:Play() | |
998 | function sbchat(msg,displayname) | |
999 | if not displayname then | |
1000 | displayname = 'bela' | |
1001 | end | |
1002 | for i,v in pairs(game:GetService('Players'):GetChildren()) do | |
1003 | local st = Instance.new('StringValue') | |
1004 | st.Name = 'SB_Chat' | |
1005 | st.Value = displayname..'/'..msg | |
1006 | delay(0.2,function() st.Parent = v end) | |
1007 | end | |
1008 | end | |
1009 | ||
1010 | sbchat("THE WORLD!",'[Star Platinum]') | |
1011 | local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1) | |
1012 | Instance.new("DistortionSoundEffect", zawarudo).Level = .67 | |
1013 | swait(60) | |
1014 | Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01) | |
1015 | effect.Parent = game.Lighting | |
1016 | for i = 1,50 do | |
1017 | effect.Saturation = -(i/10) | |
1018 | swait() | |
1019 | end | |
1020 | stopParts(5555) | |
1021 | end | |
1022 | end | |
1023 | ||
1024 | Mouse.Button1Down:connect(function() | |
1025 | if attack == false and DORARA == false then | |
1026 | DORARA = true | |
1027 | ORA() | |
1028 | end | |
1029 | end) | |
1030 | ||
1031 | Mouse.Button1Up:connect(function() | |
1032 | if attack == true and DORARA == true then | |
1033 | DORARA = false | |
1034 | end | |
1035 | end) | |
1036 | ||
1037 | Mouse.KeyDown:connect(function(k) | |
1038 | k = k:lower() | |
1039 | if attack == false and k == 'g' and TimeStop == false then | |
1040 | TimeStop = true | |
1041 | TheWorld("Quick Stop") | |
1042 | elseif attack == false and k == 'g' and TimeStop == true then | |
1043 | TimeStop = false | |
1044 | TheWorld("Time Start") | |
1045 | end | |
1046 | end) | |
1047 | ||
1048 | while true do | |
1049 | swait() | |
1050 | sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
1051 | for i, v in pairs(Character:GetChildren()) do | |
1052 | if v:IsA("Part") then | |
1053 | v.Material = "SmoothPlastic" | |
1054 | elseif v:IsA("Accessory") then | |
1055 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1056 | end | |
1057 | end | |
1058 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1059 | velocity = RootPart.Velocity.y | |
1060 | sine = sine + change | |
1061 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1062 | if RootPart.Velocity.y > 1 and hit == nil then | |
1063 | Anim = "Jump" | |
1064 | if attack == false then | |
1065 | PlayAnimationFromTable({ | |
1066 | 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), | |
1067 | 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), | |
1068 | 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), | |
1069 | 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), | |
1070 | 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), | |
1071 | 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), | |
1072 | }, .3, false) | |
1073 | end | |
1074 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1075 | Anim = "Fall" | |
1076 | if attack == false then | |
1077 | PlayAnimationFromTable({ | |
1078 | 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), | |
1079 | 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), | |
1080 | 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), | |
1081 | 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), | |
1082 | 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), | |
1083 | 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), | |
1084 | }, .3, false) | |
1085 | end | |
1086 | elseif Torsovelocity < 1 and hit ~= nil then | |
1087 | Anim = "Idle" | |
1088 | if attack == false then | |
1089 | change = 1 | |
1090 | PlayAnimationFromTable({ | |
1091 | 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), | |
1092 | 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), | |
1093 | 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), | |
1094 | 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), | |
1095 | 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), | |
1096 | 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), | |
1097 | }, .3, false) | |
1098 | end | |
1099 | elseif Torsovelocity > 2 and hit ~= nil then | |
1100 | Anim = "Walk" | |
1101 | if attack == false then | |
1102 | change = 2 | |
1103 | PlayAnimationFromTable({ | |
1104 | 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), | |
1105 | 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), | |
1106 | 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), | |
1107 | 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), | |
1108 | 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)), | |
1109 | 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)), | |
1110 | }, .3, false) | |
1111 | end | |
1112 | end | |
1113 | if 0 < #Effects then | |
1114 | for e = 1, #Effects do | |
1115 | if Effects[e] ~= nil then | |
1116 | local Thing = Effects[e] | |
1117 | if Thing ~= nil then | |
1118 | local Part = Thing[1] | |
1119 | local Mode = Thing[2] | |
1120 | local Delay = Thing[3] | |
1121 | local IncX = Thing[4] | |
1122 | local IncY = Thing[5] | |
1123 | local IncZ = Thing[6] | |
1124 | if Thing[2] == "Shoot" then | |
1125 | local Look = Thing[1] | |
1126 | local move = 5 | |
1127 | local hit, pos = rayCast(Thing[4], Thing[1], move, Character) | |
1128 | if Thing[10] ~= nil then | |
1129 | da = pos | |
1130 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
1131 | cfa = CFrame.new(Thing[4], pos) | |
1132 | tehCF = cfa:lerp(cf2, 0.2) | |
1133 | Thing[1] = tehCF.lookVector | |
1134 | end | |
1135 | local mag = (Thing[4] - pos).magnitude | |
1136 | Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4) | |
1137 | 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) | |
1138 | Thing[4] = Thing[4] + Look * move | |
1139 | Thing[3] = Thing[3] - 1 | |
1140 | if 2 < Thing[5] then | |
1141 | Thing[5] = Thing[5] - 0.3 | |
1142 | Thing[6] = Thing[6] - 0.3 | |
1143 | end | |
1144 | if hit ~= nil then | |
1145 | Thing[3] = 0 | |
1146 | MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8) | |
1147 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1148 | ref.Anchored = true | |
1149 | ref.CFrame = CFrame.new(pos) | |
1150 | Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05) | |
1151 | Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03) | |
1152 | game:GetService("Debris"):AddItem(ref, 1) | |
1153 | end | |
1154 | if Thing[3] <= 0 then | |
1155 | table.remove(Effects, e) | |
1156 | end | |
1157 | end | |
1158 | do | |
1159 | do | |
1160 | if Thing[2] == "FireWave" then | |
1161 | if Thing[3] <= Thing[4] then | |
1162 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
1163 | Thing[3] = Thing[3] + 1 | |
1164 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
1165 | else | |
1166 | Part.Parent = nil | |
1167 | table.remove(Effects, e) | |
1168 | end | |
1169 | end | |
1170 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
1171 | if Thing[1].Transparency <= 1 then | |
1172 | if Thing[2] == "Block1" then | |
1173 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1174 | Mesh = Thing[7] | |
1175 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1176 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1177 | else | |
1178 | if Thing[2] == "Block2" then | |
1179 | Thing[1].CFrame = Thing[1].CFrame | |
1180 | Mesh = Thing[7] | |
1181 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1182 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1183 | else | |
1184 | if Thing[2] == "Fire" then | |
1185 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
1186 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1187 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1188 | else | |
1189 | if Thing[2] == "Cylinder" then | |
1190 | Mesh = Thing[7] | |
1191 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1192 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1193 | else | |
1194 | if Thing[2] == "Blood" then | |
1195 | Mesh = Thing[7] | |
1196 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
1197 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1198 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1199 | else | |
1200 | if Thing[2] == "Elec" then | |
1201 | Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1202 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1203 | else | |
1204 | if Thing[2] == "Disappear" then | |
1205 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1206 | end | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | end | |
1211 | end | |
1212 | end | |
1213 | else | |
1214 | Part.Parent = nil | |
1215 | table.remove(Effects, e) | |
1216 | end | |
1217 | end | |
1218 | end | |
1219 | end | |
1220 | end | |
1221 | end | |
1222 | end | |
1223 | end | |
1224 | end |