SHOW:
|
|
- or go back to the newest paste.
1 | wait(0.2) | |
2 | ||
3 | ||
4 | ||
5 | Player = game:GetService("Players").lolfarmer | |
6 | PlayerGui = Player.PlayerGui | |
7 | Cam = workspace.CurrentCamera | |
8 | Backpack = Player.Backpack | |
9 | Character = Player.Character | |
10 | Humanoid = Character.Humanoid | |
11 | RootPart = Character["HumanoidRootPart"] | |
12 | Torso = Character["Torso"] | |
13 | Head = Character["Head"] | |
14 | RightArm = Character["Right Arm"] | |
15 | LeftArm = Character["Left Arm"] | |
16 | RightLeg = Character["Right Leg"] | |
17 | LeftLeg = Character["Left Leg"] | |
18 | RootJoint = RootPart["RootJoint"] | |
19 | Neck = Torso["Neck"] | |
20 | RightShoulder = Torso["Right Shoulder"] | |
21 | LeftShoulder = Torso["Left Shoulder"] | |
22 | RightHip = Torso["Right Hip"] | |
23 | LeftHip = Torso["Left Hip"] | |
24 | local sick = Instance.new("Sound",Character) | |
25 | sick.SoundId = "rbxassetid://196739738" | |
26 | sick.Looped = true | |
27 | sick.Pitch = 1 | |
28 | sick.Volume = 1 | |
29 | sick:Play() | |
30 | ||
31 | IT = Instance.new | |
32 | CF = CFrame.new | |
33 | VT = Vector3.new | |
34 | RAD = math.rad | |
35 | C3 = Color3.new | |
36 | UD2 = UDim2.new | |
37 | BRICKC = BrickColor.new | |
38 | ANGLES = CFrame.Angles | |
39 | EULER = CFrame.fromEulerAnglesXYZ | |
40 | COS = math.cos | |
41 | ACOS = math.acos | |
42 | SIN = math.sin | |
43 | ASIN = math.asin | |
44 | ABS = math.abs | |
45 | MRANDOM = math.random | |
46 | FLOOR = math.floor | |
47 | ||
48 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
49 | local NEWMESH = IT(MESH) | |
50 | if MESH == "SpecialMesh" then | |
51 | NEWMESH.MeshType = MESHTYPE | |
52 | if MESHID ~= "nil" and MESHID ~= "" then | |
53 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
54 | end | |
55 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
56 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
57 | end | |
58 | end | |
59 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
60 | NEWMESH.Scale = SCALE | |
61 | NEWMESH.Parent = PARENT | |
62 | return NEWMESH | |
63 | end | |
64 | ||
65 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
66 | local NEWPART = IT("Part") | |
67 | NEWPART.formFactor = FORMFACTOR | |
68 | NEWPART.Reflectance = REFLECTANCE | |
69 | NEWPART.Transparency = TRANSPARENCY | |
70 | NEWPART.CanCollide = false | |
71 | NEWPART.Locked = true | |
72 | NEWPART.Anchored = true | |
73 | if ANCHOR == false then | |
74 | NEWPART.Anchored = false | |
75 | end | |
76 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
77 | NEWPART.Name = NAME | |
78 | NEWPART.Size = SIZE | |
79 | NEWPART.Position = Torso.Position | |
80 | NEWPART.Material = MATERIAL | |
81 | NEWPART:BreakJoints() | |
82 | NEWPART.Parent = PARENT | |
83 | return NEWPART | |
84 | end | |
85 | ||
86 | --//=================================\\ | |
87 | --|| CUSTOMIZATION | |
88 | --\\=================================// | |
89 | ||
90 | Class_Name = "Template" | |
91 | Weapon_Name = "Add-ons" | |
92 | ||
93 | Custom_Colors = { | |
94 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
95 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
96 | ||
97 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
98 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
99 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
100 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
101 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
102 | ||
103 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
104 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
105 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
106 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
107 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
108 | } | |
109 | ||
110 | ||
111 | Player_Size = 1 --Size of the player. | |
112 | Animation_Speed = 3 | |
113 | Animation_Speed2 = 1 | |
114 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
115 | ||
116 | local Speed = 16 | |
117 | local Effects2 = {} | |
118 | ||
119 | --//=================================\\ | |
120 | --|| END OF CUSTOMIZATION | |
121 | --\\=================================// | |
122 | ||
123 | local function weldBetween(a, b) | |
124 | local weldd = Instance.new("ManualWeld") | |
125 | weldd.Part0 = a | |
126 | weldd.Part1 = b | |
127 | weldd.C0 = CFrame.new() | |
128 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
129 | weldd.Parent = a | |
130 | return weldd | |
131 | end | |
132 | ||
133 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
134 | local acs = Instance.new("Part") | |
135 | acs.CanCollide = false | |
136 | acs.Anchored = false | |
137 | acs.Size = Vector3.new(0,0,0) | |
138 | acs.CFrame = attachmentpart.CFrame | |
139 | acs.Parent = Character | |
140 | acs.BrickColor = color | |
141 | local meshs = Instance.new("SpecialMesh") | |
142 | meshs.MeshId = mesh | |
143 | meshs.TextureId = texture | |
144 | meshs.Parent = acs | |
145 | meshs.Scale = scale | |
146 | meshs.Offset = offset | |
147 | weldBetween(attachmentpart,acs) | |
148 | end | |
149 | ||
150 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
151 | if TYPE == "Gem" then | |
152 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
153 | acs.Anchored = false | |
154 | acs.CanCollide = false | |
155 | acs.CFrame = PART.CFrame | |
156 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
157 | weldBetween(PART,acs) | |
158 | elseif TYPE == "Skull" then | |
159 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
160 | acs.Anchored = false | |
161 | acs.CanCollide = false | |
162 | acs.CFrame = PART.CFrame | |
163 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
164 | weldBetween(PART,acs) | |
165 | elseif TYPE == "Eye" then | |
166 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
167 | acs.Anchored = false | |
168 | acs.CanCollide = false | |
169 | acs.CFrame = PART.CFrame | |
170 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
171 | weldBetween(PART,acs) | |
172 | end | |
173 | end | |
174 | ||
175 | --//=================================\\ | |
176 | --|| USEFUL VALUES | |
177 | --\\=================================// | |
178 | ||
179 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
180 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
181 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
182 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
183 | local CHANGEDEFENSE = 0 | |
184 | local CHANGEDAMAGE = 0 | |
185 | local CHANGEMOVEMENT = 0 | |
186 | local ANIM = "Idle" | |
187 | local ATTACK = false | |
188 | local EQUIPPED = false | |
189 | local HOLD = false | |
190 | local COMBO = 1 | |
191 | local Rooted = false | |
192 | local SINE = 0 | |
193 | local KEYHOLD = false | |
194 | local CHANGE = 2 / Animation_Speed | |
195 | local WALKINGANIM = false | |
196 | local WALK = 0 | |
197 | local VALUE1 = false | |
198 | local VALUE2 = false | |
199 | local ROBLOXIDLEANIMATION = IT("Animation") | |
200 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
201 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
202 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
203 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
204 | WEAPONGUI.Name = "Weapon GUI" | |
205 | local Weapon = IT("Model") | |
206 | Weapon.Name = Weapon_Name | |
207 | local Effects = IT("Folder", Weapon) | |
208 | Effects.Name = "Effects" | |
209 | local ANIMATOR = Humanoid.Animator | |
210 | local ANIMATE = Character.Animate | |
211 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
212 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
213 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
214 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
215 | local CASTSOUNDS = {"1369158","2974000","2974249"} | |
216 | local BOLTSOUNDS = {"821439273","224339201","168586586"} | |
217 | local TORNADOSOUND = "362395087" | |
218 | local UNANCHOR = true | |
219 | ||
220 | local SKILLTEXTCOLOR = C3(0,0,0) | |
221 | ||
222 | --//=================================\\ | |
223 | --\\=================================// | |
224 | ||
225 | ||
226 | --//=================================\\ | |
227 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
228 | --\\=================================// | |
229 | ||
230 | ArtificialHB = Instance.new("BindableEvent", script) | |
231 | ArtificialHB.Name = "ArtificialHB" | |
232 | ||
233 | script:WaitForChild("ArtificialHB") | |
234 | ||
235 | frame = Frame_Speed | |
236 | tf = 0 | |
237 | allowframeloss = false | |
238 | tossremainder = false | |
239 | lastframe = tick() | |
240 | script.ArtificialHB:Fire() | |
241 | ||
242 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
243 | tf = tf + s | |
244 | if tf >= frame then | |
245 | if allowframeloss then | |
246 | script.ArtificialHB:Fire() | |
247 | lastframe = tick() | |
248 | else | |
249 | for i = 1, math.floor(tf / frame) do | |
250 | script.ArtificialHB:Fire() | |
251 | end | |
252 | lastframe = tick() | |
253 | end | |
254 | if tossremainder then | |
255 | tf = 0 | |
256 | else | |
257 | tf = tf - frame * math.floor(tf / frame) | |
258 | end | |
259 | end | |
260 | end) | |
261 | ||
262 | --//=================================\\ | |
263 | --\\=================================// | |
264 | ||
265 | ||
266 | ||
267 | ||
268 | ||
269 | --//=================================\\ | |
270 | --|| SOME FUNCTIONS | |
271 | --\\=================================// | |
272 | ||
273 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
274 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
275 | end | |
276 | ||
277 | function PositiveAngle(NUMBER) | |
278 | if NUMBER >= 0 then | |
279 | NUMBER = 0 | |
280 | end | |
281 | return NUMBER | |
282 | end | |
283 | ||
284 | function NegativeAngle(NUMBER) | |
285 | if NUMBER <= 0 then | |
286 | NUMBER = 0 | |
287 | end | |
288 | return NUMBER | |
289 | end | |
290 | ||
291 | function Swait(NUMBER) | |
292 | if NUMBER == 0 or NUMBER == nil then | |
293 | ArtificialHB.Event:wait() | |
294 | else | |
295 | for i = 1, NUMBER do | |
296 | ArtificialHB.Event:wait() | |
297 | end | |
298 | end | |
299 | end | |
300 | ||
301 | function QuaternionFromCFrame(cf) | |
302 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
303 | local trace = m00 + m11 + m22 | |
304 | if trace > 0 then | |
305 | local s = math.sqrt(1 + trace) | |
306 | local recip = 0.5 / s | |
307 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
308 | else | |
309 | local i = 0 | |
310 | if m11 > m00 then | |
311 | i = 1 | |
312 | end | |
313 | if m22 > (i == 0 and m00 or m11) then | |
314 | i = 2 | |
315 | end | |
316 | if i == 0 then | |
317 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
318 | local recip = 0.5 / s | |
319 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
320 | elseif i == 1 then | |
321 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
322 | local recip = 0.5 / s | |
323 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
324 | elseif i == 2 then | |
325 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
326 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
327 | end | |
328 | end | |
329 | end | |
330 | ||
331 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
332 | local xs, ys, zs = x + x, y + y, z + z | |
333 | local wx, wy, wz = w * xs, w * ys, w * zs | |
334 | local xx = x * xs | |
335 | local xy = x * ys | |
336 | local xz = x * zs | |
337 | local yy = y * ys | |
338 | local yz = y * zs | |
339 | local zz = z * zs | |
340 | 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)) | |
341 | end | |
342 | ||
343 | function QuaternionSlerp(a, b, t) | |
344 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
345 | local startInterp, finishInterp; | |
346 | if cosTheta >= 0.0001 then | |
347 | if (1 - cosTheta) > 0.0001 then | |
348 | local theta = ACOS(cosTheta) | |
349 | local invSinTheta = 1 / SIN(theta) | |
350 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
351 | finishInterp = SIN(t * theta) * invSinTheta | |
352 | else | |
353 | startInterp = 1 - t | |
354 | finishInterp = t | |
355 | end | |
356 | else | |
357 | if (1 + cosTheta) > 0.0001 then | |
358 | local theta = ACOS(-cosTheta) | |
359 | local invSinTheta = 1 / SIN(theta) | |
360 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
361 | finishInterp = SIN(t * theta) * invSinTheta | |
362 | else | |
363 | startInterp = t - 1 | |
364 | finishInterp = t | |
365 | end | |
366 | end | |
367 | 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 | |
368 | end | |
369 | ||
370 | function Clerp(a, b, t) | |
371 | local qa = {QuaternionFromCFrame(a)} | |
372 | local qb = {QuaternionFromCFrame(b)} | |
373 | local ax, ay, az = a.x, a.y, a.z | |
374 | local bx, by, bz = b.x, b.y, b.z | |
375 | local _t = 1 - t | |
376 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
377 | end | |
378 | ||
379 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
380 | local frame = IT("Frame") | |
381 | frame.BackgroundTransparency = TRANSPARENCY | |
382 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
383 | frame.Position = POSITION | |
384 | frame.Size = SIZE | |
385 | frame.BackgroundColor3 = COLOR | |
386 | frame.BorderColor3 = BORDERCOLOR | |
387 | frame.Name = NAME | |
388 | frame.Parent = PARENT | |
389 | return frame | |
390 | end | |
391 | ||
392 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
393 | local label = IT("TextLabel") | |
394 | label.BackgroundTransparency = 1 | |
395 | label.Size = UD2(1, 0, 1, 0) | |
396 | label.Position = UD2(0, 0, 0, 0) | |
397 | label.TextColor3 = TEXTCOLOR | |
398 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
399 | label.TextTransparency = TRANSPARENCY | |
400 | label.FontSize = TEXTFONTSIZE | |
401 | label.Font = TEXTFONT | |
402 | label.BorderSizePixel = BORDERSIZEPIXEL | |
403 | label.TextScaled = false | |
404 | label.Text = TEXT | |
405 | label.Name = NAME | |
406 | label.Parent = PARENT | |
407 | return label | |
408 | end | |
409 | ||
410 | function NoOutlines(PART) | |
411 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
412 | end | |
413 | ||
414 | ||
415 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
416 | local NEWWELD = IT(TYPE) | |
417 | NEWWELD.Part0 = PART0 | |
418 | NEWWELD.Part1 = PART1 | |
419 | NEWWELD.C0 = C0 | |
420 | NEWWELD.C1 = C1 | |
421 | NEWWELD.Parent = PARENT | |
422 | return NEWWELD | |
423 | end | |
424 | ||
425 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
426 | local NEWSOUND = nil | |
427 | coroutine.resume(coroutine.create(function() | |
428 | NEWSOUND = IT("Sound", PARENT) | |
429 | NEWSOUND.Volume = VOLUME | |
430 | NEWSOUND.Pitch = PITCH | |
431 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
432 | NEWSOUND:play() | |
433 | game:GetService("Debris"):AddItem(NEWSOUND, 20) | |
434 | end)) | |
435 | return NEWSOUND | |
436 | end | |
437 | ||
438 | function CFrameFromTopBack(at, top, back) | |
439 | local right = top:Cross(back) | |
440 | 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) | |
441 | end | |
442 | ||
443 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
444 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
445 | local mesh = IT("SpecialMesh",wave) | |
446 | mesh.MeshType = "FileMesh" | |
447 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
448 | mesh.Scale = SIZE | |
449 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
450 | wave.CFrame = CFRAME | |
451 | coroutine.resume(coroutine.create(function(PART) | |
452 | for i = 1, WAIT do | |
453 | Swait() | |
454 | mesh.Scale = mesh.Scale + GROW | |
455 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
456 | if DOESROT == true then | |
457 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
458 | end | |
459 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
460 | if wave.Transparency > 0.99 then | |
461 | wave:remove() | |
462 | end | |
463 | end | |
464 | end)) | |
465 | end | |
466 | ||
467 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
468 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
469 | local mesh = IT("SpecialMesh",wave) | |
470 | mesh.MeshType = "FileMesh" | |
471 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
472 | mesh.Scale = SIZE | |
473 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
474 | wave.CFrame = CFRAME | |
475 | coroutine.resume(coroutine.create(function(PART) | |
476 | for i = 1, WAIT do | |
477 | Swait() | |
478 | mesh.Scale = mesh.Scale + GROW | |
479 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
480 | if DOESROT == true then | |
481 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
482 | end | |
483 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
484 | if wave.Transparency > 0.99 then | |
485 | wave:remove() | |
486 | end | |
487 | end | |
488 | end)) | |
489 | end | |
490 | ||
491 | function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
492 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
493 | local mesh = IT("SpecialMesh",wave) | |
494 | mesh.MeshType = "FileMesh" | |
495 | mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
496 | mesh.Scale = SIZE | |
497 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
498 | wave.CFrame = CFRAME | |
499 | coroutine.resume(coroutine.create(function(PART) | |
500 | for i = 1, WAIT do | |
501 | Swait() | |
502 | mesh.Scale = mesh.Scale + GROW | |
503 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
504 | if DOESROT == true then | |
505 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
506 | end | |
507 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
508 | if wave.Transparency > 0.99 then | |
509 | wave:remove() | |
510 | end | |
511 | end | |
512 | end)) | |
513 | end | |
514 | ||
515 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
516 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
517 | local mesh = IT("SpecialMesh",wave) | |
518 | mesh.MeshType = "FileMesh" | |
519 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
520 | mesh.Scale = SIZE | |
521 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
522 | wave.CFrame = CFRAME | |
523 | coroutine.resume(coroutine.create(function(PART) | |
524 | for i = 1, WAIT do | |
525 | Swait() | |
526 | mesh.Scale = mesh.Scale + GROW | |
527 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
528 | if DOESROT == true then | |
529 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
530 | end | |
531 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
532 | if wave.Transparency > 0.99 then | |
533 | wave:remove() | |
534 | end | |
535 | end | |
536 | end)) | |
537 | end | |
538 | ||
539 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
540 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
541 | local mesh = IT("SpecialMesh",wave) | |
542 | mesh.MeshType = "FileMesh" | |
543 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
544 | mesh.Scale = SIZE | |
545 | wave.CFrame = CFRAME | |
546 | coroutine.resume(coroutine.create(function(PART) | |
547 | for i = 1, WAIT do | |
548 | Swait() | |
549 | mesh.Scale = mesh.Scale + GROW | |
550 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
551 | if DOESROT == true then | |
552 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
553 | end | |
554 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
555 | if wave.Transparency > 0.99 then | |
556 | wave:remove() | |
557 | end | |
558 | end | |
559 | end)) | |
560 | end | |
561 | ||
562 | function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS) | |
563 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
564 | local mesh = IT("SpecialMesh",wave) | |
565 | mesh.MeshType = "FileMesh" | |
566 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
567 | mesh.Scale = SIZE | |
568 | wave.CFrame = CFRAME | |
569 | coroutine.resume(coroutine.create(function(PART) | |
570 | for i = 1, WAIT do | |
571 | Swait() | |
572 | mesh.Scale = mesh.Scale + GROW | |
573 | if DOESROT == true then | |
574 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
575 | end | |
576 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
577 | if wave.Transparency > 0.99 then | |
578 | wave:remove() | |
579 | end | |
580 | end | |
581 | end)) | |
582 | end | |
583 | ||
584 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS) | |
585 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
586 | local mesh = IT("SpecialMesh",wave) | |
587 | mesh.MeshType = "FileMesh" | |
588 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
589 | mesh.Scale = SIZE | |
590 | mesh.Offset = VT(0,0,0) | |
591 | wave.CFrame = CFRAME | |
592 | coroutine.resume(coroutine.create(function(PART) | |
593 | for i = 1, WAIT do | |
594 | Swait() | |
595 | mesh.Scale = mesh.Scale + GROW | |
596 | if DOESROT == true then | |
597 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
598 | end | |
599 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
600 | if wave.Transparency > 0.99 then | |
601 | wave:remove() | |
602 | end | |
603 | end | |
604 | end)) | |
605 | end | |
606 | ||
607 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
608 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
609 | local mesh = IT("SpecialMesh",wave) | |
610 | mesh.MeshType = "Sphere" | |
611 | mesh.Scale = SIZE | |
612 | mesh.Offset = VT(0,0,0) | |
613 | wave.CFrame = CFRAME | |
614 | coroutine.resume(coroutine.create(function(PART) | |
615 | for i = 1, WAIT do | |
616 | Swait() | |
617 | mesh.Scale = mesh.Scale + GROW | |
618 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
619 | if wave.Transparency > 0.99 then | |
620 | wave:remove() | |
621 | end | |
622 | end | |
623 | end)) | |
624 | end | |
625 | ||
626 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
627 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
628 | wave.CFrame = CFRAME | |
629 | coroutine.resume(coroutine.create(function(PART) | |
630 | for i = 1, WAIT do | |
631 | Swait() | |
632 | wave.Size = wave.Size + GROW | |
633 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
634 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
635 | if wave.Transparency > 0.99 then | |
636 | wave:remove() | |
637 | end | |
638 | end | |
639 | end)) | |
640 | end | |
641 | ||
642 | function MakeForm(PART,TYPE) | |
643 | if TYPE == "Cyl" then | |
644 | local MSH = IT("CylinderMesh",PART) | |
645 | elseif TYPE == "Ball" then | |
646 | local MSH = IT("SpecialMesh",PART) | |
647 | MSH.MeshType = "Sphere" | |
648 | elseif TYPE == "Wedge" then | |
649 | local MSH = IT("SpecialMesh",PART) | |
650 | MSH.MeshType = "Wedge" | |
651 | end | |
652 | end | |
653 | ||
654 | function CheckTableForString(Table, String) | |
655 | for i, v in pairs(Table) do | |
656 | if string.find(string.lower(String), string.lower(v)) then | |
657 | return true | |
658 | end | |
659 | end | |
660 | return false | |
661 | end | |
662 | ||
663 | function CheckIntangible(Hit) | |
664 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
665 | if Hit and Hit.Parent then | |
666 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
667 | return true | |
668 | end | |
669 | end | |
670 | return false | |
671 | end | |
672 | ||
673 | Debris = game:GetService("Debris") | |
674 | ||
675 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
676 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
677 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
678 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
679 | if RayHit and CheckIntangible(RayHit) then | |
680 | if DelayIfHit then | |
681 | wait() | |
682 | end | |
683 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
684 | end | |
685 | return RayHit, RayPos, RayNormal | |
686 | end | |
687 | ||
688 | function turnto(position) | |
689 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
690 | end | |
691 | ||
692 | --//=================================\\ | |
693 | --|| SPEECH | |
694 | --\\=================================// | |
695 | ||
696 | function chatfunc(text,waitt) | |
697 | local chat = coroutine.wrap(function() | |
698 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
699 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
700 | end | |
701 | local naeeym2 = Instance.new("BillboardGui",Character) | |
702 | naeeym2.Size = UDim2.new(0,100,0,40) | |
703 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
704 | naeeym2.Adornee = Character.Head | |
705 | naeeym2.Name = "TalkingBillBoard" | |
706 | naeeym2.AlwaysOnTop = true | |
707 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
708 | tecks2.BackgroundTransparency = 1 | |
709 | tecks2.BorderSizePixel = 0 | |
710 | tecks2.Text = "" | |
711 | tecks2.Font = "SciFi" | |
712 | tecks2.TextSize = 30 | |
713 | tecks2.TextStrokeTransparency = 1 | |
714 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
715 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
716 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
717 | for i = 1,string.len(text),1 do | |
718 | tecks2.Text = string.sub(text,1,i) | |
719 | Swait() | |
720 | end | |
721 | wait(waitt) | |
722 | coroutine.resume(coroutine.create(function() | |
723 | for i = 1, 10 do | |
724 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
725 | Swait() | |
726 | end | |
727 | naeeym2:Destroy() | |
728 | end)) | |
729 | end) | |
730 | chat() | |
731 | end | |
732 | ||
733 | --//=================================\\ | |
734 | --|| WEAPON CREATION | |
735 | --\\=================================// | |
736 | ||
737 | function CreateGauntlet(LIMB,ROT,OFFSET) | |
738 | local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.025,2.025,1.025),false) | |
739 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LIMB, FIST, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
740 | FIST.CanCollide = true | |
741 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.075,0.25,1.075),false) | |
742 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
743 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,0.15,1.1),false) | |
744 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
745 | --ALL OF THE 04-- | |
746 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.5,0.5),false) | |
747 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
748 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false) | |
749 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
750 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false) | |
751 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
752 | ||
753 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
754 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
755 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
756 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
757 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
758 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
759 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,2.065,1.065),false) | |
760 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/4, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
761 | MakeForm(part,"Wedge") | |
762 | ----------------- | |
763 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.45,0.45),false) | |
764 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
765 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false) | |
766 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
767 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false) | |
768 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
769 | ||
770 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.075,2.075,1.075),false) | |
771 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3.5, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
772 | MakeForm(part,"Wedge") | |
773 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,2.1,1.1),false) | |
774 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3, 0.1, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
775 | MakeForm(part,"Wedge") | |
776 | end | |
777 | ||
778 | CreateGauntlet(RightArm,180,0.3) | |
779 | CreateGauntlet(LeftArm,0,-0.3) | |
780 | ||
781 | for _, c in pairs(Weapon:GetChildren()) do | |
782 | if c.ClassName == "Part" then | |
783 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
784 | end | |
785 | end | |
786 | ||
787 | Weapon.Parent = Character | |
788 | ||
789 | Humanoid.Died:connect(function() | |
790 | ATTACK = true | |
791 | end) | |
792 | ||
793 | print(Class_Name.." loaded.") | |
794 | ||
795 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
796 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
797 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
798 | ||
799 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Turret cannon", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
800 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Shield pulse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
801 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[1-8] Switch stance", C3(0,0,0), 6, "SciFi", 0, 2, 1, "Text 3") | |
802 | ||
803 | --//=================================\\ | |
804 | --|| DAMAGE FUNCTIONS | |
805 | --\\=================================// | |
806 | ||
807 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
808 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
809 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
810 | local BODYGYRO = IT("BodyGyro", STATPART) | |
811 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
812 | BODYPOSITION.P = 2000 | |
813 | BODYPOSITION.D = 100 | |
814 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
815 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
816 | game:GetService("Debris"):AddItem(STATPART ,5) | |
817 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
818 | BILLBOARDGUI.Adornee = STATPART | |
819 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
820 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
821 | BILLBOARDGUI.AlwaysOnTop = true | |
822 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
823 | TEXTLABEL.BackgroundTransparency = 1 | |
824 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
825 | TEXTLABEL.Text = TEXT | |
826 | TEXTLABEL.Font = "SciFi" | |
827 | TEXTLABEL.FontSize="Size42" | |
828 | TEXTLABEL.TextColor3 = COLOR | |
829 | TEXTLABEL.TextStrokeTransparency = 1 | |
830 | TEXTLABEL.TextScaled = true | |
831 | TEXTLABEL.TextWrapped = true | |
832 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
833 | if LABELTYPE == "Normal" then | |
834 | for i = 1, 20 do | |
835 | Swait() | |
836 | STATPART.Position = STATPART.Position + VT(0, (10-i)/10 ,0) | |
837 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
838 | end | |
839 | elseif LABELTYPE == "Debuff" then | |
840 | for i = 1, 20 do | |
841 | Swait() | |
842 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
843 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
844 | end | |
845 | elseif LABELTYPE == "Shock" then | |
846 | local ORIGIN = STATPART.Position | |
847 | for i = 1, 20 do | |
848 | Swait() | |
849 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
850 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
851 | end | |
852 | end | |
853 | THEPART.Parent = nil | |
854 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
855 | end | |
856 | ||
857 | ||
858 | --//=================================\\ | |
859 | --|| DAMAGING | |
860 | --\\=================================// | |
861 | ||
862 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
863 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
864 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
865 | local dmg = math.random(min,max) | |
866 | if humanoid.Health > 0 then | |
867 | if beserk == true then | |
868 | humanoid.Health = 0 | |
869 | else | |
870 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
871 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
872 | if math.random(1,100) < critrate+1 then | |
873 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
874 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
875 | else | |
876 | humanoid.Health = humanoid.Health - dmg | |
877 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
878 | end | |
879 | local defence = Instance.new("BoolValue",hit.Parent) | |
880 | defence.Name = ("HitBy"..Player.Name) | |
881 | game:GetService("Debris"):AddItem(defence, 0.1) | |
882 | end | |
883 | end | |
884 | end | |
885 | end | |
886 | ||
887 | function AoEWarp(position,radius) | |
888 | for i,v in ipairs(workspace:GetChildren()) do | |
889 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
890 | local body = v:GetChildren() | |
891 | for part = 1, #body do | |
892 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
893 | if(body[part].Position - position).Magnitude < radius then | |
894 | if v.ClassName == "Model" then | |
895 | if v:FindFirstChild("Humanoid") then | |
896 | if v.Humanoid.Health ~= 0 then | |
897 | if body[part].Position.Y < position.Y+12 then | |
898 | print("Got "..v.Name) | |
899 | local defence = Instance.new("BoolValue",v) | |
900 | defence.Name = ("HitBy"..Player.Name) | |
901 | game:GetService("Debris"):AddItem(defence, 0.01) | |
902 | local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
903 | Warp(TORSO) | |
904 | end | |
905 | end | |
906 | end | |
907 | end | |
908 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
909 | end | |
910 | end | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | ||
916 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
917 | local dmg = math.random(min,max) | |
918 | for i,v in ipairs(workspace:GetChildren()) do | |
919 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
920 | local body = v:GetChildren() | |
921 | for part = 1, #body do | |
922 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
923 | if(body[part].Position - position).Magnitude < radius then | |
924 | if v.ClassName == "Model" then | |
925 | if v:FindFirstChild("Humanoid") then | |
926 | if v.Humanoid.Health ~= 0 then | |
927 | if CanBeDodgedByJumping == true then | |
928 | if body[part].Position.Y < position.Y+5 then | |
929 | if math.random(1,100) < critrate+1 then | |
930 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
931 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
932 | else | |
933 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
934 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
935 | end | |
936 | local defence = Instance.new("BoolValue",v) | |
937 | defence.Name = ("HitBy"..Player.Name) | |
938 | game:GetService("Debris"):AddItem(defence, 0.1) | |
939 | end | |
940 | else | |
941 | if beserk == true then | |
942 | v.Humanoid.Health = 0 | |
943 | end | |
944 | if math.random(1,100) < critrate+1 then | |
945 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
946 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
947 | else | |
948 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
949 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
950 | end | |
951 | local defence = Instance.new("BoolValue",v) | |
952 | defence.Name = ("HitBy"..Player.Name) | |
953 | game:GetService("Debris"):AddItem(defence, 0.1) | |
954 | end | |
955 | end | |
956 | end | |
957 | end | |
958 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
959 | end | |
960 | end | |
961 | end | |
962 | if v.ClassName == "Part" then | |
963 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
964 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
965 | end | |
966 | end | |
967 | end | |
968 | end | |
969 | end | |
970 | ||
971 | function AoEStun(POS,RANGE,LAST,TYPE) | |
972 | for i,v in ipairs(workspace:GetChildren()) do | |
973 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
974 | local body = v:GetChildren() | |
975 | for part = 1, #body do | |
976 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
977 | if(body[part].Position - POS).Magnitude < RANGE then | |
978 | if v.ClassName == "Model" then | |
979 | if v:FindFirstChild("Humanoid") then | |
980 | if v.Humanoid.Health ~= 0 then | |
981 | if TYPE == "Stun" then | |
982 | Stun(v.Humanoid,LAST) | |
983 | elseif TYPE == "Freeze" then | |
984 | Freeze(v.Humanoid,LAST) | |
985 | end | |
986 | local defence = Instance.new("BoolValue",v) | |
987 | defence.Name = ("StunnedBy"..Player.Name) | |
988 | game:GetService("Debris"):AddItem(defence, 0.1) | |
989 | end | |
990 | end | |
991 | end | |
992 | end | |
993 | end | |
994 | end | |
995 | end | |
996 | end | |
997 | end | |
998 | ||
999 | function Warp(Victim) | |
1000 | print("Warping "..Victim.Name.."...") | |
1001 | Victim.Anchored = true | |
1002 | coroutine.resume(coroutine.create(function() | |
1003 | local GUI,GUI2 = CreateGUICircle(Victim) | |
1004 | CreateSound("1208650519", Victim, 10, 1) | |
1005 | for i = 1, 200 do | |
1006 | Swait() | |
1007 | GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0) | |
1008 | GUI2.Rotation = GUI2.Rotation + 2 | |
1009 | end | |
1010 | CastWarpOutlines(Victim.Parent) | |
1011 | Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65)) | |
1012 | CreateSound("1177785010", Victim, 10, 1) | |
1013 | local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid") | |
1014 | if HUMANOID ~= nil then | |
1015 | local dmg = MRANDOM(75,95) | |
1016 | HUMANOID.Health = HUMANOID.Health - dmg | |
1017 | StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
1018 | end | |
1019 | for i = 1, 50 do | |
1020 | Swait() | |
1021 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
1022 | GUI2.Rotation = GUI2.Rotation - 8 | |
1023 | end | |
1024 | Victim.Anchored = false | |
1025 | GUI:remove() | |
1026 | end)) | |
1027 | end | |
1028 | ||
1029 | function Stun(HUMANOID,LAST) | |
1030 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1031 | HUMANOID.PlatformStand = true | |
1032 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1033 | defence.Name = ("StunnedBy"..Player.Name) | |
1034 | game:GetService("Debris"):AddItem(defence, LAST) | |
1035 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1036 | StatLabel("Shock", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
1037 | end | |
1038 | coroutine.resume(coroutine.create(function() | |
1039 | Swait(LAST*100) | |
1040 | HUMANOID.PlatformStand = false | |
1041 | end)) | |
1042 | end | |
1043 | end | |
1044 | ||
1045 | function Freeze(HUMANOID,LAST) | |
1046 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1047 | local q = HUMANOID.Parent:GetChildren() | |
1048 | for i = 1, #q do | |
1049 | local bob = q[i] | |
1050 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
1051 | if bob.Transparency < 1 then | |
1052 | bob.Anchored = true | |
1053 | local icelayer = bob:Clone() | |
1054 | icelayer.Parent = bob | |
1055 | icelayer.Material = "Ice" | |
1056 | icelayer.CanCollide = false | |
1057 | icelayer.BrickColor = BRICKC"Steel blue" | |
1058 | icelayer.Transparency = 0.5 | |
1059 | icelayer.CFrame = bob.CFrame | |
1060 | icelayer.Name = "Ice" | |
1061 | icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1) | |
1062 | if icelayer:FindFirstChildOfClass("Decal") then | |
1063 | icelayer:FindFirstChildOfClass("Decal"):remove() | |
1064 | end | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1069 | defence.Name = ("StunnedBy"..Player.Name) | |
1070 | game:GetService("Debris"):AddItem(defence, LAST) | |
1071 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1072 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Frozen!", C3(0.3, 0.3, 0.3)) | |
1073 | end | |
1074 | coroutine.resume(coroutine.create(function() | |
1075 | Swait(LAST*100) | |
1076 | local q = HUMANOID.Parent:GetChildren() | |
1077 | for i = 1, #q do | |
1078 | local bob = q[i] | |
1079 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
1080 | if bob.Transparency < 1 then | |
1081 | bob.Anchored = false | |
1082 | bob.Ice:remove() | |
1083 | end | |
1084 | end | |
1085 | end | |
1086 | end)) | |
1087 | end | |
1088 | end | |
1089 | ||
1090 | function killnearest(position,range,maxstrength) | |
1091 | for i,v in ipairs(workspace:GetChildren()) do | |
1092 | local body = v:GetChildren() | |
1093 | for part = 1, #body do | |
1094 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1095 | if(body[part].Position - position).Magnitude < range then | |
1096 | table.insert(Effects2,{body[part],"Evaporate",0.005,2,2,2,2}) | |
1097 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1098 | end | |
1099 | end | |
1100 | end | |
1101 | if v.ClassName == "Part" then | |
1102 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1103 | table.insert(Effects2,{v,"Evaporate",0.005,2,2,2,2}) | |
1104 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1105 | end | |
1106 | end | |
1107 | end | |
1108 | end | |
1109 | ||
1110 | --//=================================\\ | |
1111 | --|| ATTACK FUNCTIONS AND STUFF | |
1112 | --\\=================================// | |
1113 | ||
1114 | function Stance1() | |
1115 | VALUE1 = 1 | |
1116 | SKILL1TEXT.Text = "[Z] Turret cannon" | |
1117 | SKILL2TEXT.Text = "[X] Shield pulse" | |
1118 | sick.SoundId = "rbxassetid://196739738" | |
1119 | local wep = Weapon:GetChildren() | |
1120 | for part = 1, #wep do | |
1121 | if wep[part].ClassName == "Part" then | |
1122 | local P = wep[part] | |
1123 | if P.Name == "01-Type" then | |
1124 | P.Material = "Granite" | |
1125 | P.BrickColor = BRICKC"Pearl" | |
1126 | elseif P.Name == "02-Type" then | |
1127 | P.Material = "Metal" | |
1128 | P.BrickColor = BRICKC"Pearl" | |
1129 | elseif P.Name == "03-Type" then | |
1130 | P.Material = "Metal" | |
1131 | P.BrickColor = BRICKC"Really black" | |
1132 | elseif P.Name == "04-Type" then | |
1133 | P.Material = "Neon" | |
1134 | P.BrickColor = BRICKC"Pearl" | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | end | |
1139 | ||
1140 | function Stance2() | |
1141 | VALUE1 = 2 | |
1142 | SKILL1TEXT.Text = "[Z] Fireball" | |
1143 | SKILL2TEXT.Text = "[X] Fire field" | |
1144 | sick.SoundId = "rbxassetid://253050461" | |
1145 | local wep = Weapon:GetChildren() | |
1146 | for part = 1, #wep do | |
1147 | if wep[part].ClassName == "Part" then | |
1148 | local P = wep[part] | |
1149 | if P.Name == "01-Type" then | |
1150 | P.Material = "Granite" | |
1151 | P.BrickColor = BRICKC"Deep orange" | |
1152 | elseif P.Name == "02-Type" then | |
1153 | P.Material = "Metal" | |
1154 | P.BrickColor = BRICKC"Maroon" | |
1155 | elseif P.Name == "03-Type" then | |
1156 | P.Material = "Metal" | |
1157 | P.BrickColor = BRICKC"Really black" | |
1158 | elseif P.Name == "04-Type" then | |
1159 | P.Material = "Neon" | |
1160 | P.BrickColor = BRICKC"CGA brown" | |
1161 | end | |
1162 | end | |
1163 | end | |
1164 | end | |
1165 | ||
1166 | function Stance3() | |
1167 | VALUE1 = 3 | |
1168 | SKILL1TEXT.Text = "[Z] Icicle storm" | |
1169 | SKILL2TEXT.Text = "[X] Frost breath" | |
1170 | sick.SoundId = "rbxassetid://306681534" | |
1171 | local wep = Weapon:GetChildren() | |
1172 | for part = 1, #wep do | |
1173 | if wep[part].ClassName == "Part" then | |
1174 | local P = wep[part] | |
1175 | if P.Name == "01-Type" then | |
1176 | P.Material = "Marble" | |
1177 | P.BrickColor = BRICKC"Medium stone grey" | |
1178 | elseif P.Name == "02-Type" then | |
1179 | P.Material = "Neon" | |
1180 | P.BrickColor = BRICKC"Cyan" | |
1181 | elseif P.Name == "03-Type" then | |
1182 | P.Material = "Metal" | |
1183 | P.BrickColor = BRICKC"Cyan" | |
1184 | elseif P.Name == "04-Type" then | |
1185 | P.Material = "Ice" | |
1186 | P.BrickColor = BRICKC"Steel blue" | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | end | |
1191 | ||
1192 | function Stance4() | |
1193 | VALUE1 = 4 | |
1194 | SKILL1TEXT.Text = "[Z] Shriek" | |
1195 | SKILL2TEXT.Text = "[X] Bloodbath" | |
1196 | sick.SoundId = "rbxassetid://614032233" | |
1197 | local wep = Weapon:GetChildren() | |
1198 | for part = 1, #wep do | |
1199 | if wep[part].ClassName == "Part" then | |
1200 | local P = wep[part] | |
1201 | if P.Name == "01-Type" then | |
1202 | P.Material = "Cobblestone" | |
1203 | P.BrickColor = BRICKC"Really black" | |
1204 | elseif P.Name == "02-Type" then | |
1205 | P.Material = "Metal" | |
1206 | P.BrickColor = BRICKC"Maroon" | |
1207 | elseif P.Name == "03-Type" then | |
1208 | P.Material = "Metal" | |
1209 | P.BrickColor = BRICKC"Black" | |
1210 | elseif P.Name == "04-Type" then | |
1211 | P.Material = "Neon" | |
1212 | P.BrickColor = BRICKC"Really red" | |
1213 | end | |
1214 | end | |
1215 | end | |
1216 | end | |
1217 | ||
1218 | function Stance5() | |
1219 | VALUE1 = 5 | |
1220 | SKILL1TEXT.Text = "[Z] Rock throw" | |
1221 | SKILL2TEXT.Text = "[X] Earth tremor" | |
1222 | sick.SoundId = "rbxassetid://395520245" | |
1223 | local wep = Weapon:GetChildren() | |
1224 | for part = 1, #wep do | |
1225 | if wep[part].ClassName == "Part" then | |
1226 | local P = wep[part] | |
1227 | if P.Name == "01-Type" then | |
1228 | P.Material = "Cobblestone" | |
1229 | P.BrickColor = BRICKC"Rust" | |
1230 | elseif P.Name == "02-Type" then | |
1231 | P.Material = "Cobblestone" | |
1232 | P.BrickColor = BRICKC"CGA brown" | |
1233 | elseif P.Name == "03-Type" then | |
1234 | P.Material = "Marble" | |
1235 | P.BrickColor = BRICKC"Black" | |
1236 | elseif P.Name == "04-Type" then | |
1237 | P.Material = "Slate" | |
1238 | P.BrickColor = BRICKC"Pine cone" | |
1239 | end | |
1240 | end | |
1241 | end | |
1242 | end | |
1243 | ||
1244 | function Stance6() | |
1245 | VALUE1 = 6 | |
1246 | SKILL1TEXT.Text = "[Z] Radiant void" | |
1247 | SKILL2TEXT.Text = "[X] Void warp" | |
1248 | sick.SoundId = "rbxassetid://601021377" | |
1249 | local wep = Weapon:GetChildren() | |
1250 | for part = 1, #wep do | |
1251 | if wep[part].ClassName == "Part" then | |
1252 | local P = wep[part] | |
1253 | if P.Name == "01-Type" then | |
1254 | P.Material = "Granite" | |
1255 | P.BrickColor = BRICKC"Royal purple" | |
1256 | elseif P.Name == "02-Type" then | |
1257 | P.Material = "Slate" | |
1258 | P.BrickColor = BRICKC"Really black" | |
1259 | elseif P.Name == "03-Type" then | |
1260 | P.Material = "Metal" | |
1261 | P.BrickColor = BRICKC"Black" | |
1262 | elseif P.Name == "04-Type" then | |
1263 | P.Material = "Neon" | |
1264 | P.BrickColor = BRICKC"Royal purple" | |
1265 | end | |
1266 | end | |
1267 | end | |
1268 | end | |
1269 | ||
1270 | function Stance7() | |
1271 | VALUE1 = 7 | |
1272 | SKILL1TEXT.Text = "[Z] Divine glow" | |
1273 | SKILL2TEXT.Text = "[X] Divine evaporation" | |
1274 | sick.SoundId = "rbxassetid://965804171" | |
1275 | local wep = Weapon:GetChildren() | |
1276 | for part = 1, #wep do | |
1277 | if wep[part].ClassName == "Part" then | |
1278 | local P = wep[part] | |
1279 | if P.Name == "01-Type" then | |
1280 | P.Material = "Neon" | |
1281 | P.BrickColor = BRICKC"Stone grey" | |
1282 | elseif P.Name == "02-Type" then | |
1283 | P.Material = "Granite" | |
1284 | P.BrickColor = BRICKC"Gold" | |
1285 | elseif P.Name == "03-Type" then | |
1286 | P.Material = "Metal" | |
1287 | P.BrickColor = BRICKC"Gold" | |
1288 | elseif P.Name == "04-Type" then | |
1289 | P.Material = "Granite" | |
1290 | P.BrickColor = BRICKC"New Yeller" | |
1291 | end | |
1292 | end | |
1293 | end | |
1294 | end | |
1295 | ||
1296 | function Stance8() | |
1297 | VALUE1 = 8 | |
1298 | SKILL1TEXT.Text = "[Z] Leaf Storm" | |
1299 | SKILL2TEXT.Text = "[X] Leaf Field" | |
1300 | sick.SoundId = "rbxassetid://630020632" | |
1301 | local wep = Weapon:GetChildren() | |
1302 | for part = 1, #wep do | |
1303 | if wep[part].ClassName == "Part" then | |
1304 | local P = wep[part] | |
1305 | if P.Name == "01-Type" then | |
1306 | P.Material = "Granite" | |
1307 | P.BrickColor = BRICKC"1020" | |
1308 | elseif P.Name == "02-Type" then | |
1309 | P.Material = "Slate" | |
1310 | P.BrickColor = BRICKC"Really black" | |
1311 | elseif P.Name == "03-Type" then | |
1312 | P.Material = "Metal" | |
1313 | P.BrickColor = BRICKC"Shamrock" | |
1314 | elseif P.Name == "04-Type" then | |
1315 | P.Material = "Neon" | |
1316 | P.BrickColor = BRICKC"1020" | |
1317 | end | |
1318 | end | |
1319 | end | |
1320 | end | |
1321 | ||
1322 | function createfireball(size,explosionsize,pos,velocity) | |
1323 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
1324 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
1325 | local FIREBALL = IT("Part",Effects) | |
1326 | FIREBALL.Shape = "Ball" | |
1327 | FIREBALL.Size = VT(size,size,size) | |
1328 | FIREBALL.Material = "Neon" | |
1329 | FIREBALL.CFrame = CF(pos) | |
1330 | FIREBALL.Transparency = 1 | |
1331 | local bv = Instance.new("BodyVelocity") | |
1332 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1333 | bv.velocity = velocity | |
1334 | bv.Parent = FIREBALL | |
1335 | bv.Name = "MOVE" | |
1336 | local HIT = false | |
1337 | local harm = FIREBALL.Touched:Connect(function(hit) | |
1338 | if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then | |
1339 | HIT = true | |
1340 | coroutine.resume(coroutine.create(function() | |
1341 | FIREBALL.Anchored = true | |
1342 | FIREBALL.CanCollide = false | |
1343 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1) | |
1344 | AoEDamage(FIREBALL.Position,explosionsize*2,45,65,25,false,3,2,false,true) | |
1345 | MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3,3,3),0) | |
1346 | MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3.5,3.5,3.5),0) | |
1347 | Swait(250) | |
1348 | FIREBALL:remove() | |
1349 | end)) | |
1350 | end | |
1351 | end) | |
1352 | coroutine.resume(coroutine.create(function() | |
1353 | repeat | |
1354 | Swait() | |
1355 | MagicSphere(VT(size,size,size),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-size/15,-size/15,-size/15),0) | |
1356 | until HIT == true | |
1357 | end)) | |
1358 | return FIREBALL | |
1359 | end | |
1360 | ||
1361 | function AttackTemplate() | |
1362 | ATTACK = true | |
1363 | Rooted = false | |
1364 | for i=0, 1, 0.1 / Animation_Speed do | |
1365 | Swait() | |
1366 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1367 | 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) | |
1368 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1369 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1370 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1371 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1372 | end | |
1373 | ATTACK = false | |
1374 | Rooted = false | |
1375 | end | |
1376 | ||
1377 | local asd = Instance.new("ParticleEmitter") | |
1378 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1379 | asd.LightEmission = .1 | |
1380 | asd.Size = NumberSequence.new(0.2) | |
1381 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1382 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1383 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1384 | asd.Transparency = bbb | |
1385 | asd.Size = aaa | |
1386 | asd.ZOffset = .9 | |
1387 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1388 | asd.LockedToPart = false | |
1389 | asd.EmissionDirection = "Back" | |
1390 | asd.Lifetime = NumberRange.new(1, 2) | |
1391 | asd.Rotation = NumberRange.new(-100, 100) | |
1392 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1393 | asd.Speed = NumberRange.new(25,35) | |
1394 | asd.Enabled = false | |
1395 | asd.VelocitySpread = 15 | |
1396 | ||
1397 | function getbloody(victim,amount) | |
1398 | local PART = IT("Part",Effects) | |
1399 | PART.Transparency = 1 | |
1400 | PART.Size = victim.Size | |
1401 | PART.Anchored = true | |
1402 | PART.CanCollide = false | |
1403 | PART.CFrame = CF(victim.Position,Torso.Position) | |
1404 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1405 | Debris:AddItem(PART,5) | |
1406 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1407 | local prtcl = asd:Clone() | |
1408 | prtcl.Parent = PART | |
1409 | prtcl:Emit(amount*10) | |
1410 | end | |
1411 | ||
1412 | function CreateMagicCircle() | |
1413 | local sinkhole = IT("Part") | |
1414 | sinkhole.Size = VT(0,0,0) | |
1415 | sinkhole.Parent = Effects | |
1416 | sinkhole.Material = "Neon" | |
1417 | sinkhole.Color = C3(0,0,0) | |
1418 | sinkhole.Anchored = true | |
1419 | sinkhole.CanCollide = false | |
1420 | sinkhole.Transparency = 1 | |
1421 | local decal = IT("Decal",sinkhole) | |
1422 | decal.Face = "Top" | |
1423 | decal.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1424 | local decal2 = IT("Decal",sinkhole) | |
1425 | decal2.Face = "Bottom" | |
1426 | decal2.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1427 | return sinkhole | |
1428 | end | |
1429 | ||
1430 | function CreateLeafMagicCircle() | |
1431 | local sinkhole = IT("Part") | |
1432 | sinkhole.Size = VT(0,0,0) | |
1433 | sinkhole.Parent = Effects | |
1434 | sinkhole.Material = "Neon" | |
1435 | sinkhole.Color = C3(0,0,0) | |
1436 | sinkhole.Anchored = true | |
1437 | sinkhole.CanCollide = false | |
1438 | sinkhole.Transparency = 1 | |
1439 | local decal = IT("Decal",sinkhole) | |
1440 | decal.Face = "Top" | |
1441 | decal.Texture = "http://www.roblox.com/asset/?id=332014171" | |
1442 | local decal2 = IT("Decal",sinkhole) | |
1443 | decal2.Face = "Bottom" | |
1444 | decal2.Texture = "http://www.roblox.com/asset/?id=332014171" | |
1445 | return sinkhole | |
1446 | end | |
1447 | ||
1448 | function CreateGUICircle(TARGET) | |
1449 | local GUI = Instance.new("BillboardGui",Character) | |
1450 | GUI.Size = UDim2.new(0,0,0,0) | |
1451 | GUI.Adornee = TARGET | |
1452 | local GUI2 = IT("ImageLabel",GUI) | |
1453 | GUI2.BackgroundTransparency = 1 | |
1454 | GUI2.BorderSizePixel = 0 | |
1455 | GUI2.Size = UDim2.new(1,0,1,0) | |
1456 | GUI2.SizeConstraint = "RelativeYY" | |
1457 | GUI.AlwaysOnTop = true | |
1458 | GUI2.Image = "http://www.roblox.com/asset/?id=1260793696" | |
1459 | return GUI,GUI2 | |
1460 | end | |
1461 | ||
1462 | function CastWarpOutlines(TARGET) | |
1463 | coroutine.resume(coroutine.create(function() | |
1464 | local T = TARGET:GetChildren() | |
1465 | for i = 1, # T do | |
1466 | local child = T[i] | |
1467 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
1468 | local clone = child:Clone() | |
1469 | clone.Parent = Effects | |
1470 | clone.Anchored = true | |
1471 | clone.CanCollide = false | |
1472 | clone:ClearAllChildren() | |
1473 | clone.CFrame = child.CFrame | |
1474 | if clone.Name == "Head" then | |
1475 | if TARGET:FindFirstChildOfClass("MeshPart") == nil then | |
1476 | clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y) | |
1477 | end | |
1478 | end | |
1479 | if clone.ClassName == "MeshPart" then | |
1480 | clone.TextureID = "" | |
1481 | end | |
1482 | clone.BrickColor = BRICKC"Black" | |
1483 | clone.Material = "Neon" | |
1484 | coroutine.resume(coroutine.create(function() | |
1485 | for i = 1, 200 do | |
1486 | Swait() | |
1487 | clone.Transparency = clone.Transparency + 0.005 | |
1488 | clone.Size = clone.Size + VT(0.001,0.001,0.001) | |
1489 | end | |
1490 | clone:remove() | |
1491 | end)) | |
1492 | end | |
1493 | end | |
1494 | end)) | |
1495 | end | |
1496 | ||
1497 | --Z MOVES-- | |
1498 | ||
1499 | function TurretCannon() | |
1500 | ATTACK = true | |
1501 | Rooted = false | |
1502 | for i=0, 2, 0.1 / Animation_Speed do | |
1503 | Swait() | |
1504 | turnto(Mouse.Hit.p) | |
1505 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1506 | 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) | |
1507 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1508 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1509 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1510 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1511 | end | |
1512 | Rooted = true | |
1513 | local TURRETS = {RightArm,LeftArm} | |
1514 | local soundeffect = IT("Sound",Torso) | |
1515 | soundeffect.SoundId = "rbxassetid://337638956" | |
1516 | soundeffect.Looped = true | |
1517 | soundeffect.Volume = 1 | |
1518 | soundeffect.Playing = true | |
1519 | repeat | |
1520 | Swait() | |
1521 | turnto(Mouse.Hit.p) | |
1522 | local TURRET = TURRETS[MRANDOM(1,#TURRETS)] | |
1523 | MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"New Yeller",VT(0.3,0.3,0.3),0) | |
1524 | local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
1525 | BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p) | |
1526 | local bv = Instance.new("BodyVelocity") | |
1527 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1528 | bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300 | |
1529 | bv.Parent = BULLET | |
1530 | bv.Name = "PROJECTILEVELOCITY" | |
1531 | MakeForm(BULLET,"Ball") | |
1532 | local BOO = BULLET.Touched:Connect(function(hit) | |
1533 | dealdamage(hit,5,8,5,false,2,3) | |
1534 | end) | |
1535 | table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2}) | |
1536 | until KEYHOLD == false | |
1537 | soundeffect:remove() | |
1538 | ATTACK = false | |
1539 | Rooted = false | |
1540 | end | |
1541 | ||
1542 | function Fireball() | |
1543 | ATTACK = true | |
1544 | Rooted = true | |
1545 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
1546 | CreateSound("169445572", RightArm, 2, 1.6) | |
1547 | for i=0, 5, 0.1 / Animation_Speed2 do | |
1548 | Swait() | |
1549 | MagicSphere(VT(2,2,2),35,RightArm.CFrame*CF(0,-1,0),FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-2/35,-2/35,-2/35),0.6) | |
1550 | turnto(Mouse.Hit.p) | |
1551 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2) | |
1552 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
1553 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1554 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1555 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1556 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1557 | end | |
1558 | local aimpos = Mouse.Hit.p | |
1559 | createfireball(2,8,RightArm.CFrame * CF(0,-2,0).p,CF(RightArm.CFrame * CF(0,-2,0).p,aimpos).lookVector*100) | |
1560 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
1561 | Swait() | |
1562 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2) | |
1563 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2) | |
1564 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1565 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1566 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1567 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1568 | end | |
1569 | ATTACK = false | |
1570 | Rooted = false | |
1571 | end | |
1572 | ||
1573 | function IcicleStorm() | |
1574 | ATTACK = true | |
1575 | Rooted = false | |
1576 | local BulletHolder = IT("Folder",Weapon) | |
1577 | BulletHolder.Name = "Bullets" | |
1578 | game:GetService("Debris"):AddItem(BulletHolder, 30) | |
1579 | for i=0, 3, 0.1 / Animation_Speed do | |
1580 | Swait() | |
1581 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1582 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1583 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1584 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1585 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1586 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1587 | end | |
1588 | CreateSound("333476017", Torso, 10, 1) | |
1589 | for i = 1, 25 do | |
1590 | Swait() | |
1591 | RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1592 | coroutine.resume(coroutine.create(function() | |
1593 | local gem = IT("Part",BulletHolder) | |
1594 | gem.Size = VT(0.2,0.2,0.2) | |
1595 | gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(25,50),math.random(-25,25)) | |
1596 | gem.Anchored = true | |
1597 | gem.BrickColor = BRICKC"Steel blue" | |
1598 | local Cys = Instance.new("SpecialMesh", gem) | |
1599 | Cys.MeshType = "FileMesh" | |
1600 | Cys.MeshId = "rbxassetid://9756362" | |
1601 | Cys.Scale = Vector3.new(2,2,2) | |
1602 | end)) | |
1603 | end | |
1604 | local IceHitSounds = { | |
1605 | "338594737", | |
1606 | "338594687", | |
1607 | "338594666", | |
1608 | "338594648", | |
1609 | "338594606", | |
1610 | "338594574", | |
1611 | "338594556", | |
1612 | "338594524", | |
1613 | "338594467" | |
1614 | } | |
1615 | coroutine.resume(coroutine.create(function() | |
1616 | q = BulletHolder:GetChildren() | |
1617 | for i = 1, #q do | |
1618 | Swait() | |
1619 | turnto(Mouse.Hit.p) | |
1620 | local bullet = q[i] | |
1621 | local bv = Instance.new("BodyVelocity") | |
1622 | bullet.Mesh.Scale = VT(2,2,5) | |
1623 | bullet.CFrame = CF(bullet.Position,Mouse.Hit.p) | |
1624 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1625 | bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*500 | |
1626 | bv.Parent = bullet | |
1627 | bv.Name = "DASH" | |
1628 | bullet.Anchored = false | |
1629 | local paw = bullet.Touched:Connect(function(hit) | |
1630 | if bullet.Anchored == false then | |
1631 | CreateSound(IceHitSounds[math.random(1, #IceHitSounds)], bullet, 3, 1) | |
1632 | local cframe = bullet.CFrame | |
1633 | bullet.Anchored = true | |
1634 | table.insert(Effects2,{bullet,"Block1",0.015,0,0,0,2}) | |
1635 | AoEDamage(bullet.Position,5,15,15,0,false,5,3,false) | |
1636 | if MRANDOM(1,45) == 1 then | |
1637 | AoEStun(bullet.Position,5,5,"Freeze") | |
1638 | end | |
1639 | end | |
1640 | end) | |
1641 | end | |
1642 | end)) | |
1643 | ATTACK = false | |
1644 | Rooted = false | |
1645 | end | |
1646 | ||
1647 | function Shriek() | |
1648 | ATTACK = true | |
1649 | Rooted = false | |
1650 | for i=0, 1, 0.1 / Animation_Speed do | |
1651 | Swait() | |
1652 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
1653 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1654 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1655 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1656 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
1657 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 , -0.8, -0.2) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
1658 | end | |
1659 | Rooted = true | |
1660 | CreateSound("439369949", Effects, 10, 1) | |
1661 | for i=0, 3, 0.1 / Animation_Speed do | |
1662 | Swait() | |
1663 | MagicSphere(VT(2,2,2),5,Head.CFrame,"Pearl",VT(35,35,35),0.97) | |
1664 | AoEDamage(Head.Position,65,3,5,4,false,12,3,false) | |
1665 | AoEStun(Head.Position,65,2,"Stun") | |
1666 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1667 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)),1 / Animation_Speed) | |
1668 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1669 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1670 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1671 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.2) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1672 | end | |
1673 | ATTACK = false | |
1674 | Rooted = false | |
1675 | end | |
1676 | ||
1677 | function clerp(a, b, t) | |
1678 | return a:lerp(b, t) | |
1679 | end | |
1680 | ||
1681 | function newBezier(startpos, pos2, pos3, endpos, t) | |
1682 | local A = clerp(startpos, pos2, t) | |
1683 | local B = clerp(pos2, pos3, t) | |
1684 | local C = clerp(pos3, endpos, t) | |
1685 | local lerp1 = clerp(A, B, t) | |
1686 | local lerp2 = clerp(B, C, t) | |
1687 | local cubic = clerp(lerp1, lerp2, t) | |
1688 | return cubic | |
1689 | end | |
1690 | ||
1691 | function RockThrow() | |
1692 | ATTACK = true | |
1693 | Rooted = false | |
1694 | for i=0, 2, 0.1 / Animation_Speed do | |
1695 | Swait() | |
1696 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
1697 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
1698 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1699 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1700 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1701 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1702 | end | |
1703 | local ROCK = IT("Part",Effects) | |
1704 | ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0) | |
1705 | ROCK.Size = VT(1.2,1.2,1.2) | |
1706 | ROCK.Material = "Cobblestone" | |
1707 | ROCK.Transparency = 1 | |
1708 | ROCK.BrickColor = BRICKC"Pine Cone" | |
1709 | local WELD = weldBetween(RightArm,ROCK) | |
1710 | ROCK.CanCollide = false | |
1711 | for i = 1, 10 do | |
1712 | Swait() | |
1713 | ROCK.Transparency = ROCK.Transparency - 0.1 | |
1714 | end | |
1715 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1716 | Swait() | |
1717 | turnto(Mouse.Hit.p) | |
1718 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1719 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1720 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1721 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1722 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1723 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1724 | end | |
1725 | WELD:remove() | |
1726 | coroutine.resume(coroutine.create(function() | |
1727 | local POS = ROCK.Position | |
1728 | ROCK.Anchored = true | |
1729 | local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0) | |
1730 | local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0) | |
1731 | for i = 0, 1, 0.07 do | |
1732 | Swait() | |
1733 | ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i)) | |
1734 | end | |
1735 | ROCK.Anchored = false | |
1736 | ROCK.CanCollide = true | |
1737 | CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Pearl",VT(1,0.2,1),0.5) | |
1738 | AoEDamage(ROCK.Position,5,35,55,4,false,12,3,true) | |
1739 | Swait(500) | |
1740 | ROCK.Anchored = true | |
1741 | ROCK.CanCollide = false | |
1742 | for i = 1, 10 do | |
1743 | Swait() | |
1744 | ROCK.Transparency = ROCK.Transparency + 0.1 | |
1745 | end | |
1746 | ROCK:remove() | |
1747 | end)) | |
1748 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1749 | Swait() | |
1750 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1751 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1752 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1753 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1754 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1755 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1756 | end | |
1757 | ATTACK = false | |
1758 | Rooted = false | |
1759 | end | |
1760 | ||
1761 | function RadiantVoid() | |
1762 | ATTACK = true | |
1763 | Rooted = true | |
1764 | for i=0, 1, 0.1 / Animation_Speed do | |
1765 | Swait() | |
1766 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1767 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1768 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1769 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1770 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
1771 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
1772 | end | |
1773 | local RING = CreateMagicCircle() | |
1774 | RING.CFrame = CF(RootPart.Position)*CF(0,-2.8,0) | |
1775 | CreateSound("1208650519", Torso, 10, 1) | |
1776 | for i = 1, 200 do | |
1777 | Swait() | |
1778 | RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/15),RAD(0)) | |
1779 | RING.Size = RING.Size + VT(1,0,1) | |
1780 | end | |
1781 | AoEWarp(RING.Position,RING.Size.X/2) | |
1782 | coroutine.resume(coroutine.create(function() | |
1783 | Swait(75) | |
1784 | for i = 1, 50 do | |
1785 | Swait() | |
1786 | RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(-i/2),RAD(0)) | |
1787 | RING.Size = RING.Size - VT(4,0,4) | |
1788 | end | |
1789 | RING:remove() | |
1790 | end)) | |
1791 | ATTACK = false | |
1792 | Rooted = false | |
1793 | end | |
1794 | ||
1795 | function DivineGlow() | |
1796 | ATTACK = true | |
1797 | Rooted = true | |
1798 | for i=0, 2, 0.1 / Animation_Speed do | |
1799 | Swait() | |
1800 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,0.5),0.5) | |
1801 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1802 | 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) | |
1803 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1804 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1805 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1806 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
1807 | end | |
1808 | CreateSound("3264923", Torso, 10, 3) | |
1809 | coroutine.resume(coroutine.create(function() | |
1810 | local FRAME = Torso.CFrame | |
1811 | MagicSphere(VT(3,3,3),450,FRAME,"New Yeller",VT(-3/550,-3/550,-3/550),0) | |
1812 | for i = 1, 450 do | |
1813 | Swait() | |
1814 | MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"New Yeller",VT(0.001,0.001,2.5),0.5) | |
1815 | AoEDamage(FRAME.p,35,3,5,-5,false,12,3,false) | |
1816 | end | |
1817 | MagicSphere(VT(6,6,6),70,FRAME,"New Yeller",VT(1,1,1),0) | |
1818 | MagicSphere(VT(5,5,5),70,FRAME,"Pearl",VT(1,1,1),0.5) | |
1819 | AoEDamage(FRAME.p,55,45,45,-5,false,2,30,false) | |
1820 | end)) | |
1821 | ATTACK = false | |
1822 | Rooted = false | |
1823 | end | |
1824 | ||
1825 | --X MOVES-- | |
1826 | ||
1827 | function ShieldPulse() | |
1828 | ATTACK = true | |
1829 | Rooted = false | |
1830 | for i=0, 1, 0.1 / Animation_Speed do | |
1831 | Swait() | |
1832 | turnto(Mouse.Hit.p) | |
1833 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1834 | 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.5 / Animation_Speed) | |
1835 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1836 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1837 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1838 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1839 | end | |
1840 | local shield = IT("Part",Effects) | |
1841 | shield.CFrame = RootPart.CFrame * CF(0,0,-3) | |
1842 | shield.Size = VT(0.2,0.2,0.2) | |
1843 | shield.Anchored = true | |
1844 | shield.Material = "Neon" | |
1845 | shield.Color = C3(1,1,1) | |
1846 | shield.Transparency = 0.5 | |
1847 | repeat | |
1848 | Swait() | |
1849 | turnto(Mouse.Hit.p) | |
1850 | shield.CFrame = RootPart.CFrame * CF(0,0,-3) | |
1851 | shield.Size = shield.Size + VT(0.07,0.07,0) | |
1852 | until KEYHOLD == false | |
1853 | local bv = Instance.new("BodyVelocity") | |
1854 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1855 | bv.velocity = RootPart.CFrame.lookVector*300 | |
1856 | bv.Parent = shield | |
1857 | shield.Anchored = false | |
1858 | shield.CanCollide = false | |
1859 | bv.Name = "PROJECTILEVELOCITY" | |
1860 | local BOO = shield.Touched:Connect(function(hit) | |
1861 | dealdamage(hit,55,75,5,false,2,3) | |
1862 | end) | |
1863 | Debris:AddItem(shield,5) | |
1864 | ATTACK = false | |
1865 | Rooted = false | |
1866 | end | |
1867 | ||
1868 | function FireField() | |
1869 | ATTACK = true | |
1870 | Rooted = true | |
1871 | for i=0, 1.5, 0.1 / Animation_Speed*3 do | |
1872 | Swait() | |
1873 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
1874 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1875 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1876 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1877 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1878 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1879 | end | |
1880 | CreateSound("217767125", LeftArm, 10, 1) | |
1881 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
1882 | coroutine.resume(coroutine.create(function() | |
1883 | local CFRAME = RootPart.CFrame * CF(0,-3.4,0) | |
1884 | for i = 1, 450 do | |
1885 | Swait() | |
1886 | AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true) | |
1887 | MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8) | |
1888 | end | |
1889 | end)) | |
1890 | for i=0, 1.5, 0.1 / Animation_Speed do | |
1891 | Swait() | |
1892 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
1893 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1894 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1895 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1896 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1897 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1898 | end | |
1899 | ATTACK = false | |
1900 | Rooted = false | |
1901 | end | |
1902 | ||
1903 | function FrostBreath() | |
1904 | ATTACK = true | |
1905 | Rooted = true | |
1906 | for i=0, 2, 0.1 / Animation_Speed do | |
1907 | Swait() | |
1908 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1909 | 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) | |
1910 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1911 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1912 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1913 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1914 | end | |
1915 | CreateSound("976606790", Head, 10, 2) | |
1916 | local IceColors = {"Steel blue","Cyan","Pastel blue-green"} | |
1917 | for i=0, 4, 0.1 / Animation_Speed do | |
1918 | Swait() | |
1919 | for i = 1, 6 do | |
1920 | AoEStun(Head.CFrame * CF(0,-0.4,-i*3).p,i*3,35,"Freeze") | |
1921 | CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/15,i/10,i/15),0.7) | |
1922 | CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/10,i/10,i/10),0.7) | |
1923 | end | |
1924 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1925 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1926 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1927 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1928 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1929 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1930 | end | |
1931 | ATTACK = false | |
1932 | Rooted = false | |
1933 | end | |
1934 | ||
1935 | function Bloodbath() | |
1936 | local HASSTARTED = false | |
1937 | local target = nil | |
1938 | local targettorso = nil | |
1939 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1940 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1941 | target = Mouse.Target.Parent.Humanoid | |
1942 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1943 | end | |
1944 | end | |
1945 | if target ~= nil then | |
1946 | CreateSound("305685800", Head, 10, 1) | |
1947 | targettorso.Anchored = true | |
1948 | HASSTARTED = true | |
1949 | ATTACK = true | |
1950 | Rooted = true | |
1951 | CastWarpOutlines(Character) | |
1952 | RootPart.CFrame = targettorso.CFrame * CF(0,0,2) | |
1953 | coroutine.resume(coroutine.create(function() | |
1954 | Swait(10*100) | |
1955 | if HASSTARTED == true then | |
1956 | ATTACK = false | |
1957 | Rooted = false | |
1958 | UNANCHOR = true | |
1959 | end | |
1960 | end)) | |
1961 | UNANCHOR = false | |
1962 | RootPart.Anchored = true | |
1963 | coroutine.resume(coroutine.create(function() | |
1964 | for i=0, 3, 0.1 / Animation_Speed do | |
1965 | Swait() | |
1966 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed) | |
1967 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed) | |
1968 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) | |
1969 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) | |
1970 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
1971 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
1972 | end | |
1973 | for i=0, 3, 0.1 / Animation_Speed do | |
1974 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed) | |
1975 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed) | |
1976 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1977 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1978 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1979 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1980 | end | |
1981 | getbloody(targettorso,25) | |
1982 | Swait(5) | |
1983 | targettorso:remove() | |
1984 | Swait(15) | |
1985 | ATTACK = false | |
1986 | Rooted = false | |
1987 | HASSTARTED = false | |
1988 | UNANCHOR = true | |
1989 | end)) | |
1990 | end | |
1991 | end | |
1992 | ||
1993 | function EarthTremor() | |
1994 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1995 | if HITFLOOR ~= nil then | |
1996 | ATTACK = true | |
1997 | Rooted = true | |
1998 | for i=0, 2, 0.1 / Animation_Speed do | |
1999 | Swait() | |
2000 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2001 | 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.3 / Animation_Speed) | |
2002 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2003 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2004 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2005 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.3 / Animation_Speed) | |
2006 | end | |
2007 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2008 | Swait() | |
2009 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2010 | 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.75 / Animation_Speed) | |
2011 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2012 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2013 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed) | |
2014 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed) | |
2015 | end | |
2016 | CreateSound("438666141", RightLeg, 5, 1) | |
2017 | local sinkhole = IT("Part") | |
2018 | sinkhole.Size = VT(35,0,35) | |
2019 | sinkhole.Parent = Effects | |
2020 | sinkhole.Material = "Neon" | |
2021 | sinkhole.Color = C3(0,0,0) | |
2022 | sinkhole.Anchored = true | |
2023 | sinkhole.CanCollide = false | |
2024 | sinkhole.Transparency = 1 | |
2025 | local decal = IT("Decal",sinkhole) | |
2026 | decal.Face = "Top" | |
2027 | decal.Texture = "http://www.roblox.com/asset/?id=29268434" | |
2028 | decal.Transparency = 1 | |
2029 | sinkhole.CFrame = CF(RightLeg.Position)*CF(0,-0.75,0) | |
2030 | AoEDamage(RightLeg.Position,35,15,25,4,false,32,7,true) | |
2031 | coroutine.resume(coroutine.create(function() | |
2032 | for i = 1, 5 do | |
2033 | Swait() | |
2034 | decal.Transparency = decal.Transparency - 0.2 | |
2035 | end | |
2036 | Swait(500) | |
2037 | for i = 1, 5 do | |
2038 | Swait() | |
2039 | decal.Transparency = decal.Transparency + 0.2 | |
2040 | end | |
2041 | sinkhole:remove() | |
2042 | end)) | |
2043 | for i=0, 1, 0.1 / Animation_Speed do | |
2044 | Swait() | |
2045 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2046 | 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.75 / Animation_Speed) | |
2047 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2048 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2049 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed) | |
2050 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed) | |
2051 | end | |
2052 | ATTACK = false | |
2053 | Rooted = false | |
2054 | end | |
2055 | end | |
2056 | ||
2057 | function VoidWarp() | |
2058 | local HASSTARTED = false | |
2059 | local target = nil | |
2060 | local targettorso = nil | |
2061 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2062 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2063 | target = Mouse.Target.Parent.Humanoid | |
2064 | targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2065 | end | |
2066 | end | |
2067 | if target ~= nil then | |
2068 | ATTACK = true | |
2069 | Rooted = true | |
2070 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2071 | Swait() | |
2072 | if targettorso ~= nil then | |
2073 | turnto(targettorso.Position) | |
2074 | end | |
2075 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2076 | 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) | |
2077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2079 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / 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(0)), 0.15 / Animation_Speed) | |
2081 | end | |
2082 | if targettorso ~= nil then | |
2083 | local GUI,GUI3 = CreateGUICircle(targettorso) | |
2084 | local GUI2,GUI4 = CreateGUICircle(Torso) | |
2085 | CreateSound("1208650519", targettorso, 10, 1) | |
2086 | CreateSound("1208650519", Torso, 10, 1) | |
2087 | targettorso.Anchored = true | |
2088 | for i = 1, 200 do | |
2089 | Swait() | |
2090 | GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0) | |
2091 | GUI2.Size = GUI.Size | |
2092 | GUI3.Rotation = GUI3.Rotation + 2 | |
2093 | GUI4.Rotation = GUI4.Rotation - 2 | |
2094 | end | |
2095 | if targettorso ~= nil then | |
2096 | CastWarpOutlines(targettorso.Parent) | |
2097 | CastWarpOutlines(Character) | |
2098 | local TFrame = Torso.CFrame | |
2099 | local TTFrame = targettorso.CFrame | |
2100 | Torso.CFrame = TTFrame | |
2101 | targettorso.CFrame = TFrame | |
2102 | local HUMANOID = targettorso.Parent:FindFirstChildOfClass("Humanoid") | |
2103 | local dmg = MRANDOM(75,95) | |
2104 | HUMANOID.Health = HUMANOID.Health - dmg | |
2105 | StatLabel("Normal", targettorso.CFrame * CF(0, 0 + (targettorso.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
2106 | CreateSound("1177785010", targettorso, 10, 1) | |
2107 | CreateSound("1177785010", Torso, 10, 1) | |
2108 | HASSTARTED = true | |
2109 | coroutine.resume(coroutine.create(function() | |
2110 | for i = 1, 50 do | |
2111 | Swait() | |
2112 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
2113 | GUI2.Size = GUI.Size | |
2114 | GUI3.Rotation = GUI3.Rotation - 8 | |
2115 | GUI4.Rotation = GUI4.Rotation + 8 | |
2116 | end | |
2117 | GUI:remove() | |
2118 | GUI2:remove() | |
2119 | targettorso.Anchored = false | |
2120 | end)) | |
2121 | end | |
2122 | if HASSTARTED == false then | |
2123 | GUI:remove() | |
2124 | GUI2:remove() | |
2125 | end | |
2126 | end | |
2127 | ATTACK = false | |
2128 | Rooted = false | |
2129 | end | |
2130 | end | |
2131 | ||
2132 | function DivineEvaporation() | |
2133 | ATTACK = true | |
2134 | Rooted = false | |
2135 | for i=0, 6, 0.1 / Animation_Speed do | |
2136 | Swait() | |
2137 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,1),0) | |
2138 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2139 | 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) | |
2140 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2141 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2142 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2143 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2144 | end | |
2145 | CreateSound("3264923", Torso, 10, 1) | |
2146 | for i = 1, 50 do | |
2147 | MagicSphere(VT(0.2,0.2,0.2),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.005,0.005,0.1),0) | |
2148 | end | |
2149 | MagicSphere(VT(20,20,20),50,Torso.CFrame,"New Yeller",VT(0,0,0),0.9) | |
2150 | killnearest(Torso.Position,15,5) | |
2151 | ATTACK = false | |
2152 | Rooted = false | |
2153 | end | |
2154 | ||
2155 | ||
2156 | function LeafField() | |
2157 | ATTACK = true | |
2158 | Rooted = true | |
2159 | for i=0, 1.5, 0.1 / Animation_Speed*3 do | |
2160 | Swait() | |
2161 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2162 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2163 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2164 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2165 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2166 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2167 | end | |
2168 | CreateSound("217767125", LeftArm, 10, 1) | |
2169 | local FIREBALLCOLORS = {"Lime green", "Mint", "Forest green"} | |
2170 | coroutine.resume(coroutine.create(function() | |
2171 | local CFRAME = RootPart.CFrame * CF(0,-3.4,0) | |
2172 | for i = 1, 450 do | |
2173 | Swait() | |
2174 | AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true) | |
2175 | MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8) | |
2176 | end | |
2177 | end)) | |
2178 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2179 | Swait() | |
2180 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2181 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2182 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2183 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2184 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2185 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2186 | end | |
2187 | ATTACK = false | |
2188 | Rooted = false | |
2189 | end | |
2190 | ||
2191 | ||
2192 | function LeafStorm() | |
2193 | ATTACK = true | |
2194 | ATTACK = true | |
2195 | Rooted = false | |
2196 | for i=0, 2, 0.1 / Animation_Speed do | |
2197 | Swait() | |
2198 | turnto(Mouse.Hit.p) | |
2199 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2200 | 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) | |
2201 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2202 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2203 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2204 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2205 | end | |
2206 | Rooted = true | |
2207 | local TURRETS = {RightArm,LeftArm} | |
2208 | local soundeffect = IT("Sound",Torso) | |
2209 | soundeffect.SoundId = "rbxassetid://337638956" | |
2210 | soundeffect.Looped = true | |
2211 | soundeffect.Volume = 1 | |
2212 | soundeffect.Playing = true | |
2213 | repeat | |
2214 | Swait() | |
2215 | turnto(Mouse.Hit.p) | |
2216 | local TURRET = TURRETS[MRANDOM(1,#TURRETS)] | |
2217 | MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Shamrock",VT(0.3,0.3,0.3),0) | |
2218 | local BULLET = CreatePart(3, Effects, "Grass", 0, 0, "Shamrock", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
2219 | BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p) | |
2220 | local bv = Instance.new("BodyVelocity") | |
2221 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2222 | bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300 | |
2223 | bv.Parent = BULLET | |
2224 | bv.Name = "PROJECTILEVELOCITY" | |
2225 | MakeForm(BULLET,"Ball") | |
2226 | local BOO = BULLET.Touched:Connect(function(hit) | |
2227 | dealdamage(hit,5,8,5,false,2,3) | |
2228 | end) | |
2229 | table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2}) | |
2230 | until KEYHOLD == false | |
2231 | soundeffect:remove() | |
2232 | ATTACK = false | |
2233 | Rooted = false | |
2234 | end | |
2235 | ||
2236 | --//=================================\\ | |
2237 | --|| ASSIGN THINGS TO KEYS | |
2238 | --\\=================================// | |
2239 | ||
2240 | function ChineseEarthquake() | |
2241 | Rooted = true | |
2242 | local icri = CreateSound("1177999394", Torso, 10, 1) | |
2243 | Swait(130) | |
2244 | local FRAME = Torso.CFrame | |
2245 | repeat | |
2246 | Swait() | |
2247 | Torso.CFrame = FRAME * CF(0,1,0) | |
2248 | Swait() | |
2249 | Torso.CFrame = FRAME | |
2250 | until icri.Playing == false | |
2251 | Rooted = false | |
2252 | end | |
2253 | ||
2254 | function MouseDown(Mouse) | |
2255 | if ATTACK == false then | |
2256 | end | |
2257 | end | |
2258 | ||
2259 | function MouseUp(Mouse) | |
2260 | HOLD = false | |
2261 | end | |
2262 | ||
2263 | function KeyDown(Key) | |
2264 | KEYHOLD = true | |
2265 | if Rooted == false then | |
2266 | if Key == "z" and ATTACK == false then | |
2267 | if VALUE1 == 1 then | |
2268 | TurretCannon() | |
2269 | elseif VALUE1 == 2 then | |
2270 | Fireball() | |
2271 | elseif VALUE1 == 3 then | |
2272 | IcicleStorm() | |
2273 | elseif VALUE1 == 4 then | |
2274 | Shriek() | |
2275 | elseif VALUE1 == 5 then | |
2276 | RockThrow() | |
2277 | elseif VALUE1 == 6 then | |
2278 | RadiantVoid() | |
2279 | elseif VALUE1 == 7 then | |
2280 | DivineGlow() | |
2281 | elseif VALUE1 == 8 then | |
2282 | LeafStorm() | |
2283 | end | |
2284 | end | |
2285 | ||
2286 | if Key == "x" and ATTACK == false then | |
2287 | if VALUE1 == 1 then | |
2288 | ShieldPulse() | |
2289 | elseif VALUE1 == 2 then | |
2290 | FireField() | |
2291 | elseif VALUE1 == 3 then | |
2292 | FrostBreath() | |
2293 | elseif VALUE1 == 4 then | |
2294 | Bloodbath() | |
2295 | elseif VALUE1 == 5 then | |
2296 | EarthTremor() | |
2297 | elseif VALUE1 == 6 then | |
2298 | VoidWarp() | |
2299 | elseif VALUE1 == 7 then | |
2300 | DivineEvaporation() | |
2301 | elseif VALUE1 == 8 then | |
2302 | LeafField() | |
2303 | end | |
2304 | end | |
2305 | ||
2306 | if Key == "1" and ATTACK == false then | |
2307 | Stance1() | |
2308 | end | |
2309 | ||
2310 | if Key == "2" and ATTACK == false then | |
2311 | Stance2() | |
2312 | end | |
2313 | ||
2314 | if Key == "3" and ATTACK == false then | |
2315 | Stance3() | |
2316 | end | |
2317 | ||
2318 | if Key == "4" and ATTACK == false then | |
2319 | Stance4() | |
2320 | end | |
2321 | ||
2322 | if Key == "5" and ATTACK == false then | |
2323 | Stance5() | |
2324 | end | |
2325 | ||
2326 | if Key == "6" and ATTACK == false then | |
2327 | Stance6() | |
2328 | end | |
2329 | ||
2330 | if Key == "7" and ATTACK == false then | |
2331 | Stance7() | |
2332 | end | |
2333 | ||
2334 | if Key == "8" and ATTACK == false then | |
2335 | Stance8() | |
2336 | end | |
2337 | ||
2338 | if Key == "t" and ATTACK == false and VALUE1 == 5 then | |
2339 | ChineseEarthquake() | |
2340 | end | |
2341 | end | |
2342 | end | |
2343 | ||
2344 | function KeyUp(Key) | |
2345 | KEYHOLD = false | |
2346 | end | |
2347 | ||
2348 | Mouse.Button1Down:connect(function(NEWKEY) | |
2349 | MouseDown(NEWKEY) | |
2350 | end) | |
2351 | Mouse.Button1Up:connect(function(NEWKEY) | |
2352 | MouseUp(NEWKEY) | |
2353 | end) | |
2354 | Mouse.KeyDown:connect(function(NEWKEY) | |
2355 | KeyDown(NEWKEY) | |
2356 | end) | |
2357 | Mouse.KeyUp:connect(function(NEWKEY) | |
2358 | KeyUp(NEWKEY) | |
2359 | end) | |
2360 | ||
2361 | --//=================================\\ | |
2362 | --\\=================================// | |
2363 | ||
2364 | ||
2365 | function unanchor() | |
2366 | if UNANCHOR == true then | |
2367 | g = Character:GetChildren() | |
2368 | for i = 1, #g do | |
2369 | if g[i].ClassName == "Part" then | |
2370 | g[i].Anchored = false | |
2371 | end | |
2372 | end | |
2373 | end | |
2374 | end | |
2375 | ||
2376 | ||
2377 | --//=================================\\ | |
2378 | --|| WRAP THE WHOLE SCRIPT UP | |
2379 | --\\=================================// | |
2380 | ||
2381 | Humanoid.Changed:connect(function(Jump) | |
2382 | if Jump == "Jump" and (Disable_Jump == true) then | |
2383 | Humanoid.Jump = false | |
2384 | end | |
2385 | end) | |
2386 | ||
2387 | VALUE1 = 1 | |
2388 | Speed = 25 | |
2389 | ||
2390 | while true do | |
2391 | Swait() | |
2392 | ANIMATE.Parent = nil | |
2393 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2394 | IDLEANIMATION:Play() | |
2395 | SINE = SINE + CHANGE | |
2396 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2397 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2398 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2399 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2400 | local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16) | |
2401 | if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then | |
2402 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2403 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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) | |
2404 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2405 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2406 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2407 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2408 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2409 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2410 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2411 | end | |
2412 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2413 | ANIM = "Jump" | |
2414 | if ATTACK == false then | |
2415 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2416 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2419 | 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) | |
2420 | 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) | |
2421 | end | |
2422 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2423 | ANIM = "Fall" | |
2424 | if ATTACK == false then | |
2425 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2426 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2427 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2428 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2429 | 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) | |
2430 | 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) | |
2431 | end | |
2432 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2433 | ANIM = "Idle" | |
2434 | if ATTACK == false then | |
2435 | if VALUE1 == 1 then | |
2436 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2437 | 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) | |
2438 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2439 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2440 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2441 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2442 | elseif VALUE1 == 2 then | |
2443 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
2444 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
2445 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2446 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2447 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2448 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2449 | elseif VALUE1 == 3 then | |
2450 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2451 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2452 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2453 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2454 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2455 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2456 | elseif VALUE1 == 4 then | |
2457 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2458 | 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) | |
2459 | if MRANDOM(1,15) == 1 then | |
2460 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
2461 | end | |
2462 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2463 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2464 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2465 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2466 | elseif VALUE1 == 5 then | |
2467 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2468 | 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) | |
2469 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2470 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2471 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2472 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2473 | elseif VALUE1 == 6 then | |
2474 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2475 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2476 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2477 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2478 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 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) | |
2479 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2480 | elseif VALUE1 == 7 then | |
2481 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2482 | 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) | |
2483 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2484 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2485 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2486 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2487 | elseif VALUE1 == 8 then | |
2488 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + -0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
2489 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
2490 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2491 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2492 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2493 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2494 | end | |
2495 | end | |
2496 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2497 | ANIM = "Walk" | |
2498 | WALK = WALK + 1 / Animation_Speed | |
2499 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2500 | WALK = 0 | |
2501 | if WALKINGANIM == true then | |
2502 | WALKINGANIM = false | |
2503 | elseif WALKINGANIM == false then | |
2504 | WALKINGANIM = true | |
2505 | end | |
2506 | end | |
2507 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2508 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2509 | if ATTACK == false then | |
2510 | if VALUE1 < 4 or VALUE1 == 6 then | |
2511 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2512 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2513 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2514 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2515 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2516 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2517 | elseif VALUE1 == 4 then | |
2518 | 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) | |
2519 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2520 | if MRANDOM(1,15) == 1 then | |
2521 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
2522 | end | |
2523 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2524 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2525 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
2526 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
2527 | elseif VALUE1 == 7 then | |
2528 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2529 | 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) | |
2530 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2531 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2532 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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) | |
2534 | elseif VALUE1 == 5 then | |
2535 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2536 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2537 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2538 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2539 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2540 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2541 | elseif VALUE1 == 8 then | |
2542 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2543 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2544 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2545 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2546 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2547 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2548 | end | |
2549 | end | |
2550 | end | |
2551 | if #Effects2>0 then | |
2552 | for e=1,#Effects2 do | |
2553 | if Effects2[e]~=nil then | |
2554 | local Thing=Effects2[e] | |
2555 | if Thing~=nil then | |
2556 | local Part=Thing[1] | |
2557 | local Mode=Thing[2] | |
2558 | local Delay=Thing[3] | |
2559 | local IncX=Thing[4] | |
2560 | local IncY=Thing[5] | |
2561 | local IncZ=Thing[6] | |
2562 | local Part2=Thing[8] | |
2563 | if Thing[1].Transparency<=1 then | |
2564 | if Thing[2]=="Block1" then | |
2565 | Thing[1].CFrame=Thing[1].CFrame | |
2566 | Mesh=Thing[1].Mesh | |
2567 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2568 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2569 | elseif Thing[2]=="Cylinder" then | |
2570 | Mesh=Thing[1].Mesh | |
2571 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2572 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2573 | elseif Thing[2]=="Blood" then | |
2574 | Mesh=Thing[7] | |
2575 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
2576 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2577 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2578 | elseif Thing[2]=="Elec" then | |
2579 | Mesh=Thing[1].Mesh | |
2580 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
2581 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2582 | elseif Thing[2]=="Disappear" then | |
2583 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2584 | elseif Thing[2]=="Evaporate" then | |
2585 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2586 | local C = {-5,-2,2,5} | |
2587 | MagicSphere(VT(0,0,0),15,CF(Thing[1].CFrame*CF(C[MRANDOM(1,#C)],C[MRANDOM(1,#C)],C[MRANDOM(1,#C)]).p,Thing[1].Position),"New Yeller",VT(0.01,0.01,0.5),0.8) | |
2588 | end | |
2589 | else | |
2590 | Part.Parent=nil | |
2591 | table.remove(Effects2,e) | |
2592 | end | |
2593 | end | |
2594 | end | |
2595 | end | |
2596 | end | |
2597 | unanchor() | |
2598 | Humanoid.MaxHealth = "inf" | |
2599 | Humanoid.Health = "inf" | |
2600 | if Rooted == false then | |
2601 | Disable_Jump = false | |
2602 | Humanoid.WalkSpeed = Speed | |
2603 | elseif Rooted == true then | |
2604 | Disable_Jump = true | |
2605 | Humanoid.WalkSpeed = 0 | |
2606 | end | |
2607 | local MATHS = {"0","1"} | |
2608 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
2609 | Humanoid.PlatformStand = false | |
2610 | end | |
2611 | ||
2612 | --//=================================\\ | |
2613 | --\\=================================// | |
2614 | ||
2615 | ||
2616 | ||
2617 | ||
2618 | ||
2619 | --//====================================================\\-- | |
2620 | --|| END OF SCRIPT | |
2621 | --\\====================================================//-- |