SHOW:
|
|
- or go back to the newest paste.
1 | --|| CREATED BY SHACKLUSTER | |
2 | --\\====================================================//-- | |
3 | ||
4 | local p = game:GetService("Players").LocalPlayer | |
5 | local char = p.Character | |
6 | local hed = char.Head | |
7 | local torso = char.Torso | |
8 | local hum = char.Humanoid | |
9 | local cam = game.Workspace.CurrentCamera | |
10 | local root = char.HumanoidRootPart | |
11 | local deb = false | |
12 | local Neck = torso:WaitForChild("Neck") | |
13 | local shot = 0 | |
14 | local debris=game:service"Debris" | |
15 | local CanAttack = true | |
16 | local l = game:GetService("Lighting") | |
17 | local rs = game:GetService("RunService").RenderStepped | |
18 | local animpose = "Idle" | |
19 | local lastanimpose = "Idle" | |
20 | local stanceToggle = "Normal" | |
21 | local Hood = false | |
22 | local holy = false --[[ change to true if u want him flying ]] | |
23 | local Trails = true --[[ change to true for glow trails comming from eyes ]]-- | |
24 | local Shield = false | |
25 | local eColors = {"Really black", "Really White"} | |
26 | local cf = CFrame.new | |
27 | local euler = CFrame.fromEulerAnglesXYZ | |
28 | local vt = Vector3.new | |
29 | local angles = CFrame.Angles | |
30 | local attacktype=1 | |
31 | local Melee = true | |
32 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
33 | math.randomseed(os.time()) | |
34 | ||
35 | RA,LA,RL,LL,H,T = char["Right Arm"],char["Left Arm"],char["Right Leg"],char["Left Leg"],char.Head,char.Torso | |
36 | RS,LS,RH,LH,N = T["Right Shoulder"],T["Left Shoulder"],T["Right Hip"],T["Left Hip"],T.Neck | |
37 | Settings,Pr0mMode,ArielMode,InternalMode,Heart = {Colors = {BrickColor.new("Really black"),BrickColor.new("New Yeller")};ExplosionColors = {BrickColor.new("Really black"),BrickColor.new("New Yeller"),BrickColor.new("Really red"),BrickColor.new("Institutional white")}},p.Name == "Fir3bl4ze",p.Name == "Paul072" or p.Name == "KillBecca62",p.Name == "InternalRecursion" or p.Name == "RecursionAltInternal",p.Name == "heartstar1" | |
38 | Debounces = { | |
39 | CanAttack = true; | |
40 | CanJoke = true; | |
41 | NoIdl = false; | |
42 | Slashing = false; | |
43 | Slashed = false; | |
44 | Slapping = false; | |
45 | Slapped = false; | |
46 | ks = false; | |
47 | } | |
48 | ||
49 | local Touche = {char.Name, } | |
50 | local Character = p.Character | |
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | local Shockwave = function() | |
57 | ||
58 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
59 | ||
60 | ||
61 | delay(0, function() | |
62 | ||
63 | if Daytime == false then | |
64 | for i = 1, 50, 1 do | |
65 | Wave.CFrame = Character.Torso.CFrame | |
66 | local t = i / 50 | |
67 | Wave.Transparency = t | |
68 | wait() | |
69 | end | |
70 | else | |
71 | for i = 1, 50, 1 do | |
72 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
73 | Wave.CFrame = Character.Torso.CFrame | |
74 | local t = i / 50 | |
75 | Wave.Transparency = t | |
76 | wait() | |
77 | end | |
78 | end | |
79 | Wave:Destroy() | |
80 | end) | |
81 | delay(0, function() | |
82 | while wait() do | |
83 | if Wave ~= nil then | |
84 | Wave.CFrame = Character.Torso.CFrame | |
85 | else | |
86 | break | |
87 | end | |
88 | end | |
89 | end) | |
90 | end | |
91 | ||
92 | ||
93 | function Shockwave2() | |
94 | local ENERGY = Instance.new("Part", Character) | |
95 | ENERGY.Name = "ENERGY" | |
96 | ENERGY.CanCollide = false | |
97 | ENERGY.Transparency = 0.2 | |
98 | ENERGY.TopSurface = 0 | |
99 | ENERGY.BottomSurface = 0 | |
100 | ENERGY.Anchored = true | |
101 | ENERGY.BrickColor = BrickColor.new("Really black") | |
102 | ENERGY.Touched:connect(function(hit) | |
103 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
104 | local Occlude = true | |
105 | local NotOccludes = { | |
106 | Character.Name; | |
107 | "Wings"; | |
108 | "Scythe"; | |
109 | "Thingy"; | |
110 | "Thingy2"; -- put all of the names in a table pls | |
111 | } | |
112 | for i,v in pairs(NotOccludes) do | |
113 | if hit.Parent.Name == v then | |
114 | Occlude = false | |
115 | end | |
116 | end | |
117 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
118 | if Occlude then | |
119 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 50 | |
120 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * 220 | |
121 | end | |
122 | end | |
123 | end) | |
124 | local cm = Instance.new("CylinderMesh", ENERGY) | |
125 | cm.Scale = Vector3.new(1, 20, 1) | |
126 | ENERGY.Size = Vector3.new(5, 20, 5) | |
127 | ENERGY.CFrame = char.Torso.CFrame | |
128 | for i = 1, 50 do | |
129 | ENERGY.CFrame = char.Torso.CFrame | |
130 | ENERGY.Transparency = ENERGY.Transparency + 0.012 | |
131 | ENERGY.Size = ENERGY.Size + Vector3.new(0.2, 0, 0.2) | |
132 | wait() | |
133 | end | |
134 | ENERGY:Destroy() | |
135 | end | |
136 | ||
137 | ||
138 | ||
139 | local RbxUtility = LoadLibrary("RbxUtility") | |
140 | local Create = RbxUtility.Create | |
141 | ||
142 | function RemoveOutlines(part) | |
143 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
144 | end | |
145 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
146 | local Part = Create("Part"){ | |
147 | Parent = Parent, | |
148 | Reflectance = Reflectance, | |
149 | Transparency = Transparency, | |
150 | CanCollide = false, | |
151 | Locked = true, | |
152 | BrickColor = BrickColor.new(tostring(BColor)), | |
153 | Name = Name, | |
154 | Size = Size, | |
155 | Material = Material, | |
156 | } | |
157 | RemoveOutlines(Part) | |
158 | return Part | |
159 | end | |
160 | local Effects = {} | |
161 | ||
162 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
163 | local Msh = Create(Mesh){ | |
164 | Parent = Part, | |
165 | Offset = OffSet, | |
166 | Scale = Scale, | |
167 | } | |
168 | if Mesh == "SpecialMesh" then | |
169 | Msh.MeshType = MeshType | |
170 | Msh.MeshId = MeshId | |
171 | end | |
172 | return Msh | |
173 | end | |
174 | ||
175 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
176 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
177 | prt.Anchored = true | |
178 | prt.CFrame = cframe | |
179 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
180 | game:GetService("Debris"):AddItem(prt, 10) | |
181 | table.insert(Effects, { | |
182 | prt, | |
183 | "Cylinder", | |
184 | delay, | |
185 | x3, | |
186 | y3, | |
187 | z3, | |
188 | msh | |
189 | }) | |
190 | end | |
191 | ||
192 | ||
193 | ||
194 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
195 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
196 | prt.Anchored = true | |
197 | prt.CFrame = cframe | |
198 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
199 | game:GetService("Debris"):AddItem(prt, 10) | |
200 | table.insert(Effects, { | |
201 | prt, | |
202 | "Cylinder", | |
203 | delay, | |
204 | x3, | |
205 | y3, | |
206 | z3, | |
207 | msh | |
208 | }) | |
209 | end | |
210 | ||
211 | function rayCast(Position, Direction, Range, Ignore) | |
212 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
213 | end | |
214 | z = Instance.new("Sound",char) | |
215 | z.SoundId = "rbxassetid://335416718"--..SIDz[math.random(1,#SIDz)] --MUSIC OF GOD | |
216 | z.Looped = true | |
217 | z.Volume = 666 | |
218 | z.Pitch = 1 | |
219 | wait(1) | |
220 | z:Play() | |
221 | --184881743 - scary | |
222 | --413641131 Nemesis? | |
223 | -- 632243735 Scary too | |
224 | --553013173 Horror-music | |
225 | --537578929 Horror-Vania | |
226 | -- 200514784 Scary-Music | |
227 | -- 421358540 Scary-Calming-Creepy | |
228 | -- 133795072 Scary-Chill-Sound | |
229 | -- 154564700 Scary sound | |
230 | -- 160453802 war sound | |
231 | -- 792238435 Scary!!!! VERY!!! | |
232 | -- 568927358 Donald-trump-We-Are-Number-One | |
233 | -- 152201694 | |
234 | -- 142720946 | |
235 | -- 670607453 Bendy | |
236 | -- 242942414 | |
237 | --986718663 Sad Song | |
238 | --230885926 Never Surrender | |
239 | --892185800 Rammstein - Sonne | |
240 | --188095869 Dorado | |
241 | --792520360 Last Battle | |
242 | --171224177 Some Good Song | |
243 | --153406097 MLG! | |
244 | --538514291 Hail the king! | |
245 | local Transformation = function() | |
246 | ||
247 | hum.WalkSpeed = 0 | |
248 | Neck.C0 = Neck.C0 * CFrame.Angles(0.6,0,0) | |
249 | wait(0.7) | |
250 | Neck.C0 = Neck.C0 * CFrame.Angles(-0.9,0,0) | |
251 | l.TimeOfDay = 24 | |
252 | wait(0.1) | |
253 | l.TimeOfDay = 14 | |
254 | Shockwave2() | |
255 | wait(2) | |
256 | Neck.C0 = Neck.C0 * CFrame.Angles(0.6,0,0) | |
257 | wait(2.4) | |
258 | Neck.C0 = Neck.C0 * CFrame.Angles(-0.6,0,0) | |
259 | l.TimeOfDay = 24 | |
260 | wait(0.1) | |
261 | l.TimeOfDay = 14 | |
262 | Shockwave2() | |
263 | wait(0.3) | |
264 | Neck.C0 = Neck.C0 * CFrame.Angles(0.6,0,0) | |
265 | wait(0.6) | |
266 | Neck.C0 = Neck.C0 * CFrame.Angles(-0.6,0,0) | |
267 | l.TimeOfDay = 24 | |
268 | wait(0.1) | |
269 | l.TimeOfDay = 14 | |
270 | Shockwave2() | |
271 | wait(0.2) | |
272 | Neck.C0 = Neck.C0 * CFrame.Angles(0.6,0,0) | |
273 | wait(2) | |
274 | Neck.C0 = Neck.C0 * CFrame.Angles(-0.3,0,0) | |
275 | local TBlast, TBMesh = Instance.new("Part"), Instance.new("SpecialMesh") | |
276 | TBlast.BrickColor = BrickColor.new("Gold") | |
277 | TBlast.Transparency = 1 | |
278 | TBlast.Anchored = true | |
279 | TBlast.CanCollide = false | |
280 | TBlast.CFrame = root.CFrame | |
281 | TBlast.Size = Vector3.new(2,2,2) | |
282 | TBMesh.Parent = TBlast | |
283 | TBMesh.MeshType = "Sphere" | |
284 | game.Lighting.Brightness = 0 | |
285 | game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color | |
286 | game.Lighting.TimeOfDay = 0.1 | |
287 | game.Lighting.FogEnd = 1000 | |
288 | game.Lighting.FogColor = TBlast.BrickColor.Color | |
289 | local hit, pos = rayCast(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character) | |
290 | if hit ~= nil then | |
291 | local Color = hit.BrickColor | |
292 | local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
293 | refpart.Anchored = true | |
294 | refpart.CFrame = CFrame.new(pos) | |
295 | game:GetService("Debris"):AddItem(refpart, 1) | |
296 | for i = 1, 5 do | |
297 | local Color = hit.BrickColor | |
298 | local Materials = hit.Material | |
299 | local groundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(500, 1000) / 1000, math.random(500, 1000) / 1000, math.random(500, 1000) / 1000)) | |
300 | groundpart.Anchored = false | |
301 | groundpart.Material = Materials | |
302 | groundpart.CanCollide = true | |
303 | groundpart.Friction = 0.1 | |
304 | groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50)) | |
305 | groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
306 | game:GetService("Debris"):AddItem(groundpart, 10) | |
307 | end | |
308 | for i = 1, 6 do | |
309 | local Color = hit.BrickColor | |
310 | local Materials = hit.Material | |
311 | local actualgroundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(1000, 2000) / 1000, math.random(1000, 2000) / 1000, math.random(1000, 2000) / 1000)) | |
312 | actualgroundpart.Anchored = true | |
313 | actualgroundpart.Material = Materials | |
314 | actualgroundpart.CanCollide = true | |
315 | actualgroundpart.Friction = 1 | |
316 | actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
317 | game:GetService("Debris"):AddItem(actualgroundpart, 10) | |
318 | end | |
319 | WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04) | |
320 | SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04) | |
321 | end | |
322 | Shockwave() | |
323 | end | |
324 | Transformation() | |
325 | ||
326 | ||
327 | partic2 = Instance.new("ParticleEmitter",torso) | |
328 | partic2.Color = ColorSequence.new(Color3.new(100/225,100/255,100/255),Color3.new(100/255,100/255,100/255)) | |
329 | partic2.LightEmission = .95 | |
330 | partic2.VelocityInheritance = 0.2 | |
331 | partic2.Rate = 300 | |
332 | partic2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
333 | partic2.Lifetime = NumberRange.new(0.1,0.2) | |
334 | partic2.RotSpeed = NumberRange.new(100,100) | |
335 | partic2.Speed = NumberRange.new(2,6) | |
336 | partic2.Enabled = false | |
337 | partic2.LockedToPart = false | |
338 | ||
339 | function swait(num) | |
340 | if num==0 or num==nil then | |
341 | game:service'RunService'.Stepped:wait(0) | |
342 | else | |
343 | for i=0,num do | |
344 | game:service'RunService'.Stepped:wait(0) | |
345 | end | |
346 | end | |
347 | end | |
348 | ||
349 | ||
350 | hum.WalkSpeed = 16 | |
351 | ||
352 | so = function(id,par,vol,pit) | |
353 | coroutine.resume(coroutine.create(function() | |
354 | local sou = Instance.new("Sound",par or workspace) | |
355 | sou.Volume=vol | |
356 | sou.Pitch=pit or 1 | |
357 | sou.SoundId=id | |
358 | swait() | |
359 | sou:play() | |
360 | game:GetService("Debris"):AddItem(sou,6) | |
361 | end)) | |
362 | end | |
363 | ||
364 | -----{{ Judgement Day}}------- | |
365 | ||
366 | ||
367 | ||
368 | z:Stop() | |
369 | wait(0.2) | |
370 | ||
371 | Player = game:GetService("Players").LocalPlayer | |
372 | PlayerGui = Player.PlayerGui | |
373 | Cam = workspace.CurrentCamera | |
374 | Backpack = Player.Backpack | |
375 | Character = Player.Character | |
376 | Humanoid = Character.Humanoid | |
377 | Mouse = Player:GetMouse() | |
378 | RootPart = Character["HumanoidRootPart"] | |
379 | Torso = Character["Torso"] | |
380 | Head = Character["Head"] | |
381 | RightArm = Character["Right Arm"] | |
382 | LeftArm = Character["Left Arm"] | |
383 | RightLeg = Character["Right Leg"] | |
384 | LeftLeg = Character["Left Leg"] | |
385 | RootJoint = RootPart["RootJoint"] | |
386 | Neck = Torso["Neck"] | |
387 | RightShoulder = Torso["Right Shoulder"] | |
388 | LeftShoulder = Torso["Left Shoulder"] | |
389 | RightHip = Torso["Right Hip"] | |
390 | LeftHip = Torso["Left Hip"] | |
391 | local sick = Instance.new("Sound",Character) | |
392 | sick.SoundId = "rbxassetid://1428003648" | |
393 | sick.Looped = true | |
394 | sick.Volume = 5 | |
395 | ||
396 | IT = Instance.new | |
397 | CF = CFrame.new | |
398 | VT = Vector3.new | |
399 | RAD = math.rad | |
400 | C3 = Color3.new | |
401 | UD2 = UDim2.new | |
402 | BRICKC = BrickColor.new | |
403 | ANGLES = CFrame.Angles | |
404 | EULER = CFrame.fromEulerAnglesXYZ | |
405 | COS = math.cos | |
406 | ACOS = math.acos | |
407 | SIN = math.sin | |
408 | ASIN = math.asin | |
409 | ABS = math.abs | |
410 | MRANDOM = math.random | |
411 | FLOOR = math.floor | |
412 | ||
413 | ----------------------------------------- | |
414 | Void = nil | |
415 | VoidParts = {} | |
416 | Equipped = false | |
417 | ||
418 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
419 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
420 | end | |
421 | ||
422 | Player = Player | |
423 | Character = Character | |
424 | ||
425 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
426 | Torso = Character:FindFirstChild("Torso") | |
427 | if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then | |
428 | return | |
429 | end | |
430 | Equipped = true | |
431 | Void = Instance.new("Model") | |
432 | Void.Name = "Void" | |
433 | Angle = 0 | |
434 | for i = 1, 1 do | |
435 | local VoidPart = Instance.new("Part") | |
436 | VoidPart.Name = "VoidPart" | |
437 | VoidPart.Transparency = 1 | |
438 | VoidPart.BrickColor = BrickColor.new("Really black") | |
439 | VoidPart.Material = Enum.Material.Plastic | |
440 | VoidPart.Shape = Enum.PartType.Block | |
441 | VoidPart.FormFactor = Enum.FormFactor.Custom | |
442 | VoidPart.TopSurface = Enum.SurfaceType.Smooth | |
443 | VoidPart.BottomSurface = Enum.SurfaceType.Smooth | |
444 | VoidPart.Anchored = true | |
445 | VoidPart.CanCollide = false | |
446 | VoidPart.Locked = true | |
447 | VoidPart.Size = Vector3.new(18, 0.2, 18) | |
448 | local BlockMesh = Instance.new("BlockMesh") | |
449 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
450 | BlockMesh.Parent = VoidPart | |
451 | VoidPart.Parent = Void | |
452 | local Star = Instance.new("Decal", VoidPart) | |
453 | Star.Texture = "http://www.roblox.com/asset/?id=732683707" | |
454 | --CricleForTarget | |
455 | --121028264 MagicCircle1 | |
456 | --160506713 MagicCircle2 | |
457 | --327794305 MagicCircle3 (Death) | |
458 | --160508788 MagicCircle4 (Scary) | |
459 | --124339738 CoolCircle5 | |
460 | --268043891 Abyss-Demon-Magic-Circle | |
461 | Star.Face = "Top" | |
462 | local Light = Instance.new("PointLight", VoidPart) | |
463 | Light.Color = Color3.new(255,255,0) | |
464 | Light.Brightness = 100 | |
465 | Light.Range = 15 | |
466 | table.insert(VoidParts, VoidPart) | |
467 | end | |
468 | Spawn(function() | |
469 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do | |
470 | if Angle == 360 then | |
471 | Angle = 0 | |
472 | end | |
473 | Angle = Angle + 0.05 | |
474 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
475 | if Hit then | |
476 | if not Void.Parent then | |
477 | Void.Parent = Character | |
478 | end | |
479 | for i, v in pairs(VoidParts) do | |
480 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
481 | end | |
482 | else | |
483 | Void.Parent = nil | |
484 | end | |
485 | wait() | |
486 | end | |
487 | end) | |
488 | ||
489 | local EyeSizes={ | |
490 | NumberSequenceKeypoint.new(0,0.65,0), | |
491 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
492 | NumberSequenceKeypoint.new(1,0,0) | |
493 | } | |
494 | local EyeTrans={ | |
495 | NumberSequenceKeypoint.new(0,0,0), | |
496 | NumberSequenceKeypoint.new(0.5,0,0), | |
497 | NumberSequenceKeypoint.new(1,1,0) | |
498 | } | |
499 | local PE22=Instance.new("ParticleEmitter", RIGHTWINGS) | |
500 | PE22.LightEmission=.9 | |
501 | PE22.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
502 | PE22.Size=NumberSequence.new(EyeSizes) | |
503 | PE22.Transparency=NumberSequence.new(EyeTrans) | |
504 | PE22.Lifetime=NumberRange.new(0.35) | |
505 | PE22.Rotation=NumberRange.new(0,360) | |
506 | PE22.Rate=999 | |
507 | PE22.VelocitySpread = 10000 | |
508 | PE22.Acceleration = Vector3.new(0,25,0) | |
509 | PE22.ZOffset = 0.5 | |
510 | PE22.Drag = 0 | |
511 | PE22.Speed = NumberRange.new(0,0,0) | |
512 | PE22.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
513 | PE22.Name = "PE22" | |
514 | PE22.Enabled = true | |
515 | PE22.LockedToPart = true | |
516 | ||
517 | local EyeSizes={ | |
518 | NumberSequenceKeypoint.new(0,0.65,0), | |
519 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
520 | NumberSequenceKeypoint.new(1,0,0) | |
521 | } | |
522 | local EyeTrans={ | |
523 | NumberSequenceKeypoint.new(0,0,0), | |
524 | NumberSequenceKeypoint.new(0.5,0,0), | |
525 | NumberSequenceKeypoint.new(1,1,0) | |
526 | } | |
527 | local PE2=Instance.new("ParticleEmitter", LEFTWINGS) | |
528 | PE2.LightEmission=.9 | |
529 | PE2.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
530 | PE2.Size=NumberSequence.new(EyeSizes) | |
531 | PE2.Transparency=NumberSequence.new(EyeTrans) | |
532 | PE2.Lifetime=NumberRange.new(0.35) | |
533 | PE2.Rotation=NumberRange.new(0,360) | |
534 | PE2.Rate=999 | |
535 | PE2.VelocitySpread = 10000 | |
536 | PE2.Acceleration = Vector3.new(0,25,0) | |
537 | PE2.ZOffset = 0.5 | |
538 | PE2.Drag = 0 | |
539 | PE2.Speed = NumberRange.new(0,0,0) | |
540 | PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
541 | PE2.Name = "PE2" | |
542 | PE2.Enabled = true | |
543 | PE2.LockedToPart = true | |
544 | ||
545 | ||
546 | local EyeSizes={ | |
547 | NumberSequenceKeypoint.new(0,0.65,0), | |
548 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
549 | NumberSequenceKeypoint.new(1,0,0) | |
550 | } | |
551 | local EyeTrans={ | |
552 | NumberSequenceKeypoint.new(0,0,0), | |
553 | NumberSequenceKeypoint.new(0.5,0,0), | |
554 | NumberSequenceKeypoint.new(1,1,0) | |
555 | } | |
556 | local PE3=Instance.new("ParticleEmitter", LeftLeg) | |
557 | PE3.LightEmission=.9 | |
558 | PE3.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
559 | PE3.Size=NumberSequence.new(EyeSizes) | |
560 | PE3.Transparency=NumberSequence.new(EyeTrans) | |
561 | PE3.Lifetime=NumberRange.new(0.35) | |
562 | PE3.Rotation=NumberRange.new(0,360) | |
563 | PE3.Rate=999 | |
564 | PE3.VelocitySpread = 10000 | |
565 | PE3.Acceleration = Vector3.new(0,25,0) | |
566 | PE3.ZOffset = 0.5 | |
567 | PE3.Drag = 0 | |
568 | PE3.Speed = NumberRange.new(0,0,0) | |
569 | PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
570 | PE3.Name = "PE3" | |
571 | PE3.Enabled = true | |
572 | PE3.LockedToPart = true | |
573 | ||
574 | local EyeSizes={ | |
575 | NumberSequenceKeypoint.new(0,0.65,0), | |
576 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
577 | NumberSequenceKeypoint.new(1,0,0) | |
578 | } | |
579 | local EyeTrans={ | |
580 | NumberSequenceKeypoint.new(0,0,0), | |
581 | NumberSequenceKeypoint.new(0.5,0,0), | |
582 | NumberSequenceKeypoint.new(1,1,0) | |
583 | } | |
584 | local PE4=Instance.new("ParticleEmitter", RightLeg) | |
585 | PE4.LightEmission=.9 | |
586 | PE4.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
587 | PE4.Size=NumberSequence.new(EyeSizes) | |
588 | PE4.Transparency=NumberSequence.new(EyeTrans) | |
589 | PE4.Lifetime=NumberRange.new(0.35) | |
590 | PE4.Rotation=NumberRange.new(0,360) | |
591 | PE4.Rate=999 | |
592 | PE4.VelocitySpread = 10000 | |
593 | PE4.Acceleration = Vector3.new(0,25,0) | |
594 | PE4.ZOffset = 0.5 | |
595 | PE4.Drag = 0 | |
596 | PE4.Speed = NumberRange.new(0,0,0) | |
597 | PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
598 | PE4.Name = "PE4" | |
599 | PE4.Enabled = true | |
600 | PE4.LockedToPart = true | |
601 | ||
602 | local EyeSizes={ | |
603 | NumberSequenceKeypoint.new(0,0.65,0), | |
604 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
605 | NumberSequenceKeypoint.new(1,0,0) | |
606 | } | |
607 | local EyeTrans={ | |
608 | NumberSequenceKeypoint.new(0,0,0), | |
609 | NumberSequenceKeypoint.new(0.5,0,0), | |
610 | NumberSequenceKeypoint.new(1,1,0) | |
611 | } | |
612 | local PE5=Instance.new("ParticleEmitter", Torso) | |
613 | PE5.LightEmission=.9 | |
614 | PE5.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
615 | PE5.Size=NumberSequence.new(EyeSizes) | |
616 | PE5.Transparency=NumberSequence.new(EyeTrans) | |
617 | PE5.Lifetime=NumberRange.new(0.35) | |
618 | PE5.Rotation=NumberRange.new(0,360) | |
619 | PE5.Rate=999 | |
620 | PE5.VelocitySpread = 10000 | |
621 | PE5.Acceleration = Vector3.new(0,25,0) | |
622 | PE5.ZOffset = 0.5 | |
623 | PE5.Drag = 0 | |
624 | PE5.Speed = NumberRange.new(0,0,0) | |
625 | PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
626 | PE5.Name = "PE5" | |
627 | PE5.Enabled = true | |
628 | PE5.LockedToPart = true | |
629 | ||
630 | local EyeSizes={ | |
631 | NumberSequenceKeypoint.new(0,0.65,0), | |
632 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
633 | NumberSequenceKeypoint.new(1,0,0) | |
634 | } | |
635 | local EyeTrans={ | |
636 | NumberSequenceKeypoint.new(0,0,0), | |
637 | NumberSequenceKeypoint.new(0.5,0,0), | |
638 | NumberSequenceKeypoint.new(1,1,0) | |
639 | } | |
640 | local PE6=Instance.new("ParticleEmitter", Head) | |
641 | PE6.LightEmission=.9 | |
642 | PE6.Color = ColorSequence.new(BRICKC("Gold").Color,BRICKC("Deep orange").Color) | |
643 | PE6.Size=NumberSequence.new(EyeSizes) | |
644 | PE6.Transparency=NumberSequence.new(EyeTrans) | |
645 | PE6.Lifetime=NumberRange.new(0.35) | |
646 | PE6.Rotation=NumberRange.new(0,360) | |
647 | PE6.Rate=999 | |
648 | PE6.VelocitySpread = 10000 | |
649 | PE6.Acceleration = Vector3.new(0,25,0) | |
650 | PE6.ZOffset = 0.5 | |
651 | PE6.Drag = 0 | |
652 | PE6.Speed = NumberRange.new(0,0,0) | |
653 | PE6.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
654 | PE6.Name = "PE6" | |
655 | PE6.Enabled = true | |
656 | PE6.LockedToPart = true | |
657 | ||
658 | function fireparticles(art) | |
659 | local PARTICLES = PE:Clone() | |
660 | PARTICLES.Parent = art | |
661 | end | |
662 | ||
663 | local Hood = Instance.new("Part", Character) | |
664 | Hood.Name = "Hood" | |
665 | Hood.CanCollide = false | |
666 | Hood.BrickColor = BrickColor.new("Really black") | |
667 | Hood.Transparency = 0 | |
668 | Hood.Material = "Plastic" | |
669 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
670 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
671 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
672 | ||
673 | local Weld = Instance.new("Weld", Hood) | |
674 | Weld.Part0 = Character.Head | |
675 | Weld.Part1 = Hood | |
676 | Weld.C1 = CFrame.new(0, -0.2, 0) | |
677 | ||
678 | local M2 = Instance.new("SpecialMesh") | |
679 | M2.Parent = Hood | |
680 | M2.MeshId = "http://www.roblox.com/asset/?id=83499032" | |
681 | M2.Scale = Vector3.new( 1, 1.2, 1.1) | |
682 | ||
683 | Character.Shirt:Destroy() | |
684 | Character.Pants:Destroy() | |
685 | shirt = Instance.new("Shirt", Character) | |
686 | shirt.Name = "Shirt" | |
687 | pants = Instance.new("Pants", Character) | |
688 | pants.Name = "Pants" | |
689 | Character.Shirt.ShirtTemplate = "rbxassetid://250281606" | |
690 | Character.Pants.PantsTemplate = "rbxassetid://296647969" | |
691 | ||
692 | ||
693 | Reaper2 = Instance.new("Model") | |
694 | Reaper2.Parent = Player.Character | |
695 | Reaper2.Name = "Reaper2" | |
696 | rh2 = Instance.new("Part") | |
697 | rh2.BrickColor = BrickColor.new("Gold") | |
698 | rh2.Parent = Reaper2 | |
699 | rh2.Locked = true | |
700 | rh2.CanCollide = false | |
701 | mesh2 = Instance.new("SpecialMesh") | |
702 | rh2.formFactor = "Symmetric" | |
703 | mesh2.MeshType = "FileMesh" | |
704 | mesh2.MeshId = "http://www.roblox.com/asset/?id=212966179" | |
705 | mesh2.Parent = rh2 | |
706 | local weld2 = Instance.new("Weld") | |
707 | weld2.Parent = rh2 | |
708 | rh2.Transparency = 0 | |
709 | weld2.Part0 = rh2 | |
710 | weld2.Part1 = Player.Character.Head | |
711 | weld2.C0 = CFrame.new(-0, -0.3, 0)*CFrame.Angles(0, 0, 0) | |
712 | ||
713 | --//=================================\\ | |
714 | --|| USEFUL VALUES | |
715 | --\\=================================// | |
716 | ||
717 | Animation_Speed = 3 | |
718 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
719 | local Speed = 45 | |
720 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
721 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
722 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
723 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
724 | local DAMAGEMULTIPLIER = 1 | |
725 | local ANIM = "Idle" | |
726 | local ATTACK = false | |
727 | local EQUIPPED = false | |
728 | local HOLD = false | |
729 | local COMBO = 1 | |
730 | local Rooted = false | |
731 | local SINE = 0 | |
732 | local KEYHOLD = false | |
733 | local CHANGE = 2 / Animation_Speed | |
734 | local WALKINGANIM = false | |
735 | local VALUE1 = false | |
736 | local VALUE2 = false | |
737 | local ROBLOXIDLEANIMATION = IT("Animation") | |
738 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
739 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
740 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
741 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
742 | WEAPONGUI.Name = "Weapon GUI" | |
743 | local Effects = IT("Folder", Character) | |
744 | Effects.Name = "Effects" | |
745 | local ANIMATOR = Humanoid.Animator | |
746 | local ANIMATE = Character.Animate | |
747 | local UNANCHOR = true | |
748 | local HITPOS = nil | |
749 | local HITFLOOR = nil | |
750 | local LEFTWINGS = {} | |
751 | local RIGHTWINGS = {} | |
752 | local BODY = {} | |
753 | ||
754 | --//=================================\\ | |
755 | --\\=================================// | |
756 | ||
757 | ||
758 | --//=================================\\ | |
759 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
760 | --\\=================================// | |
761 | ||
762 | ArtificialHB = Instance.new("BindableEvent", script) | |
763 | ArtificialHB.Name = "ArtificialHB" | |
764 | ||
765 | script:WaitForChild("ArtificialHB") | |
766 | ||
767 | frame = Frame_Speed | |
768 | tf = 0 | |
769 | allowframeloss = false | |
770 | tossremainder = false | |
771 | lastframe = tick() | |
772 | script.ArtificialHB:Fire() | |
773 | ||
774 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
775 | tf = tf + s | |
776 | if tf >= frame then | |
777 | if allowframeloss then | |
778 | script.ArtificialHB:Fire() | |
779 | lastframe = tick() | |
780 | else | |
781 | for i = 1, math.floor(tf / frame) do | |
782 | script.ArtificialHB:Fire() | |
783 | end | |
784 | lastframe = tick() | |
785 | end | |
786 | if tossremainder then | |
787 | tf = 0 | |
788 | else | |
789 | tf = tf - frame * math.floor(tf / frame) | |
790 | end | |
791 | end | |
792 | end) | |
793 | ||
794 | --//=================================\\ | |
795 | --\\=================================// | |
796 | ||
797 | --//=================================\\ | |
798 | --|| SOME FUNCTIONS | |
799 | --\\=================================// | |
800 | ||
801 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
802 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
803 | end | |
804 | ||
805 | function PositiveAngle(NUMBER) | |
806 | if NUMBER >= 0 then | |
807 | NUMBER = 0 | |
808 | end | |
809 | return NUMBER | |
810 | end | |
811 | ||
812 | function NegativeAngle(NUMBER) | |
813 | if NUMBER <= 0 then | |
814 | NUMBER = 0 | |
815 | end | |
816 | return NUMBER | |
817 | end | |
818 | ||
819 | function Swait(NUMBER) | |
820 | if NUMBER == 0 or NUMBER == nil then | |
821 | ArtificialHB.Event:wait() | |
822 | else | |
823 | for i = 1, NUMBER do | |
824 | ArtificialHB.Event:wait() | |
825 | end | |
826 | end | |
827 | end | |
828 | ||
829 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
830 | local NEWMESH = IT(MESH) | |
831 | if MESH == "SpecialMesh" then | |
832 | NEWMESH.MeshType = MESHTYPE | |
833 | if MESHID ~= "nil" and MESHID ~= "" then | |
834 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
835 | end | |
836 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
837 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
838 | end | |
839 | end | |
840 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
841 | NEWMESH.Scale = SCALE | |
842 | NEWMESH.Parent = PARENT | |
843 | return NEWMESH | |
844 | end | |
845 | ||
846 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
847 | local NEWPART = IT("Part") | |
848 | NEWPART.formFactor = FORMFACTOR | |
849 | NEWPART.Reflectance = REFLECTANCE | |
850 | NEWPART.Transparency = TRANSPARENCY | |
851 | NEWPART.CanCollide = false | |
852 | NEWPART.Locked = true | |
853 | NEWPART.Anchored = true | |
854 | if ANCHOR == false then | |
855 | NEWPART.Anchored = false | |
856 | end | |
857 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
858 | NEWPART.Name = NAME | |
859 | NEWPART.Size = SIZE | |
860 | NEWPART.Position = Torso.Position | |
861 | NEWPART.Material = MATERIAL | |
862 | NEWPART:BreakJoints() | |
863 | NEWPART.Parent = PARENT | |
864 | return NEWPART | |
865 | end | |
866 | ||
867 | local function weldBetween(a, b) | |
868 | local weldd = Instance.new("ManualWeld") | |
869 | weldd.Part0 = a | |
870 | weldd.Part1 = b | |
871 | weldd.C0 = CFrame.new() | |
872 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
873 | weldd.Parent = a | |
874 | return weldd | |
875 | end | |
876 | ||
877 | ||
878 | function QuaternionFromCFrame(cf) | |
879 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
880 | local trace = m00 + m11 + m22 | |
881 | if trace > 0 then | |
882 | local s = math.sqrt(1 + trace) | |
883 | local recip = 0.5 / s | |
884 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
885 | else | |
886 | local i = 0 | |
887 | if m11 > m00 then | |
888 | i = 1 | |
889 | end | |
890 | if m22 > (i == 0 and m00 or m11) then | |
891 | i = 2 | |
892 | end | |
893 | if i == 0 then | |
894 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
895 | local recip = 0.5 / s | |
896 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
897 | elseif i == 1 then | |
898 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
899 | local recip = 0.5 / s | |
900 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
901 | elseif i == 2 then | |
902 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
903 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
904 | end | |
905 | end | |
906 | end | |
907 | ||
908 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
909 | local xs, ys, zs = x + x, y + y, z + z | |
910 | local wx, wy, wz = w * xs, w * ys, w * zs | |
911 | local xx = x * xs | |
912 | local xy = x * ys | |
913 | local xz = x * zs | |
914 | local yy = y * ys | |
915 | local yz = y * zs | |
916 | local zz = z * zs | |
917 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
918 | end | |
919 | ||
920 | function QuaternionSlerp(a, b, t) | |
921 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
922 | local startInterp, finishInterp; | |
923 | if cosTheta >= 0.0001 then | |
924 | if (1 - cosTheta) > 0.0001 then | |
925 | local theta = ACOS(cosTheta) | |
926 | local invSinTheta = 1 / SIN(theta) | |
927 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
928 | finishInterp = SIN(t * theta) * invSinTheta | |
929 | else | |
930 | startInterp = 1 - t | |
931 | finishInterp = t | |
932 | end | |
933 | else | |
934 | if (1 + cosTheta) > 0.0001 then | |
935 | local theta = ACOS(-cosTheta) | |
936 | local invSinTheta = 1 / SIN(theta) | |
937 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
938 | finishInterp = SIN(t * theta) * invSinTheta | |
939 | else | |
940 | startInterp = t - 1 | |
941 | finishInterp = t | |
942 | end | |
943 | end | |
944 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
945 | end | |
946 | ||
947 | function Clerp(a, b, t) | |
948 | local qa = {QuaternionFromCFrame(a)} | |
949 | local qb = {QuaternionFromCFrame(b)} | |
950 | local ax, ay, az = a.x, a.y, a.z | |
951 | local bx, by, bz = b.x, b.y, b.z | |
952 | local _t = 1 - t | |
953 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
954 | end | |
955 | ||
956 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
957 | local frame = IT("Frame") | |
958 | frame.BackgroundTransparency = TRANSPARENCY | |
959 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
960 | frame.Position = POSITION | |
961 | frame.Size = SIZE | |
962 | frame.BackgroundColor3 = COLOR | |
963 | frame.BorderColor3 = BORDERCOLOR | |
964 | frame.Name = NAME | |
965 | frame.Parent = PARENT | |
966 | return frame | |
967 | end | |
968 | ||
969 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
970 | local label = IT("TextLabel") | |
971 | label.BackgroundTransparency = 1 | |
972 | label.Size = UD2(1, 0, 1, 0) | |
973 | label.Position = UD2(0, 0, 0, 0) | |
974 | label.TextColor3 = TEXTCOLOR | |
975 | label.TextStrokeColor3 = BRICKC"Deep orange".Color | |
976 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
977 | label.TextTransparency = TRANSPARENCY | |
978 | label.FontSize = TEXTFONTSIZE | |
979 | label.Font = TEXTFONT | |
980 | label.BorderSizePixel = BORDERSIZEPIXEL | |
981 | label.TextScaled = false | |
982 | label.Text = TEXT | |
983 | label.Name = NAME | |
984 | label.Parent = PARENT | |
985 | return label | |
986 | end | |
987 | ||
988 | function NoOutlines(PART) | |
989 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
990 | end | |
991 | ||
992 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
993 | local NEWWELD = IT(TYPE) | |
994 | NEWWELD.Part0 = PART0 | |
995 | NEWWELD.Part1 = PART1 | |
996 | NEWWELD.C0 = C0 | |
997 | NEWWELD.C1 = C1 | |
998 | NEWWELD.Parent = PARENT | |
999 | return NEWWELD | |
1000 | end | |
1001 | ||
1002 | local S = IT("Sound") | |
1003 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1004 | local NEWSOUND = nil | |
1005 | coroutine.resume(coroutine.create(function() | |
1006 | NEWSOUND = S:Clone() | |
1007 | NEWSOUND.Parent = PARENT | |
1008 | NEWSOUND.Volume = VOLUME | |
1009 | NEWSOUND.Pitch = PITCH | |
1010 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1011 | NEWSOUND:play() | |
1012 | NEWSOUND.Name = "Audio" | |
1013 | if DOESLOOP == true then | |
1014 | NEWSOUND.Looped = true | |
1015 | else | |
1016 | repeat Swait() until NEWSOUND.Playing == false | |
1017 | NEWSOUND:remove() | |
1018 | end | |
1019 | end)) | |
1020 | return NEWSOUND | |
1021 | end | |
1022 | ||
1023 | function CFrameFromTopBack(at, top, back) | |
1024 | local right = top:Cross(back) | |
1025 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1026 | end | |
1027 | ||
1028 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1029 | function WACKYEFFECT(Table) | |
1030 | local TYPE = (Table.EffectType or "Sphere") | |
1031 | local SIZE = (Table.Size or VT(1,1,1)) | |
1032 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1033 | local TRANSPARENCY = (Table.Transparency or 0) | |
1034 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1035 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1036 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1037 | local ROTATION1 = (Table.RotationX or 0) | |
1038 | local ROTATION2 = (Table.RotationY or 0) | |
1039 | local ROTATION3 = (Table.RotationZ or 0) | |
1040 | local MATERIAL = (Table.Material or "Neon") | |
1041 | local COLOR = (Table.Color or C3(1,1,1)) | |
1042 | local TIME = (Table.Time or 45) | |
1043 | local SOUNDID = (Table.SoundID or nil) | |
1044 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1045 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1046 | coroutine.resume(coroutine.create(function() | |
1047 | local PLAYSSOUND = false | |
1048 | local SOUND = nil | |
1049 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1050 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1051 | PLAYSSOUND = true | |
1052 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1053 | end | |
1054 | EFFECT.Color = COLOR | |
1055 | local MSH = nil | |
1056 | if TYPE == "Sphere" then | |
1057 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1058 | elseif TYPE == "Block" then | |
1059 | MSH = IT("BlockMesh",EFFECT) | |
1060 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1061 | elseif TYPE == "Box" then | |
1062 | MSH = IT("BlockMesh",EFFECT) | |
1063 | MSH.Scale = SIZE | |
1064 | elseif TYPE == "Wave" then | |
1065 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1066 | elseif TYPE == "Ring" then | |
1067 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1068 | elseif TYPE == "Slash" then | |
1069 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1070 | elseif TYPE == "Round Slash" then | |
1071 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1072 | elseif TYPE == "Swirl" then | |
1073 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1074 | elseif TYPE == "Skull" then | |
1075 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1076 | elseif TYPE == "Crystal" then | |
1077 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1078 | end | |
1079 | if MSH ~= nil then | |
1080 | local MOVESPEED = nil | |
1081 | if MOVEDIRECTION ~= nil then | |
1082 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1083 | end | |
1084 | local GROWTH = SIZE - ENDSIZE | |
1085 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1086 | if TYPE == "Block" then | |
1087 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1088 | else | |
1089 | EFFECT.CFrame = CFRAME | |
1090 | end | |
1091 | for LOOP = 1, TIME do | |
1092 | Swait() | |
1093 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1094 | if TYPE == "Wave" then | |
1095 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1096 | end | |
1097 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1098 | if TYPE == "Block" then | |
1099 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1100 | else | |
1101 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1102 | end | |
1103 | if MOVEDIRECTION ~= nil then | |
1104 | local ORI = EFFECT.Orientation | |
1105 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1106 | EFFECT.Orientation = ORI | |
1107 | end | |
1108 | end | |
1109 | if PLAYSSOUND == false then | |
1110 | EFFECT:remove() | |
1111 | else | |
1112 | repeat Swait() until SOUND.Playing == false | |
1113 | EFFECT:remove() | |
1114 | end | |
1115 | else | |
1116 | if PLAYSSOUND == false then | |
1117 | EFFECT:remove() | |
1118 | else | |
1119 | repeat Swait() until SOUND.Playing == false | |
1120 | EFFECT:remove() | |
1121 | end | |
1122 | end | |
1123 | end)) | |
1124 | end | |
1125 | ||
1126 | function Shatter(Part) | |
1127 | if Part.Transparency == 0 then | |
1128 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
1129 | Debris:AddItem(SOUNDPART,5) | |
1130 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
1131 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
1132 | local SIZESET = SIZE/4 | |
1133 | local XOffset = Part.Size.X*1.5/SIZESET | |
1134 | local YOffset = Part.Size.Y*1.5/SIZESET | |
1135 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
1136 | for x = 1, math.ceil(XOffset) do | |
1137 | for y = 1, math.ceil(YOffset) do | |
1138 | for z = 1, math.ceil(ZOffset) do | |
1139 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
1140 | SHARD.CanCollide = true | |
1141 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
1142 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
1143 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | end | |
1148 | Part:remove() | |
1149 | end | |
1150 | ||
1151 | function MakeForm(PART,TYPE) | |
1152 | if TYPE == "Cyl" then | |
1153 | local MSH = IT("CylinderMesh",PART) | |
1154 | elseif TYPE == "Ball" then | |
1155 | local MSH = IT("SpecialMesh",PART) | |
1156 | MSH.MeshType = "Sphere" | |
1157 | elseif TYPE == "Wedge" then | |
1158 | local MSH = IT("SpecialMesh",PART) | |
1159 | MSH.MeshType = "Wedge" | |
1160 | end | |
1161 | end | |
1162 | ||
1163 | Debris = game:GetService("Debris") | |
1164 | ||
1165 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1166 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1167 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1168 | end | |
1169 | ||
1170 | function turnto(position) | |
1171 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1172 | end | |
1173 | ||
1174 | --//=================================\\ | |
1175 | --|| WEAPON CREATION | |
1176 | --\\=================================// | |
1177 | ||
1178 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Wing", VT(1,1,0.35),false) | |
1179 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
1180 | ||
1181 | local ANGLE = 35 | |
1182 | for i = 1, 5 do | |
1183 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Wing", VT(0.15,2+(i/2),0.15),false) | |
1184 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
1185 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Wing", VT(0.25,1,0.25),false) | |
1186 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
1187 | ANGLE = ANGLE - 15 | |
1188 | table.insert(LEFTWINGS,WingWeld) | |
1189 | end | |
1190 | ANGLE = 35 | |
1191 | for i = 1, 5 do | |
1192 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Wing", VT(0.15,2+(i/2),0.15),false) | |
1193 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
1194 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Wing", VT(0.25,1,0.25),false) | |
1195 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
1196 | ANGLE = ANGLE - 15 | |
1197 | table.insert(RIGHTWINGS,WingWeld) | |
1198 | end | |
1199 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Eye", VT(0.3,0.3,0.3),false) | |
1200 | local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
1201 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Gold", "Eye", VT(0.5,0.5,0.29),false) | |
1202 | local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
1203 | ||
1204 | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Eye", VT(0.1,0.1,0.31),false) | |
1205 | local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
1206 | ||
1207 | local SKILLTEXTCOLOR = BRICKC"Gold".Color | |
1208 | local SKILLFONT = "Code" | |
1209 | local SKILLTEXTSIZE = 6 | |
1210 | ||
1211 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1212 | naeeym2.AlwaysOnTop = true | |
1213 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1214 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
1215 | naeeym2.Adornee = Character.Head | |
1216 | naeeym2.Name = "nutta1258" | |
1217 | naeeym2.PlayerToHideFrom = nutta1258 | |
1218 | - | naeeym2.Name = "Name" |
1218 | + | |
1219 | - | naeeym2.PlayerToHideFrom = Player |
1219 | + | |
1220 | tecks2.TextScaled = true | |
1221 | tecks2.BorderSizePixel = 0 | |
1222 | tecks2.Text = "Dragon The Fallen Star" | |
1223 | tecks2.Font = SKILLFONT | |
1224 | tecks2.TextSize = 30 | |
1225 | tecks2.TextStrokeTransparency = 0 | |
1226 | tecks2.TextColor3 = C3(0,0,0) | |
1227 | tecks2.TextStrokeColor3 = BRICKC"Deep orange".Color | |
1228 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1229 | tecks2.Parent = naeeym2 | |
1230 | ||
1231 | for _, c in pairs(Character:GetChildren()) do | |
1232 | if c.ClassName == "Part" then | |
1233 | table.insert(BODY,{c,Character}) | |
1234 | for _, q in pairs(c:GetChildren()) do | |
1235 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
1236 | table.insert(BODY,{q,c}) | |
1237 | end | |
1238 | end | |
1239 | end | |
1240 | end | |
1241 | ||
1242 | function refit() | |
1243 | Character.Parent = workspace | |
1244 | for e = 1, #BODY do | |
1245 | if BODY[e] ~= nil then | |
1246 | local STUFF = BODY[e] | |
1247 | local PART = STUFF[1] | |
1248 | local PARENT = STUFF[2] | |
1249 | PART.Parent = PARENT | |
1250 | end | |
1251 | end | |
1252 | end | |
1253 | ||
1254 | Humanoid.HealthChanged:connect(function() | |
1255 | Humanoid.Parent = nil | |
1256 | Humanoid.MaxHealth = "inf" | |
1257 | Humanoid.Health = "inf" | |
1258 | refit() | |
1259 | Humanoid.Parent = Character | |
1260 | end) | |
1261 | ||
1262 | Humanoid.Died:connect(function() | |
1263 | Humanoid.Parent = nil | |
1264 | Humanoid.MaxHealth = "inf" | |
1265 | Humanoid.Health = "inf" | |
1266 | refit() | |
1267 | Humanoid.Parent = Character | |
1268 | end) | |
1269 | ||
1270 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1271 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1272 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1273 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1274 | ||
1275 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Star Burst!", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1276 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Star Light Stream", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1277 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Star Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1278 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Star Rage", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1279 | ||
1280 | --//=================================\\ | |
1281 | --|| DAMAGING | |
1282 | --\\=================================// | |
1283 | ||
1284 | function killnearest(position,range,EFFECT) | |
1285 | for i,v in ipairs(workspace:GetChildren()) do | |
1286 | local body = v:GetChildren() | |
1287 | for part = 1, #body do | |
1288 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1289 | local SIZE = body[part].Size.Magnitude | |
1290 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
1291 | if v.ClassName == "Model" then | |
1292 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
1293 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
1294 | v:BreakJoints() | |
1295 | if EFFECT == "Glitch" then | |
1296 | coroutine.resume(coroutine.create(function() | |
1297 | local ORIGINPOS = body[part].CFrame | |
1298 | local SIZE = body[part].Size | |
1299 | for i = 1, 100 do | |
1300 | Swait() | |
1301 | local PART = body[part] | |
1302 | PART.Anchored = true | |
1303 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
1304 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
1305 | end | |
1306 | body[part]:remove() | |
1307 | end)) | |
1308 | elseif EFFECT == "Shatter" then | |
1309 | for _, c in pairs(v:GetChildren()) do | |
1310 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1311 | Shatter(c) | |
1312 | end | |
1313 | end | |
1314 | end | |
1315 | end | |
1316 | end | |
1317 | end | |
1318 | end | |
1319 | end | |
1320 | end | |
1321 | end | |
1322 | end | |
1323 | ||
1324 | --//=================================\\ | |
1325 | --|| ATTACK FUNCTIONS AND STUFF | |
1326 | --\\=================================// | |
1327 | ||
1328 | function CyberOutburst() | |
1329 | if HITFLOOR ~= nil then | |
1330 | ATTACK = true | |
1331 | Rooted = true | |
1332 | for i=0, 2, 0.1 / Animation_Speed do | |
1333 | Swait() | |
1334 | WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1335 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1336 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1337 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1338 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1339 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1340 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1341 | end | |
1342 | for i=0, 2, 0.1 / Animation_Speed do | |
1343 | Swait() | |
1344 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1345 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1346 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1347 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1348 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1349 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1350 | end | |
1351 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6}) | |
1352 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4}) | |
1353 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2}) | |
1354 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1355 | Swait() | |
1356 | killnearest(Torso.Position,45,"Glitch") | |
1357 | WACKYEFFECT({Time = 75, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1358 | WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1359 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1360 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1361 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1362 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1363 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1364 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1365 | end | |
1366 | ATTACK = false | |
1367 | Rooted = false | |
1368 | end | |
1369 | end | |
1370 | ||
1371 | function Technobeam() | |
1372 | ATTACK = true | |
1373 | Rooted = false | |
1374 | local GYRO = IT("BodyGyro",RootPart) | |
1375 | GYRO.D = 100 | |
1376 | GYRO.P = 2000 | |
1377 | GYRO.MaxTorque = VT(0,4000000,0) | |
1378 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1379 | CreateSound("93724183", RightArm, 5, 1, false) | |
1380 | for i=1, 35 do | |
1381 | Swait() | |
1382 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1383 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1384 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1385 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1386 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1387 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1388 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1389 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1390 | end | |
1391 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Lazer", VT(0,0,0)) | |
1392 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
1393 | local TOCH = BEAM.Touched:Connect(function(hit) | |
1394 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
1395 | Shatter(hit) | |
1396 | end | |
1397 | end) | |
1398 | local I = 0 | |
1399 | repeat | |
1400 | Swait() | |
1401 | I = I + 1 | |
1402 | if I <= 10 then | |
1403 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
1404 | end | |
1405 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
1406 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
1407 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
1408 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
1409 | BEAM.Size = VT(2,2,DISTANCE) | |
1410 | WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1411 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1412 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1413 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1414 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1415 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1416 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1417 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1418 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1419 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1420 | if ENDHIT ~= nil then | |
1421 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
1422 | Shatter(ENDHIT) | |
1423 | end | |
1424 | end | |
1425 | until LOOP.Playing == false | |
1426 | GYRO:remove() | |
1427 | BEAM:remove() | |
1428 | ATTACK = false | |
1429 | Rooted = false | |
1430 | end | |
1431 | ||
1432 | function Technowarp() | |
1433 | local FRAME = RootPart.Position | |
1434 | for i = 1, 6 do | |
1435 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Deep orange".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
1436 | end | |
1437 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
1438 | for i = 1, 6 do | |
1439 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Gold".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
1440 | end | |
1441 | end | |
1442 | ||
1443 | function CyberSmash() | |
1444 | ATTACK = true | |
1445 | Rooted = false | |
1446 | local GYRO = IT("BodyGyro",RootPart) | |
1447 | GYRO.D = 100 | |
1448 | GYRO.P = 2000 | |
1449 | GYRO.MaxTorque = VT(0,4000000,0) | |
1450 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1451 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Deep orange", "Block", VT(25,25,25)) | |
1452 | SMASH.CanCollide = true | |
1453 | SMASH.Color = C3(0,0,0) | |
1454 | local EF = Instance.new("SelectionBox",SMASH) | |
1455 | EF.Adornee = SMASH | |
1456 | EF.Color = BrickColor.new("Gold") | |
1457 | EF.LineThickness = 0.2 | |
1458 | EF.Transparency = 1 | |
1459 | coroutine.resume(coroutine.create(function() | |
1460 | for i = 1, 20 do | |
1461 | Swait() | |
1462 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
1463 | EF.Transparency = SMASH.Transparency | |
1464 | end | |
1465 | end)) | |
1466 | repeat | |
1467 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
1468 | Swait() | |
1469 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
1470 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1471 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1472 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1473 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1474 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1475 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1476 | until HOLD == true and SMASH.Transparency < 0.99 | |
1477 | for i = 1, 25 do | |
1478 | Swait() | |
1479 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
1480 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1481 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1482 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1483 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1484 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1485 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1486 | end | |
1487 | local TOCH = SMASH.Touched:Connect(function(hit) | |
1488 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
1489 | Shatter(hit) | |
1490 | end | |
1491 | end) | |
1492 | local n0 = nil | |
1493 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
1494 | if HITFLOOR ~= nil then | |
1495 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
1496 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1497 | if HITFLOOR.Parent.ClassName == "Model" then | |
1498 | HITFLOOR.Parent:BreakJoints() | |
1499 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
1500 | HITFLOOR.Parent.Parent:BreakJoints() | |
1501 | end | |
1502 | end | |
1503 | local POS = HITPOS | |
1504 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
1505 | end | |
1506 | end | |
1507 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
1508 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
1509 | WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10}) | |
1510 | for i = 1, 25 do | |
1511 | Swait() | |
1512 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1513 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1514 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1515 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1516 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1517 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1518 | end | |
1519 | coroutine.resume(coroutine.create(function() | |
1520 | wait(0.2) | |
1521 | TOCH:disconnect() | |
1522 | wait(1.8) | |
1523 | for i = 1, 100 do | |
1524 | Swait() | |
1525 | SMASH.Transparency = i/100 | |
1526 | end | |
1527 | for i = 1, 10 do | |
1528 | Swait() | |
1529 | EF.Transparency = EF.Transparency + 0.1 | |
1530 | end | |
1531 | SMASH:remove() | |
1532 | end)) | |
1533 | GYRO:remove() | |
1534 | ATTACK = false | |
1535 | Rooted = false | |
1536 | end | |
1537 | ||
1538 | --//=================================\\ | |
1539 | --|| ASSIGN THINGS TO KEYS | |
1540 | --\\=================================// | |
1541 | ||
1542 | function MouseDown(Mouse) | |
1543 | HOLD = true | |
1544 | if ATTACK == false then | |
1545 | end | |
1546 | end | |
1547 | ||
1548 | function MouseUp(Mouse) | |
1549 | HOLD = false | |
1550 | end | |
1551 | ||
1552 | function KeyDown(Key) | |
1553 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1554 | KEYHOLD = true | |
1555 | if Key == "z" and ATTACK == false then | |
1556 | CyberOutburst() | |
1557 | end | |
1558 | ||
1559 | if Key == "b" and ATTACK == false then | |
1560 | Technobeam() | |
1561 | end | |
1562 | ||
1563 | if Key == "c" and ATTACK == false then | |
1564 | Technowarp() | |
1565 | end | |
1566 | ||
1567 | if Key == "v" and ATTACK == false then | |
1568 | CyberSmash() | |
1569 | end | |
1570 | ||
1571 | if Key == "t" then | |
1572 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
1573 | TAUNT.TimePosition = 1.1 | |
1574 | end | |
1575 | end | |
1576 | end | |
1577 | ||
1578 | function KeyUp(Key) | |
1579 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1580 | KEYHOLD = false | |
1581 | end | |
1582 | end | |
1583 | ||
1584 | Mouse.Button1Down:connect(function(NEWKEY) | |
1585 | MouseDown(NEWKEY) | |
1586 | end) | |
1587 | Mouse.Button1Up:connect(function(NEWKEY) | |
1588 | MouseUp(NEWKEY) | |
1589 | end) | |
1590 | Mouse.KeyDown:connect(function(NEWKEY) | |
1591 | KeyDown(NEWKEY) | |
1592 | end) | |
1593 | Mouse.KeyUp:connect(function(NEWKEY) | |
1594 | KeyUp(NEWKEY) | |
1595 | end) | |
1596 | ||
1597 | --//=================================\\ | |
1598 | --\\=================================// | |
1599 | ||
1600 | ||
1601 | function unanchor() | |
1602 | if UNANCHOR == true then | |
1603 | g = Character:GetChildren() | |
1604 | for i = 1, #g do | |
1605 | if g[i].ClassName == "Part" then | |
1606 | g[i].Anchored = false | |
1607 | end | |
1608 | end | |
1609 | end | |
1610 | end | |
1611 | ||
1612 | ||
1613 | --//=================================\\ | |
1614 | --|| WRAP THE WHOLE SCRIPT UP | |
1615 | --\\=================================// | |
1616 | ||
1617 | Humanoid.Changed:connect(function(Jump) | |
1618 | if Jump == "Jump" and (Disable_Jump == true) then | |
1619 | Humanoid.Jump = false | |
1620 | end | |
1621 | end) | |
1622 | ||
1623 | Humanoid.HipHeight = 2 | |
1624 | ||
1625 | while true do | |
1626 | Swait() | |
1627 | refit() | |
1628 | Character.Parent = workspace | |
1629 | Humanoid.Parent = Character | |
1630 | ANIMATE.Parent = nil | |
1631 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1632 | IDLEANIMATION:Play() | |
1633 | SINE = SINE + CHANGE | |
1634 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1635 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1636 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
1637 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1638 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1639 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1640 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
1641 | for LW = 1, #LEFTWINGS do | |
1642 | if LEFTWINGS[LW] ~= nil then | |
1643 | LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1644 | end | |
1645 | end | |
1646 | for RW = 1, #RIGHTWINGS do | |
1647 | if RIGHTWINGS[RW] ~= nil then | |
1648 | RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1649 | end | |
1650 | end | |
1651 | if ATTACK == false then | |
1652 | if TORSOVELOCITY < 1 then | |
1653 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1654 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1655 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1656 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1657 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1658 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed) | |
1659 | elseif TORSOVELOCITY > 1 then | |
1660 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1661 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1662 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1663 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1664 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1665 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1666 | end | |
1667 | end | |
1668 | for _, c in pairs(Character:GetChildren()) do | |
1669 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1670 | c.Material = "Neon" | |
1671 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1672 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1673 | end | |
1674 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1675 | local EF = Instance.new("SelectionBox",c) | |
1676 | EF.Adornee = c | |
1677 | EF.Color = BrickColor.new("Gold") | |
1678 | EF.LineThickness = 0.01 | |
1679 | EF.Transparency = 0 | |
1680 | EF.Name = "BoxEffect" | |
1681 | end | |
1682 | c.Color = C3(0,0,0) | |
1683 | if c == Head then | |
1684 | --[[if c:FindFirstChild("Dominus") == nil then | |
1685 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1686 | M.Name = "Dominus" | |
1687 | end]]-- | |
1688 | if c:FindFirstChild("face") then | |
1689 | c.face:remove() | |
1690 | end | |
1691 | end | |
1692 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1693 | end | |
1694 | end | |
1695 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1696 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1697 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1698 | if BOXFLOOR ~= nil then | |
1699 | WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1700 | end | |
1701 | end | |
1702 | unanchor() | |
1703 | Humanoid.MaxHealth = "inf" | |
1704 | Humanoid.Health = "inf" | |
1705 | if Rooted == false then | |
1706 | Disable_Jump = false | |
1707 | Humanoid.WalkSpeed = Speed | |
1708 | elseif Rooted == true then | |
1709 | Disable_Jump = true | |
1710 | Humanoid.WalkSpeed = 0 | |
1711 | end | |
1712 | for _, c in pairs(workspace:GetChildren()) do | |
1713 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1714 | end | |
1715 | end | |
1716 | script.Parent = WEAPONGUI | |
1717 | Humanoid.Name = "Monarch" | |
1718 | sick.Parent = Effects | |
1719 | sick.Pitch = 1 | |
1720 | sick.Playing = true | |
1721 | for _, q in pairs(Head:GetChildren()) do | |
1722 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1723 | q:remove() | |
1724 | end | |
1725 | end | |
1726 | Humanoid.DisplayDistanceType = "None" | |
1727 | end | |
1728 | ||
1729 | --//=================================\\ | |
1730 | --\\=================================// | |
1731 | ||
1732 | ||
1733 | ||
1734 | ||
1735 | ||
1736 | --//====================================================\\-- | |
1737 | --|| END OF SCRIPT | |
1738 | --\\====================================================//-- |