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