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