SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | - | --Cyber warden-- |
2 | + | |
3 | - | ---------------------------------------------------------------- |
3 | + | |
4 | - | print([[ |
4 | + | Player = game:GetService("Players").lolfarmer |
5 | - | --CREATED BY SHACKLUSTER |
5 | + | |
6 | - | --Edited by ozzak1003 -- |
6 | + | |
7 | - | --YT: https://www.youtube.com/channel/UC38cAdtSgPWJVEHV8zgZi6A-- |
7 | + | |
8 | - | --Discord: ozzak1003ripagain#3275 |
8 | + | |
9 | - | -------------------------------- |
9 | + | |
10 | - | hello good sir |
10 | + | |
11 | - | Don't leak pls |
11 | + | |
12 | - | Enjoy ;) |
12 | + | |
13 | - | ------------------------------- |
13 | + | |
14 | - | ]]) |
14 | + | |
15 | - | ------------------------------ |
15 | + | |
16 | LeftLeg = Character["Left Leg"] | |
17 | RootJoint = RootPart["RootJoint"] | |
18 | - | Player = game:GetService("Players").LocalPlayer |
18 | + | |
19 | RightShoulder = Torso["Right Shoulder"] | |
20 | LeftShoulder = Torso["Left Shoulder"] | |
21 | RightHip = Torso["Right Hip"] | |
22 | LeftHip = Torso["Left Hip"] | |
23 | local sick = Instance.new("Sound",Character) | |
24 | - | Mouse = Player:GetMouse() |
24 | + | |
25 | sick.Looped = true | |
26 | sick.Volume = 1 | |
27 | ||
28 | IT = Instance.new | |
29 | CF = CFrame.new | |
30 | VT = Vector3.new | |
31 | RAD = math.rad | |
32 | C3 = Color3.new | |
33 | UD2 = UDim2.new | |
34 | BRICKC = BrickColor.new | |
35 | ANGLES = CFrame.Angles | |
36 | EULER = CFrame.fromEulerAnglesXYZ | |
37 | COS = math.cos | |
38 | ACOS = math.acos | |
39 | SIN = math.sin | |
40 | ASIN = math.asin | |
41 | ABS = math.abs | |
42 | MRANDOM = math.random | |
43 | FLOOR = math.floor | |
44 | ||
45 | --//=================================\\ | |
46 | --|| USEFUL VALUES | |
47 | --\\=================================// | |
48 | ||
49 | Animation_Speed = 3 | |
50 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
51 | local Speed = 45 | |
52 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
53 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
54 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
55 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
56 | local DAMAGEMULTIPLIER = 1 | |
57 | local ANIM = "Idle" | |
58 | local ATTACK = false | |
59 | local EQUIPPED = false | |
60 | local HOLD = false | |
61 | local COMBO = 1 | |
62 | local Rooted = false | |
63 | local SINE = 0 | |
64 | local KEYHOLD = false | |
65 | local CHANGE = 2 / Animation_Speed | |
66 | local WALKINGANIM = false | |
67 | local VALUE1 = false | |
68 | local VALUE2 = false | |
69 | local ROBLOXIDLEANIMATION = IT("Animation") | |
70 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
71 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
72 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
73 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
74 | WEAPONGUI.Name = "Weapon GUI" | |
75 | local Effects = IT("Folder", Character) | |
76 | Effects.Name = "Effects" | |
77 | local ANIMATOR = Humanoid.Animator | |
78 | local ANIMATE = Character.Animate | |
79 | local UNANCHOR = true | |
80 | local HITPOS = nil | |
81 | local HITFLOOR = nil | |
82 | local LEFTWINGS = {} | |
83 | local RIGHTWINGS = {} | |
84 | local BODY = {} | |
85 | ||
86 | --//=================================\\ | |
87 | --\\=================================// | |
88 | ||
89 | ||
90 | --//=================================\\ | |
91 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
92 | --\\=================================// | |
93 | ||
94 | ArtificialHB = Instance.new("BindableEvent", script) | |
95 | ArtificialHB.Name = "ArtificialHB" | |
96 | ||
97 | script:WaitForChild("ArtificialHB") | |
98 | ||
99 | frame = Frame_Speed | |
100 | tf = 0 | |
101 | allowframeloss = false | |
102 | tossremainder = false | |
103 | lastframe = tick() | |
104 | script.ArtificialHB:Fire() | |
105 | ||
106 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
107 | tf = tf + s | |
108 | if tf >= frame then | |
109 | if allowframeloss then | |
110 | script.ArtificialHB:Fire() | |
111 | lastframe = tick() | |
112 | else | |
113 | for i = 1, math.floor(tf / frame) do | |
114 | script.ArtificialHB:Fire() | |
115 | end | |
116 | lastframe = tick() | |
117 | end | |
118 | if tossremainder then | |
119 | tf = 0 | |
120 | else | |
121 | tf = tf - frame * math.floor(tf / frame) | |
122 | end | |
123 | end | |
124 | end) | |
125 | ||
126 | --//=================================\\ | |
127 | --\\=================================// | |
128 | ||
129 | --//=================================\\ | |
130 | --|| SOME FUNCTIONS | |
131 | --\\=================================// | |
132 | --- | |
133 | ||
134 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
135 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
136 | end | |
137 | ||
138 | function PositiveAngle(NUMBER) | |
139 | if NUMBER >= 0 then | |
140 | NUMBER = 0 | |
141 | end | |
142 | return NUMBER | |
143 | end | |
144 | ||
145 | function NegativeAngle(NUMBER) | |
146 | if NUMBER <= 0 then | |
147 | NUMBER = 0 | |
148 | end | |
149 | return NUMBER | |
150 | end | |
151 | ||
152 | function Swait(NUMBER) | |
153 | if NUMBER == 0 or NUMBER == nil then | |
154 | ArtificialHB.Event:wait() | |
155 | else | |
156 | for i = 1, NUMBER do | |
157 | ArtificialHB.Event:wait() | |
158 | end | |
159 | end | |
160 | end | |
161 | ||
162 | function QuaternionFromCFrame(cf) | |
163 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
164 | local trace = m00 + m11 + m22 | |
165 | if trace > 0 then | |
166 | local s = math.sqrt(1 + trace) | |
167 | local recip = 0.5 / s | |
168 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
169 | else | |
170 | local i = 0 | |
171 | if m11 > m00 then | |
172 | i = 1 | |
173 | end | |
174 | if m22 > (i == 0 and m00 or m11) then | |
175 | i = 2 | |
176 | end | |
177 | if i == 0 then | |
178 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
179 | local recip = 0.5 / s | |
180 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
181 | elseif i == 1 then | |
182 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
183 | local recip = 0.5 / s | |
184 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
185 | elseif i == 2 then | |
186 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
187 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
188 | end | |
189 | end | |
190 | end | |
191 | ||
192 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
193 | local xs, ys, zs = x + x, y + y, z + z | |
194 | local wx, wy, wz = w * xs, w * ys, w * zs | |
195 | local xx = x * xs | |
196 | local xy = x * ys | |
197 | local xz = x * zs | |
198 | local yy = y * ys | |
199 | local yz = y * zs | |
200 | local zz = z * zs | |
201 | 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)) | |
202 | end | |
203 | ||
204 | function QuaternionSlerp(a, b, t) | |
205 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
206 | local startInterp, finishInterp; | |
207 | if cosTheta >= 0.0001 then | |
208 | if (1 - cosTheta) > 0.0001 then | |
209 | local theta = ACOS(cosTheta) | |
210 | local invSinTheta = 1 / SIN(theta) | |
211 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
212 | finishInterp = SIN(t * theta) * invSinTheta | |
213 | else | |
214 | startInterp = 1 - t | |
215 | finishInterp = t | |
216 | end | |
217 | else | |
218 | if (1 + cosTheta) > 0.0001 then | |
219 | local theta = ACOS(-cosTheta) | |
220 | local invSinTheta = 1 / SIN(theta) | |
221 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
222 | finishInterp = SIN(t * theta) * invSinTheta | |
223 | else | |
224 | startInterp = t - 1 | |
225 | finishInterp = t | |
226 | end | |
227 | end | |
228 | 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 | |
229 | end | |
230 | ||
231 | function Clerp(a, b, t) | |
232 | local qa = {QuaternionFromCFrame(a)} | |
233 | local qb = {QuaternionFromCFrame(b)} | |
234 | local ax, ay, az = a.x, a.y, a.z | |
235 | local bx, by, bz = b.x, b.y, b.z | |
236 | local _t = 1 - t | |
237 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
238 | end | |
239 | ||
240 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
241 | local frame = IT("Frame") | |
242 | frame.BackgroundTransparency = TRANSPARENCY | |
243 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
244 | frame.Position = POSITION | |
245 | frame.Size = SIZE | |
246 | frame.BackgroundColor3 = COLOR | |
247 | frame.BorderColor3 = BORDERCOLOR | |
248 | frame.Name = NAME | |
249 | frame.Parent = PARENT | |
250 | return frame | |
251 | end | |
252 | ||
253 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
254 | local label = IT("TextLabel") | |
255 | label.BackgroundTransparency = 1 | |
256 | label.Size = UD2(1, 0, 1, 0) | |
257 | label.Position = UD2(0, 0, 0, 0) | |
258 | label.TextColor3 = TEXTCOLOR | |
259 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
260 | label.TextTransparency = TRANSPARENCY | |
261 | label.FontSize = TEXTFONTSIZE | |
262 | label.Font = TEXTFONT | |
263 | label.BorderSizePixel = BORDERSIZEPIXEL | |
264 | label.TextScaled = false | |
265 | label.Text = TEXT | |
266 | label.Name = NAME | |
267 | label.Parent = PARENT | |
268 | return label | |
269 | end | |
270 | ||
271 | function NoOutlines(PART) | |
272 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
273 | end | |
274 | ||
275 | ||
276 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
277 | local NEWWELD = IT(TYPE) | |
278 | NEWWELD.Part0 = PART0 | |
279 | NEWWELD.Part1 = PART1 | |
280 | NEWWELD.C0 = C0 | |
281 | NEWWELD.C1 = C1 | |
282 | NEWWELD.Parent = PARENT | |
283 | return NEWWELD | |
284 | end | |
285 | ||
286 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
287 | local NEWSOUND = nil | |
288 | coroutine.resume(coroutine.create(function() | |
289 | NEWSOUND = IT("Sound", PARENT) | |
290 | NEWSOUND.Volume = VOLUME | |
291 | NEWSOUND.Pitch = PITCH | |
292 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
293 | Swait() | |
294 | NEWSOUND:play() | |
295 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
296 | end)) | |
297 | return NEWSOUND | |
298 | end | |
299 | ||
300 | function CFrameFromTopBack(at, top, back) | |
301 | local right = top:Cross(back) | |
302 | 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) | |
303 | end | |
304 | ||
305 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
306 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
307 | wave.Color = COLOR | |
308 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
309 | wave.CFrame = CFRAME | |
310 | coroutine.resume(coroutine.create(function(PART) | |
311 | for i = 1, WAIT do | |
312 | Swait() | |
313 | mesh.Scale = mesh.Scale + GROW | |
314 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
315 | if DOESROT == true then | |
316 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
317 | end | |
318 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
319 | if wave.Transparency > 0.99 then | |
320 | wave:remove() | |
321 | end | |
322 | end | |
323 | end)) | |
324 | end | |
325 | ||
326 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
327 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
328 | wave.Color = COLOR | |
329 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0)) | |
330 | wave.CFrame = CFRAME | |
331 | coroutine.resume(coroutine.create(function(PART) | |
332 | for i = 1, WAIT do | |
333 | Swait() | |
334 | mesh.Scale = mesh.Scale + GROW | |
335 | wave.Transparency = wave.Transparency + (1/WAIT) | |
336 | if wave.Transparency > 0.99 then | |
337 | wave:remove() | |
338 | end | |
339 | end | |
340 | end)) | |
341 | end | |
342 | ||
343 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
344 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
345 | local mesh = nil | |
346 | if KIND == "Base" then | |
347 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
348 | elseif KIND == "Thin" then | |
349 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
350 | elseif KIND == "Round" then | |
351 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
352 | end | |
353 | wave.CFrame = CFRAME | |
354 | coroutine.resume(coroutine.create(function(PART) | |
355 | for i = 1, WAIT do | |
356 | Swait() | |
357 | mesh.Scale = mesh.Scale + GROW/10 | |
358 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
359 | if wave.Transparency > 0.99 then | |
360 | wave:remove() | |
361 | end | |
362 | end | |
363 | end)) | |
364 | end | |
365 | ||
366 | function MakeForm(PART,TYPE) | |
367 | if TYPE == "Cyl" then | |
368 | local MSH = IT("CylinderMesh",PART) | |
369 | elseif TYPE == "Ball" then | |
370 | local MSH = IT("SpecialMesh",PART) | |
371 | MSH.MeshType = "Sphere" | |
372 | elseif TYPE == "Wedge" then | |
373 | local MSH = IT("SpecialMesh",PART) | |
374 | MSH.MeshType = "Wedge" | |
375 | end | |
376 | end | |
377 | ||
378 | function CheckTableForString(Table, String) | |
379 | for i, v in pairs(Table) do | |
380 | if string.find(string.lower(String), string.lower(v)) then | |
381 | return true | |
382 | end | |
383 | end | |
384 | return false | |
385 | end | |
386 | ||
387 | function CheckIntangible(Hit) | |
388 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
389 | if Hit and Hit.Parent then | |
390 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
391 | return true | |
392 | end | |
393 | end | |
394 | return false | |
395 | end | |
396 | ||
397 | Debris = game:GetService("Debris") | |
398 | ||
399 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
400 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
401 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
402 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
403 | if RayHit and CheckIntangible(RayHit) then | |
404 | if DelayIfHit then | |
405 | wait() | |
406 | end | |
407 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
408 | end | |
409 | return RayHit, RayPos, RayNormal | |
410 | end | |
411 | ||
412 | function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
413 | if DoesCourontine == false then | |
414 | local Direction = CF(Part.Position,ToLocation) | |
415 | local Distance = (Part.Position - ToLocation).magnitude | |
416 | for i = 1, AmountOfTime do | |
417 | Swait() | |
418 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
419 | Direction = Part.CFrame | |
420 | end | |
421 | Part:remove() | |
422 | elseif DoesCourontine == true then | |
423 | coroutine.resume(coroutine.create(function() | |
424 | local Direction = CF(Part.Position,ToLocation) | |
425 | local Distance = (Part.Position - ToLocation).magnitude | |
426 | for i = 1, AmountOfTime do | |
427 | Swait() | |
428 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
429 | Direction = Part.CFrame | |
430 | end | |
431 | Part:remove() | |
432 | end)) | |
433 | end | |
434 | end | |
435 | ||
436 | function turnto(position) | |
437 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
438 | end | |
439 | --- | |
440 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
441 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
442 | end | |
443 | ||
444 | function PositiveAngle(NUMBER) | |
445 | if NUMBER >= 0 then | |
446 | NUMBER = 0 | |
447 | end | |
448 | return NUMBER | |
449 | end | |
450 | ||
451 | function NegativeAngle(NUMBER) | |
452 | if NUMBER <= 0 then | |
453 | NUMBER = 0 | |
454 | end | |
455 | return NUMBER | |
456 | end | |
457 | ||
458 | function Swait(NUMBER) | |
459 | if NUMBER == 0 or NUMBER == nil then | |
460 | ArtificialHB.Event:wait() | |
461 | else | |
462 | for i = 1, NUMBER do | |
463 | ArtificialHB.Event:wait() | |
464 | end | |
465 | end | |
466 | end | |
467 | ||
468 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
469 | local NEWMESH = IT(MESH) | |
470 | if MESH == "SpecialMesh" then | |
471 | NEWMESH.MeshType = MESHTYPE | |
472 | if MESHID ~= "nil" and MESHID ~= "" then | |
473 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
474 | end | |
475 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
476 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
477 | end | |
478 | end | |
479 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
480 | NEWMESH.Scale = SCALE | |
481 | NEWMESH.Parent = PARENT | |
482 | return NEWMESH | |
483 | end | |
484 | ||
485 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
486 | local NEWPART = IT("Part") | |
487 | NEWPART.formFactor = FORMFACTOR | |
488 | NEWPART.Reflectance = REFLECTANCE | |
489 | NEWPART.Transparency = TRANSPARENCY | |
490 | NEWPART.CanCollide = false | |
491 | NEWPART.Locked = true | |
492 | NEWPART.Anchored = true | |
493 | if ANCHOR == false then | |
494 | NEWPART.Anchored = false | |
495 | end | |
496 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
497 | NEWPART.Name = NAME | |
498 | NEWPART.Size = SIZE | |
499 | NEWPART.Position = Torso.Position | |
500 | NEWPART.Material = MATERIAL | |
501 | NEWPART:BreakJoints() | |
502 | NEWPART.Parent = PARENT | |
503 | return NEWPART | |
504 | end | |
505 | ||
506 | local function weldBetween(a, b) | |
507 | local weldd = Instance.new("ManualWeld") | |
508 | weldd.Part0 = a | |
509 | weldd.Part1 = b | |
510 | weldd.C0 = CFrame.new() | |
511 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
512 | weldd.Parent = a | |
513 | return weldd | |
514 | end | |
515 | ||
516 | ||
517 | function QuaternionFromCFrame(cf) | |
518 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
519 | local trace = m00 + m11 + m22 | |
520 | if trace > 0 then | |
521 | local s = math.sqrt(1 + trace) | |
522 | local recip = 0.5 / s | |
523 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
524 | else | |
525 | local i = 0 | |
526 | if m11 > m00 then | |
527 | i = 1 | |
528 | end | |
529 | if m22 > (i == 0 and m00 or m11) then | |
530 | i = 2 | |
531 | end | |
532 | if i == 0 then | |
533 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
534 | local recip = 0.5 / s | |
535 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
536 | elseif i == 1 then | |
537 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
538 | local recip = 0.5 / s | |
539 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
540 | elseif i == 2 then | |
541 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
542 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
543 | end | |
544 | end | |
545 | end | |
546 | ||
547 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
548 | local xs, ys, zs = x + x, y + y, z + z | |
549 | local wx, wy, wz = w * xs, w * ys, w * zs | |
550 | local xx = x * xs | |
551 | local xy = x * ys | |
552 | local xz = x * zs | |
553 | local yy = y * ys | |
554 | local yz = y * zs | |
555 | local zz = z * zs | |
556 | 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)) | |
557 | end | |
558 | ||
559 | function QuaternionSlerp(a, b, t) | |
560 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
561 | local startInterp, finishInterp; | |
562 | if cosTheta >= 0.0001 then | |
563 | if (1 - cosTheta) > 0.0001 then | |
564 | local theta = ACOS(cosTheta) | |
565 | local invSinTheta = 1 / SIN(theta) | |
566 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
567 | finishInterp = SIN(t * theta) * invSinTheta | |
568 | else | |
569 | startInterp = 1 - t | |
570 | finishInterp = t | |
571 | end | |
572 | else | |
573 | if (1 + cosTheta) > 0.0001 then | |
574 | local theta = ACOS(-cosTheta) | |
575 | local invSinTheta = 1 / SIN(theta) | |
576 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
577 | finishInterp = SIN(t * theta) * invSinTheta | |
578 | else | |
579 | startInterp = t - 1 | |
580 | finishInterp = t | |
581 | end | |
582 | end | |
583 | 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 | |
584 | end | |
585 | ||
586 | function Clerp(a, b, t) | |
587 | local qa = {QuaternionFromCFrame(a)} | |
588 | local qb = {QuaternionFromCFrame(b)} | |
589 | local ax, ay, az = a.x, a.y, a.z | |
590 | local bx, by, bz = b.x, b.y, b.z | |
591 | local _t = 1 - t | |
592 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
593 | end | |
594 | ||
595 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
596 | local frame = IT("Frame") | |
597 | frame.BackgroundTransparency = TRANSPARENCY | |
598 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
599 | frame.Position = POSITION | |
600 | frame.Size = SIZE | |
601 | frame.BackgroundColor3 = COLOR | |
602 | frame.BorderColor3 = BORDERCOLOR | |
603 | frame.Name = NAME | |
604 | frame.Parent = PARENT | |
605 | return frame | |
606 | end | |
607 | ||
608 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
609 | local label = IT("TextLabel") | |
610 | label.BackgroundTransparency = 1 | |
611 | label.Size = UD2(1, 0, 1, 0) | |
612 | label.Position = UD2(0, 0, 0, 0) | |
613 | label.TextColor3 = TEXTCOLOR | |
614 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
615 | label.TextTransparency = TRANSPARENCY | |
616 | label.FontSize = TEXTFONTSIZE | |
617 | label.Font = TEXTFONT | |
618 | label.BorderSizePixel = BORDERSIZEPIXEL | |
619 | label.TextScaled = false | |
620 | label.Text = TEXT | |
621 | label.Name = NAME | |
622 | label.Parent = PARENT | |
623 | return label | |
624 | end | |
625 | ||
626 | function NoOutlines(PART) | |
627 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
628 | end | |
629 | ||
630 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
631 | local NEWWELD = IT(TYPE) | |
632 | NEWWELD.Part0 = PART0 | |
633 | NEWWELD.Part1 = PART1 | |
634 | NEWWELD.C0 = C0 | |
635 | NEWWELD.C1 = C1 | |
636 | NEWWELD.Parent = PARENT | |
637 | return NEWWELD | |
638 | end | |
639 | ||
640 | local S = IT("Sound") | |
641 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
642 | local NEWSOUND = nil | |
643 | coroutine.resume(coroutine.create(function() | |
644 | NEWSOUND = S:Clone() | |
645 | NEWSOUND.Parent = PARENT | |
646 | NEWSOUND.Volume = VOLUME | |
647 | NEWSOUND.Pitch = PITCH | |
648 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
649 | NEWSOUND:play() | |
650 | if DOESLOOP == true then | |
651 | NEWSOUND.Looped = true | |
652 | else | |
653 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
654 | NEWSOUND:remove() | |
655 | end | |
656 | end)) | |
657 | return NEWSOUND | |
658 | end | |
659 | ||
660 | function CFrameFromTopBack(at, top, back) | |
661 | local right = top:Cross(back) | |
662 | 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) | |
663 | end | |
664 | ||
665 | --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,255,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
666 | function WACKYEFFECT(Table) | |
667 | local TYPE = (Table.EffectType or "Sphere") | |
668 | local SIZE = (Table.Size or VT(1,1,1)) | |
669 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
670 | local TRANSPARENCY = (Table.Transparency or 0) | |
671 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
672 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
673 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
674 | local ROTATION1 = (Table.RotationX or 0) | |
675 | local ROTATION2 = (Table.RotationY or 0) | |
676 | local ROTATION3 = (Table.RotationZ or 0) | |
677 | local MATERIAL = (Table.Material or "Neon") | |
678 | local COLOR = (Table.Color or C3(255,0,0)) | |
679 | local TIME = (Table.Time or 45) | |
680 | local SOUNDID = (Table.SoundID or nil) | |
681 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
682 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
683 | coroutine.resume(coroutine.create(function() | |
684 | local PLAYSSOUND = false | |
685 | local SOUND = nil | |
686 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
687 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
688 | PLAYSSOUND = true | |
689 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
690 | end | |
691 | EFFECT.Color = COLOR | |
692 | local MSH = nil | |
693 | if TYPE == "Sphere" then | |
694 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
695 | elseif TYPE == "Block" then | |
696 | MSH = IT("BlockMesh",EFFECT) | |
697 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
698 | elseif TYPE == "Wave" then | |
699 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
700 | elseif TYPE == "Ring" then | |
701 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
702 | elseif TYPE == "Slash" then | |
703 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
704 | elseif TYPE == "Round Slash" then | |
705 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
706 | elseif TYPE == "Swirl" then | |
707 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
708 | elseif TYPE == "Skull" then | |
709 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
710 | elseif TYPE == "Crystal" then | |
711 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
712 | end | |
713 | if MSH ~= nil then | |
714 | local MOVESPEED = nil | |
715 | if MOVEDIRECTION ~= nil then | |
716 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
717 | end | |
718 | local GROWTH = SIZE - ENDSIZE | |
719 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
720 | if TYPE == "Block" then | |
721 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
722 | else | |
723 | EFFECT.CFrame = CFRAME | |
724 | end | |
725 | for LOOP = 1, TIME+1 do | |
726 | Swait() | |
727 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
728 | if TYPE == "Wave" then | |
729 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
730 | end | |
731 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
732 | if TYPE == "Block" then | |
733 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
734 | else | |
735 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
736 | end | |
737 | if MOVEDIRECTION ~= nil then | |
738 | local ORI = EFFECT.Orientation | |
739 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
740 | EFFECT.Orientation = ORI | |
741 | end | |
742 | end | |
743 | if PLAYSSOUND == false then | |
744 | EFFECT:remove() | |
745 | else | |
746 | SOUND.Stopped:Connect(function() | |
747 | EFFECT:remove() | |
748 | end) | |
749 | end | |
750 | else | |
751 | if PLAYSSOUND == false then | |
752 | EFFECT:remove() | |
753 | else | |
754 | repeat Swait() until SOUND.Playing == false | |
755 | EFFECT:remove() | |
756 | end | |
757 | end | |
758 | end)) | |
759 | end | |
760 | ||
761 | function MakeForm(PART,TYPE) | |
762 | if TYPE == "Cyl" then | |
763 | local MSH = IT("CylinderMesh",PART) | |
764 | elseif TYPE == "Ball" then | |
765 | local MSH = IT("SpecialMesh",PART) | |
766 | MSH.MeshType = "Sphere" | |
767 | elseif TYPE == "Wedge" then | |
768 | local MSH = IT("SpecialMesh",PART) | |
769 | MSH.MeshType = "Wedge" | |
770 | end | |
771 | end | |
772 | ||
773 | function SpawnTrail(FROM,TO,BIG) | |
774 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
775 | MakeForm(TRAIL,"Cyl") | |
776 | local DIST = (FROM - TO).Magnitude | |
777 | if BIG == true then | |
778 | TRAIL.Size = VT(0.5,DIST,0.5) | |
779 | else | |
780 | TRAIL.Size = VT(0.25,DIST,0.25) | |
781 | end | |
782 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
783 | coroutine.resume(coroutine.create(function() | |
784 | for i = 1, 5 do | |
785 | Swait() | |
786 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
787 | end | |
788 | TRAIL:remove() | |
789 | end)) | |
790 | end | |
791 | ||
792 | Debris = game:GetService("Debris") | |
793 | ||
794 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
795 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
796 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
797 | end | |
798 | ||
799 | function turnto(position) | |
800 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
801 | end | |
802 | --- | |
803 | -- | |
804 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
805 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
806 | end | |
807 | ||
808 | function PositiveAngle(NUMBER) | |
809 | if NUMBER >= 0 then | |
810 | NUMBER = 0 | |
811 | end | |
812 | return NUMBER | |
813 | end | |
814 | ||
815 | function NegativeAngle(NUMBER) | |
816 | if NUMBER <= 0 then | |
817 | NUMBER = 0 | |
818 | end | |
819 | return NUMBER | |
820 | end | |
821 | ||
822 | function Swait(NUMBER) | |
823 | if NUMBER == 0 or NUMBER == nil then | |
824 | ArtificialHB.Event:wait() | |
825 | else | |
826 | for i = 1, NUMBER do | |
827 | ArtificialHB.Event:wait() | |
828 | end | |
829 | end | |
830 | end | |
831 | ||
832 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
833 | local NEWMESH = IT(MESH) | |
834 | if MESH == "SpecialMesh" then | |
835 | NEWMESH.MeshType = MESHTYPE | |
836 | if MESHID ~= "nil" and MESHID ~= "" then | |
837 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
838 | end | |
839 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
840 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
841 | end | |
842 | end | |
843 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
844 | NEWMESH.Scale = SCALE | |
845 | NEWMESH.Parent = PARENT | |
846 | return NEWMESH | |
847 | end | |
848 | ||
849 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
850 | local NEWPART = IT("Part") | |
851 | NEWPART.formFactor = FORMFACTOR | |
852 | NEWPART.Reflectance = REFLECTANCE | |
853 | NEWPART.Transparency = TRANSPARENCY | |
854 | NEWPART.CanCollide = false | |
855 | NEWPART.Locked = true | |
856 | NEWPART.Anchored = true | |
857 | if ANCHOR == false then | |
858 | NEWPART.Anchored = false | |
859 | end | |
860 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
861 | NEWPART.Name = NAME | |
862 | NEWPART.Size = SIZE | |
863 | NEWPART.Position = Torso.Position | |
864 | NEWPART.Material = MATERIAL | |
865 | NEWPART:BreakJoints() | |
866 | NEWPART.Parent = PARENT | |
867 | return NEWPART | |
868 | end | |
869 | ||
870 | local function weldBetween(a, b) | |
871 | local weldd = Instance.new("ManualWeld") | |
872 | weldd.Part0 = a | |
873 | weldd.Part1 = b | |
874 | weldd.C0 = CFrame.new() | |
875 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
876 | weldd.Parent = a | |
877 | return weldd | |
878 | end | |
879 | ||
880 | ||
881 | function QuaternionFromCFrame(cf) | |
882 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
883 | local trace = m00 + m11 + m22 | |
884 | if trace > 0 then | |
885 | local s = math.sqrt(1 + trace) | |
886 | local recip = 0.5 / s | |
887 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
888 | else | |
889 | local i = 0 | |
890 | if m11 > m00 then | |
891 | i = 1 | |
892 | end | |
893 | if m22 > (i == 0 and m00 or m11) then | |
894 | i = 2 | |
895 | end | |
896 | if i == 0 then | |
897 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
898 | local recip = 0.5 / s | |
899 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
900 | elseif i == 1 then | |
901 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
902 | local recip = 0.5 / s | |
903 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
904 | elseif i == 2 then | |
905 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
906 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
907 | end | |
908 | end | |
909 | end | |
910 | ||
911 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
912 | local xs, ys, zs = x + x, y + y, z + z | |
913 | local wx, wy, wz = w * xs, w * ys, w * zs | |
914 | local xx = x * xs | |
915 | local xy = x * ys | |
916 | local xz = x * zs | |
917 | local yy = y * ys | |
918 | local yz = y * zs | |
919 | local zz = z * zs | |
920 | 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)) | |
921 | end | |
922 | ||
923 | function QuaternionSlerp(a, b, t) | |
924 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
925 | local startInterp, finishInterp; | |
926 | if cosTheta >= 0.0001 then | |
927 | if (1 - cosTheta) > 0.0001 then | |
928 | local theta = ACOS(cosTheta) | |
929 | local invSinTheta = 1 / SIN(theta) | |
930 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
931 | finishInterp = SIN(t * theta) * invSinTheta | |
932 | else | |
933 | startInterp = 1 - t | |
934 | finishInterp = t | |
935 | end | |
936 | else | |
937 | if (1 + cosTheta) > 0.0001 then | |
938 | local theta = ACOS(-cosTheta) | |
939 | local invSinTheta = 1 / SIN(theta) | |
940 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
941 | finishInterp = SIN(t * theta) * invSinTheta | |
942 | else | |
943 | startInterp = t - 1 | |
944 | finishInterp = t | |
945 | end | |
946 | end | |
947 | 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 | |
948 | end | |
949 | ||
950 | function Clerp(a, b, t) | |
951 | local qa = {QuaternionFromCFrame(a)} | |
952 | local qb = {QuaternionFromCFrame(b)} | |
953 | local ax, ay, az = a.x, a.y, a.z | |
954 | local bx, by, bz = b.x, b.y, b.z | |
955 | local _t = 1 - t | |
956 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
957 | end | |
958 | ||
959 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
960 | local frame = IT("Frame") | |
961 | frame.BackgroundTransparency = TRANSPARENCY | |
962 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
963 | frame.Position = POSITION | |
964 | frame.Size = SIZE | |
965 | frame.BackgroundColor3 = COLOR | |
966 | frame.BorderColor3 = BORDERCOLOR | |
967 | frame.Name = NAME | |
968 | frame.Parent = PARENT | |
969 | return frame | |
970 | end | |
971 | ||
972 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
973 | local label = IT("TextLabel") | |
974 | label.BackgroundTransparency = 1 | |
975 | label.Size = UD2(1, 0, 1, 0) | |
976 | label.Position = UD2(0, 0, 0, 0) | |
977 | label.TextColor3 = TEXTCOLOR | |
978 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
979 | label.TextTransparency = TRANSPARENCY | |
980 | label.FontSize = TEXTFONTSIZE | |
981 | label.Font = TEXTFONT | |
982 | label.BorderSizePixel = BORDERSIZEPIXEL | |
983 | label.TextScaled = false | |
984 | label.Text = TEXT | |
985 | label.Name = NAME | |
986 | label.Parent = PARENT | |
987 | return label | |
988 | end | |
989 | ||
990 | function NoOutlines(PART) | |
991 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
992 | end | |
993 | ||
994 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
995 | local NEWWELD = IT(TYPE) | |
996 | NEWWELD.Part0 = PART0 | |
997 | NEWWELD.Part1 = PART1 | |
998 | NEWWELD.C0 = C0 | |
999 | NEWWELD.C1 = C1 | |
1000 | NEWWELD.Parent = PARENT | |
1001 | return NEWWELD | |
1002 | end | |
1003 | ||
1004 | local S = IT("Sound") | |
1005 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1006 | local NEWSOUND = nil | |
1007 | coroutine.resume(coroutine.create(function() | |
1008 | NEWSOUND = S:Clone() | |
1009 | NEWSOUND.Parent = PARENT | |
1010 | NEWSOUND.Volume = VOLUME | |
1011 | NEWSOUND.Pitch = PITCH | |
1012 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1013 | NEWSOUND:play() | |
1014 | if DOESLOOP == true then | |
1015 | NEWSOUND.Looped = true | |
1016 | else | |
1017 | repeat wait(1) until NEWSOUND.Playing == false | |
1018 | NEWSOUND:remove() | |
1019 | end | |
1020 | end)) | |
1021 | return NEWSOUND | |
1022 | end | |
1023 | ||
1024 | local EyeSizes={ | |
1025 | NumberSequenceKeypoint.new(0,2,0), | |
1026 | NumberSequenceKeypoint.new(1,0,0) | |
1027 | } | |
1028 | local EyeTrans={ | |
1029 | NumberSequenceKeypoint.new(0,0.5,0), | |
1030 | NumberSequenceKeypoint.new(1,1,0) | |
1031 | } | |
1032 | local PE=Instance.new("ParticleEmitter",nil) | |
1033 | PE.LightEmission=.8 | |
1034 | PE.Color = ColorSequence.new(BRICKC("Crimson").Color,BRICKC("Really red").Color) | |
1035 | PE.Size=NumberSequence.new(EyeSizes) | |
1036 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1037 | PE.Lifetime=NumberRange.new(0.35,1) | |
1038 | PE.Rotation=NumberRange.new(0,360) | |
1039 | PE.Rate=100 | |
1040 | PE.VelocitySpread = 10000 | |
1041 | PE.Acceleration = Vector3.new(0,85,0) | |
1042 | PE.Drag = 5 | |
1043 | PE.Speed = NumberRange.new(0.1,5) | |
1044 | PE.Texture="http://www.roblox.com/asset/?id=818983932" | |
1045 | PE.ZOffset = 0.5 | |
1046 | PE.Name = "PE" | |
1047 | PE.Enabled = false | |
1048 | ||
1049 | function Fire(art) | |
1050 | local PARTICLES = PE:Clone() | |
1051 | PARTICLES.Parent = art | |
1052 | PARTICLES.Enabled = true | |
1053 | return PARTICLES | |
1054 | end | |
1055 | ||
1056 | function CFrameFromTopBack(at, top, back) | |
1057 | local right = top:Cross(back) | |
1058 | 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) | |
1059 | end | |
1060 | ||
1061 | --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}) | |
1062 | function WACKYEFFECT(Table) | |
1063 | local TYPE = (Table.EffectType or "Sphere") | |
1064 | local SIZE = (Table.Size or VT(1,1,1)) | |
1065 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1066 | local TRANSPARENCY = (Table.Transparency or 0) | |
1067 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1068 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1069 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1070 | local ROTATION1 = (Table.RotationX or 0) | |
1071 | local ROTATION2 = (Table.RotationY or 0) | |
1072 | local ROTATION3 = (Table.RotationZ or 0) | |
1073 | local MATERIAL = (Table.Material or "Neon") | |
1074 | local COLOR = (Table.Color or C3(1,1,1)) | |
1075 | local TIME = (Table.Time or 45) | |
1076 | local SOUNDID = (Table.SoundID or nil) | |
1077 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1078 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1079 | coroutine.resume(coroutine.create(function() | |
1080 | local PLAYSSOUND = false | |
1081 | local SOUND = nil | |
1082 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Crimson"), "Effect", VT(1,1,1), true) | |
1083 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1084 | PLAYSSOUND = true | |
1085 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1086 | end | |
1087 | EFFECT.Color = COLOR | |
1088 | local MSH = nil | |
1089 | if TYPE == "Sphere" then | |
1090 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1091 | elseif TYPE == "Block" or TYPE == "Box" then | |
1092 | MSH = IT("BlockMesh",EFFECT) | |
1093 | MSH.Scale = SIZE | |
1094 | elseif TYPE == "Wave" then | |
1095 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1096 | elseif TYPE == "Ring" then | |
1097 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1098 | elseif TYPE == "Slash" then | |
1099 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1100 | elseif TYPE == "Round Slash" then | |
1101 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1102 | elseif TYPE == "Swirl" then | |
1103 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1104 | elseif TYPE == "Skull" then | |
1105 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1106 | elseif TYPE == "Crystal" then | |
1107 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1108 | end | |
1109 | if MSH ~= nil then | |
1110 | local MOVESPEED = nil | |
1111 | if MOVEDIRECTION ~= nil then | |
1112 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1113 | end | |
1114 | local GROWTH = SIZE - ENDSIZE | |
1115 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1116 | if TYPE == "Block" then | |
1117 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1118 | else | |
1119 | EFFECT.CFrame = CFRAME | |
1120 | end | |
1121 | for LOOP = 1, TIME+1 do | |
1122 | Swait() | |
1123 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1124 | if TYPE == "Wave" then | |
1125 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1126 | end | |
1127 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1128 | if TYPE == "Block" then | |
1129 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1130 | else | |
1131 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1132 | end | |
1133 | if MOVEDIRECTION ~= nil then | |
1134 | local ORI = EFFECT.Orientation | |
1135 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1136 | EFFECT.Orientation = ORI | |
1137 | end | |
1138 | end | |
1139 | if PLAYSSOUND == false then | |
1140 | EFFECT:remove() | |
1141 | else | |
1142 | repeat wait(1) until SOUND.Playing == false | |
1143 | EFFECT:remove() | |
1144 | end | |
1145 | else | |
1146 | if PLAYSSOUND == false then | |
1147 | EFFECT:remove() | |
1148 | else | |
1149 | repeat Swait() until SOUND.Playing == false | |
1150 | EFFECT:remove() | |
1151 | end | |
1152 | end | |
1153 | end)) | |
1154 | end | |
1155 | ||
1156 | function MakeForm(PART,TYPE) | |
1157 | if TYPE == "Cyl" then | |
1158 | local MSH = IT("CylinderMesh",PART) | |
1159 | elseif TYPE == "Ball" then | |
1160 | local MSH = IT("SpecialMesh",PART) | |
1161 | MSH.MeshType = "Sphere" | |
1162 | elseif TYPE == "Wedge" then | |
1163 | local MSH = IT("SpecialMesh",PART) | |
1164 | MSH.MeshType = "Wedge" | |
1165 | end | |
1166 | end | |
1167 | ||
1168 | Debris = game:GetService("Debris") | |
1169 | ||
1170 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1171 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1172 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1173 | end | |
1174 | ||
1175 | local HATWELD = nil | |
1176 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
1177 | PLAYMAINANIM = false | |
1178 | if WhichPose == "Cast1" then | |
1179 | for i=0, Time, 0.1 / Animation_Speed do | |
1180 | Swait() | |
1181 | if Magic == true then | |
1182 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1183 | end | |
1184 | if Gyro ~= nil and Gyro ~= false then | |
1185 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1186 | end | |
1187 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
1188 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
1189 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1190 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1191 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1192 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1193 | end | |
1194 | elseif WhichPose == "Cast2" then | |
1195 | for i=0, Time, 0.1 / Animation_Speed do | |
1196 | Swait() | |
1197 | if Magic == true then | |
1198 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1199 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1200 | end | |
1201 | if Gyro ~= nil and Gyro ~= false then | |
1202 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1203 | end | |
1204 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1205 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1206 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1207 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1208 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1209 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1210 | end | |
1211 | elseif WhichPose == "RightArmUp" then | |
1212 | for i=0, Time, 0.1 / Animation_Speed do | |
1213 | Swait() | |
1214 | if Magic == true then | |
1215 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1216 | end | |
1217 | if Gyro ~= nil and Gyro ~= false then | |
1218 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1219 | end | |
1220 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
1221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1224 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1226 | end | |
1227 | elseif WhichPose == "Taunt" then | |
1228 | for i=0, Time, 0.1 / Animation_Speed do | |
1229 | Swait() | |
1230 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1231 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1232 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1233 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1234 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1235 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1236 | end | |
1237 | HATWELD.Part0 = RightArm | |
1238 | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) | |
1239 | CreateSound(221057812,Torso,10,1,false) | |
1240 | for i=0, Time*2, 0.1 / Animation_Speed do | |
1241 | Swait() | |
1242 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1243 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1244 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1245 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1246 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1247 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1248 | end | |
1249 | for i=0, Time, 0.1 / Animation_Speed do | |
1250 | Swait() | |
1251 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1252 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1253 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1254 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1255 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1256 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1257 | HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed) | |
1258 | end | |
1259 | HATWELD.Part0 = Head | |
1260 | HATWELD.C0 = CF(0,0.35,0) | |
1261 | elseif WhichPose == "Prepare key" then | |
1262 | for i=0, Time, 0.1 / Animation_Speed do | |
1263 | Swait() | |
1264 | if Gyro ~= nil and Gyro ~= false then | |
1265 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1266 | end | |
1267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
1268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
1269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1271 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1272 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1273 | end | |
1274 | elseif WhichPose == "Turn key" then | |
1275 | for i=0, Time, 0.1 / Animation_Speed do | |
1276 | Swait() | |
1277 | if Gyro ~= nil and Gyro ~= false then | |
1278 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1279 | end | |
1280 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
1281 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
1282 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1283 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1284 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1285 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1286 | end | |
1287 | end | |
1288 | PLAYMAINANIM = true | |
1289 | end | |
1290 | ||
1291 | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false}) | |
1292 | function Lightning(Table) | |
1293 | local Color = Table.Color or C3(1,1,1) | |
1294 | local StartPos = Table.Start or Torso.Position | |
1295 | local EndPos = Table.End or Mouse.Hit.p | |
1296 | local SegmentLength = Table.SegmentL or 2 | |
1297 | local Thickness = Table.Thickness or 0.1 | |
1298 | local Dissapear = Table.DoesFade or false | |
1299 | local Parent = Table.Ignore or Character | |
1300 | local MaxDist = Table.MaxDist or 400 | |
1301 | local Branches = Table.Branches or false | |
1302 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
1303 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
1304 | local LIGHTNINGMODEL = IT("Model",Effects) | |
1305 | LIGHTNINGMODEL.Name = "Lightning" | |
1306 | local LastBolt = nil | |
1307 | for E = 1, DISTANCE do | |
1308 | local ExtraSize = (DISTANCE-E)/15 | |
1309 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
1310 | PART.Color = Color | |
1311 | MakeForm(PART,"Cyl") | |
1312 | if LastBolt == nil then | |
1313 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1314 | else | |
1315 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1316 | end | |
1317 | LastBolt = PART | |
1318 | if Branches == true then | |
1319 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
1320 | if CHOICE == 1 then | |
1321 | local LASTBRANCH = nil | |
1322 | for i = 1, MRANDOM(2,5) do | |
1323 | local ExtraSize2 = ((DISTANCE-E)/25)/i | |
1324 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
1325 | PART.Color = Color | |
1326 | MakeForm(PART,"Cyl") | |
1327 | if LASTBRANCH == nil then | |
1328 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1329 | else | |
1330 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1331 | end | |
1332 | LASTBRANCH = PART | |
1333 | end | |
1334 | end | |
1335 | end | |
1336 | end | |
1337 | if Dissapear == true then | |
1338 | coroutine.resume(coroutine.create(function() | |
1339 | for i = 1, 10 do | |
1340 | Swait() | |
1341 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
1342 | if c.ClassName == "Part" then | |
1343 | c.Transparency = i/10 | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | LIGHTNINGMODEL:remove() | |
1348 | end)) | |
1349 | elseif Dissapear == false then | |
1350 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
1351 | end | |
1352 | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
1353 | end | |
1354 | ||
1355 | -- | |
1356 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1357 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1358 | end | |
1359 | ||
1360 | function PositiveAngle(NUMBER) | |
1361 | if NUMBER >= 0 then | |
1362 | NUMBER = 0 | |
1363 | end | |
1364 | return NUMBER | |
1365 | end | |
1366 | ||
1367 | function NegativeAngle(NUMBER) | |
1368 | if NUMBER <= 0 then | |
1369 | NUMBER = 0 | |
1370 | end | |
1371 | return NUMBER | |
1372 | end | |
1373 | ||
1374 | function Swait(NUMBER) | |
1375 | if NUMBER == 0 or NUMBER == nil then | |
1376 | ArtificialHB.Event:wait() | |
1377 | else | |
1378 | for i = 1, NUMBER do | |
1379 | ArtificialHB.Event:wait() | |
1380 | end | |
1381 | end | |
1382 | end | |
1383 | ||
1384 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1385 | local NEWMESH = IT(MESH) | |
1386 | if MESH == "SpecialMesh" then | |
1387 | NEWMESH.MeshType = MESHTYPE | |
1388 | if MESHID ~= "nil" and MESHID ~= "" then | |
1389 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1390 | end | |
1391 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1392 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1393 | end | |
1394 | end | |
1395 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1396 | NEWMESH.Scale = SCALE | |
1397 | NEWMESH.Parent = PARENT | |
1398 | return NEWMESH | |
1399 | end | |
1400 | ||
1401 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1402 | local NEWPART = IT("Part") | |
1403 | NEWPART.formFactor = FORMFACTOR | |
1404 | NEWPART.Reflectance = REFLECTANCE | |
1405 | NEWPART.Transparency = TRANSPARENCY | |
1406 | NEWPART.CanCollide = false | |
1407 | NEWPART.Locked = true | |
1408 | NEWPART.Anchored = true | |
1409 | if ANCHOR == false then | |
1410 | NEWPART.Anchored = false | |
1411 | end | |
1412 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1413 | NEWPART.Name = NAME | |
1414 | NEWPART.Size = SIZE | |
1415 | NEWPART.Position = Torso.Position | |
1416 | NEWPART.Material = MATERIAL | |
1417 | NEWPART:BreakJoints() | |
1418 | NEWPART.Parent = PARENT | |
1419 | return NEWPART | |
1420 | end | |
1421 | ||
1422 | local function weldBetween(a, b) | |
1423 | local weldd = Instance.new("ManualWeld") | |
1424 | weldd.Part0 = a | |
1425 | weldd.Part1 = b | |
1426 | weldd.C0 = CFrame.new() | |
1427 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1428 | weldd.Parent = a | |
1429 | return weldd | |
1430 | end | |
1431 | ||
1432 | ||
1433 | function QuaternionFromCFrame(cf) | |
1434 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1435 | local trace = m00 + m11 + m22 | |
1436 | if trace > 0 then | |
1437 | local s = math.sqrt(1 + trace) | |
1438 | local recip = 0.5 / s | |
1439 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1440 | else | |
1441 | local i = 0 | |
1442 | if m11 > m00 then | |
1443 | i = 1 | |
1444 | end | |
1445 | if m22 > (i == 0 and m00 or m11) then | |
1446 | i = 2 | |
1447 | end | |
1448 | if i == 0 then | |
1449 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1450 | local recip = 0.5 / s | |
1451 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1452 | elseif i == 1 then | |
1453 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1454 | local recip = 0.5 / s | |
1455 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1456 | elseif i == 2 then | |
1457 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1458 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1459 | end | |
1460 | end | |
1461 | end | |
1462 | ||
1463 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1464 | local xs, ys, zs = x + x, y + y, z + z | |
1465 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1466 | local xx = x * xs | |
1467 | local xy = x * ys | |
1468 | local xz = x * zs | |
1469 | local yy = y * ys | |
1470 | local yz = y * zs | |
1471 | local zz = z * zs | |
1472 | 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)) | |
1473 | end | |
1474 | ||
1475 | function QuaternionSlerp(a, b, t) | |
1476 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1477 | local startInterp, finishInterp; | |
1478 | if cosTheta >= 0.0001 then | |
1479 | if (1 - cosTheta) > 0.0001 then | |
1480 | local theta = ACOS(cosTheta) | |
1481 | local invSinTheta = 1 / SIN(theta) | |
1482 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1483 | finishInterp = SIN(t * theta) * invSinTheta | |
1484 | else | |
1485 | startInterp = 1 - t | |
1486 | finishInterp = t | |
1487 | end | |
1488 | else | |
1489 | if (1 + cosTheta) > 0.0001 then | |
1490 | local theta = ACOS(-cosTheta) | |
1491 | local invSinTheta = 1 / SIN(theta) | |
1492 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1493 | finishInterp = SIN(t * theta) * invSinTheta | |
1494 | else | |
1495 | startInterp = t - 1 | |
1496 | finishInterp = t | |
1497 | end | |
1498 | end | |
1499 | 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 | |
1500 | end | |
1501 | ||
1502 | function Clerp(a, b, t) | |
1503 | local qa = {QuaternionFromCFrame(a)} | |
1504 | local qb = {QuaternionFromCFrame(b)} | |
1505 | local ax, ay, az = a.x, a.y, a.z | |
1506 | local bx, by, bz = b.x, b.y, b.z | |
1507 | local _t = 1 - t | |
1508 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1509 | end | |
1510 | ||
1511 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1512 | local frame = IT("Frame") | |
1513 | frame.BackgroundTransparency = TRANSPARENCY | |
1514 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1515 | frame.Position = POSITION | |
1516 | frame.Size = SIZE | |
1517 | frame.BackgroundColor3 = COLOR | |
1518 | frame.BorderColor3 = BORDERCOLOR | |
1519 | frame.Name = NAME | |
1520 | frame.Parent = PARENT | |
1521 | return frame | |
1522 | end | |
1523 | ||
1524 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1525 | local label = IT("TextLabel") | |
1526 | label.BackgroundTransparency = 1 | |
1527 | label.Size = UD2(1, 0, 1, 0) | |
1528 | label.Position = UD2(0, 0, 0, 0) | |
1529 | label.TextColor3 = TEXTCOLOR | |
1530 | label.TextStrokeColor3 = BRICKC"Really red".Color | |
1531 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1532 | label.TextTransparency = TRANSPARENCY | |
1533 | label.FontSize = TEXTFONTSIZE | |
1534 | label.Font = TEXTFONT | |
1535 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1536 | label.TextScaled = false | |
1537 | label.Text = TEXT | |
1538 | label.Name = NAME | |
1539 | label.Parent = PARENT | |
1540 | return label | |
1541 | end | |
1542 | ||
1543 | function NoOutlines(PART) | |
1544 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1545 | end | |
1546 | ||
1547 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1548 | local NEWWELD = IT(TYPE) | |
1549 | NEWWELD.Part0 = PART0 | |
1550 | NEWWELD.Part1 = PART1 | |
1551 | NEWWELD.C0 = C0 | |
1552 | NEWWELD.C1 = C1 | |
1553 | NEWWELD.Parent = PARENT | |
1554 | return NEWWELD | |
1555 | end | |
1556 | ||
1557 | local S = IT("Sound") | |
1558 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1559 | local NEWSOUND = nil | |
1560 | coroutine.resume(coroutine.create(function() | |
1561 | NEWSOUND = S:Clone() | |
1562 | NEWSOUND.Parent = PARENT | |
1563 | NEWSOUND.Volume = VOLUME | |
1564 | NEWSOUND.Pitch = PITCH | |
1565 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1566 | NEWSOUND:play() | |
1567 | NEWSOUND.Name = "Audio" | |
1568 | if DOESLOOP == true then | |
1569 | NEWSOUND.Looped = true | |
1570 | else | |
1571 | repeat Swait() until NEWSOUND.Playing == false | |
1572 | NEWSOUND:remove() | |
1573 | end | |
1574 | end)) | |
1575 | return NEWSOUND | |
1576 | end | |
1577 | ||
1578 | function CFrameFromTopBack(at, top, back) | |
1579 | local right = top:Cross(back) | |
1580 | 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) | |
1581 | end | |
1582 | ||
1583 | --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}) | |
1584 | function WACKYEFFECT(Table) | |
1585 | local TYPE = (Table.EffectType or "Sphere") | |
1586 | local SIZE = (Table.Size or VT(1,1,1)) | |
1587 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1588 | local TRANSPARENCY = (Table.Transparency or 0) | |
1589 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1590 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1591 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1592 | local ROTATION1 = (Table.RotationX or 0) | |
1593 | local ROTATION2 = (Table.RotationY or 0) | |
1594 | local ROTATION3 = (Table.RotationZ or 0) | |
1595 | local MATERIAL = (Table.Material or "Neon") | |
1596 | local COLOR = (Table.Color or C3(1,1,1)) | |
1597 | local TIME = (Table.Time or 45) | |
1598 | local SOUNDID = (Table.SoundID or nil) | |
1599 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1600 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1601 | coroutine.resume(coroutine.create(function() | |
1602 | local PLAYSSOUND = false | |
1603 | local SOUND = nil | |
1604 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1605 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1606 | PLAYSSOUND = true | |
1607 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1608 | end | |
1609 | EFFECT.Color = COLOR | |
1610 | local MSH = nil | |
1611 | if TYPE == "Sphere" then | |
1612 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1613 | elseif TYPE == "Block" then | |
1614 | MSH = IT("BlockMesh",EFFECT) | |
1615 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1616 | elseif TYPE == "Box" then | |
1617 | MSH = IT("BlockMesh",EFFECT) | |
1618 | MSH.Scale = SIZE | |
1619 | elseif TYPE == "Wave" then | |
1620 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1621 | elseif TYPE == "Ring" then | |
1622 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1623 | elseif TYPE == "Slash" then | |
1624 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1625 | elseif TYPE == "Round Slash" then | |
1626 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1627 | elseif TYPE == "Swirl" then | |
1628 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1629 | elseif TYPE == "Skull" then | |
1630 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1631 | elseif TYPE == "Crystal" then | |
1632 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1633 | end | |
1634 | if MSH ~= nil then | |
1635 | local MOVESPEED = nil | |
1636 | if MOVEDIRECTION ~= nil then | |
1637 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1638 | end | |
1639 | local GROWTH = SIZE - ENDSIZE | |
1640 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1641 | if TYPE == "Block" then | |
1642 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1643 | else | |
1644 | EFFECT.CFrame = CFRAME | |
1645 | end | |
1646 | for LOOP = 1, TIME do | |
1647 | Swait() | |
1648 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1649 | if TYPE == "Wave" then | |
1650 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1651 | end | |
1652 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1653 | if TYPE == "Block" then | |
1654 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1655 | else | |
1656 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1657 | end | |
1658 | if MOVEDIRECTION ~= nil then | |
1659 | local ORI = EFFECT.Orientation | |
1660 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1661 | EFFECT.Orientation = ORI | |
1662 | end | |
1663 | end | |
1664 | if PLAYSSOUND == false then | |
1665 | EFFECT:remove() | |
1666 | else | |
1667 | repeat Swait() until SOUND.Playing == false | |
1668 | EFFECT:remove() | |
1669 | end | |
1670 | else | |
1671 | if PLAYSSOUND == false then | |
1672 | EFFECT:remove() | |
1673 | else | |
1674 | repeat Swait() until SOUND.Playing == false | |
1675 | EFFECT:remove() | |
1676 | end | |
1677 | end | |
1678 | end)) | |
1679 | end | |
1680 | ||
1681 | function Shatter(Part) | |
1682 | if Part.Transparency == 0 then | |
1683 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
1684 | Debris:AddItem(SOUNDPART,5) | |
1685 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
1686 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
1687 | local SIZESET = SIZE/4 | |
1688 | local XOffset = Part.Size.X*1.5/SIZESET | |
1689 | local YOffset = Part.Size.Y*1.5/SIZESET | |
1690 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
1691 | for x = 1, math.ceil(XOffset) do | |
1692 | for y = 1, math.ceil(YOffset) do | |
1693 | for z = 1, math.ceil(ZOffset) do | |
1694 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
1695 | SHARD.CanCollide = true | |
1696 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
1697 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
1698 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
1699 | end | |
1700 | end | |
1701 | end | |
1702 | end | |
1703 | Part:remove() | |
1704 | end | |
1705 | ||
1706 | function MakeForm(PART,TYPE) | |
1707 | if TYPE == "Cyl" then | |
1708 | local MSH = IT("CylinderMesh",PART) | |
1709 | elseif TYPE == "Ball" then | |
1710 | local MSH = IT("SpecialMesh",PART) | |
1711 | MSH.MeshType = "Sphere" | |
1712 | elseif TYPE == "Wedge" then | |
1713 | local MSH = IT("SpecialMesh",PART) | |
1714 | MSH.MeshType = "Wedge" | |
1715 | end | |
1716 | end | |
1717 | ||
1718 | Debris = game:GetService("Debris") | |
1719 | ||
1720 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1721 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1722 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1723 | end | |
1724 | ||
1725 | function turnto(position) | |
1726 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1727 | end | |
1728 | ||
1729 | --//=================================\\ | |
1730 | --|| WEAPON CREATION | |
1731 | --\\=================================// | |
1732 | -- | |
1733 | ||
1734 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false) | |
1735 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
1736 | ||
1737 | local ANGLE = 35 | |
1738 | for i = 1, 5 do | |
1739 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
1740 | 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)) | |
1741 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
1742 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
1743 | ANGLE = ANGLE - 15 | |
1744 | table.insert(LEFTWINGS,WingWeld) | |
1745 | end | |
1746 | ANGLE = 35 | |
1747 | for i = 1, 5 do | |
1748 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
1749 | 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)) | |
1750 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
1751 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
1752 | ANGLE = ANGLE - 15 | |
1753 | table.insert(RIGHTWINGS,WingWeld) | |
1754 | end | |
1755 | ||
1756 | ||
1757 | local SKILLTEXTCOLOR = BRICKC"Really red".Color | |
1758 | local SKILLFONT = "SciFi" | |
1759 | local SKILLTEXTSIZE = 6 | |
1760 | ||
1761 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1762 | naeeym2.AlwaysOnTop = true | |
1763 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1764 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
1765 | naeeym2.Adornee = Character.Head | |
1766 | naeeym2.Name = "Name" | |
1767 | naeeym2.PlayerToHideFrom = Player | |
1768 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1769 | tecks2.BackgroundTransparency = 1 | |
1770 | tecks2.TextScaled = true | |
1771 | tecks2.BorderSizePixel = 0 | |
1772 | tecks2.Text = "CyDen" | |
1773 | tecks2.Font = SKILLFONT | |
1774 | tecks2.TextSize = 30 | |
1775 | tecks2.TextStrokeTransparency = 0 | |
1776 | tecks2.TextColor3 = C3(0,0,0) | |
1777 | tecks2.TextStrokeColor3 = BRICKC"Really red".Color | |
1778 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1779 | tecks2.Parent = naeeym2 | |
1780 | ||
1781 | for _, c in pairs(Character:GetChildren()) do | |
1782 | if c.ClassName == "Part" then | |
1783 | table.insert(BODY,{c,Character}) | |
1784 | for _, q in pairs(c:GetChildren()) do | |
1785 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
1786 | table.insert(BODY,{q,c}) | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | end | |
1791 | ||
1792 | function refit() | |
1793 | Character.Parent = workspace | |
1794 | for e = 1, #BODY do | |
1795 | if BODY[e] ~= nil then | |
1796 | local STUFF = BODY[e] | |
1797 | local PART = STUFF[1] | |
1798 | local PARENT = STUFF[2] | |
1799 | PART.Parent = PARENT | |
1800 | end | |
1801 | end | |
1802 | end | |
1803 | ||
1804 | Humanoid.HealthChanged:connect(function() | |
1805 | Humanoid.Parent = nil | |
1806 | Humanoid.MaxHealth = "inf" | |
1807 | Humanoid.Health = "inf" | |
1808 | refit() | |
1809 | Humanoid.Parent = Character | |
1810 | end) | |
1811 | ||
1812 | Humanoid.Died:connect(function() | |
1813 | Humanoid.Parent = nil | |
1814 | Humanoid.MaxHealth = "inf" | |
1815 | Humanoid.Health = "inf" | |
1816 | refit() | |
1817 | Humanoid.Parent = Character | |
1818 | end) | |
1819 | ||
1820 | -- | |
1821 | for i = 1, 15 do | |
1822 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) | |
1823 | FACE.Color = C3(0,0,0) | |
1824 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1825 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) | |
1826 | end | |
1827 | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false) | |
1828 | MakeForm(HAT1,"Cyl") | |
1829 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
1830 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false) | |
1831 | BELT.Color = C3(15/255,15/255,15/255) | |
1832 | MakeForm(BELT,"Cyl") | |
1833 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1834 | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false) | |
1835 | MakeForm(HAT2,"Cyl") | |
1836 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
1837 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false) | |
1838 | BELT.Color = C3(15/255,15/255,15/255) | |
1839 | MakeForm(BELT,"Cyl") | |
1840 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1841 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false) | |
1842 | MakeForm(GEM,"Ball") | |
1843 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
1844 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false) | |
1845 | MakeForm(GEM,"Ball") | |
1846 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
1847 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false) | |
1848 | MakeForm(GEM,"Ball") | |
1849 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1850 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false) | |
1851 | MakeForm(GEM,"Ball") | |
1852 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1853 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1854 | BELT.Color = C3(15/255,15/255,15/255) | |
1855 | MakeForm(BELT,"Cyl") | |
1856 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
1857 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1858 | BELT.Color = C3(15/255,15/255,15/255) | |
1859 | MakeForm(BELT,"Cyl") | |
1860 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
1861 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1862 | BELT.Color = C3(15/255,15/255,15/255) | |
1863 | MakeForm(BELT,"Cyl") | |
1864 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
1865 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1866 | BELT.Color = C3(15/255,15/255,15/255) | |
1867 | MakeForm(BELT,"Cyl") | |
1868 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
1869 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
1870 | MakeForm(BELT,"Ball") | |
1871 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
1872 | Humanoid.DisplayDistanceType = "None" | |
1873 | local naeeym2 = IT("BillboardGui",Character) | |
1874 | naeeym2.AlwaysOnTop = true | |
1875 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1876 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1877 | naeeym2.MaxDistance = 75 | |
1878 | naeeym2.Adornee = Character.Head | |
1879 | naeeym2.Name = "Name" | |
1880 | naeeym2.PlayerToHideFrom = Player | |
1881 | local tecks2 = IT("TextLabel",naeeym2) | |
1882 | tecks2.BackgroundTransparency = 1 | |
1883 | tecks2.TextScaled = true | |
1884 | tecks2.BorderSizePixel = 0 | |
1885 | tecks2.Text = "" | |
1886 | tecks2.Font = "Bodoni" | |
1887 | tecks2.TextSize = 30 | |
1888 | tecks2.TextStrokeTransparency = 0.5 | |
1889 | tecks2.TextColor3 = C3(0,0,0) | |
1890 | tecks2.TextStrokeColor3 = BRICKC"Really red".Color | |
1891 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1892 | tecks2.Parent = naeeym2 | |
1893 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false) | |
1894 | MakeForm(EYE,"Ball") | |
1895 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1896 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false) | |
1897 | MakeForm(EYE,"Ball") | |
1898 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1899 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false) | |
1900 | MakeForm(EYE,"Ball") | |
1901 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1902 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false) | |
1903 | MakeForm(EYE,"Ball") | |
1904 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1905 | ||
1906 | local top = Instance.new("Shirt") | |
1907 | top.ShirtTemplate = "rbxassetid://676428254" | |
1908 | top.Parent = Character | |
1909 | top.Name = "Cloth" | |
1910 | local bottom = Instance.new("Pants") | |
1911 | bottom.PantsTemplate = "rbxassetid://676428351" | |
1912 | bottom.Parent = Character | |
1913 | bottom.Name = "Cloth" | |
1914 | for _, c in pairs(Character:GetChildren()) do | |
1915 | if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then | |
1916 | c.Material = "Neon" | |
1917 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1918 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1919 | end | |
1920 | c.Color = C3(1,1,1) | |
1921 | if c == Head then | |
1922 | if c:FindFirstChild("face") then | |
1923 | c.face:remove() | |
1924 | end | |
1925 | end | |
1926 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
1927 | c:remove() | |
1928 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1929 | c:remove() | |
1930 | end | |
1931 | end | |
1932 | local BODY = {} | |
1933 | for _, c in pairs(Character:GetDescendants()) do | |
1934 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1935 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1936 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1937 | end | |
1938 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
1939 | elseif c:IsA("JointInstance") then | |
1940 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
1941 | end | |
1942 | end | |
1943 | for e = 1, #BODY do | |
1944 | if BODY[e] ~= nil then | |
1945 | local STUFF = BODY[e] | |
1946 | local PART = STUFF[1] | |
1947 | local PARENT = STUFF[2] | |
1948 | local MATERIAL = STUFF[3] | |
1949 | local COLOR = STUFF[4] | |
1950 | local TRANSPARENCY = STUFF[5] | |
1951 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1952 | PART.Material = MATERIAL | |
1953 | PART.Color = COLOR | |
1954 | PART.Transparency = TRANSPARENCY | |
1955 | end | |
1956 | PART.AncestryChanged:Connect(function() | |
1957 | PART.Parent = PARENT | |
1958 | end) | |
1959 | end | |
1960 | end | |
1961 | function refit() | |
1962 | Character.Parent = workspace | |
1963 | for e = 1, #BODY do | |
1964 | if BODY[e] ~= nil then | |
1965 | local STUFF = BODY[e] | |
1966 | local PART = STUFF[1] | |
1967 | local PARENT = STUFF[2] | |
1968 | local MATERIAL = STUFF[3] | |
1969 | local COLOR = STUFF[4] | |
1970 | local TRANSPARENCY = STUFF[5] | |
1971 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1972 | PART.Material = MATERIAL | |
1973 | PART.Color = COLOR | |
1974 | PART.Transparency = TRANSPARENCY | |
1975 | end | |
1976 | if PART.Parent ~= PARENT then | |
1977 | Humanoid:remove() | |
1978 | PART.Parent = PARENT | |
1979 | Humanoid = IT("Humanoid",Character) | |
1980 | end | |
1981 | end | |
1982 | end | |
1983 | end | |
1984 | local SKILLTEXTCOLOR = BRICKC"Really red".Color | |
1985 | local SKILLFONT = "Bodoni" | |
1986 | local SKILLTEXTSIZE = 7 | |
1987 | ||
1988 | Humanoid.Died:connect(function() | |
1989 | refit() | |
1990 | end) | |
1991 | ||
1992 | --//=================================\\ | |
1993 | --|| DAMAGING | |
1994 | --\\=================================// | |
1995 | ---- | |
1996 | function ApplyAoE(POSITION,RANGE,FLING,BURN) | |
1997 | local CHILDREN = workspace:GetDescendants() | |
1998 | for index, CHILD in pairs(CHILDREN) do | |
1999 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2000 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2001 | if HUM then | |
2002 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2003 | if TORSO then | |
2004 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2005 | CHILD:BreakJoints() | |
2006 | if FLING ~= 0 then | |
2007 | for _, c in pairs(CHILD:GetChildren()) do | |
2008 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2009 | if BURN == true then | |
2010 | Fire(c) | |
2011 | end | |
2012 | local bv = Instance.new("BodyVelocity") | |
2013 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2014 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
2015 | bv.Parent = c | |
2016 | Debris:AddItem(bv,0.05) | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | end | |
2021 | end | |
2022 | end | |
2023 | end | |
2024 | end | |
2025 | end | |
2026 | ----------- | |
2027 | function killnearest(position,range,EFFECT) | |
2028 | for i,v in ipairs(workspace:GetChildren()) do | |
2029 | local body = v:GetChildren() | |
2030 | for part = 1, #body do | |
2031 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2032 | local SIZE = body[part].Size.Magnitude | |
2033 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
2034 | if v.ClassName == "Model" then | |
2035 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
2036 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
2037 | v:BreakJoints() | |
2038 | if EFFECT == "Glitch" then | |
2039 | coroutine.resume(coroutine.create(function() | |
2040 | local ORIGINPOS = body[part].CFrame | |
2041 | local SIZE = body[part].Size | |
2042 | for i = 1, 100 do | |
2043 | Swait() | |
2044 | local PART = body[part] | |
2045 | PART.Anchored = true | |
2046 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
2047 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
2048 | end | |
2049 | body[part]:remove() | |
2050 | end)) | |
2051 | elseif EFFECT == "Shatter" then | |
2052 | for _, c in pairs(v:GetChildren()) do | |
2053 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2054 | Shatter(c) | |
2055 | end | |
2056 | end | |
2057 | end | |
2058 | end | |
2059 | end | |
2060 | end | |
2061 | end | |
2062 | end | |
2063 | end | |
2064 | end | |
2065 | end | |
2066 | ||
2067 | --//=================================\\ | |
2068 | --|| ATTACK FUNCTIONS AND STUFF | |
2069 | --\\=================================// | |
2070 | --- | |
2071 | function Lunar_Blast() | |
2072 | local HITBODIES = {} | |
2073 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly red", "CenterPart", VT(0,0,0)) | |
2074 | local HITFLOOR,ECH,NORMAL = Raycast(Mouse.Hit.p+VT(0,2,0), (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 10000000, Character) | |
2075 | CENTER.CFrame = CF(ECH) | |
2076 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Laser01", VT(25,99999,25)) | |
2077 | RAY.Color = C3(255,0,0) | |
2078 | MakeForm(RAY,"Cyl") | |
2079 | RAY.CFrame = CF(ECH) | |
2080 | for i = 1, 75 do | |
2081 | Swait() | |
2082 | RAY.Transparency = RAY.Transparency - 1/75 | |
2083 | RAY.Size = RAY.Size - VT(25/75,0,25/75) | |
2084 | MagicSphere(VT(1,1,1),15,CF(ECH)*CF(MRANDOM(-15,15),MRANDOM(0,100),MRANDOM(-15,15)),C3(1,1,1),VT(0,0,0)) | |
2085 | end | |
2086 | killnearest(ECH,25,25) | |
2087 | MagicSphere(VT(0,0,0),55,CF(ECH),C3(255,0,0),VT(2,2,2)) | |
2088 | for i = 1, 25 do | |
2089 | MagicSphere(VT(1,1,1),i*3,CF(ECH)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
2090 | end | |
2091 | CreateSound("168586621", CENTER, 10, 0.8) | |
2092 | RAY:remove() | |
2093 | Debris:AddItem(CENTER,5) | |
2094 | end | |
2095 | ||
2096 | function Star_Cutter() | |
2097 | ||
2098 | if HITFLOOR ~= nil then | |
2099 | ATTACK = true | |
2100 | Rooted = true | |
2101 | local GYRO = IT("BodyGyro",RootPart) | |
2102 | GYRO.D = 100 | |
2103 | GYRO.P = 2000 | |
2104 | GYRO.MaxTorque = VT(0,4000000,0) | |
2105 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2106 | CreateSound("429459101", RightArm, 10, 0.8) | |
2107 | for i=0, 3.5, 0.1 / Animation_Speed do | |
2108 | Swait() | |
2109 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2110 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
2111 | 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(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2112 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2113 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2114 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2115 | 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) | |
2116 | 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) | |
2117 | end | |
2118 | GYRO:remove() | |
2119 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2120 | Swait() | |
2121 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2122 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
2123 | 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2124 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2125 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2126 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2127 | 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) | |
2128 | 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) | |
2129 | end | |
2130 | local BOMBSPOTS = {} | |
2131 | for i = 1, 25 do | |
2132 | local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly blue", "Blade", VT(8,1,8)) | |
2133 | SPOT.Color = SKILLTEXTCOLOR | |
2134 | SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5) | |
2135 | table.insert(BOMBSPOTS,SPOT) | |
2136 | MakeForm(SPOT,"Cyl") | |
2137 | end | |
2138 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2139 | Swait() | |
2140 | 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2141 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2142 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2143 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2144 | 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) | |
2145 | 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) | |
2146 | end | |
2147 | ATTACK = false | |
2148 | Rooted = false | |
2149 | coroutine.resume(coroutine.create(function() | |
2150 | Swait(3) | |
2151 | for i = 1, #BOMBSPOTS do | |
2152 | if BOMBSPOTS[i] ~= nil then | |
2153 | local E = BOMBSPOTS[i] | |
2154 | coroutine.resume(coroutine.create(function() | |
2155 | local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly blue", "Blade", VT(0,0,0)) | |
2156 | BLADE.Color = SKILLTEXTCOLOR | |
2157 | CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0)) | |
2158 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6) | |
2159 | BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15))) | |
2160 | for i = 1, 10 do | |
2161 | Swait() | |
2162 | MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0)) | |
2163 | killnearest(BLADE.Position,6,80) | |
2164 | BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0) | |
2165 | BLADE.Transparency = BLADE.Transparency - 0.1 | |
2166 | end | |
2167 | Swait(45) | |
2168 | for i = 1, 100 do | |
2169 | Swait() | |
2170 | BLADE.Transparency = BLADE.Transparency + 0.01 | |
2171 | E.Transparency = E.Transparency + 0.01 | |
2172 | end | |
2173 | BLADE:remove() | |
2174 | E:remove() | |
2175 | end)) | |
2176 | end | |
2177 | end | |
2178 | end)) | |
2179 | end | |
2180 | end | |
2181 | ||
2182 | function Supernova() | |
2183 | ||
2184 | if HITFLOOR ~= nil then | |
2185 | local HITBODIES = {} | |
2186 | ATTACK = true | |
2187 | Rooted = true | |
2188 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Star", VT(0,0,0)) | |
2189 | MakeForm(ABSOLUTE,"Ball") | |
2190 | CreateSound("429459101", ABSOLUTE, 10, 1) | |
2191 | for i=0, 4, 0.1 / Animation_Speed do | |
2192 | Swait() | |
2193 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2) | |
2194 | ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0) | |
2195 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
2196 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1,1,1)) | |
2197 | MakeForm(CHARGE,"Ball") | |
2198 | CHARGE.Color = C3(1,1,1) | |
2199 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15)) | |
2200 | FireArc(CHARGE,ABSOLUTE.Position,45,45,true) | |
2201 | 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(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2202 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2203 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2204 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * 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) | |
2205 | 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) | |
2206 | 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) | |
2207 | end | |
2208 | CreateSound("907330103", Head, 10, 1.2) | |
2209 | for i = 1, 75 do | |
2210 | Swait() | |
2211 | 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(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2212 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2213 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2214 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * 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) | |
2215 | 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) | |
2216 | 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) | |
2217 | end | |
2218 | coroutine.resume(coroutine.create(function() | |
2219 | for i = 1, 13 do | |
2220 | for e = 1, 8 do | |
2221 | Swait() | |
2222 | MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
2223 | CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Slime green".Color,VT(i,0.3,i)*2) | |
2224 | end | |
2225 | for i = 1, 5 do | |
2226 | Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3) | |
2227 | Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(1,0,0),VT(0,0,0)) | |
2228 | end | |
2229 | CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Relly red".Color,VT(i,i*2,i)) | |
2230 | CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(255,0,0),VT(i,i*2,i)) | |
2231 | CreateSound("168586621", ABSOLUTE, 4, 0.8) | |
2232 | CreateSound("201858144", ABSOLUTE, 10, 0.8) | |
2233 | killnearest(ABSOLUTE.Position,i*18,i) | |
2234 | ABSOLUTE.Size = ABSOLUTE.Size*0.9 | |
2235 | MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Relly red".Color,VT(i,i,i)/1.1) | |
2236 | MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(255,0,0),VT(i,i,i)) | |
2237 | end | |
2238 | ABSOLUTE.Transparency = 1 | |
2239 | Debris:AddItem(ABSOLUTE,10) | |
2240 | end)) | |
2241 | ATTACK = false | |
2242 | Rooted = false | |
2243 | end | |
2244 | end | |
2245 | ||
2246 | local Decal = IT("Decal") | |
2247 | ||
2248 | function Astral_Hop() | |
2249 | ATTACK = true | |
2250 | Rooted = false | |
2251 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
2252 | O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2253 | local decal = Decal:Clone() | |
2254 | decal.Parent = O1 | |
2255 | decal.Face = "Top" | |
2256 | decal.Texture = "http://www.roblox.com/asset/?id=818983932" | |
2257 | local decal2 = Decal:Clone() | |
2258 | decal2.Parent = O1 | |
2259 | decal2.Face = "Bottom" | |
2260 | decal2.Texture = "http://www.roblox.com/asset/?id=818983932" | |
2261 | local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
2262 | local POS = VT(RootPart.Position.X,Mouse.Hit.p.Y+6,RootPart.Position.Z) | |
2263 | O2.CFrame = CF(Mouse.Hit.p+VT(0,6,0),POS)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2264 | local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
2265 | ROOT.CFrame = CF(O2.Position,RootPart.Position) | |
2266 | local decal = Decal:Clone() | |
2267 | decal.Parent = O2 | |
2268 | decal.Face = "Top" | |
2269 | decal.Texture = "http://www.roblox.com/asset/?id=818983932" | |
2270 | local decal2 = Decal:Clone() | |
2271 | decal2.Parent = O2 | |
2272 | decal2.Face = "Bottom" | |
2273 | decal2.Texture = "http://www.roblox.com/asset/?id=818983932" | |
2274 | CreateSound("84005018", O1, 10, 0.7) | |
2275 | CreateSound("84005018", O2, 10, 0.7) | |
2276 | for i = 1, 75 do | |
2277 | Swait() | |
2278 | O1.Size = O1.Size + VT(0.1,0,0.1) | |
2279 | O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(i),RAD(0)) | |
2280 | O2.Size = O2.Size + VT(0.1,0,0.1) | |
2281 | O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
2282 | 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2283 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2284 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2285 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2286 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * 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) | |
2287 | 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) | |
2288 | end | |
2289 | Rooted = true | |
2290 | UNANCHOR = false | |
2291 | RootPart.Anchored = true | |
2292 | VALUE1 = true | |
2293 | for i = 1, 15 do | |
2294 | ||
2295 | Swait() | |
2296 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.13) | |
2297 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2298 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2299 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2300 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2301 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * 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) | |
2302 | 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) | |
2303 | end | |
2304 | RootPart.CFrame = ROOT.CFrame | |
2305 | ROOT:remove() | |
2306 | for i = 1, 15 do | |
2307 | ||
2308 | Swait() | |
2309 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.5) | |
2310 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2311 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2312 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2313 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2314 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * 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) | |
2315 | 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) | |
2316 | end | |
2317 | VALUE1 = false | |
2318 | coroutine.resume(coroutine.create(function() | |
2319 | for i = 1, 75 do | |
2320 | Swait() | |
2321 | O1.Size = O1.Size - VT(0.1,0,0.1) | |
2322 | O1.CFrame = O1.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
2323 | O2.Size = O2.Size - VT(0.1,0,0.1) | |
2324 | O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
2325 | end | |
2326 | O1:remove() | |
2327 | O2:remove() | |
2328 | end)) | |
2329 | UNANCHOR = true | |
2330 | RootPart.Anchored = false | |
2331 | ATTACK = false | |
2332 | Rooted = false | |
2333 | end | |
2334 | --- | |
2335 | function Warden_Zap() | |
2336 | ATTACK = true | |
2337 | Rooted = false | |
2338 | local GYRO = IT("BodyGyro",RootPart) | |
2339 | GYRO.D = 750 | |
2340 | GYRO.P = 20000 | |
2341 | GYRO.MaxTorque = VT(0,40000000,0) | |
2342 | CreateSound(348663022,RightArm,1.5,2,false) | |
2343 | Pose("Cast1",0.8,1,true,GYRO) | |
2344 | local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false}) | |
2345 | local Hitpos = LightningTable.End | |
2346 | ApplyAoE(Hitpos,10,35) | |
2347 | for i = 1, 4 do | |
2348 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2349 | end | |
2350 | Pose("Cast1",0.8,1,true) | |
2351 | GYRO:remove() | |
2352 | ATTACK = false | |
2353 | Rooted = false | |
2354 | end | |
2355 | ||
2356 | function Warden_Thunder() | |
2357 | ATTACK = true | |
2358 | Rooted = false | |
2359 | local GYRO = IT("BodyGyro",RootPart) | |
2360 | GYRO.D = 750 | |
2361 | GYRO.P = 20000 | |
2362 | GYRO.MaxTorque = VT(0,40000000,0) | |
2363 | CreateSound(469345336,Torso,3,2,false) | |
2364 | Pose("Cast2",1.5,2,true,GYRO) | |
2365 | coroutine.resume(coroutine.create(function() | |
2366 | local FRAME = RootPart.CFrame | |
2367 | for i = 1, 25 do | |
2368 | local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15) | |
2369 | local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true}) | |
2370 | local Hitpos = LightningTable.End | |
2371 | ApplyAoE(Hitpos,20,15) | |
2372 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2373 | for i = 1, 4 do | |
2374 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2375 | end | |
2376 | wait(0.05) | |
2377 | end | |
2378 | end)) | |
2379 | Pose("Cast2",1.5,0.7,true) | |
2380 | GYRO:remove() | |
2381 | ATTACK = false | |
2382 | Rooted = false | |
2383 | end | |
2384 | ||
2385 | function Inferno_Ring() | |
2386 | ATTACK = true | |
2387 | Rooted = false | |
2388 | local GYRO = IT("BodyGyro",RootPart) | |
2389 | GYRO.D = 750 | |
2390 | GYRO.P = 20000 | |
2391 | GYRO.MaxTorque = VT(0,40000000,0) | |
2392 | local FIRE = IT("Model",Effects) | |
2393 | FIRE.Name = "Fire" | |
2394 | local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "Center", VT(0,0,0)) | |
2395 | FIRE.PrimaryPart = MAIN | |
2396 | local FIRES = {} | |
2397 | for i = 1, 45 do | |
2398 | local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "RingPart", VT(3,3,3)) | |
2399 | PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20) | |
2400 | local F = Fire(PRT) | |
2401 | table.insert(FIRES,F) | |
2402 | end | |
2403 | repeat | |
2404 | FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p)) | |
2405 | Pose("Cast1",1.5,0.01,false,GYRO) | |
2406 | until HOLD == true | |
2407 | coroutine.resume(coroutine.create(function() | |
2408 | for i = 1, 4 do | |
2409 | ApplyAoE(MAIN.Position,21,-15,true) | |
2410 | CreateSound(463598785,MAIN,3,1,false) | |
2411 | for E = 1, #FIRES do | |
2412 | if FIRES[E] ~= nil then | |
2413 | FIRES[E].Acceleration = VT(0,300,0) | |
2414 | FIRES[E].Lifetime=NumberRange.new(0.35,1.5) | |
2415 | end | |
2416 | end | |
2417 | wait(0.3) | |
2418 | end | |
2419 | for E = 1, #FIRES do | |
2420 | if FIRES[E] ~= nil then | |
2421 | FIRES[E].Enabled = false | |
2422 | end | |
2423 | end | |
2424 | Debris:AddItem(FIRE,5) | |
2425 | end)) | |
2426 | CreateSound(215395388,RightArm,3,2,false) | |
2427 | Pose("RightArmUp",1.5,0.5,true) | |
2428 | GYRO:remove() | |
2429 | ATTACK = false | |
2430 | Rooted = false | |
2431 | end | |
2432 | ||
2433 | function Warden_Wall() | |
2434 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character) | |
2435 | if HITFLOOR ~= nil then | |
2436 | if HITFLOOR.Anchored == true then | |
2437 | local WALL = HITFLOOR:Clone() | |
2438 | WALL.Size = VT(45,45,5) | |
2439 | WALL.Parent = Effects | |
2440 | WALL.Name = "Wall" | |
2441 | WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0)) | |
2442 | CreateSound(130972023,WALL,5,0.8,false) | |
2443 | ATTACK = true | |
2444 | Rooted = true | |
2445 | local HIT = WALL.Touched:Connect(function(hit) | |
2446 | if hit.Parent ~= Character then | |
2447 | hit:BreakJoints() | |
2448 | end | |
2449 | end) | |
2450 | coroutine.resume(coroutine.create(function() | |
2451 | WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2452 | for i = 1, 90 do | |
2453 | Swait() | |
2454 | WALL.CFrame = WALL.CFrame*CF(0,0.5,0) | |
2455 | end | |
2456 | HIT:disconnect() | |
2457 | wait(5) | |
2458 | for i = 1, 46 do | |
2459 | Swait() | |
2460 | WALL.CFrame = WALL.CFrame*CF(0,-1,0) | |
2461 | end | |
2462 | WALL:remove() | |
2463 | end)) | |
2464 | Pose("RightArmUp",1.5,1.2,true) | |
2465 | ATTACK = false | |
2466 | Rooted = false | |
2467 | end | |
2468 | end | |
2469 | end | |
2470 | ||
2471 | function Prison_Key() | |
2472 | if Mouse.Target ~= nil then | |
2473 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2474 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2475 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2476 | local GYRO = IT("BodyGyro",RootPart) | |
2477 | GYRO.D = 750 | |
2478 | GYRO.P = 20000 | |
2479 | GYRO.MaxTorque = VT(0,40000000,0) | |
2480 | local grav = Instance.new("BodyPosition",TORSO) | |
2481 | grav.D = 15 | |
2482 | grav.P = 20000 | |
2483 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2484 | grav.position = TORSO.Position | |
2485 | local GYRO2 = IT("BodyGyro",TORSO) | |
2486 | GYRO2.D = 750 | |
2487 | GYRO2.P = 20000 | |
2488 | GYRO2.MaxTorque = VT(0,40000000,0) | |
2489 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2490 | grav.Name = "Jail" | |
2491 | local LOCKPARTS = {} | |
2492 | ATTACK = true | |
2493 | Rooted = false | |
2494 | local LOCK = IT("Model",Effects) | |
2495 | LOCK.Name = "Lock" | |
2496 | local LOCK2 = IT("Model",LOCK) | |
2497 | LOCK2.Name = "Metal" | |
2498 | --CREATE LOCK-- | |
2499 | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) | |
2500 | LOCK.PrimaryPart = BASE | |
2501 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
2502 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) | |
2503 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2504 | MakeForm(PRT,"Cyl") | |
2505 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) | |
2506 | PRT.Color = C3(0,0,0) | |
2507 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2508 | MakeForm(PRT,"Cyl") | |
2509 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) | |
2510 | PRT.Color = C3(0,0,0) | |
2511 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
2512 | for i = 1, 45 do | |
2513 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2514 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
2515 | end | |
2516 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2517 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
2518 | LOCK2.PrimaryPart = PRT | |
2519 | --------------- | |
2520 | local CHILDREN = LOCK:GetDescendants() | |
2521 | for index, CHILD in pairs(CHILDREN) do | |
2522 | if CHILD:IsA("BasePart") then | |
2523 | CHILD.Transparency = 1 | |
2524 | end | |
2525 | end | |
2526 | for i = 1, 75 do | |
2527 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
2528 | Swait() | |
2529 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2530 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2531 | local CHILDREN = LOCK:GetDescendants() | |
2532 | for index, CHILD in pairs(CHILDREN) do | |
2533 | if CHILD:IsA("BasePart") then | |
2534 | CHILD.Transparency = CHILD.Transparency - 1/75 | |
2535 | end | |
2536 | end | |
2537 | end | |
2538 | HUM.DisplayDistanceType = "None" | |
2539 | local KEY = IT("Model",Effects) | |
2540 | KEY.Name = "Key" | |
2541 | --CREATE KEY-- | |
2542 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "KeyBase", VT(0.1, 1, 0.1),false) | |
2543 | KEY.PrimaryPart = KBASE | |
2544 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
2545 | local WLD = weldBetween(RightArm,KBASE) | |
2546 | for i = 1, 45 do | |
2547 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.1, 0.1, 0.1),false) | |
2548 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
2549 | weldBetween(KBASE,PRT) | |
2550 | end | |
2551 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false) | |
2552 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
2553 | weldBetween(KBASE,PRT) | |
2554 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false) | |
2555 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
2556 | weldBetween(KBASE,PRT) | |
2557 | -------------- | |
2558 | Rooted = true | |
2559 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
2560 | coroutine.resume(coroutine.create(function() | |
2561 | for i = 1, 10 do | |
2562 | Swait() | |
2563 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2564 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2565 | end | |
2566 | CreateSound(1149318312,BASE,5,1,false) | |
2567 | CreateSound(160772554,BASE,3,1,false) | |
2568 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
2569 | for i = 1, 4 do | |
2570 | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2571 | end | |
2572 | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2573 | wait(1) | |
2574 | TORSO.Parent.Parent = LOCK | |
2575 | for i = 1, 75 do | |
2576 | Swait() | |
2577 | local CHILDREN = KEY:GetDescendants() | |
2578 | for index, CHILD in pairs(CHILDREN) do | |
2579 | if CHILD:IsA("BasePart") then | |
2580 | CHILD.Transparency = i/25 | |
2581 | end | |
2582 | end | |
2583 | local CHILDREN = LOCK:GetDescendants() | |
2584 | for index, CHILD in pairs(CHILDREN) do | |
2585 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
2586 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2587 | elseif CHILD.ClassName == "Decal" then | |
2588 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2589 | end | |
2590 | end | |
2591 | end | |
2592 | TORSO.Parent:ClearAllChildren() | |
2593 | KEY:remove() | |
2594 | LOCK:remove() | |
2595 | end)) | |
2596 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
2597 | GYRO:remove() | |
2598 | ATTACK = false | |
2599 | Rooted = false | |
2600 | end | |
2601 | end | |
2602 | end | |
2603 | ||
2604 | function Hat() | |
2605 | ATTACK = true | |
2606 | Rooted = false | |
2607 | Pose("Taunt",0.4,1.2,false) | |
2608 | ATTACK = false | |
2609 | Rooted = false | |
2610 | end | |
2611 | ||
2612 | -- | |
2613 | function CyberOutburst() | |
2614 | if HITFLOOR ~= nil then | |
2615 | ATTACK = true | |
2616 | Rooted = true | |
2617 | for i=0, 2, 0.1 / Animation_Speed do | |
2618 | Swait() | |
2619 | 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}) | |
2620 | 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) | |
2621 | 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) | |
2622 | 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) | |
2623 | 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) | |
2624 | 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) | |
2625 | 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) | |
2626 | end | |
2627 | for i=0, 2, 0.1 / Animation_Speed do | |
2628 | Swait() | |
2629 | 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) | |
2630 | 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) | |
2631 | 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) | |
2632 | 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) | |
2633 | 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) | |
2634 | 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) | |
2635 | end | |
2636 | 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}) | |
2637 | 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}) | |
2638 | 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}) | |
2639 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2640 | Swait() | |
2641 | killnearest(Torso.Position,45,"Glitch") | |
2642 | 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}) | |
2643 | 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}) | |
2644 | 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) | |
2645 | 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) | |
2646 | 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) | |
2647 | 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) | |
2648 | 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) | |
2649 | 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) | |
2650 | end | |
2651 | ATTACK = false | |
2652 | Rooted = false | |
2653 | end | |
2654 | end | |
2655 | ||
2656 | function Technobeam() | |
2657 | ATTACK = true | |
2658 | Rooted = false | |
2659 | local GYRO = IT("BodyGyro",RootPart) | |
2660 | GYRO.D = 100 | |
2661 | GYRO.P = 2000 | |
2662 | GYRO.MaxTorque = VT(0,4000000,0) | |
2663 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2664 | CreateSound("93724183", RightArm, 5, 1, false) | |
2665 | for i=1, 35 do | |
2666 | Swait() | |
2667 | 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}) | |
2668 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2669 | 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) | |
2670 | 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) | |
2671 | 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) | |
2672 | 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) | |
2673 | 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) | |
2674 | 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) | |
2675 | end | |
2676 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) | |
2677 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
2678 | local TOCH = BEAM.Touched:Connect(function(hit) | |
2679 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
2680 | Shatter(hit) | |
2681 | end | |
2682 | end) | |
2683 | local I = 0 | |
2684 | repeat | |
2685 | Swait() | |
2686 | I = I + 1 | |
2687 | if I <= 10 then | |
2688 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
2689 | end | |
2690 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
2691 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
2692 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
2693 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
2694 | BEAM.Size = VT(2,2,DISTANCE) | |
2695 | 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}) | |
2696 | 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}) | |
2697 | 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}) | |
2698 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2699 | 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) | |
2700 | 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) | |
2701 | 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) | |
2702 | 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) | |
2703 | 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) | |
2704 | 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) | |
2705 | if ENDHIT ~= nil then | |
2706 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
2707 | Shatter(ENDHIT) | |
2708 | end | |
2709 | end | |
2710 | until LOOP.Playing == false | |
2711 | GYRO:remove() | |
2712 | BEAM:remove() | |
2713 | ATTACK = false | |
2714 | Rooted = false | |
2715 | end | |
2716 | ||
2717 | function Technowarp() | |
2718 | local FRAME = RootPart.Position | |
2719 | for i = 1, 6 do | |
2720 | 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}) | |
2721 | end | |
2722 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
2723 | for i = 1, 6 do | |
2724 | 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}) | |
2725 | end | |
2726 | end | |
2727 | ||
2728 | function CyberSmash() | |
2729 | ATTACK = true | |
2730 | Rooted = false | |
2731 | local GYRO = IT("BodyGyro",RootPart) | |
2732 | GYRO.D = 100 | |
2733 | GYRO.P = 2000 | |
2734 | GYRO.MaxTorque = VT(0,4000000,0) | |
2735 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2736 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25)) | |
2737 | SMASH.CanCollide = true | |
2738 | SMASH.Color = C3(0,0,0) | |
2739 | local EF = Instance.new("SelectionBox",SMASH) | |
2740 | EF.Adornee = SMASH | |
2741 | EF.Color = BrickColor.new("Really red") | |
2742 | EF.LineThickness = 0.2 | |
2743 | EF.Transparency = 1 | |
2744 | coroutine.resume(coroutine.create(function() | |
2745 | for i = 1, 20 do | |
2746 | Swait() | |
2747 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
2748 | EF.Transparency = SMASH.Transparency | |
2749 | end | |
2750 | end)) | |
2751 | repeat | |
2752 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
2753 | Swait() | |
2754 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
2755 | 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) | |
2756 | 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) | |
2757 | 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) | |
2758 | 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) | |
2759 | 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) | |
2760 | 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) | |
2761 | until HOLD == true and SMASH.Transparency < 0.99 | |
2762 | for i = 1, 25 do | |
2763 | Swait() | |
2764 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
2765 | 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) | |
2766 | 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) | |
2767 | 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) | |
2768 | 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) | |
2769 | 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) | |
2770 | 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) | |
2771 | end | |
2772 | local TOCH = SMASH.Touched:Connect(function(hit) | |
2773 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
2774 | Shatter(hit) | |
2775 | end | |
2776 | end) | |
2777 | local n0 = nil | |
2778 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
2779 | if HITFLOOR ~= nil then | |
2780 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
2781 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
2782 | if HITFLOOR.Parent.ClassName == "Model" then | |
2783 | HITFLOOR.Parent:BreakJoints() | |
2784 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
2785 | HITFLOOR.Parent.Parent:BreakJoints() | |
2786 | end | |
2787 | end | |
2788 | local POS = HITPOS | |
2789 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
2790 | end | |
2791 | end | |
2792 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
2793 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
2794 | 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}) | |
2795 | for i = 1, 25 do | |
2796 | Swait() | |
2797 | 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) | |
2798 | 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) | |
2799 | 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) | |
2800 | 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) | |
2801 | 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) | |
2802 | 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) | |
2803 | end | |
2804 | coroutine.resume(coroutine.create(function() | |
2805 | wait(0.2) | |
2806 | TOCH:disconnect() | |
2807 | wait(1.8) | |
2808 | for i = 1, 100 do | |
2809 | Swait() | |
2810 | SMASH.Transparency = i/100 | |
2811 | end | |
2812 | for i = 1, 10 do | |
2813 | Swait() | |
2814 | EF.Transparency = EF.Transparency + 0.1 | |
2815 | end | |
2816 | SMASH:remove() | |
2817 | end)) | |
2818 | GYRO:remove() | |
2819 | ATTACK = false | |
2820 | Rooted = false | |
2821 | end | |
2822 | ||
2823 | --//=================================\\ | |
2824 | --|| nani ??? | |
2825 | --\\=================================// | |
2826 | --- | |
2827 | local LAUGHS = {"907329532"} | |
2828 | ||
2829 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
2830 | MakeForm(RightHole,"Cyl") | |
2831 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
2832 | MakeForm(LeftHole,"Cyl") | |
2833 | ||
2834 | function getbloody(victim,amount) | |
2835 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
2836 | PART.CFrame = victim.CFrame | |
2837 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
2838 | Debris:AddItem(PART,5) | |
2839 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2840 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2841 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2842 | local prtcl = asd:Clone() | |
2843 | prtcl.Parent = PART | |
2844 | prtcl:Emit(amount*10) | |
2845 | end | |
2846 | ||
2847 | function Kill(Char) | |
2848 | local NewCharacter = IT("Model",Effects) | |
2849 | NewCharacter.Name = "Ow im ded ;-;" | |
2850 | for _, c in pairs(Char:GetDescendants()) do | |
2851 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2852 | if c.Parent == Char then | |
2853 | getbloody(c,5) | |
2854 | end | |
2855 | c:BreakJoints() | |
2856 | c.Material = "Glass" | |
2857 | c.Color = C3(0.5,0,0) | |
2858 | c.CanCollide = true | |
2859 | c.Transparency = 0.3 | |
2860 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2861 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2862 | end | |
2863 | if c.Name == "Head" then | |
2864 | c:ClearAllChildren() | |
2865 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
2866 | end | |
2867 | if c.ClassName == "MeshPart" then | |
2868 | c.TextureID = "" | |
2869 | end | |
2870 | if c:FindFirstChildOfClass("BodyPosition") then | |
2871 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
2872 | end | |
2873 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2874 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2875 | end | |
2876 | c.Parent = NewCharacter | |
2877 | c.Name = "DeadPart" | |
2878 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
2879 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
2880 | end | |
2881 | end | |
2882 | Char:remove() | |
2883 | Debris:AddItem(NewCharacter,5) | |
2884 | end | |
2885 | ||
2886 | function Banisher_Bullet() | |
2887 | ATTACK = true | |
2888 | Rooted = false | |
2889 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2890 | Swait() | |
2891 | turnto(Mouse.Hit.p) | |
2892 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2893 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2894 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2895 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2896 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2897 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2898 | end | |
2899 | repeat | |
2900 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2901 | Swait() | |
2902 | turnto(Mouse.Hit.p) | |
2903 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2904 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2905 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2906 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2907 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2908 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2909 | end | |
2910 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2911 | SpawnTrail(Hole.Position,POS) | |
2912 | if HIT ~= nil then | |
2913 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2914 | Banish(HIT.Parent) | |
2915 | end | |
2916 | end | |
2917 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2918 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(255,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2919 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2920 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(255,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2921 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2922 | Swait() | |
2923 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2924 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2925 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2926 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2927 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2928 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2929 | end | |
2930 | until KEYHOLD == false | |
2931 | ATTACK = false | |
2932 | Rooted = false | |
2933 | end | |
2934 | function Teleport() | |
2935 | ATTACK = true | |
2936 | Rooted = false | |
2937 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2938 | Swait() | |
2939 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2940 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2941 | end | |
2942 | for e = 1, #BODY do | |
2943 | if BODY[e] ~= nil then | |
2944 | local STUFF = BODY[e] | |
2945 | local PART = STUFF[1] | |
2946 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2947 | local PRT = PART:Clone() | |
2948 | PRT.Anchored = true | |
2949 | PRT.CanCollide = false | |
2950 | PRT.Material = "Neon" | |
2951 | PRT.Color = C3(255,0,0) | |
2952 | PRT.Name = "WarpEffect" | |
2953 | PRT.Parent = Effects | |
2954 | PRT.CFrame = PART.CFrame | |
2955 | PRT:BreakJoints() | |
2956 | if PRT:FindFirstChildOfClass("Sound") then | |
2957 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2958 | end | |
2959 | if PRT:FindFirstChildOfClass("Decal") then | |
2960 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2961 | end | |
2962 | coroutine.resume(coroutine.create(function() | |
2963 | for i = 1, 100 do | |
2964 | Swait() | |
2965 | PRT.Transparency = PRT.Transparency + 1/100 | |
2966 | end | |
2967 | PRT:remove() | |
2968 | end)) | |
2969 | end | |
2970 | end | |
2971 | end | |
2972 | CreateSound(217767125, Torso, 10, 1) | |
2973 | local POS = RootPart.Orientation | |
2974 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2975 | RootPart.Orientation = POS | |
2976 | RootJoint.Parent = RootPart | |
2977 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2978 | Swait() | |
2979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2980 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2981 | end | |
2982 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2983 | Swait() | |
2984 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2985 | end | |
2986 | ATTACK = false | |
2987 | Rooted = false | |
2988 | end | |
2989 | function BanishmentBeam() | |
2990 | ATTACK = true | |
2991 | Rooted = false | |
2992 | local GYRO = IT("BodyGyro",RootPart) | |
2993 | GYRO.D = 100 | |
2994 | GYRO.P = 2000 | |
2995 | GYRO.MaxTorque = VT(0,4000000,0) | |
2996 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2997 | CreateSound("93724183", RightArm, 5, 1, false) | |
2998 | for i=1, 35 do | |
2999 | Swait() | |
3000 | 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}) | |
3001 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
3002 | 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) | |
3003 | 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) | |
3004 | 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) | |
3005 | 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) | |
3006 | 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) | |
3007 | 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) | |
3008 | end | |
3009 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) | |
3010 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
3011 | local TOCH = BEAM.Touched:Connect(function(hit) | |
3012 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
3013 | Kill(hit) | |
3014 | end | |
3015 | end) | |
3016 | local I = 0 | |
3017 | repeat | |
3018 | Swait() | |
3019 | I = I + 1 | |
3020 | if I <= 10 then | |
3021 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
3022 | end | |
3023 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
3024 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
3025 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
3026 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
3027 | BEAM.Size = VT(2,2,DISTANCE) | |
3028 | 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}) | |
3029 | 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}) | |
3030 | 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}) | |
3031 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
3032 | 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) | |
3033 | 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) | |
3034 | 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) | |
3035 | 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) | |
3036 | 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) | |
3037 | 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) | |
3038 | if ENDHIT ~= nil then | |
3039 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
3040 | Banish(ENDHIT) | |
3041 | end | |
3042 | end | |
3043 | until LOOP.Playing == false | |
3044 | GYRO:remove() | |
3045 | BEAM:remove() | |
3046 | ATTACK = false | |
3047 | Rooted = false | |
3048 | end | |
3049 | function Absoluteum() | |
3050 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
3051 | if HITFLOOR ~= nil then | |
3052 | do | |
3053 | local HITBODIES = {} | |
3054 | ATTACK = true | |
3055 | Rooted = true | |
3056 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Crimson", "ABSOLUTEUM", VT(0, 0, 0)) | |
3057 | MakeForm(ABSOLUTE, "Ball") | |
3058 | CreateSound(145080998, RightHole, 7, 1, false) | |
3059 | CreateSound(145080998, LeftHole, 7, 1, false) | |
3060 | CreateSound("416200578", RootPart, 10, 1) | |
3061 | for i = 0, 8, 0.1 / Animation_Speed do | |
3062 | Swait() | |
3063 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
3064 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
3065 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
3066 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(2, 2, 2)) | |
3067 | MakeForm(CHARGE, "Ball") | |
3068 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
3069 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
3070 | 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(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3071 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3072 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3073 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-170), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3074 | 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) | |
3075 | 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) | |
3076 | end | |
3077 | CreateSound(145080998, RightHole, 7, 1, false) | |
3078 | CreateSound(145080998, LeftHole, 7, 1, false) | |
3079 | CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Head, 10, 0.9) | |
3080 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
3081 | for i = 1, 45 do | |
3082 | Swait() | |
3083 | 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(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3084 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3085 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3086 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-170), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3087 | 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) | |
3088 | 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) | |
3089 | end | |
3090 | coroutine.resume(coroutine.create(function() | |
3091 | local IMPACT = false | |
3092 | CreateSound(145080998, RightHole, 7, 1, false) | |
3093 | CreateSound(145080998, LeftHole, 7, 1, false) | |
3094 | local BULLET = ABSOLUTE | |
3095 | MakeForm(BULLET, "Ball") | |
3096 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
3097 | for i = 1, 500 do | |
3098 | Swait() | |
3099 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
3100 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
3101 | MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55) | |
3102 | if HIT ~= nil then | |
3103 | IMPACT = true | |
3104 | break | |
3105 | end | |
3106 | end | |
3107 | if IMPACT == false then | |
3108 | for i = 1, 40 do | |
3109 | Swait() | |
3110 | BULLET.Size = BULLET.Size * 0.9 | |
3111 | end | |
3112 | BULLET:remove() | |
3113 | else | |
3114 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
3115 | for i = 1, 175 do | |
3116 | Swait() | |
3117 | BULLET.Size = BULLET.Size * 0.99 | |
3118 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 85) | |
3119 | end | |
3120 | CreateSound("438666001", BULLET, 10, 3) | |
3121 | Swait(35) | |
3122 | BULLET.Transparency = 1 | |
3123 | for i = 1, 20 do | |
3124 | for e = 1, 5 do | |
3125 | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0) | |
3126 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 3) | |
3127 | end | |
3128 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
3129 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
3130 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
3131 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
3132 | Swait(5) | |
3133 | for e = 1, #HITBODIES do | |
3134 | if HITBODIES[e] ~= nil then | |
3135 | local BOD = HITBODIES[e] | |
3136 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
3137 | if TORS then | |
3138 | BOD:BreakJoints() | |
3139 | for _, c in pairs(BOD:GetChildren()) do | |
3140 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
3141 | local bv = Instance.new("BodyVelocity") | |
3142 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
3143 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
3144 | bv.Parent = c | |
3145 | Debris:AddItem(bv, 0.2) | |
3146 | end | |
3147 | end | |
3148 | end | |
3149 | end | |
3150 | end | |
3151 | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Really red", VT(i, 0, i) * 2) | |
3152 | end | |
3153 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12)) | |
3154 | Debris:AddItem(BULLET, 10) | |
3155 | end | |
3156 | end)) | |
3157 | ATTACK = false | |
3158 | Rooted = false | |
3159 | end | |
3160 | end | |
3161 | end | |
3162 | ||
3163 | if FIRED == false then | |
3164 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
3165 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
3166 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3167 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
3168 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
3169 | if HITBOD ~= nil then | |
3170 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
3171 | Kill(HITBOD.Parent) | |
3172 | end | |
3173 | end | |
3174 | end | |
3175 | end | |
3176 | for i = 1, 45 do | |
3177 | Swait() | |
3178 | GATE.Size = GATE.Size - VT(3,0,3) | |
3179 | end | |
3180 | GATESPIN = false | |
3181 | GATE:remove() | |
3182 | end)) | |
3183 | Swait(15) | |
3184 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
3185 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0)) | |
3186 | local DECAL = IT("Decal",GATE) | |
3187 | DECAL.Texture = "http://www.roblox.com/asset/?id=818983932" | |
3188 | DECAL.Face = "Top" | |
3189 | GATE.CFrame = CF(HITPOS) | |
3190 | CreateSound(160772554, GATE, 7, 1.3, false) | |
3191 | for i = 1, 45 do | |
3192 | Swait() | |
3193 | GATE.Size = GATE.Size + VT(3,0,3) | |
3194 | end | |
3195 | CreateSound(213603013, RightHole, 7, 1, false) | |
3196 | CreateSound(213603013, LeftHole, 7, 1, false) | |
3197 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3198 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3199 | ATTACK = false | |
3200 | Rooted = false | |
3201 | DONE = true | |
3202 | end | |
3203 | --------------- | |
3204 | --//=================================\\ | |
3205 | --|| ASSIGN THINGS TO KEYS | |
3206 | --\\=================================// | |
3207 | ---------------- | |
3208 | function MouseDown(Mouse) | |
3209 | HOLD = true | |
3210 | if ATTACK == false then | |
3211 | end | |
3212 | end | |
3213 | ||
3214 | function MouseUp(Mouse) | |
3215 | HOLD = false | |
3216 | end | |
3217 | ||
3218 | function KeyDown(Key) | |
3219 | KEYHOLD = true | |
3220 | if Key == "z" and ATTACK == false then | |
3221 | Warden_Zap() | |
3222 | end | |
3223 | ||
3224 | if Key == "c" and ATTACK == false then | |
3225 | Inferno_Ring() | |
3226 | end | |
3227 | ||
3228 | if Key == "v" and ATTACK == false then | |
3229 | Warden_Wall() | |
3230 | end | |
3231 | ||
3232 | if Key == "x" and ATTACK == false then | |
3233 | Prison_Key() | |
3234 | end | |
3235 | ||
3236 | if Key == "h" and ATTACK == false then | |
3237 | Technobeam() | |
3238 | end | |
3239 | ||
3240 | if Key == "j" and ATTACK == false then | |
3241 | CyberSmash() | |
3242 | end | |
3243 | ||
3244 | if Key == "l" and ATTACK == false then | |
3245 | Teleport() | |
3246 | end | |
3247 | ||
3248 | if Key == "k" and ATTACK == false then | |
3249 | Deathbound() | |
3250 | end | |
3251 | if Key == "q" and ATTACK == false then | |
3252 | Lunar_Blast() | |
3253 | end | |
3254 | ||
3255 | if Key == "e" and ATTACK == false then | |
3256 | Star_Cutter() | |
3257 | end | |
3258 | ||
3259 | if Key == "r" and ATTACK == false then | |
3260 | Supernova() | |
3261 | end | |
3262 | ||
3263 | if Key == "p" and ATTACK == false then | |
3264 | Astral_Hop() | |
3265 | end | |
3266 | ||
3267 | if Key == "t" and ATTACK == false then | |
3268 | Hat() | |
3269 | end | |
3270 | end | |
3271 | ||
3272 | function KeyUp(Key) | |
3273 | KEYHOLD = false | |
3274 | end | |
3275 | ||
3276 | Mouse.Button1Down:connect(function(NEWKEY) | |
3277 | MouseDown(NEWKEY) | |
3278 | end) | |
3279 | Mouse.Button1Up:connect(function(NEWKEY) | |
3280 | MouseUp(NEWKEY) | |
3281 | end) | |
3282 | Mouse.KeyDown:connect(function(NEWKEY) | |
3283 | KeyDown(NEWKEY) | |
3284 | end) | |
3285 | Mouse.KeyDown:connect(function(NEWKEY) | |
3286 | KeyDown(NEWKEY) | |
3287 | end) | |
3288 | Mouse.KeyUp:connect(function(NEWKEY) | |
3289 | KeyUp(NEWKEY) | |
3290 | end) | |
3291 | Mouse.Button1Down:connect(function(NEWKEY) | |
3292 | MouseDown(NEWKEY) | |
3293 | end) | |
3294 | Mouse.Button1Up:connect(function(NEWKEY) | |
3295 | MouseUp(NEWKEY) | |
3296 | end) | |
3297 | Mouse.KeyDown:connect(function(NEWKEY) | |
3298 | KeyDown(NEWKEY) | |
3299 | end) | |
3300 | Mouse.KeyUp:connect(function(NEWKEY) | |
3301 | KeyUp(NEWKEY) | |
3302 | end) | |
3303 | Mouse.Button1Down:connect(function(NEWKEY) | |
3304 | MouseDown(NEWKEY) | |
3305 | end) | |
3306 | Mouse.Button1Up:connect(function(NEWKEY) | |
3307 | MouseUp(NEWKEY) | |
3308 | end) | |
3309 | Mouse.KeyDown:connect(function(NEWKEY) | |
3310 | KeyDown(NEWKEY) | |
3311 | end) | |
3312 | Mouse.KeyUp:connect(function(NEWKEY) | |
3313 | KeyUp(NEWKEY) | |
3314 | end) | |
3315 | --//=================================\\ | |
3316 | --\\=================================// | |
3317 | --//=================================\\ | |
3318 | --\\=================================// | |
3319 | ||
3320 | ||
3321 | function unanchor() | |
3322 | if UNANCHOR == true then | |
3323 | g = Character:GetChildren() | |
3324 | for i = 1, #g do | |
3325 | if g[i].ClassName == "Part" then | |
3326 | g[i].Anchored = false | |
3327 | end | |
3328 | end | |
3329 | end | |
3330 | end | |
3331 | ||
3332 | ||
3333 | --//=================================\\ | |
3334 | --|| WRAP THE WHOLE SCRIPT UP | |
3335 | --\\=================================// | |
3336 | ||
3337 | Humanoid.Changed:connect(function(Jump) | |
3338 | if Jump == "Jump" and (Disable_Jump == true) then | |
3339 | Humanoid.Jump = false | |
3340 | end | |
3341 | end) | |
3342 | ||
3343 | Humanoid.HipHeight = 2 | |
3344 | ||
3345 | while true do | |
3346 | Swait() | |
3347 | refit() | |
3348 | Character.Parent = workspace | |
3349 | Humanoid.Parent = Character | |
3350 | ANIMATE.Parent = nil | |
3351 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3352 | IDLEANIMATION:Play() | |
3353 | SINE = SINE + CHANGE | |
3354 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3355 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3356 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
3357 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3358 | for LW = 1, #LEFTWINGS do | |
3359 | if LEFTWINGS[LW] ~= nil then | |
3360 | 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) | |
3361 | end | |
3362 | end | |
3363 | for RW = 1, #RIGHTWINGS do | |
3364 | if RIGHTWINGS[RW] ~= nil then | |
3365 | 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) | |
3366 | end | |
3367 | end | |
3368 | if ATTACK == false then | |
3369 | if TORSOVELOCITY < 1 then | |
3370 | 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) | |
3371 | 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) | |
3372 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3373 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3374 | 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) | |
3375 | 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) | |
3376 | elseif TORSOVELOCITY > 1 then | |
3377 | 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) | |
3378 | 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) | |
3379 | 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) | |
3380 | 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) | |
3381 | 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) | |
3382 | 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) | |
3383 | end | |
3384 | end | |
3385 | for _, c in pairs(Character:GetChildren()) do | |
3386 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
3387 | c.Material = "Neon" | |
3388 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
3389 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
3390 | end | |
3391 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
3392 | local EF = Instance.new("SelectionBox",c) | |
3393 | EF.Adornee = c | |
3394 | EF.Color = BrickColor.new("Really red") | |
3395 | EF.LineThickness = 0.01 | |
3396 | EF.Transparency = 0 | |
3397 | EF.Name = "BoxEffect" | |
3398 | end | |
3399 | c.Color = C3(0,0,0) | |
3400 | if c == Head then | |
3401 | --[[if c:FindFirstChild("Dominus") == nil then | |
3402 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
3403 | M.Name = "" | |
3404 | end]]-- | |
3405 | if c:FindFirstChild("face") then | |
3406 | c.face:remove() | |
3407 | end | |
3408 | end | |
3409 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
3410 | end | |
3411 | end | |
3412 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
3413 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
3414 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
3415 | if BOXFLOOR ~= nil then | |
3416 | 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}) | |
3417 | end | |
3418 | end | |
3419 | unanchor() | |
3420 | Humanoid.MaxHealth = "inf" | |
3421 | Humanoid.Health = "inf" | |
3422 | if Rooted == false then | |
3423 | Disable_Jump = false | |
3424 | Humanoid.WalkSpeed = Speed | |
3425 | elseif Rooted == true then | |
3426 | Disable_Jump = true | |
3427 | Humanoid.WalkSpeed = 0 | |
3428 | end | |
3429 | for _, c in pairs(workspace:GetChildren()) do | |
3430 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
3431 | end | |
3432 | end | |
3433 | script.Parent = WEAPONGUI | |
3434 | Humanoid.Name = "Monarch" | |
3435 | sick.Parent = Effects | |
3436 | sick.Pitch = 1 | |
3437 | sick.Playing = true | |
3438 | for _, q in pairs(Head:GetChildren()) do | |
3439 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
3440 | q:remove() | |
3441 | end | |
3442 | end | |
3443 | Humanoid.DisplayDistanceType = "None" | |
3444 | end | |
3445 | ||
3446 | --//=================================\\ | |
3447 | --\\=================================// | |
3448 | ||
3449 | ||
3450 | ||
3451 | ||
3452 | --//====================================================\\-- | |
3453 | --|| END OF SCRIPT | |
3454 | --\\====================================================//-- |