SHOW:
|
|
- or go back to the newest paste.
1 | wait(0.2) | |
2 | ||
3 | Player = game:GetService("Players").LocalPlayer | |
4 | PlayerGui = Player.PlayerGui | |
5 | Cam = workspace.CurrentCamera | |
6 | Backpack = Player.Backpack | |
7 | Character = Player.Character | |
8 | Humanoid = Character.Humanoid | |
9 | Mouse = Player:GetMouse() | |
10 | RootPart = Character["HumanoidRootPart"] | |
11 | Torso = Character["Torso"] | |
12 | Head = Character["Head"] | |
13 | RightArm = Character["Right Arm"] | |
14 | LeftArm = Character["Left Arm"] | |
15 | RightLeg = Character["Right Leg"] | |
16 | LeftLeg = Character["Left Leg"] | |
17 | RootJoint = RootPart["RootJoint"] | |
18 | Neck = Torso["Neck"] | |
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",Torso) | |
24 | sick.SoundId = "rbxassetid://333446256" | |
25 | sick.Looped = false | |
26 | sick.Pitch = 1 | |
27 | sick.Volume = 3 | |
28 | sick:Play() | |
29 | IT = Instance.new | |
30 | CF = CFrame.new | |
31 | VT = Vector3.new | |
32 | RAD = math.rad | |
33 | C3 = Color3.new | |
34 | UD2 = UDim2.new | |
35 | BRICKC = BrickColor.new | |
36 | ANGLES = CFrame.Angles | |
37 | EULER = CFrame.fromEulerAnglesXYZ | |
38 | COS = math.cos | |
39 | ACOS = math.acos | |
40 | SIN = math.sin | |
41 | ASIN = math.asin | |
42 | ABS = math.abs | |
43 | MRANDOM = math.random | |
44 | FLOOR = math.floor | |
45 | local char = game.Players.localPlayer.Character | |
46 | local txt = Instance.new("BillboardGui", char) | |
47 | txt.Adornee = char .Head | |
48 | txt.Name = "_status" | |
49 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
50 | txt.StudsOffset = Vector3.new(-9, 10, 0) | |
51 | local text = Instance.new("TextLabel", txt) | |
52 | text.Size = UDim2.new(10, 0, 7, 0) | |
53 | text.FontSize = "Size24" | |
54 | text.TextScaled = true | |
55 | text.TextTransparency = 0 | |
56 | text.BackgroundTransparency = 1 | |
57 | text.TextTransparency = 0 | |
58 | text.TextStrokeTransparency = 0 | |
59 | text.Font = "Garamond" | |
60 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
61 | - | text.Text = "Fallen God" |
61 | + | text.Text = "Ugly God" |
62 | script.Name = "Banisher Gun V3 / 1" | |
63 | local UNANCHOR = true | |
64 | local RWINGS = {} | |
65 | local LWINGS = {} | |
66 | local EYE, PUPIL | |
67 | local BLINKLOOP = 0 | |
68 | local FINISHEDINTRO = false | |
69 | local INTROING = false | |
70 | local INSTANT = false | |
71 | local EYES = {} | |
72 | local Sine = 0 | |
73 | local DemonForm = false | |
74 | local ChaosForm = false | |
75 | local TrueForm = false | |
76 | Character:WaitForChild("Head").BrickColor=BrickColor.new("Really black") | |
77 | Character:WaitForChild("Torso").BrickColor=BrickColor.new("Really black") | |
78 | Character:WaitForChild("Left Arm").BrickColor=BrickColor.new("Really black") | |
79 | Character:WaitForChild("Right Arm").BrickColor=BrickColor.new("Really black") | |
80 | Character:WaitForChild("Left Leg").BrickColor=BrickColor.new("Really black") | |
81 | Character:WaitForChild("Right Leg").BrickColor=BrickColor.new("Really black") | |
82 | ArtificialHB = Instance.new("BindableEvent", script) | |
83 | ArtificialHB.Name = "ArtificialHB" | |
84 | script:WaitForChild("ArtificialHB") | |
85 | frame = Frame_Speed | |
86 | tf = 0 | |
87 | allowframeloss = false | |
88 | tossremainder = false | |
89 | lastframe = tick() | |
90 | script.ArtificialHB:Fire() | |
91 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
92 | tf = tf + s | |
93 | if tf >= frame then | |
94 | if allowframeloss then | |
95 | script.ArtificialHB:Fire() | |
96 | lastframe = tick() | |
97 | else | |
98 | for i = 1, math.floor(tf / frame) do | |
99 | script.ArtificialHB:Fire() | |
100 | end | |
101 | lastframe = tick() | |
102 | end | |
103 | if tossremainder then | |
104 | tf = 0 | |
105 | else | |
106 | tf = tf - frame * math.floor(tf / frame) | |
107 | end | |
108 | end | |
109 | end) | |
110 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
111 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
112 | end | |
113 | function PositiveAngle(NUMBER) | |
114 | if NUMBER >= 0 then | |
115 | NUMBER = 0 | |
116 | end | |
117 | return NUMBER | |
118 | end | |
119 | function NegativeAngle(NUMBER) | |
120 | if NUMBER <= 0 then | |
121 | NUMBER = 0 | |
122 | end | |
123 | return NUMBER | |
124 | end | |
125 | function Swait(NUMBER) | |
126 | if NUMBER == 0 or NUMBER == nil then | |
127 | ArtificialHB.Event:wait() | |
128 | else | |
129 | for i = 1, NUMBER do | |
130 | ArtificialHB.Event:wait() | |
131 | end | |
132 | end | |
133 | end | |
134 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
135 | local NEWMESH = IT(MESH) | |
136 | if MESH == "SpecialMesh" then | |
137 | NEWMESH.MeshType = MESHTYPE | |
138 | if MESHID ~= "nil" and MESHID ~= "" then | |
139 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
140 | end | |
141 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
142 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
143 | end | |
144 | end | |
145 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
146 | NEWMESH.Scale = SCALE | |
147 | NEWMESH.Parent = PARENT | |
148 | return NEWMESH | |
149 | end | |
150 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
151 | local mesh = it(Mesh) | |
152 | mesh.Parent = part | |
153 | if Mesh == "SpecialMesh" then | |
154 | mesh.MeshType = meshtype | |
155 | if meshid ~= "nil" then | |
156 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
157 | end | |
158 | end | |
159 | mesh.Offset = offset | |
160 | mesh.Scale = scale | |
161 | return mesh | |
162 | end | |
163 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
164 | local NEWPART = IT("Part") | |
165 | NEWPART.formFactor = FORMFACTOR | |
166 | NEWPART.Reflectance = REFLECTANCE | |
167 | NEWPART.Transparency = TRANSPARENCY | |
168 | NEWPART.CanCollide = false | |
169 | NEWPART.Locked = true | |
170 | NEWPART.Anchored = true | |
171 | if ANCHOR == false then | |
172 | NEWPART.Anchored = false | |
173 | end | |
174 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
175 | NEWPART.Name = NAME | |
176 | NEWPART.Size = SIZE | |
177 | NEWPART.Position = Torso.Position | |
178 | NEWPART.Material = MATERIAL | |
179 | NEWPART:BreakJoints() | |
180 | NEWPART.Parent = PARENT | |
181 | return NEWPART | |
182 | end | |
183 | ||
184 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
185 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
186 | local mesh = IT("SpecialMesh",wave) | |
187 | mesh.MeshType = "Sphere" | |
188 | mesh.Scale = SIZE | |
189 | mesh.Offset = VT(0,0,0) | |
190 | wave.CFrame = CFRAME | |
191 | coroutine.resume(coroutine.create(function(PART) | |
192 | for i = 1, WAIT do | |
193 | Swait() | |
194 | mesh.Scale = mesh.Scale + GROW | |
195 | wave.Transparency = wave.Transparency + (1/WAIT) | |
196 | if wave.Transparency > 0.99 then | |
197 | wave:remove() | |
198 | end | |
199 | end | |
200 | end)) | |
201 | end | |
202 | ||
203 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
204 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
205 | local mesh = IT("SpecialMesh",wave) | |
206 | mesh.MeshType = "FileMesh" | |
207 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
208 | mesh.Scale = SIZE | |
209 | mesh.Offset = VT(0,0,0) | |
210 | wave.CFrame = CFRAME | |
211 | coroutine.resume(coroutine.create(function(PART) | |
212 | for i = 1, WAIT do | |
213 | Swait() | |
214 | mesh.Scale = mesh.Scale + GROW | |
215 | if DOESROT == true then | |
216 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
217 | end | |
218 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
219 | if wave.Transparency > 0.99 then | |
220 | wave:remove() | |
221 | end | |
222 | end | |
223 | end)) | |
224 | end | |
225 | ||
226 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
227 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
228 | local mesh = IT("SpecialMesh",wave) | |
229 | mesh.MeshType = "FileMesh" | |
230 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
231 | mesh.Scale = SIZE | |
232 | mesh.Offset = VT(0,0,0) | |
233 | wave.CFrame = CFRAME | |
234 | coroutine.resume(coroutine.create(function(PART) | |
235 | for i = 1, WAIT do | |
236 | Swait() | |
237 | mesh.Scale = mesh.Scale + GROW | |
238 | if DOESROT == true then | |
239 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
240 | end | |
241 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
242 | if wave.Transparency > 0.99 then | |
243 | wave:remove() | |
244 | end | |
245 | end | |
246 | end)) | |
247 | end | |
248 | ||
249 | function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW) | |
250 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
251 | local mesh = IT("SpecialMesh",wave) | |
252 | mesh.MeshType = "Sphere" | |
253 | mesh.Scale = SIZE | |
254 | mesh.Offset = VT(0,0,0) | |
255 | wave.CFrame = CFRAME | |
256 | coroutine.resume(coroutine.create(function(PART) | |
257 | for i = 1, WAIT do | |
258 | Swait() | |
259 | mesh.Scale = mesh.Scale + GROW | |
260 | wave.Transparency = wave.Transparency + (1/WAIT) | |
261 | if wave.Transparency > 0.99 then | |
262 | wave:remove() | |
263 | end | |
264 | end | |
265 | end)) | |
266 | end | |
267 | ||
268 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
269 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0)) | |
270 | local mesh = IT("SpecialMesh",wave) | |
271 | mesh.MeshType = "FileMesh" | |
272 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
273 | mesh.Scale = SIZE | |
274 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
275 | wave.CFrame = CFRAME | |
276 | coroutine.resume(coroutine.create(function(PART) | |
277 | for i = 1, WAIT do | |
278 | Swait() | |
279 | mesh.Scale = mesh.Scale + GROW | |
280 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
281 | if DOESROT == true then | |
282 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
283 | end | |
284 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
285 | if wave.Transparency > 0.99 then | |
286 | wave:remove() | |
287 | end | |
288 | end | |
289 | end)) | |
290 | end | |
291 | ||
292 | function CreateWave2(inair,size,doesrotate,rotatedirection,waitt,part,offset) | |
293 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright orange", "Effect", VT(0,0,0)) | |
294 | local mesh = IT("SpecialMesh",wave) | |
295 | mesh.MeshType = "FileMesh" | |
296 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
297 | mesh.Scale = VT(size,size,size) | |
298 | mesh.Offset = VT(0,0,-size/8) | |
299 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
300 | coroutine.resume(coroutine.create(function(PART) | |
301 | for i = 1, waitt do | |
302 | Swait() | |
303 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
304 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
305 | if doesrotate == true then | |
306 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
307 | end | |
308 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
309 | if wave.Transparency > 0.99 then | |
310 | wave:remove() | |
311 | end | |
312 | end | |
313 | end)) | |
314 | end | |
315 | ||
316 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
317 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0)) | |
318 | local mesh = IT("SpecialMesh",wave) | |
319 | mesh.MeshType = "FileMesh" | |
320 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
321 | mesh.Scale = SIZE | |
322 | wave.CFrame = CFRAME | |
323 | coroutine.resume(coroutine.create(function(PART) | |
324 | for i = 1, WAIT do | |
325 | Swait() | |
326 | mesh.Scale = mesh.Scale + GROW | |
327 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
328 | if DOESROT == true then | |
329 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
330 | end | |
331 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
332 | if wave.Transparency > 0.99 then | |
333 | wave:remove() | |
334 | end | |
335 | end | |
336 | end)) | |
337 | end | |
338 | ||
339 | local weldBetween = function(a, b) | |
340 | local weldd = Instance.new("ManualWeld") | |
341 | weldd.Part0 = a | |
342 | weldd.Part1 = b | |
343 | weldd.C0 = CFrame.new() | |
344 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
345 | weldd.Parent = a | |
346 | return weldd | |
347 | end | |
348 | function QuaternionFromCFrame(cf) | |
349 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
350 | local trace = m00 + m11 + m22 | |
351 | if trace > 0 then | |
352 | local s = math.sqrt(1 + trace) | |
353 | local recip = 0.5 / s | |
354 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
355 | else | |
356 | local i = 0 | |
357 | if m00 < m11 then | |
358 | i = 1 | |
359 | end | |
360 | if m22 > (i == 0 and m00 or m11) then | |
361 | i = 2 | |
362 | end | |
363 | if i == 0 then | |
364 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
365 | local recip = 0.5 / s | |
366 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
367 | elseif i == 1 then | |
368 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
369 | local recip = 0.5 / s | |
370 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
371 | elseif i == 2 then | |
372 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
373 | local recip = 0.5 / s | |
374 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
375 | end | |
376 | end | |
377 | end | |
378 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
379 | local xs, ys, zs = x + x, y + y, z + z | |
380 | local wx, wy, wz = w * xs, w * ys, w * zs | |
381 | local xx = x * xs | |
382 | local xy = x * ys | |
383 | local xz = x * zs | |
384 | local yy = y * ys | |
385 | local yz = y * zs | |
386 | local zz = z * zs | |
387 | 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)) | |
388 | end | |
389 | function QuaternionSlerp(a, b, t) | |
390 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
391 | local startInterp, finishInterp | |
392 | if cosTheta >= 1.0E-4 then | |
393 | if 1 - cosTheta > 1.0E-4 then | |
394 | local theta = ACOS(cosTheta) | |
395 | local invSinTheta = 1 / SIN(theta) | |
396 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
397 | finishInterp = SIN(t * theta) * invSinTheta | |
398 | else | |
399 | startInterp = 1 - t | |
400 | finishInterp = t | |
401 | end | |
402 | elseif 1 + cosTheta > 1.0E-4 then | |
403 | local theta = ACOS(-cosTheta) | |
404 | local invSinTheta = 1 / SIN(theta) | |
405 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
406 | finishInterp = SIN(t * theta) * invSinTheta | |
407 | else | |
408 | startInterp = t - 1 | |
409 | finishInterp = t | |
410 | end | |
411 | 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 | |
412 | end | |
413 | function Clerp(a, b, t) | |
414 | local qa = { | |
415 | QuaternionFromCFrame(a) | |
416 | } | |
417 | local qb = { | |
418 | QuaternionFromCFrame(b) | |
419 | } | |
420 | local ax, ay, az = a.x, a.y, a.z | |
421 | local bx, by, bz = b.x, b.y, b.z | |
422 | local _t = 1 - t | |
423 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
424 | end | |
425 | ||
426 | function clerp(startCF,endCF,alpha) | |
427 | return startCF:lerp(endCF, alpha) | |
428 | end | |
429 | ||
430 | ||
431 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
432 | local frame = IT("Frame") | |
433 | frame.BackgroundTransparency = TRANSPARENCY | |
434 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
435 | frame.Position = POSITION | |
436 | frame.Size = SIZE | |
437 | frame.BackgroundColor3 = COLOR | |
438 | frame.BorderColor3 = BORDERCOLOR | |
439 | frame.Name = NAME | |
440 | frame.Parent = PARENT | |
441 | return frame | |
442 | end | |
443 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
444 | local label = IT("TextLabel") | |
445 | label.BackgroundTransparency = 1 | |
446 | label.Size = UD2(1, 0, 1, 0) | |
447 | label.Position = UD2(0, 0, 0, 0) | |
448 | label.TextColor3 = TEXTCOLOR | |
449 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
450 | label.TextTransparency = TRANSPARENCY | |
451 | label.FontSize = TEXTFONTSIZE | |
452 | label.Font = TEXTFONT | |
453 | label.BorderSizePixel = BORDERSIZEPIXEL | |
454 | label.TextScaled = false | |
455 | label.Text = TEXT | |
456 | label.Name = NAME | |
457 | label.Parent = PARENT | |
458 | return label | |
459 | end | |
460 | function NoOutlines(PART) | |
461 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
462 | end | |
463 | vt=Vector3.new | |
464 | it=Instance.new | |
465 | cf=CFrame.new | |
466 | cn=CFrame.new | |
467 | euler=CFrame.fromEulerAnglesXYZ | |
468 | angles=CFrame.Angles | |
469 | mouse=Player:GetMouse() | |
470 | LS=Torso["Left Shoulder"] | |
471 | LH=Torso["Left Hip"] | |
472 | RS=Torso["Right Shoulder"] | |
473 | RH=Torso["Right Hip"] | |
474 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
475 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
476 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
477 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
478 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
479 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
480 | RW2, LW2=Instance.new("Weld"), Instance.new("Weld") | |
481 | RW2.Name="Right Shoulder" LW2.Name="Left Shoulder" | |
482 | function NoOutline(Part) | |
483 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
484 | end | |
485 | ||
486 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
487 | local NEWWELD = IT(TYPE) | |
488 | NEWWELD.Part0 = PART0 | |
489 | NEWWELD.Part1 = PART1 | |
490 | NEWWELD.C0 = C0 | |
491 | NEWWELD.C1 = C1 | |
492 | NEWWELD.Parent = PARENT | |
493 | return NEWWELD | |
494 | end | |
495 | local S = IT("Sound") | |
496 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
497 | local NEWSOUND | |
498 | coroutine.resume(coroutine.create(function() | |
499 | NEWSOUND = S:Clone() | |
500 | NEWSOUND.Parent = PARENT | |
501 | NEWSOUND.Volume = VOLUME | |
502 | NEWSOUND.Pitch = PITCH | |
503 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
504 | NEWSOUND:play() | |
505 | if DOESLOOP == true then | |
506 | NEWSOUND.Looped = true | |
507 | else | |
508 | repeat | |
509 | Swait() | |
510 | until NEWSOUND.Playing == false | |
511 | NEWSOUND:remove() | |
512 | end | |
513 | end)) | |
514 | return NEWSOUND | |
515 | end | |
516 | function CFrameFromTopBack(at, top, back) | |
517 | local right = top:Cross(back) | |
518 | 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) | |
519 | end | |
520 | ||
521 | function WACKYEFFECT(Table) | |
522 | local TYPE = Table.EffectType or "Sphere" | |
523 | local SIZE = Table.Size or VT(1, 1, 1) | |
524 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
525 | local TRANSPARENCY = Table.Transparency or 0 | |
526 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
527 | local CFRAME = Table.CFrame or Torso.CFrame | |
528 | local MOVEDIRECTION = Table.MoveToPos or nil | |
529 | local ROTATION1 = Table.RotationX or 0 | |
530 | local ROTATION2 = Table.RotationY or 0 | |
531 | local ROTATION3 = Table.RotationZ or 0 | |
532 | local MATERIAL = Table.Material or "Neon" | |
533 | local COLOR = Table.Color or C3(1, 1, 1) | |
534 | local TIME = Table.Time or 45 | |
535 | local SOUNDID = Table.SoundID or nil | |
536 | local SOUNDPITCH = Table.SoundPitch or nil | |
537 | local SOUNDVOLUME = Table.SoundVolume or nil | |
538 | coroutine.resume(coroutine.create(function() | |
539 | local PLAYSSOUND = false | |
540 | local SOUND | |
541 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
542 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
543 | PLAYSSOUND = true | |
544 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
545 | end | |
546 | EFFECT.Color = COLOR | |
547 | local MSH | |
548 | if TYPE == "Sphere" then | |
549 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
550 | elseif TYPE == "Block" then | |
551 | MSH = IT("BlockMesh", EFFECT) | |
552 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
553 | elseif TYPE == "Wave" then | |
554 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
555 | elseif TYPE == "Ring" then | |
556 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
557 | elseif TYPE == "Slash" then | |
558 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
559 | elseif TYPE == "Round Slash" then | |
560 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
561 | elseif TYPE == "Swirl" then | |
562 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
563 | elseif TYPE == "Skull" then | |
564 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
565 | elseif TYPE == "Crystal" then | |
566 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
567 | end | |
568 | if MSH ~= nil then | |
569 | local MOVESPEED | |
570 | if MOVEDIRECTION ~= nil then | |
571 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
572 | end | |
573 | local GROWTH = SIZE - ENDSIZE | |
574 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
575 | if TYPE == "Block" then | |
576 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
577 | else | |
578 | EFFECT.CFrame = CFRAME | |
579 | end | |
580 | for LOOP = 1, TIME do | |
581 | Swait() | |
582 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
583 | if TYPE == "Wave" then | |
584 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
585 | end | |
586 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
587 | if TYPE == "Block" then | |
588 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
589 | else | |
590 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
591 | end | |
592 | if MOVEDIRECTION ~= nil then | |
593 | local ORI = EFFECT.Orientation | |
594 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
595 | EFFECT.Orientation = ORI | |
596 | end | |
597 | end | |
598 | if PLAYSSOUND == false then | |
599 | EFFECT:remove() | |
600 | else | |
601 | repeat | |
602 | Swait() | |
603 | until SOUND.Playing == false | |
604 | EFFECT:remove() | |
605 | end | |
606 | elseif PLAYSSOUND == false then | |
607 | EFFECT:remove() | |
608 | else | |
609 | repeat | |
610 | Swait() | |
611 | until SOUND.Playing == false | |
612 | EFFECT:remove() | |
613 | end | |
614 | end)) | |
615 | end | |
616 | function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT) | |
617 | if FLOOR ~= nil then | |
618 | coroutine.resume(coroutine.create(function() | |
619 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0)) | |
620 | PART.CFrame = CF(POSITION) | |
621 | for i = 1, 45 do | |
622 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
623 | RingPiece.Material = FLOOR.Material | |
624 | RingPiece.Color = FLOOR.Color | |
625 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
626 | Debris:AddItem(RingPiece, SWAIT) | |
627 | end | |
628 | PART:remove() | |
629 | end)) | |
630 | end | |
631 | end | |
632 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH) | |
633 | if FLOOR ~= nil then | |
634 | for i = 1, AMOUNT do | |
635 | do | |
636 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false) | |
637 | DEBREE.Material = FLOOR.Material | |
638 | DEBREE.Color = FLOOR.Color | |
639 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
640 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH)) | |
641 | coroutine.resume(coroutine.create(function() | |
642 | Swait(15) | |
643 | DEBREE.Parent = workspace | |
644 | DEBREE.CanCollide = true | |
645 | Debris:AddItem(DEBREE, SWAIT) | |
646 | end)) | |
647 | end | |
648 | end | |
649 | end | |
650 | end | |
651 | ||
652 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
653 | for _, c in pairs(PARENT:GetChildren()) do | |
654 | if c.ClassName == "Model" then | |
655 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
656 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
657 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
658 | if DIST > (TORSO.Position - FROM).Magnitude then | |
659 | table.insert(TABLE, c) | |
660 | end | |
661 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
662 | elseif c.ClassName == "Folder" then | |
663 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
664 | end | |
665 | end | |
666 | end | |
667 | end | |
668 | ||
669 | function MakeForm(PART, TYPE) | |
670 | if TYPE == "Cyl" then | |
671 | local MSH = IT("CylinderMesh", PART) | |
672 | elseif TYPE == "Ball" then | |
673 | local MSH = IT("SpecialMesh", PART) | |
674 | MSH.MeshType = "Sphere" | |
675 | elseif TYPE == "Wedge" then | |
676 | local MSH = IT("SpecialMesh", PART) | |
677 | MSH.MeshType = "Wedge" | |
678 | end | |
679 | end | |
680 | ||
681 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
682 | if DoesCourontine == false then | |
683 | local Direction = CF(Part.Position, ToLocation) | |
684 | local Distance = (Part.Position - ToLocation).magnitude | |
685 | for i = 1, AmountOfTime do | |
686 | Swait() | |
687 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
688 | Direction = Part.CFrame | |
689 | end | |
690 | Part:remove() | |
691 | elseif DoesCourontine == true then | |
692 | coroutine.resume(coroutine.create(function() | |
693 | local Direction = CF(Part.Position, ToLocation) | |
694 | local Distance = (Part.Position - ToLocation).magnitude | |
695 | for i = 1, AmountOfTime do | |
696 | Swait() | |
697 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
698 | Direction = Part.CFrame | |
699 | end | |
700 | Part:remove() | |
701 | end)) | |
702 | end | |
703 | end | |
704 | ||
705 | function CheckTableForString(Table, String) | |
706 | for i, v in pairs(Table) do | |
707 | if string.find(string.lower(String), string.lower(v)) then | |
708 | return true | |
709 | end | |
710 | end | |
711 | return false | |
712 | end | |
713 | function CheckIntangible(Hit) | |
714 | local ProjectileNames = { | |
715 | "Water", | |
716 | "Arrow", | |
717 | "Projectile", | |
718 | "Effect", | |
719 | "Rail", | |
720 | "Lightning", | |
721 | "Bullet" | |
722 | } | |
723 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
724 | return true | |
725 | end | |
726 | return false | |
727 | end | |
728 | Debris = game:GetService("Debris") | |
729 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
730 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} | |
731 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore) | |
732 | if RayHit and CheckIntangible(RayHit) then | |
733 | if DelayIfHit then | |
734 | wait() | |
735 | end | |
736 | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) | |
737 | end | |
738 | return RayHit, RayPos, RayNormal | |
739 | end | |
740 | ||
741 | NewInstance = function(instance,parent,properties) | |
742 | local inst = Instance.new(instance,parent) | |
743 | if(properties)then | |
744 | for i,v in next, properties do | |
745 | pcall(function() inst[i] = v end) | |
746 | end | |
747 | end | |
748 | return inst; | |
749 | end | |
750 | ||
751 | local plr = game:service'Players'.LocalPlayer | |
752 | local char2 = plr.Character | |
753 | local hum2 = char2.Humanoid | |
754 | local ra = char2["Right Arm"] | |
755 | local la= char2["Left Arm"] | |
756 | local rl= char2["Right Leg"] | |
757 | local ll = char2["Left Leg"] | |
758 | local hed = char2.Head | |
759 | ||
760 | ||
761 | function checkfriendlist(model) | |
762 | local friend = false | |
763 | local target = nil | |
764 | if model.ClassName == "Player" then | |
765 | target = model | |
766 | else | |
767 | target = game:GetService("Players"):GetPlayerFromCharacter(model) | |
768 | end | |
769 | if target ~= nil then | |
770 | if target:IsFriendsWith(261858470) then friend = true end | |
771 | end | |
772 | return friend | |
773 | end | |
774 | if checkfriendlist(game:GetService("Players").LocalPlayer) == true then | |
775 | warn('Youre friends with izigaem, Have fun!') | |
776 | end | |
777 | ||
778 | if checkfriendlist(game:GetService("Players").LocalPlayer) == false then | |
779 | warn('How did you even get this script? ') | |
780 | warn('You are not friends with izigaem, go away >:c' ..plr.Name) | |
781 | end | |
782 | ||
783 | ff = Instance.new("ForceField",char2) | |
784 | ff.Visible = false | |
785 | hum2.Name = "Base" | |
786 | hum2.MaxHealth = 1.0E298 | |
787 | hum2.Health = 1.0E298 | |
788 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
789 | if hum2.Health > 0.1 and hum2.Health < 1.0E298 then | |
790 | hum2.MaxHealth = 1.0E298 | |
791 | hum2.Health = 1.0E298 | |
792 | end | |
793 | end) | |
794 | ||
795 | local asd = Instance.new("ParticleEmitter") | |
796 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0)) | |
797 | asd.LightEmission = .1 | |
798 | asd.Texture = "http://www.roblox.com/asset/?ID=1548886865" | |
799 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
800 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
801 | asd.Transparency = bbb | |
802 | asd.Size = aaa | |
803 | asd.ZOffset = .9 | |
804 | asd.Acceleration = Vector3.new(0, -15, 0) | |
805 | asd.LockedToPart = false | |
806 | asd.EmissionDirection = "Back" | |
807 | asd.Lifetime = NumberRange.new(1, 2) | |
808 | asd.Rotation = NumberRange.new(-100, 100) | |
809 | asd.RotSpeed = NumberRange.new(-100, 100) | |
810 | asd.Speed = NumberRange.new(10) | |
811 | asd.Enabled = false | |
812 | asd.VelocitySpread = 999 | |
813 | ||
814 | local Particle = IT("ParticleEmitter",nil) | |
815 | Particle.Enabled = false | |
816 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
817 | Particle.LightEmission = 0.5 | |
818 | Particle.Rate = 150 | |
819 | Particle.ZOffset = 1 | |
820 | Particle.Rotation = NumberRange.new(-180, 180) | |
821 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
822 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
823 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0)) | |
824 | ||
825 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
826 | function ParticleEmitter(Table) | |
827 | local PRTCL = Particle:Clone() | |
828 | local Speed = Table.Speed or 5 | |
829 | local Drag = Table.Drag or 0 | |
830 | local Size1 = Table.Size1 or 1 | |
831 | local Size2 = Table.Size2 or 5 | |
832 | local Lifetime1 = Table.Lifetime1 or 1 | |
833 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
834 | local Parent = Table.Parent or Torso | |
835 | local Emit = Table.Emit or 100 | |
836 | local Offset = Table.Offset or 360 | |
837 | local Acel = Table.Acel or VT(0,0,0) | |
838 | local Enabled = Table.Enabled or false | |
839 | PRTCL.Parent = Parent | |
840 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
841 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
842 | PRTCL.Speed = NumberRange.new(Speed) | |
843 | PRTCL.VelocitySpread = Offset | |
844 | PRTCL.Drag = Drag | |
845 | PRTCL.Acceleration = Acel | |
846 | if Enabled == false then | |
847 | PRTCL:Emit(Emit) | |
848 | Debris:AddItem(PRTCL,Lifetime2) | |
849 | else | |
850 | PRTCL.Enabled = true | |
851 | end | |
852 | return PRTCL | |
853 | end | |
854 | ||
855 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
856 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
857 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
858 | end | |
859 | function turnto(position) | |
860 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
861 | end | |
862 | BaseLightning = IT("Part") | |
863 | BaseLightning.Anchored = true | |
864 | BaseLightning.CanCollide = false | |
865 | BaseLightning.Material = "Neon" | |
866 | local LightningBolts = {} | |
867 | function Zap(Table) | |
868 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
869 | local Duration = Table.Duration or 2 | |
870 | local Offset = Table.Offset or 2 | |
871 | local Individualize = Table.Individualize or false | |
872 | local MaxRange = Table.MaxRange or 200 | |
873 | local SegmentLength = Table.SegmentLength or 5 | |
874 | local Transparency = Table.Transparency or 0 | |
875 | local Ignore = Table.Ignore or {} | |
876 | local SIZE = Table.SIZE or 0.3 | |
877 | if not (StartPos and TargetPos) or not Character then | |
878 | return | |
879 | end | |
880 | local LightningModel = IT("Folder", Effects) | |
881 | LightningModel.Name = "ZAPP" | |
882 | for i, v in pairs({Character, LightningModel}) do | |
883 | table.insert(Ignore, v) | |
884 | end | |
885 | local LastPos = StartPos | |
886 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
887 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
888 | local RayLength = (StartPos - RayPos).Magnitude | |
889 | local Struck = false | |
890 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
891 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
892 | local LightningBolt = IT("Model", Effects) | |
893 | LightningBolt.Name = "Lightning" | |
894 | LastBolt = LightningBolt | |
895 | Debris:AddItem(LightningBolt, Duration) | |
896 | LightningBolt.Parent = LightningModel | |
897 | for i = 1, TotalSegments do | |
898 | if not Struck then | |
899 | local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset) | |
900 | local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy | |
901 | local SegmentVec = NewPos - LastPos | |
902 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) | |
903 | local RayVec = LastPos - RayPos | |
904 | local LightningPart = BaseLightning:Clone() | |
905 | LightningPart.BrickColor = BrickColor.new(Color) | |
906 | LightningPart.Transparency = Transparency | |
907 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
908 | LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)) | |
909 | local CylinderMesh = IT("CylinderMesh", LightningPart) | |
910 | local OrigCF = LightningPart.CFrame | |
911 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
912 | LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0) | |
913 | LightningPart.Parent = LightningBolt | |
914 | LastPos = NewPos | |
915 | end | |
916 | end | |
917 | return { | |
918 | RayHit = RayHit, | |
919 | RayPos = RayPos, | |
920 | RayNormal = RayNormal, | |
921 | LightningModel = LightningModel | |
922 | } | |
923 | end | |
924 | ||
925 | function Blink() | |
926 | coroutine.resume(coroutine.create(function() | |
927 | if EYE ~= nil and PUPIL ~= nil then | |
928 | for i = 1, 5 do | |
929 | Swait() | |
930 | EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0, 0.2, 0) | |
931 | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale - VT(0, 0.2, 0) | |
932 | end | |
933 | for i = 1, 7 do | |
934 | Swait() | |
935 | EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0, 0.2, 0) | |
936 | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale + VT(0, 0.2, 0) | |
937 | end | |
938 | EYE.Mesh.Scale = VT(1, 1, 1) | |
939 | PUPIL.Mesh.Scale = VT(1, 1, 1) | |
940 | end | |
941 | end)) | |
942 | end | |
943 | ||
944 | local BODY = {} | |
945 | function Face() | |
946 | EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15, 0.3, 0.15), false) | |
947 | MakeForm(EYE, "Ball") | |
948 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15, 0.26, -0.55), CF(0, 0, 0)) | |
949 | PUPIL = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.05, 0.2, 0.05), false) | |
950 | PUPIL.Color = C3(0, 0, 0) | |
951 | MakeForm(PUPIL, "Ball") | |
952 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PUPIL, CF(0.15, 0.26, -0.6), CF(0, 0, 0)) | |
953 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(1.1,1,0.525),false) | |
954 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
955 | MakeForm(Part,"Wedge") | |
956 | ||
957 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
958 | PRT.Color = C3(0,0,0) | |
959 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
960 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
961 | ||
962 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
963 | PRT.Color = C3(0,0,0) | |
964 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
965 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
966 | ||
967 | RightArm.Transparency = 1 | |
968 | local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false) | |
969 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
970 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false) | |
971 | MakeForm(Sphere,"Ball") | |
972 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
973 | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false) | |
974 | MakeForm(LaserPart,"Ball") | |
975 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
976 | local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false) | |
977 | MakeForm(Bump,"Ball") | |
978 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
979 | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false) | |
980 | MakeForm(BottomLaser,"Cyl") | |
981 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
982 | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
983 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
984 | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
985 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0)) | |
986 | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
987 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0)) | |
988 | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
989 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0)) | |
990 | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
991 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0)) | |
992 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false) | |
993 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0)) | |
994 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false) | |
995 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0)) | |
996 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
997 | MakeForm(Part,"Cyl") | |
998 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
999 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
1000 | MakeForm(Part,"Cyl") | |
1001 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
1002 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false) | |
1003 | MakeForm(Sphere,"Ball") | |
1004 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1005 | ||
1006 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(1,1,1.2),false) | |
1007 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1008 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false) | |
1009 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
1010 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false) | |
1011 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
1012 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.8,0.8,1.225),false) | |
1013 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1014 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
1015 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1016 | ||
1017 | New = function(Object, Parent, Name, Data) | |
1018 | local Object = Instance.new(Object) | |
1019 | for Index, Value in pairs(Data or {}) do | |
1020 | Object[Index] = Value | |
1021 | end | |
1022 | Object.Parent = Parent | |
1023 | Object.Name = Name | |
1024 | return Object | |
1025 | end | |
1026 | ||
1027 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
1028 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1029 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
1030 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1031 | ||
1032 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),}) | |
1033 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1034 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1035 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1036 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1037 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1038 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1039 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1040 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1041 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1042 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1043 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1044 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1045 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1046 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),}) | |
1047 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1048 | ||
1049 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),}) | |
1050 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1051 | ||
1052 | local LASTPART = Head | |
1053 | for i = 1, 30 do | |
1054 | local MATH = 1 - i / 40 | |
1055 | if LASTPART == Head then | |
1056 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1057 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1058 | LASTPART = Horn | |
1059 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1060 | local Aura = Instance.new('ParticleEmitter') | |
1061 | Aura.Name = "Aura" | |
1062 | Aura.Texture = "rbxassetid://242997264" | |
1063 | Aura.Parent = Horn | |
1064 | Aura.LightEmission = 0.8 | |
1065 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1066 | Aura.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(0/1,0,0)) | |
1067 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1068 | Aura.LockedToPart = true | |
1069 | Aura.Lifetime = NumberRange.new(2) | |
1070 | Aura.Rate = 25 | |
1071 | Aura.Speed = NumberRange.new(0.1) | |
1072 | Aura.EmissionDirection = "Top" | |
1073 | else | |
1074 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1075 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(3), RAD(0)), CF(0, 0, 0)) | |
1076 | LASTPART = Horn | |
1077 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1078 | local Aura = Instance.new('ParticleEmitter') | |
1079 | Aura.Name = "Aura" | |
1080 | Aura.Texture = "rbxassetid://242997264" | |
1081 | Aura.Parent = Horn | |
1082 | Aura.LightEmission = 0.8 | |
1083 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1084 | Aura.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(0/1,0,0)) | |
1085 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1086 | Aura.LockedToPart = true | |
1087 | Aura.Lifetime = NumberRange.new(2) | |
1088 | Aura.Rate = 25 | |
1089 | Aura.Speed = NumberRange.new(0.1) | |
1090 | Aura.EmissionDirection = "Top" | |
1091 | end | |
1092 | end | |
1093 | local LASTPART = Head | |
1094 | for i = 1, 30 do | |
1095 | local MATH = 1 - i / 40 | |
1096 | if LASTPART == Head then | |
1097 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1098 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
1099 | LASTPART = Horn | |
1100 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1101 | local Aura = Instance.new('ParticleEmitter') | |
1102 | Aura.Name = "Aura" | |
1103 | Aura.Texture = "rbxassetid://242997264" | |
1104 | Aura.Parent = Horn | |
1105 | Aura.LightEmission = 0.8 | |
1106 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1107 | Aura.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(0/1,0,0)) | |
1108 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1109 | Aura.LockedToPart = true | |
1110 | Aura.Lifetime = NumberRange.new(2) | |
1111 | Aura.Rate = 25 | |
1112 | Aura.Speed = NumberRange.new(0.1) | |
1113 | Aura.EmissionDirection = "Top" | |
1114 | else | |
1115 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1116 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(-3), RAD(0)), CF(0, 0, 0)) | |
1117 | LASTPART = Horn | |
1118 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1119 | local Aura = Instance.new('ParticleEmitter') | |
1120 | Aura.Name = "Aura" | |
1121 | Aura.Texture = "rbxassetid://242997264" | |
1122 | Aura.Parent = Horn | |
1123 | Aura.LightEmission = 0.8 | |
1124 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1125 | Aura.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(0/1,0,0)) | |
1126 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1127 | Aura.LockedToPart = true | |
1128 | Aura.Lifetime = NumberRange.new(2) | |
1129 | Aura.Rate = 25 | |
1130 | Aura.Speed = NumberRange.new(0.1) | |
1131 | Aura.EmissionDirection = "Top" | |
1132 | end | |
1133 | end | |
1134 | BODY = {} | |
1135 | for _, c in pairs(Character:GetDescendants()) do | |
1136 | if c:IsA("BasePart") then | |
1137 | table.insert(BODY, { | |
1138 | c, | |
1139 | c.Parent, | |
1140 | c.Material, | |
1141 | c.Color | |
1142 | }) | |
1143 | elseif c:IsA("JointInstance") then | |
1144 | table.insert(BODY, { | |
1145 | c, | |
1146 | c.Parent, | |
1147 | nil, | |
1148 | nil | |
1149 | }) | |
1150 | end | |
1151 | end | |
1152 | end | |
1153 | ||
1154 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = | |
1155 | RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1156 | PRT.LockedToPart = true | |
1157 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = | |
1158 | LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1159 | PRT.LockedToPart = true | |
1160 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = | |
1161 | Torso, Emit = 100, Offset = 360, Enabled = true}) | |
1162 | PRT.LockedToPart = true | |
1163 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = | |
1164 | RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
1165 | PRT.LockedToPart = true | |
1166 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = | |
1167 | LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
1168 | PRT.LockedToPart = true | |
1169 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = | |
1170 | Head, Emit = 100, Offset = 360, Enabled = true}) | |
1171 | PRT.LockedToPart = true | |
1172 | ||
1173 | function RightWing() | |
1174 | for i = 1, 2 do | |
1175 | local PART | |
1176 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1177 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(-15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-30 * i)), CF(0, 0, 0)) | |
1178 | table.insert(RWINGS, WingWeld) | |
1179 | PART = Wing | |
1180 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "LargeWing", VT(1, 1.7, 1), false) | |
1181 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), CF(0, -0.8, 0)) | |
1182 | PART = Wing | |
1183 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1184 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1185 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.51), false) | |
1186 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1187 | PART = Wing | |
1188 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1189 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1190 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
1191 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1192 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.25, 0.2, 0.25), false) | |
1193 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1194 | PART = Wing | |
1195 | table.insert(RWINGS, WingWeld) | |
1196 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.4, 0.5, 0.4), false) | |
1197 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1198 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.45, 0.2, 0.45), false) | |
1199 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1200 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.15, 0.15), false) | |
1201 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1202 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1203 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0, 0)) | |
1204 | PART = Wing | |
1205 | table.insert(RWINGS, WingWeld) | |
1206 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1207 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1208 | PART = Wing | |
1209 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1210 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(15), RAD(15)), CF(0, 0, 0)) | |
1211 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.3, 0.3), false) | |
1212 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1213 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 0.2, 0.2), false) | |
1214 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0.15, 0)) | |
1215 | PART = Wing | |
1216 | table.insert(RWINGS, WingWeld) | |
1217 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1218 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1219 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1220 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1221 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1222 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1223 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1224 | table.insert(EYES, Wing1) | |
1225 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(-35)), CF(0, 0, 0)) | |
1226 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1227 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1228 | PART = Wing | |
1229 | table.insert(RWINGS, WingWeld) | |
1230 | end | |
1231 | BODY = {} | |
1232 | for _, c in pairs(Character:GetDescendants()) do | |
1233 | if c:IsA("BasePart") then | |
1234 | table.insert(BODY, { | |
1235 | c, | |
1236 | c.Parent, | |
1237 | c.Material, | |
1238 | c.Color | |
1239 | }) | |
1240 | elseif c:IsA("JointInstance") then | |
1241 | table.insert(BODY, { | |
1242 | c, | |
1243 | c.Parent, | |
1244 | nil, | |
1245 | nil | |
1246 | }) | |
1247 | end | |
1248 | end | |
1249 | end | |
1250 | function LeftWing() | |
1251 | for i = 1, 2 do | |
1252 | local PART | |
1253 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1254 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(-0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(30 * i)), CF(0, 0, 0)) | |
1255 | table.insert(LWINGS, WingWeld) | |
1256 | PART = Wing | |
1257 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "LargeWing", VT(1, 1.7, 1), false) | |
1258 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(-25), RAD(0)), CF(0, -0.8, 0)) | |
1259 | PART = Wing | |
1260 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1261 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1262 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.51), false) | |
1263 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1264 | PART = Wing | |
1265 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1266 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1267 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
1268 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1269 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.25, 0.2, 0.25), false) | |
1270 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1271 | PART = Wing | |
1272 | table.insert(LWINGS, WingWeld) | |
1273 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.4, 0.5, 0.4), false) | |
1274 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1275 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.45, 0.2, 0.45), false) | |
1276 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1277 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.15, 0.15), false) | |
1278 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1279 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1280 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0, 0)) | |
1281 | PART = Wing | |
1282 | table.insert(LWINGS, WingWeld) | |
1283 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1284 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1285 | PART = Wing | |
1286 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1287 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(-15), RAD(-15)), CF(0, 0, 0)) | |
1288 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.3, 0.3), false) | |
1289 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1290 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 0.2, 0.2), false) | |
1291 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0.15, 0)) | |
1292 | PART = Wing | |
1293 | table.insert(LWINGS, WingWeld) | |
1294 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1295 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1296 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1297 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1298 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1299 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1300 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1301 | table.insert(EYES, Wing1) | |
1302 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(35)), CF(0, 0, 0)) | |
1303 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1304 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1305 | PART = Wing | |
1306 | table.insert(LWINGS, WingWeld) | |
1307 | end | |
1308 | BODY = {} | |
1309 | for _, c in pairs(Character:GetDescendants()) do | |
1310 | if c:IsA("BasePart") then | |
1311 | table.insert(BODY, { | |
1312 | c, | |
1313 | c.Parent, | |
1314 | c.Material, | |
1315 | c.Color | |
1316 | }) | |
1317 | elseif c:IsA("JointInstance") then | |
1318 | table.insert(BODY, { | |
1319 | c, | |
1320 | c.Parent, | |
1321 | nil, | |
1322 | nil | |
1323 | }) | |
1324 | end | |
1325 | end | |
1326 | end | |
1327 | for _, c in pairs(Weapon:GetChildren()) do | |
1328 | if c.ClassName == "Part" then | |
1329 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1330 | end | |
1331 | end | |
1332 | for _, c in pairs(Character:GetDescendants()) do | |
1333 | if c:IsA("BasePart") then | |
1334 | table.insert(BODY, { | |
1335 | c, | |
1336 | c.Parent, | |
1337 | c.Material, | |
1338 | c.Color | |
1339 | }) | |
1340 | elseif c:IsA("JointInstance") then | |
1341 | table.insert(BODY, { | |
1342 | c, | |
1343 | c.Parent, | |
1344 | nil, | |
1345 | nil | |
1346 | }) | |
1347 | end | |
1348 | end | |
1349 | for e = 1, #BODY do | |
1350 | if BODY[e] ~= nil then | |
1351 | do | |
1352 | local STUFF = BODY[e] | |
1353 | local PART = STUFF[1] | |
1354 | local PARENT = STUFF[2] | |
1355 | local MATERIAL = STUFF[3] | |
1356 | local COLOR = STUFF[4] | |
1357 | PART.AncestryChanged:Connect(function() | |
1358 | if PART.ClassName == "Part" then | |
1359 | PART.Material = MATERIAL | |
1360 | PART.Color = COLOR | |
1361 | end | |
1362 | PART.Parent = PARENT | |
1363 | end) | |
1364 | end | |
1365 | end | |
1366 | end | |
1367 | function refit() | |
1368 | Weapon.Parent = Character | |
1369 | Character.Parent = workspace | |
1370 | for e = 1, #BODY do | |
1371 | if BODY[e] ~= nil then | |
1372 | local STUFF = BODY[e] | |
1373 | local PART = STUFF[1] | |
1374 | local PARENT = STUFF[2] | |
1375 | local MATERIAL = STUFF[3] | |
1376 | local COLOR = STUFF[4] | |
1377 | if PART.Parent ~= PARENT then | |
1378 | Humanoid:remove() | |
1379 | if PART.ClassName == "Part" then | |
1380 | PART.Material = MATERIAL | |
1381 | PART.Color = COLOR | |
1382 | end | |
1383 | PART.Parent = PARENT | |
1384 | Humanoid = IT("Humanoid", Character) | |
1385 | end | |
1386 | end | |
1387 | end | |
1388 | end | |
1389 | ||
1390 | --//=================================\\ | |
1391 | --|| text above head lel | |
1392 | --\\=================================// | |
1393 | ||
1394 | function chatfunc(text) | |
1395 | local chat = coroutine.wrap(function() | |
1396 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1397 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1398 | end | |
1399 | local Bill = Instance.new("BillboardGui",Character) | |
1400 | Bill.Size = UDim2.new(0,125,0,50) | |
1401 | Bill.StudsOffset = Vector3.new(0,1.5,0) | |
1402 | Bill.Adornee = Character.Head | |
1403 | Bill.Name = "TalkingBillBoard" | |
1404 | local Hehe = Instance.new("TextLabel",Bill) | |
1405 | Hehe.BackgroundTransparency = 1 | |
1406 | Hehe.BorderSizePixel = 0 | |
1407 | Hehe.Text = "" | |
1408 | Hehe.Font = "Antique" | |
1409 | Hehe.TextSize = 50 | |
1410 | Hehe.TextStrokeTransparency = 0 | |
1411 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1412 | coroutine.resume(coroutine.create(function() | |
1413 | while Hehe ~= nil do | |
1414 | Swait() | |
1415 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1416 | Hehe.Rotation = math.random(-5,5) | |
1417 | Hehe.TextColor3 = Color3.new(0,0,0) | |
1418 | Hehe.TextStrokeColor3 = BRICKC"Maroon".Color | |
1419 | end | |
1420 | end)) | |
1421 | for i = 1,string.len(text),1 do | |
1422 | Swait() | |
1423 | Hehe.Text = string.sub(text,1,i) | |
1424 | end | |
1425 | Swait(90)--Re[math.random(1, 93)] | |
1426 | for i = 0, 1, .025 do | |
1427 | Swait() | |
1428 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1429 | Hehe.TextStrokeTransparency = i | |
1430 | Hehe.TextTransparency = i | |
1431 | end | |
1432 | Bill:Destroy() | |
1433 | end) | |
1434 | chat() | |
1435 | end | |
1436 | ||
1437 | function onChatted(msg) | |
1438 | chatfunc(msg) | |
1439 | end | |
1440 | ||
1441 | Player.Chatted:connect(onChatted) | |
1442 | ||
1443 | local Rainbow = { | |
1444 | "Crimson", | |
1445 | "Bright red", | |
1446 | "Neon orange", | |
1447 | "Deep orange", | |
1448 | "Bright yellow", | |
1449 | "New Yeller", | |
1450 | "Br. yellowish green", | |
1451 | "Lime green", | |
1452 | "Sea green", | |
1453 | "Bright bluish green", | |
1454 | "Bright blue", | |
1455 | "Lavender", | |
1456 | "Royal purple", | |
1457 | "Eggplant", | |
1458 | "Hot pink" | |
1459 | } | |
1460 | ||
1461 | rainbowNumber = 1 | |
1462 | ||
1463 | spawn(function() | |
1464 | while wait() do | |
1465 | rainbowNumber = MRANDOM(1,16) | |
1466 | end | |
1467 | end) | |
1468 | ||
1469 | local SKILLTEXTCOLOR = C3(0, 0, 0) | |
1470 | local SKILLTEXTCOLOR2 = C3(1, 0, 0) | |
1471 | local SKILLTEXTCOLOR3 = BRICKC"Bright orange".Color | |
1472 | local SKILLTEXTCOLOR4 = BrickColor.new(Rainbow[rainbowNumber]).Color | |
1473 | local SKILLFONT = "Antique" | |
1474 | local SKILLTEXTSIZE = 7.9 | |
1475 | Weapon.Parent = Character | |
1476 | Humanoid.Died:connect(function() | |
1477 | refit() | |
1478 | chatfunc("Futile.") | |
1479 | end) | |
1480 | ||
1481 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame") | |
1482 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame") | |
1483 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame") | |
1484 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame") | |
1485 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame") | |
1486 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 6 Frame") | |
1487 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 7 Frame") | |
1488 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 8 Frame") | |
1489 | local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 9 Frame") | |
1490 | ||
1491 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Neck Snap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") | |
1492 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
1493 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Stone Ball", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
1494 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4") | |
1495 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[F] Eliminate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5") | |
1496 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Orb of Ultimate Destruction", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 6") | |
1497 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Demon Form", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 7") | |
1498 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Chaos Form", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 8") | |
1499 | local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[M] True Form", SKILLTEXTCOLOR4, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 9") | |
1500 | ||
1501 | function StatLabel(CFRAME, TEXT, COLOR) | |
1502 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1503 | STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5))) | |
1504 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1505 | game:GetService("Debris"):AddItem(STATPART, 5) | |
1506 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1507 | BILLBOARDGUI.Adornee = STATPART | |
1508 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0) | |
1509 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1510 | BILLBOARDGUI.AlwaysOnTop = false | |
1511 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1512 | TEXTLABEL.BackgroundTransparency = 1 | |
1513 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1514 | TEXTLABEL.Text = TEXT | |
1515 | TEXTLABEL.Font = SKILLFONT | |
1516 | TEXTLABEL.FontSize = "Size42" | |
1517 | TEXTLABEL.TextColor3 = COLOR | |
1518 | TEXTLABEL.TextStrokeTransparency = 0 | |
1519 | TEXTLABEL.TextScaled = true | |
1520 | TEXTLABEL.TextWrapped = true | |
1521 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1522 | for i = 1, 50 do | |
1523 | Swait() | |
1524 | STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2) | |
1525 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02 | |
1526 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
1527 | end | |
1528 | THEPART.Parent = nil | |
1529 | end), STATPART, TEXTLABEL) | |
1530 | end | |
1531 | ||
1532 | function Ragdoll(Character2, CharTorso, Headless, Velocity) | |
1533 | local svch = Character2 | |
1534 | Character2:BreakJoints() | |
1535 | local hum = Character2:findFirstChild("Humanoid") | |
1536 | local q = Character2:GetChildren() | |
1537 | local CLONE = IT("Model", Effects) | |
1538 | for i = 1, #q do | |
1539 | if q[i].ClassName == "Accessory" and Headless == true then | |
1540 | q[i]:remove() | |
1541 | elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then | |
1542 | q[i].Parent = CLONE | |
1543 | elseif q[i].ClassName ~= "Humanoid" then | |
1544 | q[i]:remove() | |
1545 | end | |
1546 | end | |
1547 | local chrclone = CLONE | |
1548 | local ch = chrclone:GetChildren() | |
1549 | local i | |
1550 | for i = 1, #ch do | |
1551 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
1552 | ch[i]:remove() | |
1553 | end | |
1554 | end | |
1555 | local function Scan(ch) | |
1556 | local e | |
1557 | for e = 1, #ch do | |
1558 | Scan(ch[e]:GetChildren()) | |
1559 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1560 | ch[e]:remove() | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | Character2:remove() | |
1565 | local NEWHUM = IT("Humanoid") | |
1566 | NEWHUM.Name = "Corpse" | |
1567 | NEWHUM.Health = 0 | |
1568 | NEWHUM.MaxHealth = 0 | |
1569 | NEWHUM.PlatformStand = true | |
1570 | NEWHUM.Parent = CLONE | |
1571 | NEWHUM.DisplayDistanceType = "None" | |
1572 | Scan(chrclone:GetChildren()) | |
1573 | local ch = Character2:GetChildren() | |
1574 | local i | |
1575 | for i = 1, #ch do | |
1576 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1577 | ch[i]:remove() | |
1578 | end | |
1579 | end | |
1580 | local ch = Character2:GetChildren() | |
1581 | local i | |
1582 | for i = 1, #ch do | |
1583 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1584 | ch[i]:remove() | |
1585 | end | |
1586 | end | |
1587 | Character2 = chrclone | |
1588 | local Torso2 = Character2.Torso | |
1589 | local movevector = Vector3.new() | |
1590 | if Torso2 then | |
1591 | movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector | |
1592 | local Head = Character2:FindFirstChild("Head") | |
1593 | if Head then | |
1594 | local Neck = Instance.new("Weld") | |
1595 | Neck.Name = "Neck" | |
1596 | Neck.Part0 = Torso2 | |
1597 | Neck.Part1 = Head | |
1598 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1599 | Neck.C1 = CFrame.new() | |
1600 | Neck.Parent = Torso2 | |
1601 | if Headless == true then | |
1602 | Head.Transparency = 1 | |
1603 | Head:ClearAllChildren() | |
1604 | end | |
1605 | end | |
1606 | local Limb = Character2:FindFirstChild("Right Arm") | |
1607 | if Limb then | |
1608 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1609 | local Joint = Instance.new("Glue") | |
1610 | Joint.Name = "RightShoulder" | |
1611 | Joint.Part0 = Torso2 | |
1612 | Joint.Part1 = Limb | |
1613 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1614 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1615 | Joint.Parent = Torso2 | |
1616 | local B = Instance.new("Part") | |
1617 | B.TopSurface = 0 | |
1618 | B.BottomSurface = 0 | |
1619 | B.formFactor = "Symmetric" | |
1620 | B.Size = Vector3.new(1, 1, 1) | |
1621 | B.Transparency = 1 | |
1622 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1623 | B.Parent = Character2 | |
1624 | local W = Instance.new("Weld") | |
1625 | W.Part0 = Limb | |
1626 | W.Part1 = B | |
1627 | W.C0 = CFrame.new(0, -0.5, 0) | |
1628 | W.Parent = Limb | |
1629 | end | |
1630 | local Limb = Character2:FindFirstChild("Left Arm") | |
1631 | if Limb then | |
1632 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1633 | local Joint = Instance.new("Glue") | |
1634 | Joint.Name = "LeftShoulder" | |
1635 | Joint.Part0 = Torso2 | |
1636 | Joint.Part1 = Limb | |
1637 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1638 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1639 | Joint.Parent = Torso2 | |
1640 | local B = Instance.new("Part") | |
1641 | B.TopSurface = 0 | |
1642 | B.BottomSurface = 0 | |
1643 | B.formFactor = "Symmetric" | |
1644 | B.Size = Vector3.new(1, 1, 1) | |
1645 | B.Transparency = 1 | |
1646 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1647 | B.Parent = Character2 | |
1648 | local W = Instance.new("Weld") | |
1649 | W.Part0 = Limb | |
1650 | W.Part1 = B | |
1651 | W.C0 = CFrame.new(0, -0.5, 0) | |
1652 | W.Parent = Limb | |
1653 | end | |
1654 | local Limb = Character2:FindFirstChild("Right Leg") | |
1655 | if Limb then | |
1656 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1657 | local Joint = Instance.new("Glue") | |
1658 | Joint.Name = "RightHip" | |
1659 | Joint.Part0 = Torso2 | |
1660 | Joint.Part1 = Limb | |
1661 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1662 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1663 | Joint.Parent = Torso2 | |
1664 | local B = Instance.new("Part") | |
1665 | B.TopSurface = 0 | |
1666 | B.BottomSurface = 0 | |
1667 | B.formFactor = "Symmetric" | |
1668 | B.Size = Vector3.new(1, 1, 1) | |
1669 | B.Transparency = 1 | |
1670 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1671 | B.Parent = Character2 | |
1672 | local W = Instance.new("Weld") | |
1673 | W.Part0 = Limb | |
1674 | W.Part1 = B | |
1675 | W.C0 = CFrame.new(0, -0.5, 0) | |
1676 | W.Parent = Limb | |
1677 | end | |
1678 | local Limb = Character2:FindFirstChild("Left Leg") | |
1679 | if Limb then | |
1680 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1681 | local Joint = Instance.new("Glue") | |
1682 | Joint.Name = "LeftHip" | |
1683 | Joint.Part0 = Torso2 | |
1684 | Joint.Part1 = Limb | |
1685 | Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1686 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1687 | Joint.Parent = Torso2 | |
1688 | local B = Instance.new("Part") | |
1689 | B.TopSurface = 0 | |
1690 | B.BottomSurface = 0 | |
1691 | B.formFactor = "Symmetric" | |
1692 | B.Size = Vector3.new(1, 1, 1) | |
1693 | B.Transparency = 1 | |
1694 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1695 | B.Parent = Character2 | |
1696 | local W = Instance.new("Weld") | |
1697 | W.Part0 = Limb | |
1698 | W.Part1 = B | |
1699 | W.C0 = CFrame.new(0, -0.5, 0) | |
1700 | W.Parent = Limb | |
1701 | end | |
1702 | local Bar = Instance.new("Part") | |
1703 | Bar.TopSurface = 0 | |
1704 | Bar.BottomSurface = 0 | |
1705 | Bar.formFactor = "Symmetric" | |
1706 | Bar.Size = Vector3.new(1, 1, 1) | |
1707 | Bar.Transparency = 1 | |
1708 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1709 | Bar.Parent = Character2 | |
1710 | local Weld = Instance.new("Weld") | |
1711 | Weld.Part0 = Torso2 | |
1712 | Weld.Part1 = Bar | |
1713 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1714 | Weld.Parent = Torso2 | |
1715 | end | |
1716 | Character2.Parent = Weapon | |
1717 | if movevector ~= Vector3.new() then | |
1718 | for i = 1, 10 do | |
1719 | Torso2.Velocity = movevector * Velocity | |
1720 | end | |
1721 | end | |
1722 | Character2.Name = "Corpse" | |
1723 | return Character2, Torso2 | |
1724 | end | |
1725 | function PuddleOfBlood(Position, MaxDrop, Model, MaxSize) | |
1726 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model) | |
1727 | if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
1728 | if HITFLOOR.Name == "BloodPuddle" then | |
1729 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
1730 | if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then | |
1731 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1) | |
1732 | end | |
1733 | elseif HITFLOOR.Anchored == true then | |
1734 | do | |
1735 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2)) | |
1736 | BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1737 | MakeForm(BLOOD, "Cyl") | |
1738 | coroutine.resume(coroutine.create(function() | |
1739 | Swait(75) | |
1740 | while true do | |
1741 | Swait() | |
1742 | BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02) | |
1743 | if BLOOD.Size.Z < 0.051 then | |
1744 | BLOOD:remove() | |
1745 | break | |
1746 | end | |
1747 | end | |
1748 | end)) | |
1749 | end | |
1750 | end | |
1751 | end | |
1752 | end | |
1753 | function SprayBlood(POSITION, DIRECTION, BloodSize) | |
1754 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false) | |
1755 | BLOOD.CFrame = CF(POSITION) | |
1756 | MakeForm(BLOOD, "Ball") | |
1757 | local bv = Instance.new("BodyVelocity", BLOOD) | |
1758 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1759 | bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25 | |
1760 | bv.Name = "MOVE" | |
1761 | Debris:AddItem(bv, 0.05) | |
1762 | coroutine.resume(coroutine.create(function() | |
1763 | local HASTOUCHEDGROUND = false | |
1764 | local HIT = BLOOD.Touched:Connect(function(hit) | |
1765 | if hit.Anchored == true then | |
1766 | HASTOUCHEDGROUND = true | |
1767 | PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize) | |
1768 | end | |
1769 | end) | |
1770 | wait(5) | |
1771 | if HASTOUCHEDGROUND == false then | |
1772 | BLOOD:remove() | |
1773 | end | |
1774 | end)) | |
1775 | end | |
1776 | function ApplyDamage(Humanoid, Damage, TorsoPart) | |
1777 | local defence = Instance.new("BoolValue", Humanoid.Parent) | |
1778 | defence.Name = "HitBy" .. Player.Name | |
1779 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1780 | Damage = Damage * DAMAGEMULTIPLIER | |
1781 | if Humanoid.Health ~= 0 then | |
1782 | local CritChance = MRANDOM(1, 100) | |
1783 | if Damage > Humanoid.Health then | |
1784 | Damage = math.ceil(Humanoid.Health) | |
1785 | if Damage == 0 then | |
1786 | Damage = 0.1 | |
1787 | end | |
1788 | end | |
1789 | Humanoid.Health = Humanoid.Health - Damage | |
1790 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1791 | end | |
1792 | end | |
1793 | ||
1794 | function Petrify(Foe) | |
1795 | local STONEMODEL = IT("Model", Effects) | |
1796 | local CHILDREN = Foe:GetDescendants() | |
1797 | for index, CHILD in pairs(CHILDREN) do | |
1798 | if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then | |
1799 | CHILD.Parent = STONEMODEL | |
1800 | CHILD.Material = "Slate" | |
1801 | CHILD.Color = C3(1, 0, 0) | |
1802 | if CHILD:FindFirstChildOfClass("SpecialMesh") then | |
1803 | local mesh = CHILD:FindFirstChildOfClass("SpecialMesh") | |
1804 | mesh.TextureId = "" | |
1805 | end | |
1806 | if CHILD:FindFirstChildOfClass("Decal") then | |
1807 | local mesh = CHILD:FindFirstChildOfClass("Decal") | |
1808 | mesh:remove() | |
1809 | end | |
1810 | if CHILD.ClassName == "MeshPart" then | |
1811 | CHILD.TextureID = "" | |
1812 | end | |
1813 | if CHILD.ClassName == "UnionOperation" then | |
1814 | CHILD.UsePartColor = true | |
1815 | end | |
1816 | CHILD.CanCollide = true | |
1817 | end | |
1818 | end | |
1819 | Debris:AddItem(STONEMODEL, 5) | |
1820 | end | |
1821 | ||
1822 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) | |
1823 | local CHILDREN = workspace:GetDescendants() | |
1824 | for index, CHILD in pairs(CHILDREN) do | |
1825 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1826 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1827 | if HUM then | |
1828 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1829 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1830 | if INSTAKILL == true then | |
1831 | Petrify(CHILD) | |
1832 | else | |
1833 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
1834 | ApplyDamage(HUM, DMG, TORSO) | |
1835 | end | |
1836 | if FLING > 0 then | |
1837 | for _, c in pairs(CHILD:GetChildren()) do | |
1838 | if c:IsA("BasePart") then | |
1839 | local bv = Instance.new("BodyVelocity") | |
1840 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1841 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
1842 | bv.Parent = c | |
1843 | Debris:AddItem(bv, 0.05) | |
1844 | end | |
1845 | end | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | end | |
1850 | end | |
1851 | end | |
1852 | ||
1853 | function Intro() | |
1854 | coroutine.resume(coroutine.create(function() | |
1855 | INTROING = true | |
1856 | Rooted = true | |
1857 | FINISHEDINTRO = true | |
1858 | Head.Transparency = 1 | |
1859 | Torso.Transparency = 1 | |
1860 | LeftArm.Transparency = 1 | |
1861 | RightArm.Transparency = 1 | |
1862 | LeftLeg.Transparency = 1 | |
1863 | RightLeg.Transparency = 1 | |
1864 | repeat | |
1865 | Swait() | |
1866 | until sick.TimePosition > 1 | |
1867 | for i = 1, 5 do | |
1868 | WACKYEFFECT({ | |
1869 | EffectType = "Sphere", | |
1870 | Size = VT(3, 3, 3), | |
1871 | Size2 = VT(0, 5, 0), | |
1872 | Transparency = 0.5, | |
1873 | Transparency2 = 1, | |
1874 | CFrame = Torso.CFrame, | |
1875 | MoveToPos = Torso.CFrame * CF(15, -5 + i * 3, 1).p, | |
1876 | RotationX = MRANDOM(-5, 5), | |
1877 | RotationY = MRANDOM(-5, 5), | |
1878 | RotationZ = MRANDOM(-5, 5), | |
1879 | Material = "Neon", | |
1880 | Color = C3(1, 0, 0), | |
1881 | SoundID = nil, | |
1882 | SoundPitch = nil, | |
1883 | SoundVolume = nil | |
1884 | }) | |
1885 | end | |
1886 | RightWing() | |
1887 | repeat | |
1888 | Swait() | |
1889 | until sick.TimePosition > 2.2 | |
1890 | for i = 1, 5 do | |
1891 | WACKYEFFECT({ | |
1892 | EffectType = "Sphere", | |
1893 | Size = VT(3, 3, 3), | |
1894 | Size2 = VT(0, 5, 0), | |
1895 | Transparency = 0.5, | |
1896 | Transparency2 = 1, | |
1897 | CFrame = Torso.CFrame, | |
1898 | MoveToPos = Torso.CFrame * CF(-15, -5 + i * 3, 1).p, | |
1899 | RotationX = MRANDOM(-5, 5), | |
1900 | RotationY = MRANDOM(-5, 5), | |
1901 | RotationZ = MRANDOM(-5, 5), | |
1902 | Material = "Neon", | |
1903 | Color = C3(1, 0, 0), | |
1904 | SoundID = nil, | |
1905 | SoundPitch = nil, | |
1906 | SoundVolume = nil | |
1907 | }) | |
1908 | end | |
1909 | LeftWing() | |
1910 | repeat | |
1911 | Swait() | |
1912 | until sick.TimePosition > 3.5 | |
1913 | for i = 1, 6 do | |
1914 | WACKYEFFECT({ | |
1915 | EffectType = "Sphere", | |
1916 | Size = VT(1.5, 1.5, 1.5), | |
1917 | Size2 = VT(4, 4, 4) * i, | |
1918 | Transparency = 0, | |
1919 | Transparency2 = 1, | |
1920 | CFrame = Head.CFrame, | |
1921 | MoveToPos = nil, | |
1922 | RotationX = 0, | |
1923 | RotationY = 0, | |
1924 | RotationZ = 0, | |
1925 | Material = "Neon", | |
1926 | Color = C3(1, 0, 0), | |
1927 | SoundID = nil, | |
1928 | SoundPitch = nil, | |
1929 | SoundVolume = nil | |
1930 | }) | |
1931 | end | |
1932 | Head.Transparency = 0 | |
1933 | Face() | |
1934 | wait(0.5) | |
1935 | for i = 1, 100 do | |
1936 | Swait() | |
1937 | Torso.Transparency = 1 - i / 100 | |
1938 | LeftArm.Transparency = 1 - i / 100 | |
1939 | RightArm.Transparency = 1 - i / 100 | |
1940 | LeftLeg.Transparency = 1 - i / 100 | |
1941 | RightLeg.Transparency = 1 - i / 100 | |
1942 | Humanoid.DisplayDistanceType = "None" | |
1943 | local naeeym2 = IT("BillboardGui",Character) | |
1944 | naeeym2.AlwaysOnTop = true | |
1945 | naeeym2.Size = UDim2.new(7,50,4,25) | |
1946 | naeeym2.StudsOffset = Vector3.new(0,4,0) | |
1947 | naeeym2.MaxDistance = 200 | |
1948 | naeeym2.Adornee = Character.Head | |
1949 | naeeym2.Name = "Name" | |
1950 | local tecks2 = IT("TextLabel",naeeym2) | |
1951 | tecks2.BackgroundTransparency = 1 | |
1952 | tecks2.TextScaled = true | |
1953 | tecks2.BorderSizePixel = 0 | |
1954 | tecks2.Text = Character.Name | |
1955 | tecks2.Font = "Antique" | |
1956 | tecks2.TextSize = 50 | |
1957 | tecks2.TextStrokeTransparency = 0 | |
1958 | tecks2.TextColor3 = BRICKC"Maroon".Color | |
1959 | tecks2.TextStrokeColor3 = C3(0,0,0) | |
1960 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1961 | tecks2.Parent = naeeym2 | |
1962 | ||
1963 | Humanoid.DisplayDistanceType = "None" | |
1964 | local naeeym3 = IT("BillboardGui",Character) | |
1965 | naeeym3.AlwaysOnTop = true | |
1966 | naeeym3.Size = UDim2.new(5,30,2,15) | |
1967 | naeeym3.StudsOffset = Vector3.new(0,2.5,0) | |
1968 | naeeym3.MaxDistance = 200 | |
1969 | naeeym3.Adornee = Character.Head | |
1970 | naeeym3.Name = "Name" | |
1971 | local tecks3 = IT("TextLabel",naeeym3) | |
1972 | tecks3.BackgroundTransparency = 1 | |
1973 | tecks3.TextScaled = true | |
1974 | tecks3.BorderSizePixel = 0 | |
1975 | tecks3.Text = "God of Destruction" | |
1976 | tecks3.Font = "Fantasy" | |
1977 | tecks3.TextSize = 50 | |
1978 | tecks3.TextStrokeTransparency = 1 | |
1979 | tecks3.TextColor3 = Color3.new(0,0,0) | |
1980 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
1981 | tecks3.Parent = naeeym3 | |
1982 | end | |
1983 | FINISHEDINTRO = true | |
1984 | Rooted = false | |
1985 | end)) | |
1986 | end | |
1987 | ||
1988 | function Warp() | |
1989 | ATTACK = true | |
1990 | Rooted = false | |
1991 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1992 | Swait() | |
1993 | 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) | |
1994 | 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) | |
1995 | end | |
1996 | for e = 1, #BODY do | |
1997 | if BODY[e] ~= nil then | |
1998 | local STUFF = BODY[e] | |
1999 | local PART = STUFF[1] | |
2000 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2001 | local PRT = PART:Clone() | |
2002 | PRT.Anchored = true | |
2003 | PRT.CanCollide = false | |
2004 | PRT.Material = "Neon" | |
2005 | PRT.Color = C3(1,0,0) | |
2006 | PRT.Name = "WarpEffect" | |
2007 | PRT.Parent = Effects | |
2008 | PRT.CFrame = PART.CFrame | |
2009 | PRT:BreakJoints() | |
2010 | if PRT:FindFirstChildOfClass("Sound") then | |
2011 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2012 | end | |
2013 | if PRT:FindFirstChildOfClass("Decal") then | |
2014 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2015 | end | |
2016 | coroutine.resume(coroutine.create(function() | |
2017 | for i = 1, 100 do | |
2018 | Swait() | |
2019 | PRT.Transparency = PRT.Transparency + 1/100 | |
2020 | end | |
2021 | PRT:remove() | |
2022 | end)) | |
2023 | end | |
2024 | end | |
2025 | end | |
2026 | CreateSound(217767125, Torso, 10, 1) | |
2027 | local POS = RootPart.Orientation | |
2028 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2029 | RootPart.Orientation = POS | |
2030 | RootJoint.Parent = RootPart | |
2031 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2032 | Swait() | |
2033 | 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) | |
2034 | 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) | |
2035 | end | |
2036 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2037 | Swait() | |
2038 | 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) | |
2039 | end | |
2040 | ATTACK = false | |
2041 | Rooted = false | |
2042 | end | |
2043 | ||
2044 | function Neck_Snap() | |
2045 | ATTACK = true | |
2046 | Rooted = false | |
2047 | local TARGET, HUM, WLD | |
2048 | local HIT = RightArm.Touched:Connect(function(hit) | |
2049 | if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
2050 | local H = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2051 | if H.Health > 0 then | |
2052 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
2053 | if TORSO then | |
2054 | HUM = H | |
2055 | TARGET = TORSO | |
2056 | H.PlatformStand = true | |
2057 | CreateSound("260411131", TORSO, 10, 1) | |
2058 | WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2059 | end | |
2060 | end | |
2061 | end | |
2062 | end) | |
2063 | for i = 0, 1, 0.1 / Animation_Speed do | |
2064 | Swait() | |
2065 | if TARGET ~= nil then | |
2066 | break | |
2067 | end | |
2068 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2072 | if ANIM == "Idle" then | |
2073 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2074 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2075 | elseif ANIM == "Walk" then | |
2076 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2077 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2078 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2079 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2081 | end | |
2082 | end | |
2083 | HIT:disconnect() | |
2084 | if TARGET ~= nil then | |
2085 | if TARGET.Name == "Torso" then | |
2086 | for i = 0, 2, 0.1 / Animation_Speed do | |
2087 | Swait() | |
2088 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2089 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2090 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2091 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2092 | if ANIM == "Idle" then | |
2093 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2094 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2095 | elseif ANIM == "Walk" then | |
2096 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2097 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2098 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2099 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2100 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2101 | end | |
2102 | end | |
2103 | WLD:remove() | |
2104 | local HEAD = TARGET.Parent:FindFirstChild("Head") | |
2105 | if HEAD then | |
2106 | UNANCHOR = false | |
2107 | RootPart.Anchored = true | |
2108 | local HD = HEAD:Clone() | |
2109 | HD.Name = "FakeHead" | |
2110 | for i = 1, 7 do | |
2111 | SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15) | |
2112 | end | |
2113 | local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0) | |
2114 | local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2115 | HD.Parent = RAGDOLL | |
2116 | CreateSound("264486467", RAGTORSO, 10, 1) | |
2117 | local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2118 | for i = 0, 2, 0.1 / Animation_Speed do | |
2119 | Swait() | |
2120 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2121 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2122 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2123 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2124 | if ANIM == "Idle" then | |
2125 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2126 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2127 | elseif ANIM == "Walk" then | |
2128 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2129 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2130 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2131 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2132 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2133 | end | |
2134 | end | |
2135 | HEADWELD:remove() | |
2136 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2137 | Swait() | |
2138 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2139 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2140 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2141 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2142 | if ANIM == "Idle" then | |
2143 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2144 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2145 | elseif ANIM == "Walk" then | |
2146 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2147 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2148 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2149 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2150 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2151 | end | |
2152 | end | |
2153 | CreateSound("907333406", Torso, 10, 1) | |
2154 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
2155 | Swait() | |
2156 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2157 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2158 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2159 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2160 | if ANIM == "Idle" then | |
2161 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2162 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2163 | elseif ANIM == "Walk" then | |
2164 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2165 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2166 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2167 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2168 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2169 | end | |
2170 | end | |
2171 | RAGWELD:remove() | |
2172 | local bv = Instance.new("BodyVelocity") | |
2173 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2174 | bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75 | |
2175 | bv.Parent = RAGTORSO | |
2176 | Debris:AddItem(bv, 0.05) | |
2177 | Debris:AddItem(RAGDOLL, 5) | |
2178 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
2179 | Swait() | |
2180 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2181 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2182 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2183 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2184 | if ANIM == "Idle" then | |
2185 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2186 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2187 | elseif ANIM == "Walk" then | |
2188 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2189 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2190 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2191 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2192 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2193 | end | |
2194 | end | |
2195 | UNANCHOR = true | |
2196 | RootPart.Anchored = false | |
2197 | end | |
2198 | else | |
2199 | UNANCHOR = false | |
2200 | RootPart.Anchored = true | |
2201 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2202 | Swait() | |
2203 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2204 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2205 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2206 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2207 | if ANIM == "Idle" then | |
2208 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2209 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2210 | elseif ANIM == "Walk" then | |
2211 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2212 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2213 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2214 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2215 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2216 | end | |
2217 | end | |
2218 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
2219 | Swait() | |
2220 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2224 | if ANIM == "Idle" then | |
2225 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2226 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2227 | elseif ANIM == "Walk" then | |
2228 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2229 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2230 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2231 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2232 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2233 | end | |
2234 | end | |
2235 | WLD:remove() | |
2236 | TARGET.Parent:BreakJoints() | |
2237 | for _, c in pairs(TARGET.Parent:GetChildren()) do | |
2238 | if c:IsA("BasePart") then | |
2239 | local bv = Instance.new("BodyVelocity") | |
2240 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2241 | bv.velocity = CF(Torso.Position, c.Position).lookVector * 75 | |
2242 | bv.Parent = c | |
2243 | Debris:AddItem(bv, 0.05) | |
2244 | end | |
2245 | end | |
2246 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
2247 | Swait() | |
2248 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2249 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2250 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2251 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2252 | if ANIM == "Idle" then | |
2253 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2254 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2255 | elseif ANIM == "Walk" then | |
2256 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2257 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2258 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2259 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2260 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2261 | end | |
2262 | end | |
2263 | UNANCHOR = true | |
2264 | RootPart.Anchored = false | |
2265 | end | |
2266 | end | |
2267 | ATTACK = false | |
2268 | Rooted = false | |
2269 | end | |
2270 | ||
2271 | function MagicSphere2(size,waitt,cframe,color) | |
2272 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
2273 | local mesh = IT("SpecialMesh",wave) | |
2274 | mesh.MeshType = "Sphere" | |
2275 | mesh.Scale = VT(size,size,size) | |
2276 | mesh.Offset = VT(0,0,0) | |
2277 | wave.CFrame = cframe | |
2278 | coroutine.resume(coroutine.create(function(PART) | |
2279 | for i = 1, waitt do | |
2280 | Swait() | |
2281 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
2282 | wave.Transparency = wave.Transparency - (1/waitt) | |
2283 | end | |
2284 | wave:remove() | |
2285 | end)) | |
2286 | end | |
2287 | ||
2288 | local DECAL = IT("Decal") | |
2289 | function MakeRing() | |
2290 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Br. reddish orange"), "MagicRing", VT(0, 0, 0), true) | |
2291 | local MSH = IT("BlockMesh", RING) | |
2292 | local TOP = DECAL:Clone() | |
2293 | local BOTTOM = DECAL:Clone() | |
2294 | TOP.Parent = RING | |
2295 | BOTTOM.Parent = RING | |
2296 | TOP.Face = "Top" | |
2297 | BOTTOM.Face = "Bottom" | |
2298 | TOP.Texture = "http://www.roblox.com/asset/?id=343689767" | |
2299 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=343689767" | |
2300 | local function REMOVE() | |
2301 | coroutine.resume(coroutine.create(function() | |
2302 | local SIZE = MSH.Scale.X | |
2303 | for i = 1, 35 do | |
2304 | Swait() | |
2305 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 85 | |
2306 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
2307 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
2308 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
2309 | end | |
2310 | RING:remove() | |
2311 | end)) | |
2312 | end | |
2313 | return RING, MSH, REMOVE | |
2314 | end | |
2315 | ||
2316 | function ChaosBeam() | |
2317 | ATTACK = true | |
2318 | Rooted = true | |
2319 | local GYRO = IT("BodyGyro", RootPart) | |
2320 | GYRO.D = 20 | |
2321 | GYRO.P = 4000 | |
2322 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2323 | local RING, MESH, DELET = MakeRing() | |
2324 | local POS = RootPart.Position + VT(0, 25, 0) | |
2325 | RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2326 | CreateSound(459523787, RING, 8, 1, false) | |
2327 | local BLASTS = {468991944, 468991990} | |
2328 | coroutine.resume(coroutine.create(function() | |
2329 | local E = 0 | |
2330 | repeat | |
2331 | E = E + 5 | |
2332 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2333 | Swait() | |
2334 | RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(E), RAD(0)) | |
2335 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
2336 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 1 / Animation_Speed) | |
2337 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2338 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2339 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -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) | |
2340 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -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) | |
2341 | until ATTACK == false | |
2342 | GYRO:remove() | |
2343 | DELET() | |
2344 | end)) | |
2345 | for i = 1, 50 do | |
2346 | Swait() | |
2347 | MESH.Scale = MESH.Scale + VT(33, 0, 33) | |
2348 | end | |
2349 | for i = 1, 25 do | |
2350 | Swait() | |
2351 | WACKYEFFECT({ | |
2352 | Time = 15, | |
2353 | EffectType = "Sphere", | |
2354 | Size = VT(16, 16, 16), | |
2355 | Size2 = VT(0, 0, 0), | |
2356 | Transparency = 1, | |
2357 | Transparency2 = 0, | |
2358 | CFrame = CF(RING.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
2359 | MoveToPos = RING.Position, | |
2360 | RotationX = 0, | |
2361 | RotationY = 0, | |
2362 | RotationZ = 0, | |
2363 | Material = "Neon", | |
2364 | Color = BRICKC"Br. reddish orange".Color, | |
2365 | SoundID = nil, | |
2366 | SoundPitch = nil, | |
2367 | SoundVolume = nil | |
2368 | }) | |
2369 | end | |
2370 | local LOOP = 0 | |
2371 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Br. reddish orange"), "Beam", VT(0, 0, 0), true) | |
2372 | MakeForm(BEAM, "Cyl") | |
2373 | CreateSound(BLASTS[MRANDOM(1, #BLASTS)], RING, 5, MRANDOM(9, 11) / 10, false) | |
2374 | repeat | |
2375 | local DISTANCE = (RING.Position - Mouse.Hit.p).Magnitude | |
2376 | if DISTANCE < 2000 then | |
2377 | BEAM.Size = VT(40 + 8 * COS(SINE / 4), DISTANCE, 40 + 8 * COS(SINE / 4)) | |
2378 | BEAM.CFrame = CF(RING.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2379 | ApplyAoE(Mouse.Hit.Position, 35, 0, 0, 0, true) | |
2380 | WACKYEFFECT({ | |
2381 | Time = 35, | |
2382 | EffectType = "Sphere", | |
2383 | Size = VT(40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4)) * 2, | |
2384 | Size2 = VT(20, 300, 20), | |
2385 | Transparency = 0, | |
2386 | Transparency2 = 1, | |
2387 | CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2388 | MoveToPos = nil, | |
2389 | RotationX = 0, | |
2390 | RotationY = 0, | |
2391 | RotationZ = 0, | |
2392 | Material = "Neon", | |
2393 | Color = BRICKC"Br. reddish orange".Color, | |
2394 | SoundID = nil, | |
2395 | SoundPitch = MRANDOM(9, 12) / 10, | |
2396 | SoundVolume = 10 | |
2397 | }) | |
2398 | Swait() | |
2399 | LOOP = LOOP + 1 | |
2400 | end | |
2401 | until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000 | |
2402 | coroutine.resume(coroutine.create(function() | |
2403 | for i = 1, 15 do | |
2404 | Swait() | |
2405 | BEAM.Size = BEAM.Size - VT(0.8, 0, 0.8) | |
2406 | BEAM.Transparency = BEAM.Transparency + 0.06666666666666667 | |
2407 | end | |
2408 | - | sick.SoundId = "rbxassetid://425288156" |
2408 | + | BEAM:remove() |
2409 | - | sick.Name = "Fallen God" |
2409 | + | |
2410 | ATTACK = false | |
2411 | Rooted = false | |
2412 | end | |
2413 | ||
2414 | function Taunt() | |
2415 | ATTACK = true | |
2416 | Rooted = true | |
2417 | CreateSound("865772398", Character, 10, 1) | |
2418 | chatfunc("Foolish Decision..") | |
2419 | for i=0, 1, 0.1 / Animation_Speed do | |
2420 | Swait() | |
2421 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2422 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2423 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2424 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2425 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2426 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2427 | end | |
2428 | for i=0, 2, 0.1 / Animation_Speed do | |
2429 | Swait() | |
2430 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2431 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2432 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2433 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2434 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2435 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2436 | end | |
2437 | ATTACK = false | |
2438 | Rooted = false | |
2439 | end | |
2440 | ||
2441 | function Taunt2() | |
2442 | CreateSound(907331307, Character, 50, 0.9, false) | |
2443 | chatfunc("You have failed.") | |
2444 | for i=0, 1, 0.1 / Animation_Speed do | |
2445 | Swait() | |
2446 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2447 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2448 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2449 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2450 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2451 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2452 | end | |
2453 | for i=0, 2, 0.1 / Animation_Speed do | |
2454 | Swait() | |
2455 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2456 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2457 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2458 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2459 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2460 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2461 | end | |
2462 | end | |
2463 | ||
2464 | function Imperfect_Command() | |
2465 | ATTACK = true | |
2466 | Rooted = true | |
2467 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2468 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2469 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2470 | if TORSO then | |
2471 | local GYRO = IT("BodyGyro", RootPart) | |
2472 | GYRO.D = 750 | |
2473 | GYRO.P = 2000 | |
2474 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2475 | CreateSound("907330103", Torso, 10, 1) | |
2476 | for i = 0, 1.6, 0.1 / Animation_Speed do | |
2477 | Swait() | |
2478 | WACKYEFFECT({ | |
2479 | Time = 5, | |
2480 | EffectType = "Round Slash", | |
2481 | Size = VT(0, 0, 0), | |
2482 | Size2 = VT(0.01, 0, 0.01), | |
2483 | Transparency = 0.5, | |
2484 | Transparency2 = 1, | |
2485 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2486 | MoveToPos = nil, | |
2487 | RotationX = MRANDOM(-50, 50) / 10, | |
2488 | RotationY = MRANDOM(-50, 50) / 10, | |
2489 | RotationZ = MRANDOM(-50, 50) / 10, | |
2490 | Material = "Neon", | |
2491 | Color = C3(1, 0, 0), | |
2492 | SoundID = nil, | |
2493 | SoundPitch = nil, | |
2494 | SoundVolume = nil | |
2495 | }) | |
2496 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2497 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed) | |
2498 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed) | |
2499 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2500 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2501 | if ANIM == "Idle" then | |
2502 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2503 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2504 | elseif ANIM == "Walk" then | |
2505 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2506 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2507 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2508 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2509 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2510 | end | |
2511 | end | |
2512 | GYRO:remove() | |
2513 | for i = 1, 15 do | |
2514 | WACKYEFFECT({ | |
2515 | Time = MRANDOM(15, 85), | |
2516 | EffectType = "Round Slash", | |
2517 | Size = VT(0, 0, 0), | |
2518 | Size2 = VT(0.3, 0, 0.3), | |
2519 | Transparency = 0.5, | |
2520 | Transparency2 = 1, | |
2521 | CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2522 | MoveToPos = nil, | |
2523 | RotationX = MRANDOM(-50, 50) / 10, | |
2524 | RotationY = MRANDOM(-50, 50) / 10, | |
2525 | RotationZ = MRANDOM(-50, 50) / 10, | |
2526 | Material = "Neon", | |
2527 | Color = C3(1, 0, 0), | |
2528 | SoundID = nil, | |
2529 | SoundPitch = nil, | |
2530 | SoundVolume = nil | |
2531 | }) | |
2532 | end | |
2533 | local bv = Instance.new("BodyVelocity") | |
2534 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2535 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
2536 | bv.Parent = TORSO | |
2537 | Debris:AddItem(bv, 0.05) | |
2538 | CreateSound("1222405264", TORSO, 10, 1) | |
2539 | Petrify(HUM.Parent) | |
2540 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2541 | Swait() | |
2542 | WACKYEFFECT({ | |
2543 | Time = 5, | |
2544 | EffectType = "Round Slash", | |
2545 | Size = VT(0, 0, 0), | |
2546 | Size2 = VT(0.01, 0, 0.01), | |
2547 | Transparency = 0.5, | |
2548 | Transparency2 = 1, | |
2549 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2550 | MoveToPos = nil, | |
2551 | RotationX = MRANDOM(-50, 50) / 10, | |
2552 | RotationY = MRANDOM(-50, 50) / 10, | |
2553 | RotationZ = MRANDOM(-50, 50) / 10, | |
2554 | Material = "Neon", | |
2555 | Color = C3(1, 0, 0), | |
2556 | SoundID = nil, | |
2557 | SoundPitch = nil, | |
2558 | SoundVolume = nil | |
2559 | }) | |
2560 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2561 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
2562 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed) | |
2563 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2564 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2565 | if ANIM == "Idle" then | |
2566 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2567 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2568 | elseif ANIM == "Walk" then | |
2569 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2570 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2571 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2572 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2573 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2574 | end | |
2575 | end | |
2576 | end | |
2577 | end | |
2578 | ATTACK = false | |
2579 | Rooted = false | |
2580 | end | |
2581 | ||
2582 | function Perfect_Command() | |
2583 | ATTACK = true | |
2584 | Rooted = true | |
2585 | chatfunc("Weaklings...") | |
2586 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100)) | |
2587 | CreateSound("1368605755", Effects, 10, 1) | |
2588 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500)) | |
2589 | ApplyAoE(Torso.Position, 9999, 0, 0, 0, true) | |
2590 | ATTACK = false | |
2591 | Rooted = false | |
2592 | end | |
2593 | ||
2594 | function killnearest2(position,range,maxstrength) | |
2595 | for i,v in ipairs(workspace:GetChildren()) do | |
2596 | if v.ClassName == "Model" then | |
2597 | local body = v:GetChildren() | |
2598 | for part = 1, #body do | |
2599 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2600 | if(body[part].Position - position).Magnitude < range then | |
2601 | if v.ClassName == "Model" then | |
2602 | v:BreakJoints() | |
2603 | end | |
2604 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
2605 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
2606 | end | |
2607 | end | |
2608 | end | |
2609 | end | |
2610 | end | |
2611 | end | |
2612 | ||
2613 | function killnearest(position,range,maxstrength,direction) | |
2614 | for i,v in ipairs(workspace:GetChildren()) do | |
2615 | local body = v:GetChildren() | |
2616 | for part = 1, #body do | |
2617 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2618 | if(body[part].Position - position).Magnitude < range then | |
2619 | if v.ClassName == "Model" then | |
2620 | --v:BreakJoints() | |
2621 | end | |
2622 | local POS = position | |
2623 | coroutine.resume(coroutine.create(function() | |
2624 | body[part].Anchored = true | |
2625 | body[part].Parent = Effects | |
2626 | body[part].CanCollide = true | |
2627 | local SIZE = body[part].Size | |
2628 | body[part].Material = "Neon" | |
2629 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
2630 | for i = 1, 75 do | |
2631 | Swait() | |
2632 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
2633 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2634 | end | |
2635 | coroutine.resume(coroutine.create(function() | |
2636 | while true do | |
2637 | Swait() | |
2638 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
2639 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2640 | end | |
2641 | end)) | |
2642 | body[part].Anchored = false | |
2643 | body[part].Velocity = direction.lookVector*maxstrength | |
2644 | end)) | |
2645 | end | |
2646 | end | |
2647 | end | |
2648 | if v.ClassName == "Part" then | |
2649 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
2650 | local POS = position | |
2651 | coroutine.resume(coroutine.create(function() | |
2652 | v.Anchored = true | |
2653 | v.Parent = Effects | |
2654 | local SIZE = v.Size | |
2655 | v.Material = "Neon" | |
2656 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
2657 | for i = 1, 75 do | |
2658 | Swait() | |
2659 | v.Color = Color3.fromRGB(cR,cG,cB) | |
2660 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2661 | end | |
2662 | coroutine.resume(coroutine.create(function() | |
2663 | while true do | |
2664 | Swait() | |
2665 | v.Color = Color3.fromRGB(cR,cG,cB) | |
2666 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2667 | end | |
2668 | end)) | |
2669 | v.Anchored = false | |
2670 | v.Velocity = direction.lookVector*maxstrength | |
2671 | end)) | |
2672 | end | |
2673 | end | |
2674 | end | |
2675 | end | |
2676 | ||
2677 | function VanishPlayer() | |
2678 | tecks2.TextTransparency = 1 | |
2679 | tecks2.TextStrokeTransparency = 1 | |
2680 | for _, c in pairs(Character:GetChildren()) do | |
2681 | if c.ClassName == "Part" then | |
2682 | c.Transparency = 0 | |
2683 | if c:FindFirstChildOfClass("Decal") then | |
2684 | c:FindFirstChildOfClass("Decal").Transparency = 1 | |
2685 | end | |
2686 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2687 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
2688 | end | |
2689 | elseif c.ClassName == "Accessory" then | |
2690 | c.Handle.Transparency = 0 | |
2691 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
2692 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
2693 | end | |
2694 | end | |
2695 | end | |
2696 | end | |
2697 | ||
2698 | function Reappear() | |
2699 | tecks2.TextTransparency = 0 | |
2700 | tecks2.TextStrokeTransparency = 0 | |
2701 | for _, c in pairs(Character:GetChildren()) do | |
2702 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2703 | c.Transparency = 0 | |
2704 | if c:FindFirstChildOfClass("Decal") then | |
2705 | c:FindFirstChildOfClass("Decal").Transparency = 0 | |
2706 | end | |
2707 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2708 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
2709 | end | |
2710 | elseif c.ClassName == "Accessory" then | |
2711 | c.Handle.Transparency = 0 | |
2712 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
2713 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
2714 | end | |
2715 | end | |
2716 | end | |
2717 | end | |
2718 | ||
2719 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
2720 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
2721 | local mesh | |
2722 | if KIND == "Base" then | |
2723 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
2724 | elseif KIND == "Thin" then | |
2725 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
2726 | elseif KIND == "Round" then | |
2727 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
2728 | end | |
2729 | wave.CFrame = CFRAME | |
2730 | coroutine.resume(coroutine.create(function(PART) | |
2731 | for i = 1, WAIT do | |
2732 | Swait() | |
2733 | mesh.Scale = mesh.Scale + GROW / 10 | |
2734 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
2735 | if wave.Transparency > 0.99 then | |
2736 | wave:remove() | |
2737 | end | |
2738 | end | |
2739 | end)) | |
2740 | end | |
2741 | ||
2742 | function Orb() | |
2743 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2744 | if HITFLOOR ~= nil then | |
2745 | do | |
2746 | local HITBODIES = {} | |
2747 | ATTACK = true | |
2748 | Rooted = true | |
2749 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "ABSOLUTEUM", VT(0, 0, 0)) | |
2750 | MakeForm(ABSOLUTE, "Ball") | |
2751 | CreateSound("416200578", RootPart, 10, 0.7) | |
2752 | for i = 0, 8, 0.1 / Animation_Speed do | |
2753 | Swait() | |
2754 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.75, 0.75, 0.75) | |
2755 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
2756 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
2757 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(3, 3, 3)) | |
2758 | MakeForm(CHARGE, "Ball") | |
2759 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
2760 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
2761 | 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) | |
2762 | 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) | |
2763 | 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) | |
2764 | 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) | |
2765 | 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) | |
2766 | 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) | |
2767 | end | |
2768 | CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Torso, 10, 0.9) | |
2769 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
2770 | for i = 1, 45 do | |
2771 | Swait() | |
2772 | 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) | |
2773 | 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) | |
2774 | 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) | |
2775 | 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) | |
2776 | 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) | |
2777 | 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) | |
2778 | end | |
2779 | coroutine.resume(coroutine.create(function() | |
2780 | local IMPACT = false | |
2781 | local BULLET = ABSOLUTE | |
2782 | MakeForm(BULLET, "Ball") | |
2783 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
2784 | for i = 1, 500 do | |
2785 | Swait() | |
2786 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
2787 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
2788 | MagicSphere(VT(1000, 1000, 1000), 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(-100, -100, -100) / 55) | |
2789 | if HIT ~= nil then | |
2790 | IMPACT = true | |
2791 | break | |
2792 | end | |
2793 | end | |
2794 | if IMPACT == false then | |
2795 | for i = 1, 40 do | |
2796 | Swait() | |
2797 | BULLET.Size = BULLET.Size * 0.9 | |
2798 | end | |
2799 | BULLET:remove() | |
2800 | else | |
2801 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
2802 | for i = 1, 175 do | |
2803 | Swait() | |
2804 | BULLET.Size = BULLET.Size * 0.99 | |
2805 | 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) | |
2806 | end | |
2807 | CreateSound("438666001", BULLET, 10, 3) | |
2808 | Swait(35) | |
2809 | BULLET.Transparency = 1 | |
2810 | for i = 1, 20 do | |
2811 | for e = 1, 5 do | |
2812 | MagicSphere(VT(20, 20, 20), 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) | |
2813 | 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) | |
2814 | end | |
2815 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
2816 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
2817 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
2818 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
2819 | Swait(5) | |
2820 | for e = 1, #HITBODIES do | |
2821 | if HITBODIES[e] ~= nil then | |
2822 | local BOD = HITBODIES[e] | |
2823 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
2824 | if TORS then | |
2825 | BOD:BreakJoints() | |
2826 | Petrify(HUM.Parent) | |
2827 | C3(193,223,240) | |
2828 | for _, c in pairs(BOD:GetChildren()) do | |
2829 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2830 | local bv = Instance.new("BodyVelocity") | |
2831 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2832 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
2833 | bv.Parent = c | |
2834 | Debris:AddItem(bv, 0.2) | |
2835 | end | |
2836 | end | |
2837 | end | |
2838 | end | |
2839 | end | |
2840 | CreateWave(VT(0, 200, 0), 75, CF(BULLET.Position), true, -15, "Maroon", VT(i, 0, i) * 2) | |
2841 | end | |
2842 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(120, 120, 120)) | |
2843 | Debris:AddItem(BULLET, 10) | |
2844 | end | |
2845 | end)) | |
2846 | ATTACK = false | |
2847 | Rooted = false | |
2848 | end | |
2849 | end | |
2850 | end | |
2851 | ||
2852 | function Slice2(SIZE,WAIT,CFRAME,COLOR,GROW) | |
2853 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Really black"), "Effect", VT(1,1,1), true) | |
2854 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
2855 | wave.CFrame = CFRAME | |
2856 | coroutine.resume(coroutine.create(function(PART) | |
2857 | for i = 1, WAIT do | |
2858 | Swait() | |
2859 | mesh.Scale = mesh.Scale * GROW | |
2860 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
2861 | if wave.Transparency > 0.99 then | |
2862 | wave:remove() | |
2863 | end | |
2864 | end | |
2865 | end)) | |
2866 | end | |
2867 | ||
2868 | function swait(num) | |
2869 | if num == 0 or num == nil then | |
2870 | ArtificialHB.Event:wait() | |
2871 | else | |
2872 | for i = 0, num do | |
2873 | ArtificialHB.Event:wait() | |
2874 | end | |
2875 | end | |
2876 | end | |
2877 | ||
2878 | function ChaosDemon() | |
2879 | -- Intro | |
2880 | Rooted = true | |
2881 | TrueForm = true | |
2882 | chatfunc("You have merely delayed the inevitable.") | |
2883 | CreateSound("907331443", Effects, 10, 0.9) | |
2884 | for i = 0, 12, .1 do | |
2885 | swait(1) | |
2886 | end | |
2887 | ||
2888 | chatfunc("I will show you true power!") | |
2889 | CreateSound("907329532", Effects, 10, 0.9) | |
2890 | for i = 0, 12, .1 do | |
2891 | swait(0.6) | |
2892 | end | |
2893 | ||
2894 | for i=0, 10, 0.1 / Animation_Speed do | |
2895 | Swait() | |
2896 | local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2897 | MagicSphere3(VT(0,0,0),45,CFRAME,"Really black",VT(0.1,0.1,55)) | |
2898 | MagicSphere3(VT(0,0,0),45,CFRAME,"Really black",VT(2,2,2)) | |
2899 | MagicSphere3(VT(0.1,0.1,0.1),45,CFRAME,"Really black",VT(0.1,0.1,55)) | |
2900 | CreateRing2(VT(45,5,0)*2,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)) CreateRing2(VT(45,5,0)*3,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)*3) | |
2901 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2902 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2903 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2904 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2905 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2906 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2907 | Rooted = false | |
2908 | end | |
2909 | ||
2910 | back = CreateSound(1192655599, Character, 9999, 1, true) | |
2911 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
2912 | sillsky.SkyboxBk = "rbxassetid://157712259" | |
2913 | sillsky.SkyboxDn = "rbxassetid://157712247" | |
2914 | sillsky.SkyboxFt = "rbxassetid://157712266" | |
2915 | sillsky.SkyboxLf = "rbxassetid://157712240" | |
2916 | sillsky.SkyboxRt = "rbxassetid://157712254" | |
2917 | sillsky.SkyboxUp = "rbxassetid://157712276" | |
2918 | sillsky.StarCount = 0 | |
2919 | sillsky.SunAngularSize = 0 | |
2920 | sillsky.MoonAngularSize = 0 | |
2921 | sillsky.MoonTextureId = "" | |
2922 | sillsky.CelestialBodiesShown = false | |
2923 | game.Lighting.FogColor = Color3.new(1,0,0) | |
2924 | game.Lighting.FogEnd = 1400 | |
2925 | end | |
2926 | ||
2927 | function ChaosWorld() | |
2928 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2929 | CHOICE = 6 | |
2930 | ||
2931 | chatfunc("I am bored...") | |
2932 | for i = 0, 12, .1 do | |
2933 | swait(0.35) | |
2934 | end | |
2935 | ||
2936 | chatfunc("Time to cause some chaos!") | |
2937 | for i = 0, 16, .1 do | |
2938 | end | |
2939 | swait(0.15) | |
2940 | CreateWave2(0,4,true,0.2,45,RootPart,-5) | |
2941 | CreateWave2(0,4.5,true,-0.2,40,RootPart,-5) | |
2942 | CreateWave2(0,5,true,0.2,35,RootPart,-5) | |
2943 | CreateWave2(0,5.5,true,-0.2,30,RootPart,-5) | |
2944 | CreateWave2(0,6,true,0.2,25,RootPart,-5) | |
2945 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Bright orange",VT(25,25,25)) | |
2946 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Bright orange",VT(25,25,25)) | |
2947 | CreateSound("1368605755", Effects, 10, 1) | |
2948 | ||
2949 | back2 = CreateSound(177604015, Character, 9999, 0.9, true) | |
2950 | ChaosForm = true | |
2951 | local sillsky2 = Instance.new('Sky', game:GetService'Lighting') | |
2952 | sillsky2.SkyboxBk = "rbxassetid://1012890" | |
2953 | sillsky2.SkyboxDn = "rbxassetid://1012891" | |
2954 | sillsky2.SkyboxFt = "rbxassetid://1012887" | |
2955 | sillsky2.SkyboxLf = "rbxassetid://1012889" | |
2956 | sillsky2.SkyboxRt = "rbxassetid://1012888" | |
2957 | sillsky2.SkyboxUp = "rbxassetid://1014449" | |
2958 | sillsky2.StarCount = 0 | |
2959 | sillsky2.SunAngularSize = 0 | |
2960 | sillsky2.MoonAngularSize = 0 | |
2961 | sillsky2.MoonTextureId = "" | |
2962 | sillsky2.CelestialBodiesShown = false | |
2963 | game.Lighting.FogColor = BRICKC"Bright orange".Color | |
2964 | game.Lighting.FogEnd = 1400 | |
2965 | end | |
2966 | ||
2967 | function DemonWorld() | |
2968 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2969 | CHOICE = 6 | |
2970 | ||
2971 | chatfunc("All of these fools...") | |
2972 | for i = 0, 12, .1 do | |
2973 | swait(0.35) | |
2974 | end | |
2975 | ||
2976 | chatfunc("Its time to p e r i s h.") | |
2977 | for i = 0, 16, .1 do | |
2978 | end | |
2979 | swait(0.15) | |
2980 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(1000,1000,1000)) | |
2981 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(75,75,75)) | |
2982 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25)) | |
2983 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25)) | |
2984 | CreateSound("1368605755", Effects, 10, 1) | |
2985 | CreateSound("265201042", Effects, 10, 0.5) | |
2986 | ||
2987 | back = CreateSound(1192655599, Character, 9999, 1, true) | |
2988 | DemonForm = true | |
2989 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
2990 | sillsky.SkyboxBk = "rbxassetid://157712259" | |
2991 | sillsky.SkyboxDn = "rbxassetid://157712247" | |
2992 | sillsky.SkyboxFt = "rbxassetid://157712266" | |
2993 | sillsky.SkyboxLf = "rbxassetid://157712240" | |
2994 | sillsky.SkyboxRt = "rbxassetid://157712254" | |
2995 | sillsky.SkyboxUp = "rbxassetid://157712276" | |
2996 | sillsky.StarCount = 0 | |
2997 | sillsky.SunAngularSize = 0 | |
2998 | sillsky.MoonAngularSize = 0 | |
2999 | sillsky.MoonTextureId = "" | |
3000 | sillsky.CelestialBodiesShown = false | |
3001 | game.Lighting.FogColor = Color3.new(1,0,0) | |
3002 | game.Lighting.FogEnd = 1400 | |
3003 | end | |
3004 | ||
3005 | function Eliminate() | |
3006 | chatfunc("Come here!") | |
3007 | ATTACK = true | |
3008 | Rooted = false | |
3009 | local HASGRABBED = false | |
3010 | local WELD = nil | |
3011 | local TORS = nil | |
3012 | local hitting = RightArm.Touched:Connect(function(hit) | |
3013 | if hit.Parent:FindFirstChild("Humanoid") then | |
3014 | if hit.Parent.Humanoid.Health ~= 0 then | |
3015 | UNANCHOR = false | |
3016 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
3017 | TORS.Anchored = true | |
3018 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
3019 | WELD = weldBetween(RightArm,TORS) | |
3020 | HASGRABBED = true | |
3021 | chatfunc("Time to die.") | |
3022 | Rooted = true | |
3023 | end | |
3024 | end | |
3025 | end) | |
3026 | for i=0, 1, 0.1 / Animation_Speed do | |
3027 | Swait() | |
3028 | if HASGRABBED == true then | |
3029 | break | |
3030 | end | |
3031 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
3032 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
3033 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
3034 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
3035 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3036 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3037 | end | |
3038 | hitting:disconnect() | |
3039 | if HASGRABBED == true then | |
3040 | TORS.Anchored = false | |
3041 | RootPart.Anchored = true | |
3042 | for i=0, 2, 0.1 / Animation_Speed do | |
3043 | Swait() | |
3044 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3045 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3046 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3047 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3048 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3049 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3050 | end | |
3051 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(5,3,5)) | |
3052 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Maroon",VT(6,3,6)) | |
3053 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0)) | |
3054 | SOUNDPART.CFrame = RootPart.CFrame | |
3055 | Debris:AddItem(SOUNDPART,5) | |
3056 | CreateSound("260411131", SOUNDPART, 2, 1) | |
3057 | for i = 1, 15 do | |
3058 | Slice2(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
3059 | end | |
3060 | for i=0, 2, 0.1 / Animation_Speed do | |
3061 | Swait() | |
3062 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3063 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3064 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3065 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3066 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3067 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3068 | end | |
3069 | for i=0, 0.25, 0.1 / Animation_Speed do | |
3070 | Swait() | |
3071 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
3072 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
3073 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
3074 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
3075 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3076 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3077 | end | |
3078 | if HITFLOOR ~= nil then | |
3079 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(70,70,70),85) | |
3080 | end | |
3081 | CreateSound("1295446488", Effects, 10, MRANDOM(7, 12) / 10) | |
3082 | WELD:remove() | |
3083 | for i = 1, 25 do | |
3084 | Swait() | |
3085 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
3086 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(3,30,3)) | |
3087 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(10,4,10)) | |
3088 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(23,3,23)) | |
3089 | Slice2(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1 + MRANDOM(1,30)/5) | |
3090 | Slice2(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Maroon", 1 + MRANDOM(1,30)/15) | |
3091 | end | |
3092 | end | |
3093 | UNANCHOR = true | |
3094 | ATTACK = false | |
3095 | Rooted = false | |
3096 | end | |
3097 | ||
3098 | local shooting = false | |
3099 | attackdebounce = false | |
3100 | ||
3101 | local Effects2 = {} | |
3102 | ||
3103 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
3104 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3105 | prt.Anchored = true | |
3106 | prt.CFrame = cframe | |
3107 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
3108 | game:GetService("Debris"):AddItem(prt, 10) | |
3109 | if Type == 1 or Type == nil then | |
3110 | table.insert(Effects2, {prt, "Block1", delay, x3, y3, z3, msh}) | |
3111 | else | |
3112 | if Type == 2 then | |
3113 | table.insert(Effects2, {prt, "Block2", delay, x3, y3, z3, msh}) | |
3114 | else | |
3115 | if Type == 3 then | |
3116 | table.insert(Effects2, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0}) | |
3117 | end | |
3118 | end | |
3119 | end | |
3120 | end | |
3121 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
3122 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3123 | prt.Anchored = true | |
3124 | prt.CFrame = cframe | |
3125 | msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1)) | |
3126 | game:GetService("Debris"):AddItem(prt, 10) | |
3127 | table.insert(Effects2, {prt, "Skull", delay, x3, y3, z3, msh, goe}) | |
3128 | end | |
3129 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3130 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3131 | prt.Anchored = true | |
3132 | prt.CFrame = cframe | |
3133 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
3134 | game:GetService("Debris"):AddItem(prt, 10) | |
3135 | table.insert(Effects2, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
3136 | end | |
3137 | MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3138 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
3139 | prt.Anchored = true | |
3140 | prt.CFrame = cframe * cf(x2, y2, z2) | |
3141 | local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
3142 | game:GetService("Debris"):AddItem(prt, 10) | |
3143 | table.insert(Effects2, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
3144 | end | |
3145 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
3146 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3147 | prt.Anchored = true | |
3148 | prt.CFrame = cframe | |
3149 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
3150 | game:GetService("Debris"):AddItem(prt, 10) | |
3151 | table.insert(Effects2, {prt, "Blood", delay, x3, y3, z3, msh, push}) | |
3152 | end | |
3153 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3154 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3155 | prt.Anchored = true | |
3156 | prt.CFrame = cframe | |
3157 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
3158 | game:GetService("Debris"):AddItem(prt, 10) | |
3159 | table.insert(Effects2, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
3160 | end | |
3161 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
3162 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3163 | prt.Anchored = true | |
3164 | prt.CFrame = cframe | |
3165 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
3166 | game:GetService("Debris"):AddItem(prt, 10) | |
3167 | table.insert(Effects2, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe}) | |
3168 | end | |
3169 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3170 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3171 | prt.Anchored = true | |
3172 | prt.CFrame = cframe | |
3173 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
3174 | game:GetService("Debris"):AddItem(prt, 10) | |
3175 | table.insert(Effects2, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
3176 | end | |
3177 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
3178 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
3179 | prt.Anchored = true | |
3180 | prt.CFrame = cframe | |
3181 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5)) | |
3182 | game:GetService("Debris"):AddItem(prt, 10) | |
3183 | table.insert(Effects2, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil}) | |
3184 | end | |
3185 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3186 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3187 | prt.Anchored = true | |
3188 | prt.CFrame = cframe | |
3189 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
3190 | game:GetService("Debris"):AddItem(prt, 10) | |
3191 | table.insert(Effects2, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
3192 | end | |
3193 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
3194 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
3195 | prt.Anchored = true | |
3196 | prt.CFrame = cframe | |
3197 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
3198 | game:GetService("Debris"):AddItem(prt, 10) | |
3199 | table.insert(Effects2, {prt, "Fire", delay, 1, 1, 1, msh}) | |
3200 | end | |
3201 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
3202 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
3203 | prt.Anchored = true | |
3204 | prt.CFrame = cframe | |
3205 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
3206 | d = Instance.new("Decal") | |
3207 | d.Parent = prt | |
3208 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
3209 | d.Face = "Top" | |
3210 | d = Instance.new("Decal") | |
3211 | d.Parent = prt | |
3212 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
3213 | d.Face = "Bottom" | |
3214 | game:GetService("Debris"):AddItem(prt, 10) | |
3215 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh}) | |
3216 | end | |
3217 | ElecEffect = function(cff, x, y, z) | |
3218 | local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1)) | |
3219 | prt.Anchored = true | |
3220 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
3221 | prt.CFrame = cf(prt.Position) | |
3222 | game:GetService("Debris"):AddItem(prt, 10) | |
3223 | xval = math.random() / 3 | |
3224 | yval = math.random() / 3 | |
3225 | zval = math.random() / 3 | |
3226 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval)) | |
3227 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh} | |
3228 | end | |
3229 | ||
3230 | ||
3231 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
3232 | local fp = it("Part") | |
3233 | fp.formFactor = formfactor | |
3234 | fp.Parent = parent | |
3235 | fp.Reflectance = reflectance | |
3236 | fp.Transparency = transparency | |
3237 | fp.CanCollide = false | |
3238 | fp.Locked = true | |
3239 | fp.BrickColor = brickcolor | |
3240 | fp.Name = name | |
3241 | fp.Size = size | |
3242 | fp.Position = Torso.Position | |
3243 | NoOutline(fp) | |
3244 | if fp.BrickColor == BrickColor.new("Dark indigo") then | |
3245 | fp.Material = "Neon" | |
3246 | else | |
3247 | if fp.BrickColor == BrickColor.new("Really black") then | |
3248 | fp.BrickColor = BrickColor.new("Really black") | |
3249 | fp.Material = "Metal" | |
3250 | else | |
3251 | fp.Material = "Neon" | |
3252 | end | |
3253 | end | |
3254 | fp:BreakJoints() | |
3255 | return fp | |
3256 | end | |
3257 | ||
3258 | ||
3259 | function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation) | |
3260 | swait() | |
3261 | local Bullet = Instance.new("Part",Workspace) | |
3262 | Bullet.Locked = true | |
3263 | Bullet.Name = "Bullet" | |
3264 | Bullet.Anchored = bounce | |
3265 | Bullet.CanCollide = collide | |
3266 | Bullet.Transparency = 0.24 | |
3267 | Bullet.Reflectance = 0 | |
3268 | Bullet.BottomSurface = 0 | |
3269 | Bullet.TopSurface = 0 | |
3270 | Bullet.Shape = 0 | |
3271 | Bullet.BrickColor = BrickColor.new(color) | |
3272 | Bullet.Size = Vector3.new(size,size,size) | |
3273 | Bullet.Material = "Neon" | |
3274 | Bullet.Orientation = vt(-90,0,0) | |
3275 | local Bulletthing = Instance.new("SpecialMesh",Bullet) | |
3276 | Bulletthing.MeshType = "Sphere" | |
3277 | local Bulletforce = Instance.new("BodyForce") | |
3278 | Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0) | |
3279 | Bulletforce.Parent = Bullet | |
3280 | Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place)) | |
3281 | local bv = Instance.new("BodyVelocity",Bullet) | |
3282 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3283 | Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p) | |
3284 | bv.velocity = Bullet.CFrame.lookVector*velocity | |
3285 | ||
3286 | ||
3287 | Bullet.Touched:connect(function(hit) | |
3288 | ||
3289 | if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then | |
3290 | local orbexplode = Instance.new("Sound", Bullet) | |
3291 | orbexplode.Volume = 4 | |
3292 | orbexplode.PlayOnRemove = true | |
3293 | orbexplode.SoundId = "http://roblox.com/asset/?id=142070127" | |
3294 | orbexplode.Pitch = 1 | |
3295 | orbexplode:Destroy() | |
3296 | deb:AddItem(orbexplode, 4) | |
3297 | Bullet.Anchored = true | |
3298 | Bullet.Transparency = 1 | |
3299 | deb:AddItem(Bullet, 4) | |
3300 | local Explode = Instance.new("Explosion") | |
3301 | Explode.Position = Bullet.Position | |
3302 | Explode.Parent = Workspace | |
3303 | Explode.BlastPressure = 0 | |
3304 | Explode.BlastRadius = Bullet.Size.X *5.6 | |
3305 | Explode.Visible = false | |
3306 | ||
3307 | Explode.Hit:connect(function(hit) | |
3308 | if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then | |
3309 | if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then | |
3310 | hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100 | |
3311 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100 | |
3312 | end | |
3313 | if attackdebounce == false then | |
3314 | attackdebounce = true | |
3315 | hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage)) | |
3316 | wait(0.02) | |
3317 | attackdebounce = false | |
3318 | end | |
3319 | end | |
3320 | end) | |
3321 | coroutine.resume(coroutine.create(function() | |
3322 | ||
3323 | MagicCircle(BrickColor.new("Really red"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
3324 | MagicCircle(BrickColor.new("Really red"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
3325 | MagicRing(BrickColor.new("Really red"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025) | |
3326 | MagicRing(BrickColor.new("Really red"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025) | |
3327 | end)) | |
3328 | end | |
3329 | end) | |
3330 | coroutine.resume(coroutine.create(function() | |
3331 | for i = 0,16,0.1 do | |
3332 | swait() | |
3333 | end | |
3334 | if Bullet.Anchored == false then | |
3335 | Bullet:Destroy() | |
3336 | end | |
3337 | end)) | |
3338 | ||
3339 | end | |
3340 | ||
3341 | ||
3342 | function Shootboi() | |
3343 | ATTACK = true | |
3344 | shooting = true | |
3345 | ||
3346 | ||
3347 | local thing = Instance.new("BodyGyro",RootPart) | |
3348 | thing.D = 50 | |
3349 | thing.P = 6000 | |
3350 | thing.MaxTorque = vt(100000,math.huge,0) | |
3351 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
3352 | for i = 0,3,0.16 do | |
3353 | swait() | |
3354 | MagicRing(BrickColor.new("Maroon"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07) | |
3355 | MagicCircle(BrickColor.new("Maroon"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07) | |
3356 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
3357 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
3358 | RW2.C0 = clerp(RW2.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2) | |
3359 | LW2.C0 = clerp(LW2.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2) | |
3360 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1) | |
3361 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1) | |
3362 | end | |
3363 | ||
3364 | ||
3365 | ||
3366 | while shooting == true do | |
3367 | swait(0.5) | |
3368 | coroutine.resume(coroutine.create(function() | |
3369 | MagicRing(BrickColor.new("Maroon"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07) | |
3370 | end)) | |
3371 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3) | |
3372 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3) | |
3373 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
3374 | Torso.Velocity = RootPart.CFrame.lookVector * -63 | |
3375 | ||
3376 | ||
3377 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4) | |
3378 | Bullets(RightArm,0,3.5,"Really red",1200,"inf",false,false) | |
3379 | coroutine.resume(coroutine.create(function() | |
3380 | for i = 0, 0.5, 0.1 do | |
3381 | swait() | |
3382 | end | |
3383 | end)) | |
3384 | ||
3385 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2) | |
3386 | Bullets(LeftArm,0,3.5,"Royal purple",1200,"inf",false,false) | |
3387 | coroutine.resume(coroutine.create(function() | |
3388 | for i = 0, 0.5, 0.1 do | |
3389 | swait() | |
3390 | end | |
3391 | end)) | |
3392 | ||
3393 | end | |
3394 | ||
3395 | ATTACK = false | |
3396 | thing:Destroy() | |
3397 | end | |
3398 | ||
3399 | function Fire_At_Will() | |
3400 | ATTACK = true | |
3401 | Rooted = false | |
3402 | local GYRO = IT("BodyGyro", RootPart) | |
3403 | GYRO.D = 750 | |
3404 | GYRO.P = 2000 | |
3405 | GYRO.MaxTorque = VT(0, 40000, 0) | |
3406 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
3407 | Swait() | |
3408 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
3409 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
3410 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
3411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3413 | if ANIM == "Idle" then | |
3414 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3415 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3416 | elseif ANIM == "Walk" then | |
3417 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3418 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3419 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
3420 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3421 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3422 | end | |
3423 | end | |
3424 | local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Sphere", VT(1, 1, 1), false) | |
3425 | MakeForm(BOMB, "Ball") | |
3426 | BOMB.Mesh.Scale = VT(0.5, 0.5, 0.5) | |
3427 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BOMB, CF(0, -2, 0), CF(0, 0, 0)) | |
3428 | for i = 0, 1.5, 0.1 / Animation_Speed do | |
3429 | Swait() | |
3430 | if MRANDOM(1, 2) == 1 then | |
3431 | for E = 1, #EYES do | |
3432 | if EYES[E] ~= nil then | |
3433 | local EY = EYES[E] | |
3434 | local LIGHTNING = Zap({ | |
3435 | StartPosition = EY.Position, | |
3436 | TargetPosition = BOMB.Position, | |
3437 | Character = Character, | |
3438 | Color = "Really red", | |
3439 | Individual = false, | |
3440 | MaxRange = 7, | |
3441 | SegmentLength = 1, | |
3442 | Offset = 0.3, | |
3443 | SIZE = 0.05 | |
3444 | }) | |
3445 | Debris:AddItem(LIGHTNING.LightningModel, 0.05) | |
3446 | end | |
3447 | end | |
3448 | end | |
3449 | BOMB.Mesh.Scale = BOMB.Mesh.Scale + VT(0.1, 0.1, 0.1) | |
3450 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
3451 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
3452 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
3453 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3454 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3455 | if ANIM == "Idle" then | |
3456 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3457 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3458 | elseif ANIM == "Walk" then | |
3459 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3460 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3461 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
3462 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3464 | end | |
3465 | end | |
3466 | WACKYEFFECT({ | |
3467 | Time = 25, | |
3468 | EffectType = "Ring", | |
3469 | Size = VT(0, 0, 0), | |
3470 | Size2 = VT(18.75, 18.75, 0), | |
3471 | Transparency = 0.7, | |
3472 | Transparency2 = 1, | |
3473 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
3474 | MoveToPos = nil, | |
3475 | RotationX = 0, | |
3476 | RotationY = 0, | |
3477 | RotationZ = 0, | |
3478 | Material = "Neon", | |
3479 | Color = BOMB.Color, | |
3480 | SoundID = nil, | |
3481 | SoundPitch = nil, | |
3482 | SoundVolume = nil | |
3483 | }) | |
3484 | WACKYEFFECT({ | |
3485 | Time = 50, | |
3486 | EffectType = "Ring", | |
3487 | Size = VT(0, 0, 0), | |
3488 | Size2 = VT(75, 75, 0), | |
3489 | Transparency = 0.7, | |
3490 | Transparency2 = 1, | |
3491 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
3492 | MoveToPos = nil, | |
3493 | RotationX = 0, | |
3494 | RotationY = 0, | |
3495 | RotationZ = 0, | |
3496 | Material = "Neon", | |
3497 | Color = BOMB.Color, | |
3498 | SoundID = nil, | |
3499 | SoundPitch = nil, | |
3500 | SoundVolume = nil | |
3501 | }) | |
3502 | BOMB.Anchored = true | |
3503 | WELD:remove() | |
3504 | GYRO:remove() | |
3505 | coroutine.resume(coroutine.create(function() | |
3506 | BOMB.CFrame = CF(BOMB.Position, Mouse.Hit.p) | |
3507 | for i = 1, 500 do | |
3508 | Swait() | |
3509 | BOMB.CFrame = BOMB.CFrame * CF(0, 0, -2) | |
3510 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2.2, Character) | |
3511 | if HITFLOOR ~= nil then | |
3512 | break | |
3513 | end | |
3514 | end | |
3515 | ApplyAoE(BOMB.Position, 375, 0, 0, 0, true) | |
3516 | for i = 1, 5 do | |
3517 | WACKYEFFECT({ | |
3518 | Time = 50, | |
3519 | EffectType = "Sphere", | |
3520 | Size = BOMB.Mesh.Scale, | |
3521 | Size2 = VT(125, 125, 125) * i, | |
3522 | Transparency = 0.5, | |
3523 | Transparency2 = 1, | |
3524 | CFrame = BOMB.CFrame, | |
3525 | MoveToPos = nil, | |
3526 | RotationX = 0, | |
3527 | RotationY = 0, | |
3528 | RotationZ = 0, | |
3529 | Material = "Neon", | |
3530 | Color = BOMB.Color, | |
3531 | SoundID = 1222405264, | |
3532 | SoundPitch = 1, | |
3533 | SoundVolume = 10 | |
3534 | }) | |
3535 | end | |
3536 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, CF(BOMB.Position + VT(0, 5, 0), BOMB.Position - VT(0, 5, 0)).lookVector, 15, Character) | |
3537 | if HITFLOOR then | |
3538 | CreateDebreeRing(HITFLOOR, HITPOS, 85, VT(85, 85, 85), 5) | |
3539 | end | |
3540 | BOMB.Transparency = 1 | |
3541 | for i = 1, 35 do | |
3542 | Swait() | |
3543 | CreateFlyingDebree(BOMB, CF(BOMB.Position), 1, VT(2.5, 2.5, 2.5), 5, 150) | |
3544 | end | |
3545 | BOMB:remove() | |
3546 | end)) | |
3547 | ATTACK = false | |
3548 | Rooted = false | |
3549 | end | |
3550 | ||
3551 | ||
3552 | ||
3553 | function Imperfect_Storm() | |
3554 | ATTACK = true | |
3555 | Rooted = false | |
3556 | for i = 0, 1, 0.1 / Animation_Speed do | |
3557 | Swait() | |
3558 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3559 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3560 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3561 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3562 | if ANIM == "Idle" then | |
3563 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3564 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3565 | elseif ANIM == "Walk" then | |
3566 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3567 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3568 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
3569 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3570 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3571 | end | |
3572 | end | |
3573 | ATTACK = false | |
3574 | Rooted = false | |
3575 | end | |
3576 | ||
3577 | function MouseDown(Mouse) | |
3578 | if ATTACK == false then | |
3579 | end | |
3580 | end | |
3581 | function MouseUp(Mouse) | |
3582 | HOLD = false | |
3583 | end | |
3584 | ||
3585 | function KeyDown(Key) | |
3586 | KEYHOLD = true | |
3587 | if DemonForm == false then | |
3588 | if Key == "z" and ATTACK == false then | |
3589 | Neck_Snap() | |
3590 | end | |
3591 | ||
3592 | if Key == "b" and ATTACK == false then | |
3593 | Imperfect_Command() | |
3594 | end | |
3595 | ||
3596 | if Key == "c" and ATTACK == false then | |
3597 | Fire_At_Will() | |
3598 | end | |
3599 | ||
3600 | if Key == "e" and ATTACK == false then | |
3601 | Warp() | |
3602 | end | |
3603 | ||
3604 | if Key == "f" and ATTACK == false then | |
3605 | Eliminate() | |
3606 | end | |
3607 | ||
3608 | if Key == "t" and ATTACK == false then | |
3609 | Taunt() | |
3610 | end | |
3611 | ||
3612 | if Key == "q" and ATTACK == false then | |
3613 | Orb() | |
3614 | end | |
3615 | ||
3616 | if Key == "p" and ATTACK == false then | |
3617 | DemonWorld() | |
3618 | SKILL2TEXT:remove() | |
3619 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Perfect Command", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
3620 | SKILL3TEXT:remove() | |
3621 | SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Fire at Will", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
3622 | SKILL7TEXT:remove() | |
3623 | SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Return", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
3624 | end | |
3625 | ||
3626 | else | |
3627 | ||
3628 | if Key == "z" and ATTACK == false then | |
3629 | Neck_Snap() | |
3630 | end | |
3631 | if Key == "b" and ATTACK == false then | |
3632 | Perfect_Command() | |
3633 | end | |
3634 | if Key == "c" and ATTACK == false then | |
3635 | Shootboi() | |
3636 | end | |
3637 | if Key == "e" and ATTACK == false then | |
3638 | Warp() | |
3639 | end | |
3640 | if Key == "f" and ATTACK == false then | |
3641 | Eliminate() | |
3642 | end | |
3643 | ||
3644 | if Key == "q" and ATTACK == false then | |
3645 | Orb() | |
3646 | end | |
3647 | ||
3648 | if Key == "t" and ATTACK == false then | |
3649 | Taunt2() | |
3650 | end | |
3651 | ||
3652 | if Key == "p" and ATTACK == false then | |
3653 | DemonForm = false | |
3654 | SKILL2TEXT:remove() | |
3655 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
3656 | SKILL3TEXT:remove() | |
3657 | SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Stone Ball", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
3658 | SKILL7TEXT:remove() | |
3659 | SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Demon Form", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
3660 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
3661 | sillsky:remove() | |
3662 | back:remove() | |
3663 | game.Lighting.FogEnd = 90000000 | |
3664 | CreateSound(464600985, Character, 99999, 0.8, false) | |
3665 | end | |
3666 | end | |
3667 | end | |
3668 | ||
3669 | function KeyDown2(Key) | |
3670 | KEYHOLD = true | |
3671 | if ChaosForm == false then | |
3672 | if Key == "l" and ATTACK == false then | |
3673 | ChaosWorld() | |
3674 | SKILL6TEXT:remove() | |
3675 | SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Chaos Beam", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 6") | |
3676 | SKILL8TEXT:remove() | |
3677 | SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Return", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
3678 | end | |
3679 | else | |
3680 | ||
3681 | if Key == "q" and ATTACK == false then | |
3682 | ChaosBeam() | |
3683 | end | |
3684 | ||
3685 | if Key == "l" and ATTACK == false then | |
3686 | ChaosForm = false | |
3687 | SKILL6TEXT:remove() | |
3688 | SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Orb of Ultimate Destruction", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 6") | |
3689 | SKILL8TEXT:remove() | |
3690 | SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Chaos Form", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
3691 | local sillsky2 = Instance.new('Sky', game:GetService'Lighting') | |
3692 | sillsky2:remove() | |
3693 | back2:remove() | |
3694 | game.Lighting.FogEnd = 90000000 | |
3695 | CreateSound(464600985, Character, 99999, 0.8, false) | |
3696 | end | |
3697 | end | |
3698 | end | |
3699 | ||
3700 | function KeyDown3(Key) | |
3701 | KEYHOLD = true | |
3702 | if TrueForm == false then | |
3703 | if Key == "m" and ATTACK == false then | |
3704 | ChaosDemon() | |
3705 | SKILL9TEXT:remove() | |
3706 | SKILL9TEXT = CreateLabel(SKILL9FRAME, "[M] Return", SKILLTEXTCOLOR4, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 9") | |
3707 | end | |
3708 | else | |
3709 | if Key == "m" and ATTACK == false then | |
3710 | chatfunc("Your allies have fallen.") | |
3711 | CreateSound(907332235, Character, 50, 0.9, false) | |
3712 | TrueForm = false | |
3713 | SKILL9TEXT:remove() | |
3714 | SKILL9TEXT = CreateLabel(SKILL9FRAME, "[M] True Form", SKILLTEXTCOLOR4, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 9") | |
3715 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
3716 | sillsky:remove() | |
3717 | back:remove() | |
3718 | game.Lighting.FogEnd = 90000000 | |
3719 | end | |
3720 | end | |
3721 | end | |
3722 | ||
3723 | function KeyUp(Key) | |
3724 | KEYHOLD = false | |
3725 | end | |
3726 | Mouse.Button1Down:connect(function(NEWKEY) | |
3727 | MouseDown(NEWKEY) | |
3728 | end) | |
3729 | Mouse.Button1Up:connect(function(NEWKEY) | |
3730 | MouseUp(NEWKEY) | |
3731 | end) | |
3732 | Mouse.KeyDown:connect(function(NEWKEY) | |
3733 | KeyDown(NEWKEY) | |
3734 | end) | |
3735 | Mouse.KeyDown:connect(function(NEWKEY) | |
3736 | KeyDown2(NEWKEY) | |
3737 | end) | |
3738 | Mouse.KeyDown:connect(function(NEWKEY) | |
3739 | KeyDown3(NEWKEY) | |
3740 | end) | |
3741 | Mouse.KeyUp:connect(function(NEWKEY) | |
3742 | KeyUp(NEWKEY) | |
3743 | end) | |
3744 | function unanchor() | |
3745 | if UNANCHOR == true then | |
3746 | RootPart.Anchored = false | |
3747 | end | |
3748 | local CHILDREN = Character:GetDescendants() | |
3749 | for index, CHILD in pairs(CHILDREN) do | |
3750 | if CHILD:IsA("BasePart") and CHILD ~= RootPart and CHILD.Parent ~= Effects and CHILD.Parent.Parent ~= Effects then | |
3751 | CHILD.Anchored = false | |
3752 | end | |
3753 | end | |
3754 | end | |
3755 | Humanoid.Changed:connect(function(Jump) | |
3756 | if Jump == "Jump" and Disable_Jump == true then | |
3757 | Humanoid.Jump = false | |
3758 | end | |
3759 | end) | |
3760 | while true do | |
3761 | Swait() | |
3762 | script.Parent = WEAPONGUI | |
3763 | ANIMATE.Parent = nil | |
3764 | if Humanoid then | |
3765 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3766 | IDLEANIMATION:Play() | |
3767 | end | |
3768 | for RW = 1, #RWINGS do | |
3769 | if RWINGS[RW] ~= nil then | |
3770 | RWINGS[RW].C1 = Clerp(RWINGS[RW].C1, CF(-0.25 + 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 + 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3771 | end | |
3772 | end | |
3773 | for LW = 1, #LWINGS do | |
3774 | if LWINGS[LW] ~= nil then | |
3775 | LWINGS[LW].C1 = Clerp(LWINGS[LW].C1, CF(0.25 - 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 - 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3776 | end | |
3777 | end | |
3778 | SINE = SINE + CHANGE | |
3779 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3780 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3781 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 + Humanoid.HipHeight, Character) | |
3782 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3783 | if FINISHEDINTRO == true then | |
3784 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3785 | ANIM = "Jump" | |
3786 | if ATTACK == false then | |
3787 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3788 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3789 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3790 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3791 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3792 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3793 | end | |
3794 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3795 | ANIM = "Fall" | |
3796 | if ATTACK == false then | |
3797 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3798 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3799 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3800 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3801 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3802 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3803 | end | |
3804 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3805 | ANIM = "Idle" | |
3806 | if ATTACK == false then | |
3807 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3808 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
3809 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3810 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3811 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3812 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3813 | end | |
3814 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3815 | ANIM = "Walk" | |
3816 | if ATTACK == false then | |
3817 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 22)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 22)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3818 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 22)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3819 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 22)), RAD(15 + 7.5 * SIN(SINE / 22))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3820 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 22)), RAD(-15 - 7.5 * SIN(SINE / 22))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3821 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3822 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3823 | end | |
3824 | end | |
3825 | if TORSOVELOCITY > 1 then | |
3826 | Humanoid.HipHeight = 1 | |
3827 | else | |
3828 | Humanoid.HipHeight = 0 | |
3829 | end | |
3830 | elseif FINISHEDINTRO == false then | |
3831 | Humanoid.HipHeight = 0 | |
3832 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3833 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3834 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3835 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3836 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3837 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3838 | end | |
3839 | unanchor() | |
3840 | Humanoid.MaxHealth = 1.0E298 | |
3841 | Humanoid.Health = 1.0E298 | |
3842 | if Rooted == false then | |
3843 | Disable_Jump = false | |
3844 | Humanoid.WalkSpeed = Speed | |
3845 | elseif Rooted == true then | |
3846 | Disable_Jump = true | |
3847 | Humanoid.WalkSpeed = 0 | |
3848 | end | |
3849 | if DemonForm == false then | |
3850 | sick.Parent = Torso | |
3851 | sick.Playing = true | |
3852 | sick.Volume = 5 | |
3853 | sick.Pitch = 1 | |
3854 | else | |
3855 | sick.Parent = Torso | |
3856 | sick.Playing = false | |
3857 | sick.Volume = 0 | |
3858 | sick.Pitch = 1 | |
3859 | end | |
3860 | ||
3861 | if ChaosForm == false then | |
3862 | sick.Parent = Torso | |
3863 | sick.Playing = true | |
3864 | sick.Volume = 5 | |
3865 | sick.Pitch = 1 | |
3866 | else | |
3867 | sick.Parent = Torso | |
3868 | sick.Playing = false | |
3869 | sick.Volume = 0 | |
3870 | sick.Pitch = 1 | |
3871 | end | |
3872 | ||
3873 | if TrueForm == false then | |
3874 | sick.Parent = Torso | |
3875 | sick.Playing = true | |
3876 | sick.Volume = 5 | |
3877 | sick.Pitch = 1 | |
3878 | else | |
3879 | sick.Parent = Torso | |
3880 | sick.Playing = false | |
3881 | sick.Volume = 0 | |
3882 | sick.Pitch = 1 | |
3883 | end | |
3884 | ||
3885 | BLINKLOOP = BLINKLOOP + 1 | |
3886 | if BLINKLOOP >= 325 then | |
3887 | BLINKLOOP = 0 | |
3888 | Blink() | |
3889 | end | |
3890 | if Character:FindFirstChildOfClass("Accessory") then | |
3891 | Character:FindFirstChildOfClass("Accessory"):remove() | |
3892 | end | |
3893 | if Character:FindFirstChildOfClass("Shirt") then | |
3894 | Character:FindFirstChildOfClass("Shirt"):remove() | |
3895 | end | |
3896 | if Character:FindFirstChildOfClass("Pants") then | |
3897 | Character:FindFirstChildOfClass("Pants"):remove() | |
3898 | end | |
3899 | if Character:FindFirstChildOfClass("Cloth") then | |
3900 | Character:FindFirstChildOfClass("Cloth"):remove() | |
3901 | end | |
3902 | if Head:FindFirstChildOfClass("Sound") then | |
3903 | Head:FindFirstChildOfClass("Sound"):remove() | |
3904 | end | |
3905 | if INTROING == false and FINISHEDINTRO == false then | |
3906 | if INSTANT == false then | |
3907 | Intro() | |
3908 | else | |
3909 | FINISHEDINTRO = true | |
3910 | Face() | |
3911 | RightWing() | |
3912 | LeftWing() | |
3913 | end | |
3914 | end | |
3915 | if Head:FindFirstChild("face") then | |
3916 | Head.face:remove() | |
3917 | end | |
3918 | refit() | |
3919 | Humanoid.PlatformStand = false | |
3920 | end | |
3921 | ||
3922 | if Humanoid.Health < 1.0E298 then | |
3923 | refit() | |
3924 | chatfunc("Futile.") | |
3925 | Humanoid.MaxHealth = 1.0E298 | |
3926 | Humanoid.Health = Humanoid.Health + 1.0E298 | |
3927 | end | |
3928 | --//====================================================\\-- | |
3929 | --|| CREATED BY SHACKLUSTER | |
3930 | --\\====================================================//-- | |
3931 | ||
3932 | script:ClearAllChildren() | |
3933 | wait(0.2) | |
3934 | ||
3935 | Player = game:GetService("Players").LocalPlayer | |
3936 | PlayerGui = Player.PlayerGui | |
3937 | Cam = workspace.CurrentCamera | |
3938 | Backpack = Player.Backpack | |
3939 | Character = Player.Character | |
3940 | Humanoid = Character.Humanoid | |
3941 | Mouse = Player:GetMouse() | |
3942 | RootPart = Character["HumanoidRootPart"] | |
3943 | Torso = Character["Torso"] | |
3944 | Head = Character["Head"] | |
3945 | RightArm = Character["Right Arm"] | |
3946 | LeftArm = Character["Left Arm"] | |
3947 | RightLeg = Character["Right Leg"] | |
3948 | LeftLeg = Character["Left Leg"] | |
3949 | RootJoint = RootPart["RootJoint"] | |
3950 | Neck = Torso["Neck"] | |
3951 | RightShoulder = Torso["Right Shoulder"] | |
3952 | LeftShoulder = Torso["Left Shoulder"] | |
3953 | RightHip = Torso["Right Hip"] | |
3954 | LeftHip = Torso["Left Hip"] | |
3955 | local TIME = 0 | |
3956 | local sick = Instance.new("Sound",Torso) | |
3957 | ||
3958 | IT = Instance.new | |
3959 | CF = CFrame.new | |
3960 | VT = Vector3.new | |
3961 | RAD = math.rad | |
3962 | C3 = Color3.new | |
3963 | UD2 = UDim2.new | |
3964 | BRICKC = BrickColor.new | |
3965 | ANGLES = CFrame.Angles | |
3966 | EULER = CFrame.fromEulerAnglesXYZ | |
3967 | COS = math.cos | |
3968 | ACOS = math.acos | |
3969 | SIN = math.sin | |
3970 | ASIN = math.asin | |
3971 | ABS = math.abs | |
3972 | MRANDOM = math.random | |
3973 | FLOOR = math.floor | |
3974 | ||
3975 | --//=================================\\ | |
3976 | --|| USEFUL VALUES | |
3977 | --\\=================================// | |
3978 | Animation_Speed = 3 | |
3979 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
3980 | local Speed = 35 | |
3981 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
3982 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
3983 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
3984 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
3985 | local DAMAGEMULTIPLIER = 1 | |
3986 | local ANIM = "Idle" | |
3987 | local ATTACK = false | |
3988 | local EQUIPPED = false | |
3989 | local HOLD = false | |
3990 | local COMBO = 1 | |
3991 | local Rooted = false | |
3992 | local SINE = 0 | |
3993 | local KEYHOLD = false | |
3994 | local CHANGE = 2 / Animation_Speed | |
3995 | local WALKINGANIM = false | |
3996 | local VALUE1 = false | |
3997 | local VALUE2 = false | |
3998 | local ROBLOXIDLEANIMATION = IT("Animation") | |
3999 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
4000 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
4001 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
4002 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
4003 | WEAPONGUI.Name = "Weapon GUI" | |
4004 | local Effects = IT("Folder", Character) | |
4005 | Effects.Name = "Effects" | |
4006 | local ANIMATOR = Humanoid.Animator | |
4007 | local ANIMATE = Character.Animate | |
4008 | local UNANCHOR = true | |
4009 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
4010 | local SONGS = {1118967006} | |
4011 | local CHOICE = MRANDOM(1,4) | |
4012 | local ENERGYSOUND = 1417051162 | |
4013 | local BEAMSOUND = 1417056781 | |
4014 | local EXPLOSIONSOUND = 1417056081 | |
4015 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
4016 | local Speed = 35 | |
4017 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
4018 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
4019 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
4020 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
4021 | local DAMAGEMULTIPLIER = 1 | |
4022 | local ANIM = "Idle" | |
4023 | local ATTACK = false | |
4024 | local EQUIPPED = false | |
4025 | local HOLD = false | |
4026 | local COMBO = 1 | |
4027 | local Rooted = false | |
4028 | local SINE = 0 | |
4029 | local KEYHOLD = false | |
4030 | local CHANGE = 2 / Animation_Speed | |
4031 | local WALKINGANIM = false | |
4032 | local VALUE1 = false | |
4033 | local VALUE2 = false | |
4034 | local ROBLOXIDLEANIMATION = IT("Animation") | |
4035 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
4036 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
4037 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
4038 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
4039 | WEAPONGUI.Name = "BanishV3Gui" | |
4040 | local Weapon = IT("Model") | |
4041 | Weapon.Name = "Adds" | |
4042 | local Effects = IT("Folder", Weapon) | |
4043 | Effects.Name = "Effects" | |
4044 | local ANIMATOR = Humanoid.Animator | |
4045 | local ANIMATE = Character:FindFirstChild("Animate") | |
4046 | local UNANCHOR = true | |
4047 | local TOBANISH = {} | |
4048 | script.Parent = PlayerGui | |
4049 | ||
4050 | --//=================================\\ | |
4051 | --\\=================================// | |
4052 | ||
4053 | ||
4054 | --//=================================\\ | |
4055 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
4056 | --\\=================================// | |
4057 | ArtificialHB = Instance.new("BindableEvent", script) | |
4058 | ArtificialHB.Name = "ArtificialHB" | |
4059 | ||
4060 | script:WaitForChild("ArtificialHB") | |
4061 | ||
4062 | frame = Frame_Speed | |
4063 | tf = 0 | |
4064 | allowframeloss = false | |
4065 | tossremainder = false | |
4066 | lastframe = tick() | |
4067 | script.ArtificialHB:Fire() | |
4068 | ||
4069 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
4070 | tf = tf + s | |
4071 | if tf >= frame then | |
4072 | if allowframeloss then | |
4073 | script.ArtificialHB:Fire() | |
4074 | lastframe = tick() | |
4075 | else | |
4076 | for i = 1, math.floor(tf / frame) do | |
4077 | script.ArtificialHB:Fire() | |
4078 | end | |
4079 | lastframe = tick() | |
4080 | end | |
4081 | if tossremainder then | |
4082 | tf = 0 | |
4083 | else | |
4084 | tf = tf - frame * math.floor(tf / frame) | |
4085 | end | |
4086 | end | |
4087 | end) | |
4088 | ||
4089 | --//=================================\\ | |
4090 | --\\=================================// | |
4091 | ||
4092 | ||
4093 | --//=================================\\ | |
4094 | --|| SOME FUNCTIONS | |
4095 | --\\=================================// | |
4096 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
4097 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
4098 | end | |
4099 | ||
4100 | function PositiveAngle(NUMBER) | |
4101 | if NUMBER >= 0 then | |
4102 | NUMBER = 0 | |
4103 | end | |
4104 | return NUMBER | |
4105 | end | |
4106 | ||
4107 | function NegativeAngle(NUMBER) | |
4108 | if NUMBER <= 0 then | |
4109 | NUMBER = 0 | |
4110 | end | |
4111 | return NUMBER | |
4112 | end | |
4113 | ||
4114 | function Swait(NUMBER) | |
4115 | if NUMBER == 0 or NUMBER == nil then | |
4116 | ArtificialHB.Event:wait() | |
4117 | else | |
4118 | for i = 1, NUMBER do | |
4119 | ArtificialHB.Event:wait() | |
4120 | end | |
4121 | end | |
4122 | end | |
4123 | ||
4124 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
4125 | local NEWMESH = IT(MESH) | |
4126 | if MESH == "SpecialMesh" then | |
4127 | NEWMESH.MeshType = MESHTYPE | |
4128 | if MESHID ~= "nil" and MESHID ~= "" then | |
4129 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
4130 | end | |
4131 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
4132 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
4133 | end | |
4134 | end | |
4135 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
4136 | NEWMESH.Scale = SCALE | |
4137 | NEWMESH.Parent = PARENT | |
4138 | return NEWMESH | |
4139 | end | |
4140 | ||
4141 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
4142 | local NEWPART = IT("Part") | |
4143 | NEWPART.formFactor = FORMFACTOR | |
4144 | NEWPART.Reflectance = REFLECTANCE | |
4145 | NEWPART.Transparency = TRANSPARENCY | |
4146 | NEWPART.CanCollide = false | |
4147 | NEWPART.Locked = true | |
4148 | NEWPART.Anchored = true | |
4149 | if ANCHOR == false then | |
4150 | NEWPART.Anchored = false | |
4151 | end | |
4152 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
4153 | NEWPART.Name = NAME | |
4154 | NEWPART.Size = SIZE | |
4155 | NEWPART.Position = Torso.Position | |
4156 | NEWPART.Material = MATERIAL | |
4157 | NEWPART:BreakJoints() | |
4158 | NEWPART.Parent = PARENT | |
4159 | return NEWPART | |
4160 | end | |
4161 | ||
4162 | local function weldBetween(a, b) | |
4163 | local weldd = IT("Weld") | |
4164 | weldd.Part0 = a | |
4165 | weldd.Part1 = b | |
4166 | weldd.C0 = CF() | |
4167 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
4168 | weldd.Parent = a | |
4169 | return weldd | |
4170 | end | |
4171 | ||
4172 | ||
4173 | function QuaternionFromCFrame(cf) | |
4174 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
4175 | local trace = m00 + m11 + m22 | |
4176 | if trace > 0 then | |
4177 | local s = math.sqrt(1 + trace) | |
4178 | local recip = 0.5 / s | |
4179 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
4180 | else | |
4181 | local i = 0 | |
4182 | if m11 > m00 then | |
4183 | i = 1 | |
4184 | end | |
4185 | if m22 > (i == 0 and m00 or m11) then | |
4186 | i = 2 | |
4187 | end | |
4188 | if i == 0 then | |
4189 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
4190 | local recip = 0.5 / s | |
4191 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
4192 | elseif i == 1 then | |
4193 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
4194 | local recip = 0.5 / s | |
4195 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
4196 | elseif i == 2 then | |
4197 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
4198 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
4199 | end | |
4200 | end | |
4201 | end | |
4202 | ||
4203 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
4204 | local xs, ys, zs = x + x, y + y, z + z | |
4205 | local wx, wy, wz = w * xs, w * ys, w * zs | |
4206 | local xx = x * xs | |
4207 | local xy = x * ys | |
4208 | local xz = x * zs | |
4209 | local yy = y * ys | |
4210 | local yz = y * zs | |
4211 | local zz = z * zs | |
4212 | 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)) | |
4213 | end | |
4214 | ||
4215 | function QuaternionSlerp(a, b, t) | |
4216 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
4217 | local startInterp, finishInterp; | |
4218 | if cosTheta >= 0.0001 then | |
4219 | if (1 - cosTheta) > 0.0001 then | |
4220 | local theta = ACOS(cosTheta) | |
4221 | local invSinTheta = 1 / SIN(theta) | |
4222 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
4223 | finishInterp = SIN(t * theta) * invSinTheta | |
4224 | else | |
4225 | startInterp = 1 - t | |
4226 | finishInterp = t | |
4227 | end | |
4228 | else | |
4229 | if (1 + cosTheta) > 0.0001 then | |
4230 | local theta = ACOS(-cosTheta) | |
4231 | local invSinTheta = 1 / SIN(theta) | |
4232 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
4233 | finishInterp = SIN(t * theta) * invSinTheta | |
4234 | else | |
4235 | startInterp = t - 1 | |
4236 | finishInterp = t | |
4237 | end | |
4238 | end | |
4239 | 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 | |
4240 | end | |
4241 | ||
4242 | function Clerp(a, b, t) | |
4243 | local qa = {QuaternionFromCFrame(a)} | |
4244 | local qb = {QuaternionFromCFrame(b)} | |
4245 | local ax, ay, az = a.x, a.y, a.z | |
4246 | local bx, by, bz = b.x, b.y, b.z | |
4247 | local _t = 1 - t | |
4248 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
4249 | end | |
4250 | ||
4251 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
4252 | local frame = IT("Frame") | |
4253 | frame.BackgroundTransparency = TRANSPARENCY | |
4254 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
4255 | frame.Position = POSITION | |
4256 | frame.Size = SIZE | |
4257 | frame.BackgroundColor3 = COLOR | |
4258 | frame.BorderColor3 = BORDERCOLOR | |
4259 | frame.Name = NAME | |
4260 | frame.Parent = PARENT | |
4261 | return frame | |
4262 | end | |
4263 | ||
4264 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
4265 | local label = IT("TextLabel") | |
4266 | label.BackgroundTransparency = 1 | |
4267 | label.Size = UD2(1, 0, 1, 0) | |
4268 | label.Position = UD2(0, 0, 0, 0) | |
4269 | label.TextColor3 = TEXTCOLOR | |
4270 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
4271 | label.TextTransparency = TRANSPARENCY | |
4272 | label.FontSize = TEXTFONTSIZE | |
4273 | label.Font = TEXTFONT | |
4274 | label.BorderSizePixel = BORDERSIZEPIXEL | |
4275 | label.TextScaled = false | |
4276 | label.Text = TEXT | |
4277 | label.Name = NAME | |
4278 | label.Parent = PARENT | |
4279 | return label | |
4280 | end | |
4281 | ||
4282 | function NoOutlines(PART) | |
4283 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
4284 | end | |
4285 | ||
4286 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
4287 | local NEWWELD = IT(TYPE) | |
4288 | NEWWELD.Part0 = PART0 | |
4289 | NEWWELD.Part1 = PART1 | |
4290 | NEWWELD.C0 = C0 | |
4291 | NEWWELD.C1 = C1 | |
4292 | NEWWELD.Parent = PARENT | |
4293 | return NEWWELD | |
4294 | end | |
4295 | ||
4296 | local S = IT("Sound") | |
4297 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
4298 | local NEWSOUND = nil | |
4299 | coroutine.resume(coroutine.create(function() | |
4300 | NEWSOUND = S:Clone() | |
4301 | NEWSOUND.Parent = PARENT | |
4302 | NEWSOUND.Volume = VOLUME | |
4303 | NEWSOUND.Pitch = PITCH | |
4304 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
4305 | NEWSOUND:play() | |
4306 | if DOESLOOP == true then | |
4307 | NEWSOUND.Looped = true | |
4308 | else | |
4309 | repeat wait(1) until NEWSOUND.Playing == false | |
4310 | NEWSOUND:remove() | |
4311 | end | |
4312 | end)) | |
4313 | return NEWSOUND | |
4314 | end | |
4315 | ||
4316 | function CFrameFromTopBack(at, top, back) | |
4317 | local right = top:Cross(back) | |
4318 | 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) | |
4319 | end | |
4320 | ||
4321 | --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}) | |
4322 | function WACKYEFFECT(Table) | |
4323 | local TYPE = (Table.EffectType or "Sphere") | |
4324 | local SIZE = (Table.Size or VT(1,1,1)) | |
4325 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
4326 | local TRANSPARENCY = (Table.Transparency or 0) | |
4327 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
4328 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
4329 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
4330 | local ROTATION1 = (Table.RotationX or 0) | |
4331 | local ROTATION2 = (Table.RotationY or 0) | |
4332 | local ROTATION3 = (Table.RotationZ or 0) | |
4333 | local MATERIAL = (Table.Material or "Neon") | |
4334 | local COLOR = (Table.Color or C3(1,1,1)) | |
4335 | local TIME = (Table.Time or 45) | |
4336 | local SOUNDID = (Table.SoundID or nil) | |
4337 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
4338 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
4339 | coroutine.resume(coroutine.create(function() | |
4340 | local PLAYSSOUND = false | |
4341 | local SOUND = nil | |
4342 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
4343 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
4344 | PLAYSSOUND = true | |
4345 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
4346 | end | |
4347 | EFFECT.Color = COLOR | |
4348 | local MSH = nil | |
4349 | if TYPE == "Sphere" then | |
4350 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
4351 | elseif TYPE == "Block" then | |
4352 | MSH = IT("BlockMesh",EFFECT) | |
4353 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
4354 | elseif TYPE == "Wave" then | |
4355 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
4356 | elseif TYPE == "Ring" then | |
4357 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
4358 | elseif TYPE == "Slash" then | |
4359 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
4360 | elseif TYPE == "Round Slash" then | |
4361 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
4362 | elseif TYPE == "Swirl" then | |
4363 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
4364 | elseif TYPE == "Skull" then | |
4365 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
4366 | elseif TYPE == "Crystal" then | |
4367 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
4368 | end | |
4369 | if MSH ~= nil then | |
4370 | local MOVESPEED = nil | |
4371 | if MOVEDIRECTION ~= nil then | |
4372 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
4373 | end | |
4374 | local GROWTH = SIZE - ENDSIZE | |
4375 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
4376 | if TYPE == "Block" then | |
4377 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
4378 | else | |
4379 | EFFECT.CFrame = CFRAME | |
4380 | end | |
4381 | for LOOP = 1, TIME+1 do | |
4382 | Swait() | |
4383 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
4384 | if TYPE == "Wave" then | |
4385 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
4386 | end | |
4387 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
4388 | if TYPE == "Block" then | |
4389 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
4390 | else | |
4391 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
4392 | end | |
4393 | if MOVEDIRECTION ~= nil then | |
4394 | local ORI = EFFECT.Orientation | |
4395 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
4396 | EFFECT.Orientation = ORI | |
4397 | end | |
4398 | end | |
4399 | if PLAYSSOUND == false then | |
4400 | EFFECT:remove() | |
4401 | else | |
4402 | SOUND.Stopped:Connect(function() | |
4403 | EFFECT:remove() | |
4404 | end) | |
4405 | end | |
4406 | else | |
4407 | if PLAYSSOUND == false then | |
4408 | EFFECT:remove() | |
4409 | else | |
4410 | repeat Swait() until SOUND.Playing == false | |
4411 | EFFECT:remove() | |
4412 | end | |
4413 | end | |
4414 | end)) | |
4415 | end | |
4416 | ||
4417 | local LEFTWINGS = {} | |
4418 | local RIGHTWINGS = {} | |
4419 | local BODY = {} | |
4420 | ||
4421 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Wing", VT(1,1,0.35),false) | |
4422 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
4423 | ||
4424 | local ANGLE = 35 | |
4425 | for i = 1, 5 do | |
4426 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Wing", VT(0.15,2+(i/2),0.15),false) | |
4427 | 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)) | |
4428 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.25,1,0.25),false) | |
4429 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
4430 | ANGLE = ANGLE - 15 | |
4431 | table.insert(LEFTWINGS,WingWeld) | |
4432 | end | |
4433 | ||
4434 | ANGLE = 35 | |
4435 | for i = 1, 5 do | |
4436 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.15,2+(i/2),0.15),false) | |
4437 | 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)) | |
4438 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false) | |
4439 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
4440 | ANGLE = ANGLE - 15 | |
4441 | table.insert(RIGHTWINGS,WingWeld) | |
4442 | end | |
4443 | ||
4444 | function MakeForm(PART,TYPE) | |
4445 | if TYPE == "Cyl" then | |
4446 | local MSH = IT("CylinderMesh",PART) | |
4447 | elseif TYPE == "Ball" then | |
4448 | local MSH = IT("SpecialMesh",PART) | |
4449 | MSH.MeshType = "Sphere" | |
4450 | elseif TYPE == "Wedge" then | |
4451 | local MSH = IT("SpecialMesh",PART) | |
4452 | MSH.MeshType = "Wedge" | |
4453 | end | |
4454 | end | |
4455 | ||
4456 | Debris = game:GetService("Debris") | |
4457 | ||
4458 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
4459 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
4460 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
4461 | end | |
4462 | ||
4463 | function turnto(position) | |
4464 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
4465 | end | |
4466 | ||
4467 | function SpawnTrail(FROM,TO,BIG) | |
4468 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0)) | |
4469 | MakeForm(TRAIL,"Cyl") | |
4470 | local DIST = (FROM - TO).Magnitude | |
4471 | if BIG == true then | |
4472 | TRAIL.Size = VT(0.5,DIST,0.5) | |
4473 | else | |
4474 | TRAIL.Size = VT(0.25,DIST,0.25) | |
4475 | end | |
4476 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
4477 | coroutine.resume(coroutine.create(function() | |
4478 | for i = 1, 5 do | |
4479 | Swait() | |
4480 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
4481 | end | |
4482 | TRAIL:remove() | |
4483 | end)) | |
4484 | end | |
4485 | ||
4486 | local asd = Instance.new("ParticleEmitter") | |
4487 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
4488 | asd.LightEmission = .1 | |
4489 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
4490 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
4491 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
4492 | asd.Transparency = bbb | |
4493 | asd.Size = aaa | |
4494 | asd.ZOffset = .9 | |
4495 | asd.Acceleration = Vector3.new(0, -15, 0) | |
4496 | asd.LockedToPart = false | |
4497 | asd.EmissionDirection = "Back" | |
4498 | asd.Lifetime = NumberRange.new(1, 2) | |
4499 | asd.Rotation = NumberRange.new(-100, 100) | |
4500 | asd.RotSpeed = NumberRange.new(-100, 100) | |
4501 | asd.Speed = NumberRange.new(10) | |
4502 | asd.Enabled = false | |
4503 | asd.VelocitySpread = 999 | |
4504 | ||
4505 | function getbloody(victim,amount) | |
4506 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
4507 | PART.CFrame = victim.CFrame | |
4508 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
4509 | Debris:AddItem(PART,5) | |
4510 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
4511 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
4512 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
4513 | local prtcl = asd:Clone() | |
4514 | prtcl.Parent = PART | |
4515 | prtcl:Emit(amount*10) | |
4516 | end | |
4517 | ||
4518 | local Particle = IT("ParticleEmitter",nil) | |
4519 | Particle.Enabled = false | |
4520 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
4521 | Particle.LightEmission = 0.5 | |
4522 | Particle.Rate = 150 | |
4523 | Particle.ZOffset = 1 | |
4524 | Particle.Rotation = NumberRange.new(-180, 180) | |
4525 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
4526 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
4527 | Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0)) | |
4528 | ||
4529 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
4530 | function ParticleEmitter(Table) | |
4531 | local PRTCL = Particle:Clone() | |
4532 | local Speed = Table.Speed or 5 | |
4533 | local Drag = Table.Drag or 0 | |
4534 | local Size1 = Table.Size1 or 1 | |
4535 | local Size2 = Table.Size2 or 5 | |
4536 | local Lifetime1 = Table.Lifetime1 or 1 | |
4537 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
4538 | local Parent = Table.Parent or Torso | |
4539 | local Emit = Table.Emit or 100 | |
4540 | local Offset = Table.Offset or 360 | |
4541 | local Acel = Table.Acel or VT(0,0,0) | |
4542 | local Enabled = Table.Enabled or false | |
4543 | PRTCL.Parent = Parent | |
4544 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
4545 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
4546 | PRTCL.Speed = NumberRange.new(Speed) | |
4547 | PRTCL.VelocitySpread = Offset | |
4548 | PRTCL.Drag = Drag | |
4549 | PRTCL.Acceleration = Acel | |
4550 | if Enabled == false then | |
4551 | PRTCL:Emit(Emit) | |
4552 | Debris:AddItem(PRTCL,Lifetime2) | |
4553 | else | |
4554 | PRTCL.Enabled = true | |
4555 | end | |
4556 | return PRTCL | |
4557 | end | |
4558 | ||
4559 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
4560 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
4561 | end | |
4562 | ||
4563 | function PositiveAngle(NUMBER) | |
4564 | if NUMBER >= 0 then | |
4565 | NUMBER = 0 | |
4566 | end | |
4567 | return NUMBER | |
4568 | end | |
4569 | ||
4570 | function NegativeAngle(NUMBER) | |
4571 | if NUMBER <= 0 then | |
4572 | NUMBER = 0 | |
4573 | end | |
4574 | return NUMBER | |
4575 | end | |
4576 | ||
4577 | function Swait(NUMBER) | |
4578 | if NUMBER == 0 or NUMBER == nil then | |
4579 | ArtificialHB.Event:wait() | |
4580 | else | |
4581 | for i = 1, NUMBER do | |
4582 | ArtificialHB.Event:wait() | |
4583 | end | |
4584 | end | |
4585 | end | |
4586 | ||
4587 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
4588 | local NEWMESH = IT(MESH) | |
4589 | if MESH == "SpecialMesh" then | |
4590 | NEWMESH.MeshType = MESHTYPE | |
4591 | if MESHID ~= "nil" and MESHID ~= "" then | |
4592 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
4593 | end | |
4594 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
4595 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
4596 | end | |
4597 | end | |
4598 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
4599 | NEWMESH.Scale = SCALE | |
4600 | NEWMESH.Parent = PARENT | |
4601 | return NEWMESH | |
4602 | end | |
4603 | ||
4604 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
4605 | local NEWPART = IT("Part") | |
4606 | NEWPART.formFactor = FORMFACTOR | |
4607 | NEWPART.Reflectance = REFLECTANCE | |
4608 | NEWPART.Transparency = TRANSPARENCY | |
4609 | NEWPART.CanCollide = false | |
4610 | NEWPART.Locked = true | |
4611 | NEWPART.Anchored = true | |
4612 | if ANCHOR == false then | |
4613 | NEWPART.Anchored = false | |
4614 | end | |
4615 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
4616 | NEWPART.Name = NAME | |
4617 | NEWPART.Size = SIZE | |
4618 | NEWPART.Position = Torso.Position | |
4619 | NEWPART.Material = MATERIAL | |
4620 | NEWPART:BreakJoints() | |
4621 | NEWPART.Parent = PARENT | |
4622 | return NEWPART | |
4623 | end | |
4624 | ||
4625 | local function weldBetween(a, b) | |
4626 | local weldd = Instance.new("ManualWeld") | |
4627 | weldd.Part0 = a | |
4628 | weldd.Part1 = b | |
4629 | weldd.C0 = CFrame.new() | |
4630 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
4631 | weldd.Parent = a | |
4632 | return weldd | |
4633 | end | |
4634 | ||
4635 | ||
4636 | function QuaternionFromCFrame(cf) | |
4637 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
4638 | local trace = m00 + m11 + m22 | |
4639 | if trace > 0 then | |
4640 | local s = math.sqrt(1 + trace) | |
4641 | local recip = 0.5 / s | |
4642 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
4643 | else | |
4644 | local i = 0 | |
4645 | if m11 > m00 then | |
4646 | i = 1 | |
4647 | end | |
4648 | if m22 > (i == 0 and m00 or m11) then | |
4649 | i = 2 | |
4650 | end | |
4651 | if i == 0 then | |
4652 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
4653 | local recip = 0.5 / s | |
4654 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
4655 | elseif i == 1 then | |
4656 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
4657 | local recip = 0.5 / s | |
4658 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
4659 | elseif i == 2 then | |
4660 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
4661 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
4662 | end | |
4663 | end | |
4664 | end | |
4665 | ||
4666 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
4667 | local xs, ys, zs = x + x, y + y, z + z | |
4668 | local wx, wy, wz = w * xs, w * ys, w * zs | |
4669 | local xx = x * xs | |
4670 | local xy = x * ys | |
4671 | local xz = x * zs | |
4672 | local yy = y * ys | |
4673 | local yz = y * zs | |
4674 | local zz = z * zs | |
4675 | 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)) | |
4676 | end | |
4677 | ||
4678 | function QuaternionSlerp(a, b, t) | |
4679 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
4680 | local startInterp, finishInterp; | |
4681 | if cosTheta >= 0.0001 then | |
4682 | if (1 - cosTheta) > 0.0001 then | |
4683 | local theta = ACOS(cosTheta) | |
4684 | local invSinTheta = 1 / SIN(theta) | |
4685 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
4686 | finishInterp = SIN(t * theta) * invSinTheta | |
4687 | else | |
4688 | startInterp = 1 - t | |
4689 | finishInterp = t | |
4690 | end | |
4691 | else | |
4692 | if (1 + cosTheta) > 0.0001 then | |
4693 | local theta = ACOS(-cosTheta) | |
4694 | local invSinTheta = 1 / SIN(theta) | |
4695 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
4696 | finishInterp = SIN(t * theta) * invSinTheta | |
4697 | else | |
4698 | startInterp = t - 1 | |
4699 | finishInterp = t | |
4700 | end | |
4701 | end | |
4702 | 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 | |
4703 | end | |
4704 | ||
4705 | function Clerp(a, b, t) | |
4706 | local qa = {QuaternionFromCFrame(a)} | |
4707 | local qb = {QuaternionFromCFrame(b)} | |
4708 | local ax, ay, az = a.x, a.y, a.z | |
4709 | local bx, by, bz = b.x, b.y, b.z | |
4710 | local _t = 1 - t | |
4711 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
4712 | end | |
4713 | ||
4714 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
4715 | local frame = IT("Frame") | |
4716 | frame.BackgroundTransparency = TRANSPARENCY | |
4717 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
4718 | frame.Position = POSITION | |
4719 | frame.Size = SIZE | |
4720 | frame.BackgroundColor3 = COLOR | |
4721 | frame.BorderColor3 = BORDERCOLOR | |
4722 | frame.Name = NAME | |
4723 | frame.Parent = PARENT | |
4724 | return frame | |
4725 | end | |
4726 | ||
4727 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
4728 | local label = IT("TextLabel") | |
4729 | label.BackgroundTransparency = 1 | |
4730 | label.Size = UD2(1, 0, 1, 0) | |
4731 | label.Position = UD2(0, 0, 0, 0) | |
4732 | label.TextColor3 = TEXTCOLOR | |
4733 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
4734 | label.TextTransparency = TRANSPARENCY | |
4735 | label.FontSize = TEXTFONTSIZE | |
4736 | label.Font = TEXTFONT | |
4737 | label.BorderSizePixel = BORDERSIZEPIXEL | |
4738 | label.TextScaled = false | |
4739 | label.Text = TEXT | |
4740 | label.Name = NAME | |
4741 | label.Parent = PARENT | |
4742 | return label | |
4743 | end | |
4744 | ||
4745 | function NoOutlines(PART) | |
4746 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
4747 | end | |
4748 | ||
4749 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
4750 | local NEWWELD = IT(TYPE) | |
4751 | NEWWELD.Part0 = PART0 | |
4752 | NEWWELD.Part1 = PART1 | |
4753 | NEWWELD.C0 = C0 | |
4754 | NEWWELD.C1 = C1 | |
4755 | NEWWELD.Parent = PARENT | |
4756 | return NEWWELD | |
4757 | end | |
4758 | ||
4759 | local S = IT("Sound") | |
4760 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
4761 | local NEWSOUND = nil | |
4762 | coroutine.resume(coroutine.create(function() | |
4763 | NEWSOUND = S:Clone() | |
4764 | NEWSOUND.Parent = PARENT | |
4765 | NEWSOUND.Volume = VOLUME | |
4766 | NEWSOUND.Pitch = PITCH | |
4767 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
4768 | NEWSOUND:play() | |
4769 | if DOESLOOP == true then | |
4770 | NEWSOUND.Looped = true | |
4771 | else | |
4772 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
4773 | NEWSOUND:remove() | |
4774 | end | |
4775 | end)) | |
4776 | return NEWSOUND | |
4777 | end | |
4778 | ||
4779 | function CFrameFromTopBack(at, top, back) | |
4780 | local right = top:Cross(back) | |
4781 | 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) | |
4782 | end | |
4783 | ||
4784 | --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}) | |
4785 | function WACKYEFFECT(Table) | |
4786 | local TYPE = (Table.EffectType or "Sphere") | |
4787 | local SIZE = (Table.Size or VT(1,1,1)) | |
4788 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
4789 | local TRANSPARENCY = (Table.Transparency or 0) | |
4790 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
4791 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
4792 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
4793 | local ROTATION1 = (Table.RotationX or 0) | |
4794 | local ROTATION2 = (Table.RotationY or 0) | |
4795 | local ROTATION3 = (Table.RotationZ or 0) | |
4796 | local MATERIAL = (Table.Material or "Neon") | |
4797 | local COLOR = (Table.Color or C3(1,1,1)) | |
4798 | local TIME = (Table.Time or 45) | |
4799 | local SOUNDID = (Table.SoundID or nil) | |
4800 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
4801 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
4802 | coroutine.resume(coroutine.create(function() | |
4803 | local PLAYSSOUND = false | |
4804 | local SOUND = nil | |
4805 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
4806 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
4807 | PLAYSSOUND = true | |
4808 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
4809 | end | |
4810 | EFFECT.Color = COLOR | |
4811 | local MSH = nil | |
4812 | if TYPE == "Sphere" then | |
4813 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
4814 | elseif TYPE == "Block" then | |
4815 | MSH = IT("BlockMesh",EFFECT) | |
4816 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
4817 | elseif TYPE == "Wave" then | |
4818 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
4819 | elseif TYPE == "Ring" then | |
4820 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
4821 | elseif TYPE == "Slash" then | |
4822 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
4823 | elseif TYPE == "Round Slash" then | |
4824 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
4825 | elseif TYPE == "Swirl" then | |
4826 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
4827 | elseif TYPE == "Skull" then | |
4828 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
4829 | elseif TYPE == "Crystal" then | |
4830 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
4831 | end | |
4832 | if MSH ~= nil then | |
4833 | local MOVESPEED = nil | |
4834 | if MOVEDIRECTION ~= nil then | |
4835 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
4836 | end | |
4837 | local GROWTH = SIZE - ENDSIZE | |
4838 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
4839 | if TYPE == "Block" then | |
4840 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
4841 | else | |
4842 | EFFECT.CFrame = CFRAME | |
4843 | end | |
4844 | for LOOP = 1, TIME+1 do | |
4845 | Swait() | |
4846 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
4847 | if TYPE == "Wave" then | |
4848 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
4849 | end | |
4850 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
4851 | if TYPE == "Block" then | |
4852 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
4853 | else | |
4854 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
4855 | end | |
4856 | if MOVEDIRECTION ~= nil then | |
4857 | local ORI = EFFECT.Orientation | |
4858 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
4859 | EFFECT.Orientation = ORI | |
4860 | end | |
4861 | end | |
4862 | if PLAYSSOUND == false then | |
4863 | EFFECT:remove() | |
4864 | else | |
4865 | SOUND.Stopped:Connect(function() | |
4866 | EFFECT:remove() | |
4867 | end) | |
4868 | end | |
4869 | else | |
4870 | if PLAYSSOUND == false then | |
4871 | EFFECT:remove() | |
4872 | else | |
4873 | repeat Swait() until SOUND.Playing == false | |
4874 | EFFECT:remove() | |
4875 | end | |
4876 | end | |
4877 | end)) | |
4878 | end | |
4879 | ||
4880 | function MakeForm(PART,TYPE) | |
4881 | if TYPE == "Cyl" then | |
4882 | local MSH = IT("CylinderMesh",PART) | |
4883 | elseif TYPE == "Ball" then | |
4884 | local MSH = IT("SpecialMesh",PART) | |
4885 | MSH.MeshType = "Sphere" | |
4886 | elseif TYPE == "Wedge" then | |
4887 | local MSH = IT("SpecialMesh",PART) | |
4888 | MSH.MeshType = "Wedge" | |
4889 | end | |
4890 | end | |
4891 | ||
4892 | function SpawnTrail(FROM,TO,BIG) | |
4893 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
4894 | MakeForm(TRAIL,"Cyl") | |
4895 | local DIST = (FROM - TO).Magnitude | |
4896 | if BIG == true then | |
4897 | TRAIL.Size = VT(0.5,DIST,0.5) | |
4898 | else | |
4899 | TRAIL.Size = VT(0.25,DIST,0.25) | |
4900 | end | |
4901 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
4902 | coroutine.resume(coroutine.create(function() | |
4903 | for i = 1, 5 do | |
4904 | Swait() | |
4905 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
4906 | end | |
4907 | TRAIL:remove() | |
4908 | end)) | |
4909 | end | |
4910 | ||
4911 | Debris = game:GetService("Debris") | |
4912 | ||
4913 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
4914 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
4915 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
4916 | end | |
4917 | ||
4918 | function turnto(position) | |
4919 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
4920 | end | |
4921 | ||
4922 | --//=================================\\ | |
4923 | --|| WEAPON CREATION | |
4924 | --\\=================================// | |
4925 | if Character:FindFirstChildOfClass("Accessory") then | |
4926 | Character:FindFirstChildOfClass("Accessory"):remove() | |
4927 | elseif Character:FindFirstChildOfClass("Hat") then | |
4928 | Character:FindFirstChildOfClass("Hat"):remove() | |
4929 | end | |
4930 | if Head:FindFirstChild("face") then | |
4931 | Head.face.Texture = "rbxassetid://" | |
4932 | end | |
4933 | ||
4934 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
4935 | PRT.Color = C3(0,0,0) | |
4936 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
4937 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
4938 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
4939 | PRT.Color = C3(0,0,0) | |
4940 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
4941 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
4942 | ||
4943 | local LASTPART = Head | |
4944 | for i = 1, 20 do | |
4945 | local MATH = (1-(i/25)) | |
4946 | if LASTPART == Head then | |
4947 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
4948 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
4949 | LASTPART = Horn | |
4950 | Horn.Color = C3((i*3-3)/255,0,0) | |
4951 | else | |
4952 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
4953 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
4954 | LASTPART = Horn | |
4955 | Horn.Color = C3((i*3-3)/255,0,0) | |
4956 | end | |
4957 | end | |
4958 | local LASTPART = Head | |
4959 | for i = 1, 20 do | |
4960 | local MATH = (1-(i/25)) | |
4961 | if LASTPART == Head then | |
4962 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
4963 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
4964 | LASTPART = Horn | |
4965 | Horn.Color = C3((i*3-3)/255,0,0) | |
4966 | else | |
4967 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
4968 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
4969 | LASTPART = Horn | |
4970 | Horn.Color = C3((i*3-3)/255,0,0) | |
4971 | end | |
4972 | end | |
4973 | ||
4974 | local A = IT("Attachment",Torso) | |
4975 | A.Position = VT(1,1.3,0) | |
4976 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
4977 | local B = IT("Attachment",Torso) | |
4978 | B.Position = VT(-1.3,-0.6,0) | |
4979 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
4980 | local ChainLink = IT("Beam",Torso) | |
4981 | ChainLink.Texture = "rbxassetid://73042633" | |
4982 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
4983 | ChainLink.TextureSpeed = 1 | |
4984 | ChainLink.FaceCamera = true | |
4985 | ChainLink.Width0 = 1 | |
4986 | ChainLink.Width1 = 1 | |
4987 | ChainLink.TextureLength = 3 | |
4988 | ChainLink.Attachment0 = A | |
4989 | ChainLink.Attachment1 = B | |
4990 | ChainLink.CurveSize0 = 1.6 | |
4991 | ChainLink.CurveSize1 = 1.6 | |
4992 | ChainLink.FaceCamera = true | |
4993 | ChainLink.Transparency = NumberSequence.new(0) | |
4994 | local ChainLink = IT("Beam",Torso) | |
4995 | ChainLink.Texture = "rbxassetid://73042633" | |
4996 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
4997 | ChainLink.TextureSpeed = 1 | |
4998 | ChainLink.FaceCamera = true | |
4999 | ChainLink.Width0 = 1 | |
5000 | ChainLink.Width1 = 1 | |
5001 | ChainLink.TextureLength = 3 | |
5002 | ChainLink.Attachment0 = B | |
5003 | ChainLink.Attachment1 = A | |
5004 | ChainLink.CurveSize0 = 1.6 | |
5005 | ChainLink.CurveSize1 = 1.6 | |
5006 | ChainLink.FaceCamera = true | |
5007 | ChainLink.Transparency = NumberSequence.new(0) | |
5008 | local A = IT("Attachment",Torso) | |
5009 | A.Position = VT(1.3,-0.85,0) | |
5010 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
5011 | local B = IT("Attachment",Torso) | |
5012 | B.Position = VT(-1,2,0) | |
5013 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
5014 | local ChainLink = IT("Beam",Torso) | |
5015 | ChainLink.Texture = "rbxassetid://73042633" | |
5016 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
5017 | ChainLink.TextureSpeed = 1 | |
5018 | ChainLink.FaceCamera = true | |
5019 | ChainLink.Width0 = 1 | |
5020 | ChainLink.Width1 = 1 | |
5021 | ChainLink.TextureLength = 3 | |
5022 | ChainLink.Attachment0 = A | |
5023 | ChainLink.Attachment1 = B | |
5024 | ChainLink.CurveSize0 = 1.3 | |
5025 | ChainLink.CurveSize1 = 1.3 | |
5026 | ChainLink.FaceCamera = true | |
5027 | ChainLink.Transparency = NumberSequence.new(0) | |
5028 | local ChainLink = IT("Beam",Torso) | |
5029 | ChainLink.Texture = "rbxassetid://73042633" | |
5030 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
5031 | ChainLink.TextureSpeed = 1 | |
5032 | ChainLink.FaceCamera = true | |
5033 | ChainLink.Width0 = 1 | |
5034 | ChainLink.Width1 = 1 | |
5035 | ChainLink.TextureLength = 3 | |
5036 | ChainLink.Attachment0 = B | |
5037 | ChainLink.Attachment1 = A | |
5038 | ChainLink.CurveSize0 = 1.3 | |
5039 | ChainLink.CurveSize1 = 1.3 | |
5040 | ChainLink.FaceCamera = true | |
5041 | ChainLink.Transparency = NumberSequence.new(0) | |
5042 | ||
5043 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
5044 | PRT.LockedToPart = true | |
5045 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
5046 | PRT.LockedToPart = true | |
5047 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
5048 | PRT.LockedToPart = true | |
5049 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
5050 | PRT.LockedToPart = true | |
5051 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
5052 | PRT.LockedToPart = true | |
5053 | ||
5054 | for _, c in pairs(Character:GetDescendants()) do | |
5055 | if c and c.Parent then | |
5056 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
5057 | local ACCESSORY = c.Parent | |
5058 | c.Parent = Character | |
5059 | if c then | |
5060 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
5061 | weldBetween(Head,c) | |
5062 | else | |
5063 | weldBetween(Torso,c) | |
5064 | end | |
5065 | end | |
5066 | ACCESSORY:remove() | |
5067 | elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
5068 | c.Material = "Neon" | |
5069 | c.Color = C3(0,0,0) | |
5070 | if c:FindFirstChildOfClass("SpecialMesh") then | |
5071 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
5072 | end | |
5073 | if c == Head then | |
5074 | if c:FindFirstChild("face") then | |
5075 | c.face:remove() | |
5076 | end | |
5077 | end | |
5078 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
5079 | c.Color = C3(58,125,21) | |
5080 | c.Material = "Neon" | |
5081 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
5082 | c:remove() | |
5083 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
5084 | c:remove() | |
5085 | end | |
5086 | end | |
5087 | end | |
5088 | local BODY = {} | |
5089 | for _, c in pairs(Character:GetDescendants()) do | |
5090 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
5091 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
5092 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
5093 | end | |
5094 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
5095 | elseif c:IsA("JointInstance") then | |
5096 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
5097 | end | |
5098 | end | |
5099 | function refit() | |
5100 | Character.Parent = workspace | |
5101 | for e = 1, #BODY do | |
5102 | if BODY[e] ~= nil then | |
5103 | local STUFF = BODY[e] | |
5104 | local PART = STUFF[1] | |
5105 | local PARENT = STUFF[2] | |
5106 | local MATERIAL = STUFF[3] | |
5107 | local COLOR = STUFF[4] | |
5108 | local TRANSPARENCY = STUFF[5] | |
5109 | --local SIZE = STUFF[6] | |
5110 | local NAME = STUFF[7] | |
5111 | if PART.ClassName == "Part" and PART ~= RootPart then | |
5112 | PART.Material = MATERIAL | |
5113 | PART.Transparency = TRANSPARENCY | |
5114 | PART.Name = NAME | |
5115 | end | |
5116 | if PART.Parent ~= PARENT then | |
5117 | Humanoid:remove() | |
5118 | PART.Parent = PARENT | |
5119 | Humanoid = IT("Humanoid",Character) | |
5120 | end | |
5121 | end | |
5122 | end | |
5123 | end | |
5124 | ||
5125 | local SKILLTEXTCOLOR = C3(0,0,0) | |
5126 | local SKILLFONT = "Fantasy" | |
5127 | local SKILLTEXTSIZE = 6 | |
5128 | ||
5129 | Humanoid.Died:connect(function() | |
5130 | refit() | |
5131 | end) | |
5132 | ||
5133 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
5134 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
5135 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
5136 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
5137 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
5138 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
5139 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
5140 | ||
5141 | ||
5142 | function swait(NUMBER) | |
5143 | if NUMBER == 0 or NUMBER == nil then | |
5144 | ArtificialHB.Event:wait() | |
5145 | else | |
5146 | for i = 1, NUMBER do | |
5147 | ArtificialHB.Event:wait() | |
5148 | end | |
5149 | end | |
5150 | end | |
5151 | ||
5152 | function chatfunc(text) | |
5153 | local chat = coroutine.wrap(function() | |
5154 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
5155 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
5156 | end | |
5157 | local Bill = Instance.new("BillboardGui",Character) | |
5158 | Bill.Size = UDim2.new(0,100,0,40) | |
5159 | Bill.StudsOffset = Vector3.new(0,3,0) | |
5160 | Bill.Adornee = Character.Head | |
5161 | Bill.Name = "TalkingBillBoard" | |
5162 | local Hehe = Instance.new("TextLabel",Bill) | |
5163 | Hehe.BackgroundTransparency = 1 | |
5164 | Hehe.BorderSizePixel = 0 | |
5165 | Hehe.Text = "" | |
5166 | Hehe.Font = "Garamond" | |
5167 | Hehe.TextSize = 40 | |
5168 | Hehe.TextStrokeTransparency = 0 | |
5169 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
5170 | coroutine.resume(coroutine.create(function() | |
5171 | while Hehe ~= nil do | |
5172 | swait() | |
5173 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
5174 | Hehe.Rotation = math.random(-5,5) | |
5175 | Hehe.TextColor3 = Color3.new(0,0,0) | |
5176 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
5177 | end | |
5178 | end)) | |
5179 | for i = 1,string.len(text),1 do | |
5180 | swait() | |
5181 | Hehe.Text = string.sub(text,1,i) | |
5182 | end | |
5183 | swait(90)--Re[math.random(1, 93)] | |
5184 | for i = 0, 1, .025 do | |
5185 | swait() | |
5186 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
5187 | Hehe.TextStrokeTransparency = i | |
5188 | Hehe.TextTransparency = i | |
5189 | end | |
5190 | Bill:Destroy() | |
5191 | end) | |
5192 | chat() | |
5193 | end | |
5194 | ||
5195 | function onChatted(msg) | |
5196 | chatfunc(msg) | |
5197 | end | |
5198 | ||
5199 | Player.Chatted:connect(onChatted) | |
5200 | ||
5201 | chatfunc("I have fallen from the good hand") | |
5202 | wait(4) | |
5203 | chatfunc("I had nothing left") | |
5204 | wait(4) | |
5205 | chatfunc("now I have ascended from hell to erase you") | |
5206 | Head:ClearAllChildren() | |
5207 | Head.Transparency = 1 | |
5208 | ||
5209 | function particles(art) | |
5210 | local EyeSizes={ | |
5211 | NumberSequenceKeypoint.new(0,0.3,0), | |
5212 | NumberSequenceKeypoint.new(1,0,0) | |
5213 | } | |
5214 | local EyeTrans={ | |
5215 | NumberSequenceKeypoint.new(0,0.2,0), | |
5216 | NumberSequenceKeypoint.new(1,1,0) | |
5217 | } | |
5218 | local PE=Instance.new("ParticleEmitter",art) | |
5219 | PE.LightEmission=.4 | |
5220 | PE.Size=NumberSequence.new(EyeSizes) | |
5221 | PE.Transparency=NumberSequence.new(EyeTrans) | |
5222 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
5223 | PE.Rotation=NumberRange.new(0,360) | |
5224 | PE.Rate=999 | |
5225 | PE.Acceleration = Vector3.new(0,75,0) | |
5226 | PE.Drag = 5 | |
5227 | PE.Speed = NumberRange.new(0,0,0) | |
5228 | PE.Texture="http://www.roblox.com/asset/?id=1179557490" | |
5229 | PE.ZOffset = -1.5 | |
5230 | PE.Name = "PE" | |
5231 | end | |
5232 | ||
5233 | local SKULL = CreatePart(3, Character, "Wood", 0,0, "Really black", "FACE", VT(0,0,0),false) | |
5234 | CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5235 | CreateMesh("SpecialMesh", SKULL, "FileMesh", "14028428", "14027832", VT(1,1,1), VT(0, 0.2, -0.35)) | |
5236 | ||
5237 | local SKULL = CreatePart(3, Character, "Wood", 0,0, "Really black", "FACE", VT(0,0,0),false) | |
5238 | CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5239 | CreateMesh("SpecialMesh", SKULL, "FileMesh", "1271547", "186320934", VT(1,1,1)*1.5, VT(0, 1.365, 0)) | |
5240 | ||
5241 | local Part = CreatePart(3, Head, "Neon", 0,0, "Pearl", "Eye", VT(0.2,0.2,0.2),false) | |
5242 | Part.Color = C3(1,1,1) | |
5243 | CreateWeldOrSnapOrMotor("Weld", Part, Head, Part, CF(0.35, 0.1, -0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5244 | MakeForm(Part,"Ball") | |
5245 | ||
5246 | local Particle = IT("ParticleEmitter",nil) | |
5247 | Particle.Enabled = false | |
5248 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
5249 | Particle.LightEmission = 0.5 | |
5250 | Particle.Rate = 150 | |
5251 | Particle.ZOffset = 0.2 | |
5252 | Particle.Rotation = NumberRange.new(-180, 180) | |
5253 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
5254 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
5255 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
5256 | ||
5257 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
5258 | function ParticleEmitter(Table) | |
5259 | local PRTCL = Particle:Clone() | |
5260 | local Speed = Table.Speed or 5 | |
5261 | local Drag = Table.Drag or 0 | |
5262 | local Size1 = Table.Size1 or 1 | |
5263 | local Size2 = Table.Size2 or 5 | |
5264 | local Lifetime1 = Table.Lifetime1 or 1 | |
5265 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
5266 | local Parent = Table.Parent or Torso | |
5267 | local Emit = Table.Emit or 100 | |
5268 | local Offset = Table.Offset or 360 | |
5269 | local Acel = Table.Acel or VT(0,0,0) | |
5270 | local Enabled = Table.Enabled or false | |
5271 | PRTCL.Parent = Parent | |
5272 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
5273 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
5274 | PRTCL.Speed = NumberRange.new(Speed) | |
5275 | PRTCL.VelocitySpread = Offset | |
5276 | PRTCL.Drag = Drag | |
5277 | PRTCL.Acceleration = Acel | |
5278 | if Enabled == false then | |
5279 | PRTCL:Emit(Emit) | |
5280 | Debris:AddItem(PRTCL,Lifetime2) | |
5281 | else | |
5282 | PRTCL.Enabled = true | |
5283 | end | |
5284 | return PRTCL | |
5285 | end | |
5286 | ||
5287 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
5288 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
5289 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
5290 | MakeForm(Part,"Wedge") | |
5291 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
5292 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
5293 | MakeForm(Part,"Wedge") | |
5294 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
5295 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
5296 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5297 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
5298 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5299 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
5300 | MakeForm(Part,"Cyl") | |
5301 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5302 | for i = 1, 8 do | |
5303 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
5304 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
5305 | end | |
5306 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
5307 | MakeForm(Part,"Cyl") | |
5308 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5309 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
5310 | MakeForm(Part,"Ball") | |
5311 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5312 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
5313 | MakeForm(Part,"Wedge") | |
5314 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
5315 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
5316 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5317 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
5318 | MakeForm(Part,"Cyl") | |
5319 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5320 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
5321 | MakeForm(Part,"Cyl") | |
5322 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5323 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
5324 | MakeForm(Part,"Cyl") | |
5325 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5326 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
5327 | MakeForm(Part,"Wedge") | |
5328 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
5329 | local LASTPART = Handle | |
5330 | for i = 1, 10 do | |
5331 | if LASTPART == Handle then | |
5332 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
5333 | LASTPART = Part | |
5334 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5335 | else | |
5336 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
5337 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
5338 | LASTPART = Part | |
5339 | end | |
5340 | end | |
5341 | ||
5342 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
5343 | MakeForm(Barrel,"Cyl") | |
5344 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5345 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
5346 | MakeForm(Part,"Cyl") | |
5347 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
5348 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
5349 | MakeForm(Part,"Wedge") | |
5350 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5351 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
5352 | MakeForm(Hole,"Cyl") | |
5353 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
5354 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
5355 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
5356 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
5357 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
5358 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
5359 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
5360 | coroutine.resume(coroutine.create(function() | |
5361 | while wait() do | |
5362 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
5363 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
5364 | end | |
5365 | end)) | |
5366 | ||
5367 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
5368 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
5369 | ||
5370 | for _, c in pairs(Weapon:GetDescendants()) do | |
5371 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
5372 | c.Material = "Glass" | |
5373 | c.Color = C3(0,0,0) | |
5374 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
5375 | c.Color = C3(1,0,0) | |
5376 | c.Material = "Neon" | |
5377 | end | |
5378 | end | |
5379 | ||
5380 | Weapon.Parent = Character | |
5381 | for _, c in pairs(Weapon:GetChildren()) do | |
5382 | if c.ClassName == "Part" then | |
5383 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
5384 | end | |
5385 | end | |
5386 | ||
5387 | local SKILLTEXTCOLOR = C3(1,0,0) | |
5388 | local SKILLFONT = "Antique" | |
5389 | local SKILLTEXTSIZE = 7 | |
5390 | ||
5391 | Humanoid.Died:connect(function() | |
5392 | ATTACK = true | |
5393 | end) | |
5394 | ||
5395 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
5396 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
5397 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
5398 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
5399 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
5400 | ]] | |
5401 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[e] Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
5402 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
5403 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
5404 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
5405 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
5406 | ]] | |
5407 | function printbye(Name) | |
5408 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
5409 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
5410 | end | |
5411 | ||
5412 | workspace.ChildAdded:connect(function(instance) | |
5413 | for BANISH = 1, #TOBANISH do | |
5414 | if TOBANISH[BANISH] ~= nil then | |
5415 | if instance.Name == TOBANISH[BANISH] then | |
5416 | coroutine.resume(coroutine.create(function() | |
5417 | printbye(instance.Name) | |
5418 | instance:ClearAllChildren() | |
5419 | Debris:AddItem(instance,0.0005) | |
5420 | end)) | |
5421 | end | |
5422 | end | |
5423 | end | |
5424 | end) | |
5425 | ||
5426 | --//=================================\\ | |
5427 | --|| DAMAGING | |
5428 | --\\=================================// | |
5429 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
5430 | coroutine.resume(coroutine.create(function() | |
5431 | local METEOR = IT("Model",Effects) | |
5432 | METEOR.Name = "Meteorite" | |
5433 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
5434 | METEOR.PrimaryPart = CENTER | |
5435 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
5436 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
5437 | for i = 1, 15 do | |
5438 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE) | |
5439 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
5440 | end | |
5441 | if ISDEBREE ~= true then | |
5442 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
5443 | else | |
5444 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
5445 | end | |
5446 | local IMPACT = false | |
5447 | CreateSound(463593339, CENTER, 10, 0.6) | |
5448 | if SIZE >= 3.5 then | |
5449 | for i = 1, MRANDOM(3,7) do | |
5450 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
5451 | end | |
5452 | end | |
5453 | for i = 1, 200 do | |
5454 | Swait() | |
5455 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
5456 | if HITFLOOR == nil then | |
5457 | local ORI = CENTER.Orientation | |
5458 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
5459 | else | |
5460 | if HITFLOOR.Anchored == true then | |
5461 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
5462 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
5463 | end | |
5464 | IMPACT = true | |
5465 | break | |
5466 | end | |
5467 | end | |
5468 | if IMPACT == true then | |
5469 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
5470 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
5471 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
5472 | ApplyAoE(CENTER.Position,30*SIZE) | |
5473 | ||
5474 | end | |
5475 | METEOR:remove() | |
5476 | end)) | |
5477 | end | |
5478 | ||
5479 | function KillChildren(Char) | |
5480 | local NewCharacter = IT("Model",Effects) | |
5481 | NewCharacter.Name = "Ow im ded ;-;" | |
5482 | for _, c in pairs(Char:GetDescendants()) do | |
5483 | if c:IsA("BasePart") and c.Transparency == 0 then | |
5484 | if c.Parent == Char then | |
5485 | getbloody(c,5) | |
5486 | end | |
5487 | c:BreakJoints() | |
5488 | c.Material = "Glass" | |
5489 | c.Color = C3(0.5,0,0) | |
5490 | c.CanCollide = true | |
5491 | c.Transparency = 0.3 | |
5492 | if c:FindFirstChildOfClass("SpecialMesh") then | |
5493 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
5494 | end | |
5495 | if c.Name == "Head" then | |
5496 | c:ClearAllChildren() | |
5497 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
5498 | end | |
5499 | if c.ClassName == "MeshPart" then | |
5500 | c.TextureID = "" | |
5501 | end | |
5502 | if c:FindFirstChildOfClass("BodyPosition") then | |
5503 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
5504 | end | |
5505 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
5506 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
5507 | end | |
5508 | c.Parent = NewCharacter | |
5509 | c.Name = "DeadPart" | |
5510 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
5511 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
5512 | end | |
5513 | end | |
5514 | Char:remove() | |
5515 | Debris:AddItem(NewCharacter,5) | |
5516 | end | |
5517 | ||
5518 | function Kill(Char) | |
5519 | local NewCharacter = IT("Model",Effects) | |
5520 | NewCharacter.Name = "Ow im ded ;-;" | |
5521 | for _, c in pairs(Char:GetDescendants()) do | |
5522 | if c:IsA("BasePart") and c.Transparency == 0 then | |
5523 | if c.Parent == Char then | |
5524 | getbloody(c,5) | |
5525 | end | |
5526 | c:BreakJoints() | |
5527 | c.Material = "Glass" | |
5528 | c.Color = C3(0.5,0,0) | |
5529 | c.CanCollide = true | |
5530 | c.Transparency = 0.3 | |
5531 | if c:FindFirstChildOfClass("SpecialMesh") then | |
5532 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
5533 | end | |
5534 | if c.Name == "Head" then | |
5535 | c:ClearAllChildren() | |
5536 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
5537 | end | |
5538 | if c.ClassName == "MeshPart" then | |
5539 | c.TextureID = "" | |
5540 | end | |
5541 | if c:FindFirstChildOfClass("BodyPosition") then | |
5542 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
5543 | end | |
5544 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
5545 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
5546 | end | |
5547 | c.Parent = NewCharacter | |
5548 | c.Name = "DeadPart" | |
5549 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
5550 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
5551 | end | |
5552 | end | |
5553 | Char:remove() | |
5554 | Debris:AddItem(NewCharacter,5) | |
5555 | end | |
5556 | ||
5557 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
5558 | local CHILDREN = workspace:GetDescendants() | |
5559 | for index, CHILD in pairs(CHILDREN) do | |
5560 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
5561 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
5562 | if HUM then | |
5563 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
5564 | if TORSO then | |
5565 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
5566 | if BRUTAL == true then | |
5567 | Kill(CHILD) | |
5568 | else | |
5569 | CHILD:BreakJoints() | |
5570 | end | |
5571 | end | |
5572 | end | |
5573 | end | |
5574 | end | |
5575 | end | |
5576 | end | |
5577 | ||
5578 | function BulletDetection(FROM,TO,BRUTAL) | |
5579 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
5580 | coroutine.resume(coroutine.create(function() | |
5581 | if AIMHIT ~= nil then | |
5582 | if AIMHIT.Parent ~= Character then | |
5583 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
5584 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then | |
5585 | if BRUTAL == true then | |
5586 | Kill(AIMHIT.Parent) | |
5587 | else | |
5588 | getbloody(AIMHIT,15) | |
5589 | AIMHIT.Parent:BreakJoints() | |
5590 | if AIMHIT.Name == "Head" then | |
5591 | AIMHIT.Name = "HEADSHOT" | |
5592 | AIMHIT:remove() | |
5593 | end | |
5594 | end | |
5595 | else | |
5596 | if BRUTAL == true then | |
5597 | Kill(AIMHIT.Parent.Parent) | |
5598 | else | |
5599 | AIMHIT.Parent.Parent:BreakJoints() | |
5600 | end | |
5601 | end | |
5602 | end | |
5603 | end | |
5604 | end | |
5605 | end)) | |
5606 | SpawnTrail(FROM,AIMPOS) | |
5607 | return AIMHIT,AIMPOS,NORMAL | |
5608 | end | |
5609 | ||
5610 | local Weapon = nil | |
5611 | local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really black", "BraceletPart", VT(1.01,0.3,1.01),false) | |
5612 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
5613 | ||
5614 | function Charge(TIME,GYRO) | |
5615 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
5616 | local G = nil | |
5617 | if GYRO == true then | |
5618 | G = IT("BodyGyro",RootPart) | |
5619 | G.D = 250 | |
5620 | G.P = 200000 | |
5621 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
5622 | end | |
5623 | for i=0, TIME, 0.1 / Animation_Speed do | |
5624 | Swait() | |
5625 | if G then | |
5626 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
5627 | end | |
5628 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5629 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5630 | 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) | |
5631 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
5632 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
5633 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5634 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5635 | end | |
5636 | SND:remove() | |
5637 | if G then | |
5638 | return G | |
5639 | end | |
5640 | end | |
5641 | ||
5642 | function Banish(Foe) | |
5643 | if Foe then | |
5644 | coroutine.resume(coroutine.create(function() | |
5645 | --if game.Players:FindFirstChild(Foe.Name) then | |
5646 | table.insert(TOBANISH,Foe.Name) | |
5647 | printbye(Foe.Name) | |
5648 | --end | |
5649 | Foe.Archivable = true | |
5650 | local CLONE = Foe:Clone() | |
5651 | Foe:Destroy() | |
5652 | CLONE.Parent = Effects | |
5653 | CLONE:BreakJoints() | |
5654 | local MATERIALS = {"Glass","Neon"} | |
5655 | for _, c in pairs(CLONE:GetDescendants()) do | |
5656 | if c:IsA("BasePart") then | |
5657 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
5658 | CreateSound(340722848, c, 10, 1, false) | |
5659 | end | |
5660 | c.Anchored = true | |
5661 | c.Transparency = c.Transparency + 0.2 | |
5662 | c.Material = MATERIALS[MRANDOM(1,2)] | |
5663 | c.Color = C3(1,0,0) | |
5664 | if c.ClassName == "MeshPart" then | |
5665 | c.TextureID = "" | |
5666 | end | |
5667 | if c:FindFirstChildOfClass("SpecialMesh") then | |
5668 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
5669 | end | |
5670 | if c:FindFirstChildOfClass("Decal") then | |
5671 | c:FindFirstChildOfClass("Decal"):remove() | |
5672 | end | |
5673 | c.Name = "Banished" | |
5674 | c.CanCollide = false | |
5675 | else | |
5676 | c:remove() | |
5677 | end | |
5678 | end | |
5679 | local A = false | |
5680 | for i = 1, 35 do | |
5681 | if A == false then | |
5682 | A = true | |
5683 | elseif A == true then | |
5684 | A = false | |
5685 | end | |
5686 | for _, c in pairs(CLONE:GetDescendants()) do | |
5687 | if c:IsA("BasePart") then | |
5688 | c.Anchored = true | |
5689 | c.Material = MATERIALS[MRANDOM(1,2)] | |
5690 | c.Transparency = c.Transparency + 0.8/35 | |
5691 | if A == false then | |
5692 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
5693 | elseif A == true then | |
5694 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
5695 | end | |
5696 | end | |
5697 | end | |
5698 | Swait() | |
5699 | end | |
5700 | CLONE:remove() | |
5701 | end)) | |
5702 | end | |
5703 | end | |
5704 | ||
5705 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
5706 | local CHILDREN = workspace:GetDescendants() | |
5707 | for index, CHILD in pairs(CHILDREN) do | |
5708 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
5709 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
5710 | if HUM then | |
5711 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
5712 | if TORSO then | |
5713 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
5714 | if ISBANISH == true then | |
5715 | Banish(CHILD) | |
5716 | else | |
5717 | if ISBANISH == "Gravity" then | |
5718 | HUM.PlatformStand = true | |
5719 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
5720 | local grav = Instance.new("BodyPosition",TORSO) | |
5721 | grav.D = 15 | |
5722 | grav.P = 20000 | |
5723 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
5724 | grav.position = TORSO.Position | |
5725 | grav.Name = "V3BanishForce"..Player.Name | |
5726 | else | |
5727 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
5728 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
5729 | end | |
5730 | else | |
5731 | HUM.PlatformStand = false | |
5732 | end | |
5733 | end | |
5734 | elseif ISBANISH == "Gravity" then | |
5735 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
5736 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
5737 | HUM.PlatformStand = false | |
5738 | end | |
5739 | end | |
5740 | end | |
5741 | end | |
5742 | end | |
5743 | end | |
5744 | end | |
5745 | ||
5746 | --//=================================\\ | |
5747 | --|| ATTACK FUNCTIONS AND STUFF | |
5748 | --\\=================================// | |
5749 | function Corrupted_Immobilization() | |
5750 | ATTACK = true | |
5751 | Rooted = true | |
5752 | Charge(2,false) | |
5753 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,3,1) | |
5754 | local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
5755 | local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false) | |
5756 | for i = 1, 60 do | |
5757 | Swait() | |
5758 | ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true) | |
5759 | SND.Pitch = SND.Pitch - 1/60 | |
5760 | SND2.Pitch = SND.Pitch | |
5761 | WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5762 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5763 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5764 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5765 | 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) | |
5766 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
5767 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
5768 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5769 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5770 | end | |
5771 | SND:remove() | |
5772 | SND2:remove() | |
5773 | ATTACK = false | |
5774 | Rooted = false | |
5775 | end | |
5776 | ||
5777 | local OFFSET = 0 | |
5778 | local TAUNT = false | |
5779 | ||
5780 | function Taunt() | |
5781 | ATTACK = true | |
5782 | Rooted = false | |
5783 | TAUNT = true | |
5784 | for i=0, 0.1, 0.1 / Animation_Speed do | |
5785 | Swait() | |
5786 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5787 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
5788 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
5789 | end | |
5790 | for i=0, 3, 0.1 / Animation_Speed do | |
5791 | Swait() | |
5792 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5793 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
5794 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
5795 | end | |
5796 | CreateSound(363808674, Torso, 10, 1.3) | |
5797 | for i=0, 1, 0.1 / Animation_Speed do | |
5798 | Swait() | |
5799 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed) | |
5800 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed) | |
5801 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
5802 | end | |
5803 | WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really black").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5804 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 0.8) | |
5805 | for i=0, 0.01, 0.1 / Animation_Speed do | |
5806 | Swait() | |
5807 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
5808 | 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, 3 / Animation_Speed) | |
5809 | LeftShoulder.C0 = Clerp(LeftShoulder.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)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
5810 | end | |
5811 | ATTACK = false | |
5812 | Rooted = false | |
5813 | TAUNT = false | |
5814 | end | |
5815 | ||
5816 | function Click() | |
5817 | ATTACK = true | |
5818 | Rooted = false | |
5819 | local HIT = nil | |
5820 | OFFSET = -45 | |
5821 | for i=0, 1, 0.1 / Animation_Speed do | |
5822 | Swait() | |
5823 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
5824 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
5825 | end | |
5826 | OFFSET = 45 | |
5827 | local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false) | |
5828 | PUNCH.CanCollide = true | |
5829 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0)) | |
5830 | TAUNT = true | |
5831 | local TOUCH = PUNCH.Touched:Connect(function(hit) | |
5832 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
5833 | HIT = hit.Parent | |
5834 | end | |
5835 | end) | |
5836 | for i=0, 0.3, 0.1 / Animation_Speed do | |
5837 | Swait() | |
5838 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) | |
5839 | if HIT ~= nil then | |
5840 | break | |
5841 | end | |
5842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
5843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
5844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
5845 | end | |
5846 | PUNCH:remove() | |
5847 | TOUCH:disconnect() | |
5848 | if HIT ~= nil then | |
5849 | for _, c in pairs(HIT:GetChildren()) do | |
5850 | if c:IsA("BasePart") then | |
5851 | c.Anchored = true | |
5852 | end | |
5853 | end | |
5854 | Rooted = true | |
5855 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 0.8) | |
5856 | CreateSound(1368573150, RightArm, 3, 1.5) | |
5857 | for i=0, 0.6, 0.1 / Animation_Speed do | |
5858 | Swait() | |
5859 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5860 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed) | |
5861 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
5862 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
5863 | end | |
5864 | for _, c in pairs(HIT:GetChildren()) do | |
5865 | if c:IsA("BasePart") then | |
5866 | c.Anchored = false | |
5867 | end | |
5868 | end | |
5869 | KillChildren(HIT) | |
5870 | end | |
5871 | OFFSET = 0 | |
5872 | ATTACK = false | |
5873 | Rooted = false | |
5874 | TAUNT = false | |
5875 | end | |
5876 | ||
5877 | function SpawnSmite(POS) | |
5878 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
5879 | local EMITPOS = HITPOS | |
5880 | if HITFLOOR ~= nil then | |
5881 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
5882 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
5883 | EMITPOS = HITPOS | |
5884 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
5885 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
5886 | EMITPOS = HITPOS | |
5887 | end | |
5888 | end | |
5889 | if HITFLOOR ~= nil then | |
5890 | ApplyAoE(EMITPOS,10) | |
5891 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
5892 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5893 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5894 | for i = 1, 5 do | |
5895 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
5896 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
5897 | end | |
5898 | end | |
5899 | end | |
5900 | ||
5901 | function Corrupted_Explosion() | |
5902 | ATTACK = true | |
5903 | Rooted = false | |
5904 | CreateSound(1368573150, RightArm, 3, 1.5) | |
5905 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 3, 1) | |
5906 | for i=0, 0.6, 0.1 / Animation_Speed do | |
5907 | Swait() | |
5908 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5909 | 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) | |
5910 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
5911 | end | |
5912 | local POWER = 0 | |
5913 | repeat | |
5914 | Swait() | |
5915 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
5916 | 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) | |
5917 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
5918 | POWER = POWER + 0.5 | |
5919 | if POWER >= 85 then | |
5920 | POWER = 85 | |
5921 | end | |
5922 | until KEYHOLD == false | |
5923 | if POWER < 0.6 then | |
5924 | SpawnMeteor(Mouse.Hit.p) | |
5925 | else | |
5926 | if POWER < 15 then | |
5927 | POWER = 15 | |
5928 | end | |
5929 | SpawnMeteor(Mouse.Hit.p,POWER/15) | |
5930 | end | |
5931 | ATTACK = false | |
5932 | Rooted = false | |
5933 | end | |
5934 | ||
5935 | function Psyo() | |
5936 | ||
5937 | end | |
5938 | ||
5939 | function Cleve() | |
5940 | ||
5941 | end | |
5942 | function Lock_n_Load() | |
5943 | ||
5944 | end | |
5945 | function Morning_Star() | |
5946 | ATTACK = true | |
5947 | Rooted = true | |
5948 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
5949 | for i=0, 0.5, 0.1 / Animation_Speed do | |
5950 | Swait() | |
5951 | 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) | |
5952 | 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) | |
5953 | end | |
5954 | coroutine.resume(coroutine.create(function() | |
5955 | local POS = Mouse.Hit.p | |
5956 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0)) | |
5957 | MakeForm(RAY,"Cyl") | |
5958 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0)) | |
5959 | MakeForm(SPHERE,"Ball") | |
5960 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
5961 | MakeForm(SHIELD,"Ball") | |
5962 | SHIELD.CFrame = CF(POS) | |
5963 | RAY.CFrame = CF(POS) | |
5964 | SPHERE.CFrame = CF(POS) | |
5965 | CreateSound(144699494, SPHERE, 10, 0.8, false) | |
5966 | CreateSound(1146688617, SPHERE, 10, 0.8, false) | |
5967 | for i = 1, 200 do | |
5968 | Swait() | |
5969 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5970 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
5971 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
5972 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
5973 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
5974 | end | |
5975 | for i = 1, 45 do | |
5976 | Swait() | |
5977 | RAY.Transparency = RAY.Transparency + 1/45 | |
5978 | SPHERE.Transparency = RAY.Transparency | |
5979 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
5980 | end | |
5981 | RAY:remove() | |
5982 | SHIELD:remove() | |
5983 | SPHERE:remove() | |
5984 | end)) | |
5985 | for i=0, 0.1, 0.1 / Animation_Speed do | |
5986 | Swait() | |
5987 | 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) | |
5988 | end | |
5989 | ATTACK = false | |
5990 | Rooted = false | |
5991 | end | |
5992 | function Deathbound() | |
5993 | ||
5994 | end | |
5995 | function Execute() | |
5996 | ||
5997 | end | |
5998 | ||
5999 | function Shot() | |
6000 | ATTACK = true | |
6001 | Rooted = false | |
6002 | for i=0, 0.4, 0.1 / Animation_Speed do | |
6003 | Swait() | |
6004 | turnto(Mouse.Hit.p) | |
6005 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
6006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
6007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
6008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
6009 | 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) | |
6010 | 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) | |
6011 | end | |
6012 | repeat | |
6013 | for i=0, 0.2, 0.1 / Animation_Speed do | |
6014 | Swait() | |
6015 | turnto(Mouse.Hit.p) | |
6016 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
6017 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
6018 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
6019 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
6020 | 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) | |
6021 | 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) | |
6022 | end | |
6023 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
6024 | SpawnTrail(Hole.Position,POS) | |
6025 | if HIT ~= nil then | |
6026 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
6027 | Banish(HIT.Parent) | |
6028 | end | |
6029 | end | |
6030 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
6031 | 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(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
6032 | 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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
6033 | 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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
6034 | for i=0, 0.3, 0.1 / Animation_Speed do | |
6035 | Swait() | |
6036 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
6037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
6038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
6039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
6040 | 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) | |
6041 | 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) | |
6042 | end | |
6043 | until KEYHOLD == false | |
6044 | ATTACK = false | |
6045 | Rooted = false | |
6046 | end | |
6047 | ||
6048 | function AttackTemplate() | |
6049 | ATTACK = true | |
6050 | Rooted = false | |
6051 | for i=0, 1, 0.1 / Animation_Speed do | |
6052 | Swait() | |
6053 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
6054 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
6055 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
6056 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
6057 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
6058 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
6059 | end | |
6060 | ATTACK = false | |
6061 | Rooted = false | |
6062 | end | |
6063 | ||
6064 | --//=================================\\ | |
6065 | --|| ASSIGN THINGS TO KEYS | |
6066 | --\\=================================// | |
6067 | function KeyDown(Key) | |
6068 | KEYHOLD = true | |
6069 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
6070 | if Key == "z" and ATTACK == false then | |
6071 | Corrupted_Explosion() | |
6072 | ||
6073 | elseif Key == "b" and ATTACK == false then | |
6074 | Corrupted_Immobilization() | |
6075 | ||
6076 | elseif Key == "c" and ATTACK == false then | |
6077 | Cleave() | |
6078 | ||
6079 | elseif Key == "v" and ATTACK == false then | |
6080 | Lock_n_Load() | |
6081 | ||
6082 | elseif Key == "g" and ATTACK == false then | |
6083 | Deathbound() | |
6084 | ||
6085 | elseif Key == "x" and ATTACK == false then | |
6086 | Morning_Star() | |
6087 | ||
6088 | elseif Key == "t" then | |
6089 | Taunt() | |
6090 | end | |
6091 | end | |
6092 | end | |
6093 | ||
6094 | function KeyUp(Key) | |
6095 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
6096 | KEYHOLD = false | |
6097 | end | |
6098 | end | |
6099 | ||
6100 | Mouse.Button1Down:connect(function(NEWKEY) | |
6101 | MouseDown(NEWKEY) | |
6102 | end) | |
6103 | Mouse.Button1Up:connect(function(NEWKEY) | |
6104 | MouseUp(NEWKEY) | |
6105 | end) | |
6106 | Mouse.KeyDown:connect(function(NEWKEY) | |
6107 | KeyDown(NEWKEY) | |
6108 | end) | |
6109 | Mouse.KeyUp:connect(function(NEWKEY) | |
6110 | KeyUp(NEWKEY) | |
6111 | end) | |
6112 | ||
6113 | function MouseDown(Mouse) | |
6114 | if ATTACK == false then | |
6115 | Shot() | |
6116 | end | |
6117 | end | |
6118 | ||
6119 | function MouseUp(Mouse) | |
6120 | HOLD = false | |
6121 | end | |
6122 | --//=================================\\ | |
6123 | --\\=================================// | |
6124 | ||
6125 | ||
6126 | function unanchor() | |
6127 | if UNANCHOR == true then | |
6128 | g = Character:GetChildren() | |
6129 | for i = 1, #g do | |
6130 | if g[i].ClassName == "Part" then | |
6131 | g[i].Anchored = false | |
6132 | end | |
6133 | end | |
6134 | end | |
6135 | end | |
6136 | ||
6137 | function KeyDown(Key) | |
6138 | KEYHOLD = true | |
6139 | if Key == "e" and ATTACK == false then | |
6140 | Shot() | |
6141 | end | |
6142 | end | |
6143 | ||
6144 | function MouseUp(Mouse) | |
6145 | HOLD = false | |
6146 | end | |
6147 | ||
6148 | function KeyDown(Key) | |
6149 | KEYHOLD = true | |
6150 | ||
6151 | if Key == "b" and ATTACK == false then | |
6152 | end | |
6153 | ||
6154 | if Key == "c" and ATTACK == false then | |
6155 | end | |
6156 | ||
6157 | if Key == "v" and ATTACK == false then | |
6158 | end | |
6159 | ||
6160 | if Key == "x" and ATTACK == false then | |
6161 | end | |
6162 | end | |
6163 | ||
6164 | function KeyUp(Key) | |
6165 | KEYHOLD = false | |
6166 | end | |
6167 | ||
6168 | --//=================================\\ | |
6169 | --\\=================================// | |
6170 | ||
6171 | ||
6172 | function unanchor() | |
6173 | if UNANCHOR == true then | |
6174 | g = Character:GetChildren() | |
6175 | for i = 1, #g do | |
6176 | if g[i].ClassName == "Part" then | |
6177 | g[i].Anchored = false | |
6178 | end | |
6179 | end | |
6180 | end | |
6181 | end | |
6182 | ||
6183 | ||
6184 | --//=================================\\ | |
6185 | --|| WRAP THE WHOLE SCRIPT UP | |
6186 | --\\=================================// | |
6187 | ||
6188 | Humanoid.Changed:connect(function(Jump) | |
6189 | if Jump == "Jump" and (Disable_Jump == true) then | |
6190 | Humanoid.Jump = false | |
6191 | end | |
6192 | end) | |
6193 | ||
6194 | local SIZE = 1 | |
6195 | while true do | |
6196 | Swait() | |
6197 | script.Parent = WEAPONGUI | |
6198 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
6199 | v:Stop(); | |
6200 | end | |
6201 | ANIMATE.Parent = nil | |
6202 | SINE = SINE + CHANGE*1.5 | |
6203 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
6204 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
6205 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
6206 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
6207 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
6208 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
6209 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
6210 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
6211 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
6212 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
6213 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
6214 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6215 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6216 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6217 | end | |
6218 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
6219 | ANIM = "Jump" | |
6220 | if ATTACK == false then | |
6221 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6222 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6223 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
6224 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
6225 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
6226 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
6227 | end | |
6228 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
6229 | ANIM = "Fall" | |
6230 | if ATTACK == false then | |
6231 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6232 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6233 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
6234 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
6235 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
6236 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
6237 | end | |
6238 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
6239 | ANIM = "Idle" | |
6240 | if ATTACK == false then | |
6241 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
6242 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6243 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(-85 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
6244 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(15 - 2.5 * SIN(SINE / 12)), RAD(85 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
6245 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6246 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6247 | end | |
6248 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
6249 | ANIM = "Walk" | |
6250 | if ATTACK == false then | |
6251 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
6252 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
6253 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
6254 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
6255 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
6256 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
6257 | end | |
6258 | end | |
6259 | unanchor() | |
6260 | Humanoid.MaxHealth = "inf" | |
6261 | Humanoid.Health = "inf" | |
6262 | if Rooted == false then | |
6263 | Disable_Jump = false | |
6264 | Humanoid.WalkSpeed = Speed | |
6265 | elseif Rooted == true then | |
6266 | Disable_Jump = true | |
6267 | Humanoid.WalkSpeed = 0 | |
6268 | end | |
6269 | sick.Parent = Torso | |
6270 | sick:resume() | |
6271 | sick.Volume = 6 | |
6272 | sick.Pitch = 1 | |
6273 | sick.SoundId = "rbxassetid://314600371" | |
6274 | sick.Name = "Ugly God" | |
6275 | end | |
6276 | ||
6277 | --//=================================\\ | |
6278 | --\\=================================// | |
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | --//====================================================\\-- | |
6285 | --|| END OF SCRIPT | |
6286 | --\\====================================================//-- |