SHOW:
|
|
- or go back to the newest paste.
1 | local cR=255 | |
2 | local cG=0 | |
3 | local cB=0 | |
4 | local flg5=1 local omgidk=1 | |
5 | local add=7.5 | |
6 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
7 | if omgidk>10000 then omgidk=0 end | |
8 | omgidk=omgidk+1 | |
9 | if cR>=255 then flg5=1 end | |
10 | if cG>=255 then flg5=2 end | |
11 | if cB>=255 then flg5=3 end | |
12 | if flg5==1 then cR=cR-add cG=cG+add end | |
13 | if flg5==2 then cG=cG-add cB=cB+add end | |
14 | if flg5==3 then cB=cB-add cR=cR+add end | |
15 | color = Color3.fromRGB(cR,cG,cB) | |
16 | end) | |
17 | ||
18 | --//====================================================\\-- | |
19 | --|| CREATED BY SHACKLUSTER | |
20 | --\\====================================================//-- | |
21 | ||
22 | print("------------------------------------------------") | |
23 | ||
24 | print("Script created by Shackluster") | |
25 | print("Edit by 1x1x1x1x1x1x1x0x0x2") | |
26 | print("Script.name = What you glove.") | |
27 | ||
28 | print("------------------------------------------------") | |
29 | wait(0.2) | |
30 | ||
31 | ||
32 | ||
33 | Player = game:GetService("Players").LocalPlayer | |
34 | PlayerGui = Player.PlayerGui | |
35 | Cam = workspace.CurrentCamera | |
36 | Backpack = Player.Backpack | |
37 | Character = Player.Character | |
38 | Humanoid = Character.Humanoid | |
39 | Mouse = Player:GetMouse() | |
40 | RootPart = Character["HumanoidRootPart"] | |
41 | Torso = Character["Torso"] | |
42 | Head = Character["Head"] | |
43 | RightArm = Character["Right Arm"] | |
44 | LeftArm = Character["Left Arm"] | |
45 | RightLeg = Character["Right Leg"] | |
46 | LeftLeg = Character["Left Leg"] | |
47 | RootJoint = RootPart["RootJoint"] | |
48 | Neck = Torso["Neck"] | |
49 | RightShoulder = Torso["Right Shoulder"] | |
50 | LeftShoulder = Torso["Left Shoulder"] | |
51 | RightHip = Torso["Right Hip"] | |
52 | LeftHip = Torso["Left Hip"] | |
53 | local sick = Instance.new("Sound",Character) | |
54 | sick.SoundId = "rbxassetid://165704299" | |
55 | sick.Looped = true | |
56 | sick.Pitch = 1 | |
57 | sick.Volume = 1 | |
58 | sick:Play() | |
59 | ||
60 | IT = Instance.new | |
61 | CF = CFrame.new | |
62 | VT = Vector3.new | |
63 | RAD = math.rad | |
64 | C3 = Color3.new | |
65 | UD2 = UDim2.new | |
66 | BRICKC = BrickColor.new | |
67 | ANGLES = CFrame.Angles | |
68 | EULER = CFrame.fromEulerAnglesXYZ | |
69 | COS = math.cos | |
70 | ACOS = math.acos | |
71 | SIN = math.sin | |
72 | ASIN = math.asin | |
73 | ABS = math.abs | |
74 | MRANDOM = math.random | |
75 | FLOOR = math.floor | |
76 | ||
77 | yee = Instance.new("ForceField", Character) | |
78 | yee.Visible = false | |
79 | ||
80 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
81 | local NEWMESH = IT(MESH) | |
82 | if MESH == "SpecialMesh" then | |
83 | NEWMESH.MeshType = MESHTYPE | |
84 | if MESHID ~= "nil" and MESHID ~= "" then | |
85 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
86 | end | |
87 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
88 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
89 | end | |
90 | end | |
91 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
92 | NEWMESH.Scale = SCALE | |
93 | NEWMESH.Parent = PARENT | |
94 | return NEWMESH | |
95 | end | |
96 | ||
97 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
98 | local NEWPART = IT("Part") | |
99 | NEWPART.formFactor = FORMFACTOR | |
100 | NEWPART.Reflectance = REFLECTANCE | |
101 | NEWPART.Transparency = TRANSPARENCY | |
102 | NEWPART.CanCollide = false | |
103 | NEWPART.Locked = true | |
104 | NEWPART.Anchored = true | |
105 | if ANCHOR == false then | |
106 | NEWPART.Anchored = false | |
107 | end | |
108 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
109 | NEWPART.Name = NAME | |
110 | NEWPART.Size = SIZE | |
111 | NEWPART.Position = Torso.Position | |
112 | NEWPART.Material = MATERIAL | |
113 | NEWPART:BreakJoints() | |
114 | NEWPART.Parent = PARENT | |
115 | return NEWPART | |
116 | end | |
117 | ||
118 | --//=================================\\ | |
119 | --|| CUSTOMIZATION | |
120 | --\\=================================// | |
121 | ||
122 | Player_Size = 1 --Size of the player. | |
123 | Animation_Speed = 3 | |
124 | Animation_Speed2 = 0.8 | |
125 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
126 | ||
127 | local Speed = 20 | |
128 | local Effects2 = {} | |
129 | ||
130 | --//=================================\\ | |
131 | --|| END OF CUSTOMIZATION | |
132 | --\\=================================// | |
133 | ||
134 | local function weldBetween(a, b) | |
135 | local weldd = Instance.new("ManualWeld") | |
136 | weldd.Part0 = a | |
137 | weldd.Part1 = b | |
138 | weldd.C0 = CFrame.new() | |
139 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
140 | weldd.Parent = a | |
141 | return weldd | |
142 | end | |
143 | ||
144 | --//=================================\\ | |
145 | --|| USEFUL VALUES | |
146 | --\\=================================// | |
147 | ||
148 | local CO1 = 0 | |
149 | local CO2 = 0 | |
150 | local CO3 = 0 | |
151 | local CO4 = 0 | |
152 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
153 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
154 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
155 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
156 | local CHANGEDEFENSE = 0 | |
157 | local CHANGEDAMAGE = 0 | |
158 | local CHANGEMOVEMENT = 0 | |
159 | local ANIM = "Idle" | |
160 | local ATTACK = false | |
161 | local EQUIPPED = false | |
162 | local HOLD = false | |
163 | local COMBO = 1 | |
164 | local Rooted = false | |
165 | local SINE = 0 | |
166 | local KEYHOLD = false | |
167 | local BLCF = nil | |
168 | local SCFR = nil | |
169 | local STAGGERHITANIM = false | |
170 | local STAGGERANIM = false | |
171 | local STUNANIM = false | |
172 | local CRITCHANCENUMBER = 0 | |
173 | local IDLENUMBER = 0 | |
174 | local DONUMBER = 0 | |
175 | local HANDIDLE = false | |
176 | local CHANGE = 2 / Animation_Speed | |
177 | local WALKINGANIM = false | |
178 | local WALK = 0 | |
179 | local VALUE1 = false | |
180 | local VALUE2 = false | |
181 | local DISABLEJUMPING = false | |
182 | local HASBEENBLOCKED = false | |
183 | local STUNDELAYNUMBER = 0 | |
184 | local MANADELAYNUMBER = 0 | |
185 | local SECONDARYMANADELAYNUMBER = 0 | |
186 | local ROBLOXIDLEANIMATION = IT("Animation") | |
187 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
188 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
189 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
190 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
191 | WEAPONGUI.Name = "Weapon GUI" | |
192 | local Weapon = IT("Model") | |
193 | Weapon.Name = "Adds" | |
194 | local HITFLOOR = nil | |
195 | local Effects = IT("Folder", Weapon) | |
196 | Effects.Name = "Effects" | |
197 | local ANIMATOR = Humanoid.Animator | |
198 | local ANIMATE = Character.Animate | |
199 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
200 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
201 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
202 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
203 | local UNANCHOR = true | |
204 | local HURTSOUND = "1080625252" | |
205 | local DEATHSOUNDS = {"340963282", "340963317"} | |
206 | ||
207 | local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255) | |
208 | local CHOSENBRICK = "Gold" | |
209 | local CHOSENBRICK1 = "White" | |
210 | local CHOSENBRICK2 = "Gold" | |
211 | ||
212 | --//=================================\\ | |
213 | --\\=================================// | |
214 | ||
215 | ||
216 | --//=================================\\ | |
217 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
218 | --\\=================================// | |
219 | ||
220 | ArtificialHB = Instance.new("BindableEvent", script) | |
221 | ArtificialHB.Name = "ArtificialHB" | |
222 | ||
223 | script:WaitForChild("ArtificialHB") | |
224 | ||
225 | frame = Frame_Speed | |
226 | tf = 0 | |
227 | allowframeloss = false | |
228 | tossremainder = false | |
229 | lastframe = tick() | |
230 | script.ArtificialHB:Fire() | |
231 | ||
232 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
233 | tf = tf + s | |
234 | if tf >= frame then | |
235 | if allowframeloss then | |
236 | script.ArtificialHB:Fire() | |
237 | lastframe = tick() | |
238 | else | |
239 | for i = 1, math.floor(tf / frame) do | |
240 | script.ArtificialHB:Fire() | |
241 | end | |
242 | lastframe = tick() | |
243 | end | |
244 | if tossremainder then | |
245 | tf = 0 | |
246 | else | |
247 | tf = tf - frame * math.floor(tf / frame) | |
248 | end | |
249 | end | |
250 | end) | |
251 | ||
252 | --//=================================\\ | |
253 | --\\=================================// | |
254 | ||
255 | ||
256 | ||
257 | ||
258 | ||
259 | --//=================================\\ | |
260 | --|| SOME FUNCTIONS | |
261 | --\\=================================// | |
262 | ||
263 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
264 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
265 | end | |
266 | ||
267 | function PositiveAngle(NUMBER) | |
268 | if NUMBER >= 0 then | |
269 | NUMBER = 0 | |
270 | end | |
271 | return NUMBER | |
272 | end | |
273 | ||
274 | function NegativeAngle(NUMBER) | |
275 | if NUMBER <= 0 then | |
276 | NUMBER = 0 | |
277 | end | |
278 | return NUMBER | |
279 | end | |
280 | ||
281 | function Swait(NUMBER) | |
282 | if NUMBER == 0 or NUMBER == nil then | |
283 | ArtificialHB.Event:wait() | |
284 | else | |
285 | for i = 1, NUMBER do | |
286 | ArtificialHB.Event:wait() | |
287 | end | |
288 | end | |
289 | end | |
290 | ||
291 | function QuaternionFromCFrame(cf) | |
292 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
293 | local trace = m00 + m11 + m22 | |
294 | if trace > 0 then | |
295 | local s = math.sqrt(1 + trace) | |
296 | local recip = 0.5 / s | |
297 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
298 | else | |
299 | local i = 0 | |
300 | if m11 > m00 then | |
301 | i = 1 | |
302 | end | |
303 | if m22 > (i == 0 and m00 or m11) then | |
304 | i = 2 | |
305 | end | |
306 | if i == 0 then | |
307 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
308 | local recip = 0.5 / s | |
309 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
310 | elseif i == 1 then | |
311 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
312 | local recip = 0.5 / s | |
313 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
314 | elseif i == 2 then | |
315 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
316 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
317 | end | |
318 | end | |
319 | end | |
320 | ||
321 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
322 | local xs, ys, zs = x + x, y + y, z + z | |
323 | local wx, wy, wz = w * xs, w * ys, w * zs | |
324 | local xx = x * xs | |
325 | local xy = x * ys | |
326 | local xz = x * zs | |
327 | local yy = y * ys | |
328 | local yz = y * zs | |
329 | local zz = z * zs | |
330 | 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)) | |
331 | end | |
332 | ||
333 | function QuaternionSlerp(a, b, t) | |
334 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
335 | local startInterp, finishInterp; | |
336 | if cosTheta >= 0.0001 then | |
337 | if (1 - cosTheta) > 0.0001 then | |
338 | local theta = ACOS(cosTheta) | |
339 | local invSinTheta = 1 / SIN(theta) | |
340 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
341 | finishInterp = SIN(t * theta) * invSinTheta | |
342 | else | |
343 | startInterp = 1 - t | |
344 | finishInterp = t | |
345 | end | |
346 | else | |
347 | if (1 + cosTheta) > 0.0001 then | |
348 | local theta = ACOS(-cosTheta) | |
349 | local invSinTheta = 1 / SIN(theta) | |
350 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
351 | finishInterp = SIN(t * theta) * invSinTheta | |
352 | else | |
353 | startInterp = t - 1 | |
354 | finishInterp = t | |
355 | end | |
356 | end | |
357 | 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 | |
358 | end | |
359 | ||
360 | function Clerp(a, b, t) | |
361 | local qa = {QuaternionFromCFrame(a)} | |
362 | local qb = {QuaternionFromCFrame(b)} | |
363 | local ax, ay, az = a.x, a.y, a.z | |
364 | local bx, by, bz = b.x, b.y, b.z | |
365 | local _t = 1 - t | |
366 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
367 | end | |
368 | ||
369 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
370 | local frame = IT("Frame") | |
371 | frame.BackgroundTransparency = TRANSPARENCY | |
372 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
373 | frame.Position = POSITION | |
374 | frame.Size = SIZE | |
375 | frame.BackgroundColor3 = COLOR | |
376 | frame.BorderColor3 = BORDERCOLOR | |
377 | frame.Name = NAME | |
378 | frame.Parent = PARENT | |
379 | return frame | |
380 | end | |
381 | ||
382 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
383 | local label = IT("TextLabel") | |
384 | label.BackgroundTransparency = 1 | |
385 | label.Size = UD2(1, 0, 1, 0) | |
386 | label.Position = UD2(0, 0, 0, 0) | |
387 | label.TextColor3 = TEXTCOLOR | |
388 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
389 | label.TextTransparency = TRANSPARENCY | |
390 | label.FontSize = TEXTFONTSIZE | |
391 | label.Font = TEXTFONT | |
392 | label.BorderSizePixel = BORDERSIZEPIXEL | |
393 | label.TextScaled = false | |
394 | label.Text = TEXT | |
395 | label.Name = NAME | |
396 | label.Parent = PARENT | |
397 | return label | |
398 | end | |
399 | ||
400 | function NoOutlines(PART) | |
401 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
402 | end | |
403 | ||
404 | ||
405 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
406 | local NEWWELD = IT(TYPE) | |
407 | NEWWELD.Part0 = PART0 | |
408 | NEWWELD.Part1 = PART1 | |
409 | NEWWELD.C0 = C0 | |
410 | NEWWELD.C1 = C1 | |
411 | NEWWELD.Parent = PARENT | |
412 | return NEWWELD | |
413 | end | |
414 | ||
415 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
416 | local NEWSOUND = nil | |
417 | coroutine.resume(coroutine.create(function() | |
418 | NEWSOUND = IT("Sound", PARENT) | |
419 | NEWSOUND.Volume = VOLUME | |
420 | NEWSOUND.Pitch = PITCH | |
421 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
422 | Swait() | |
423 | NEWSOUND:play() | |
424 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
425 | end)) | |
426 | return NEWSOUND | |
427 | end | |
428 | ||
429 | function CFrameFromTopBack(at, top, back) | |
430 | local right = top:Cross(back) | |
431 | 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) | |
432 | end | |
433 | ||
434 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
435 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
436 | local mesh = IT("SpecialMesh",wave) | |
437 | mesh.MeshType = "FileMesh" | |
438 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
439 | mesh.Scale = SIZE | |
440 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
441 | wave.CFrame = CFRAME | |
442 | coroutine.resume(coroutine.create(function(PART) | |
443 | for i = 1, WAIT do | |
444 | Swait() | |
445 | mesh.Scale = mesh.Scale + GROW | |
446 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
447 | if DOESROT == true then | |
448 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
449 | end | |
450 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
451 | if wave.Transparency > 0.99 then | |
452 | wave:remove() | |
453 | end | |
454 | end | |
455 | end)) | |
456 | end | |
457 | ||
458 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
459 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
460 | local mesh = IT("SpecialMesh",wave) | |
461 | mesh.MeshType = "FileMesh" | |
462 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
463 | mesh.Scale = SIZE | |
464 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
465 | wave.CFrame = CFRAME | |
466 | coroutine.resume(coroutine.create(function(PART) | |
467 | for i = 1, WAIT do | |
468 | Swait() | |
469 | mesh.Scale = mesh.Scale + GROW | |
470 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
471 | if DOESROT == true then | |
472 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
473 | end | |
474 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
475 | if wave.Transparency > 0.99 then | |
476 | wave:remove() | |
477 | end | |
478 | end | |
479 | end)) | |
480 | end | |
481 | ||
482 | local EyeSizes={ | |
483 | NumberSequenceKeypoint.new(0,1,0), | |
484 | NumberSequenceKeypoint.new(1,0,0) | |
485 | } | |
486 | local EyeTrans={ | |
487 | NumberSequenceKeypoint.new(0,0.8,0), | |
488 | NumberSequenceKeypoint.new(1,1,0) | |
489 | } | |
490 | ||
491 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
492 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, 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=1051557" | |
496 | mesh.Scale = SIZE | |
497 | wave.CFrame = CFRAME | |
498 | coroutine.resume(coroutine.create(function(PART) | |
499 | for i = 1, WAIT do | |
500 | Swait() | |
501 | mesh.Scale = mesh.Scale + GROW | |
502 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
503 | if DOESROT == true then | |
504 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
505 | end | |
506 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
507 | if wave.Transparency > 0.99 then | |
508 | wave:remove() | |
509 | end | |
510 | end | |
511 | end)) | |
512 | end | |
513 | ||
514 | ||
515 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
516 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
517 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
518 | wave.CFrame = CFRAME | |
519 | coroutine.resume(coroutine.create(function(PART) | |
520 | for i = 1, WAIT do | |
521 | Swait() | |
522 | mesh.Scale = mesh.Scale * GROW | |
523 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
524 | if wave.Transparency > 0.99 then | |
525 | wave:remove() | |
526 | end | |
527 | end | |
528 | end)) | |
529 | end | |
530 | ||
531 | function CreateWave1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
532 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
533 | local mesh = IT("SpecialMesh",wave) | |
534 | mesh.MeshType = "FileMesh" | |
535 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
536 | mesh.Scale = VT(size,size,size) | |
537 | mesh.Offset = VT(0,0,-size/8) | |
538 | wave.CFrame = cframe | |
539 | coroutine.resume(coroutine.create(function(PART) | |
540 | for i = 1, waitt do | |
541 | Swait() | |
542 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
543 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
544 | if doesrotate == true then | |
545 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
546 | end | |
547 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
548 | if wave.Transparency > 0.99 then | |
549 | wave:remove() | |
550 | end | |
551 | end | |
552 | end)) | |
553 | end | |
554 | ||
555 | function CreateSwirl1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
556 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
557 | local mesh = IT("SpecialMesh",wave) | |
558 | mesh.MeshType = "FileMesh" | |
559 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
560 | mesh.Scale = VT(size,size,size) | |
561 | wave.CFrame = cframe | |
562 | coroutine.resume(coroutine.create(function(PART) | |
563 | for i = 1, waitt do | |
564 | Swait() | |
565 | mesh.Scale = mesh.Scale + VT(size/5,size/10,size/5) | |
566 | if doesrotate == true then | |
567 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
568 | end | |
569 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
570 | if wave.Transparency > 0.99 then | |
571 | wave:remove() | |
572 | end | |
573 | end | |
574 | end)) | |
575 | end | |
576 | ||
577 | function CreateTornado1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
578 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
579 | local mesh = IT("SpecialMesh",wave) | |
580 | mesh.MeshType = "FileMesh" | |
581 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
582 | mesh.Scale = VT(size,size,size) | |
583 | wave.CFrame = cframe | |
584 | coroutine.resume(coroutine.create(function(PART) | |
585 | for i = 1, waitt do | |
586 | Swait() | |
587 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
588 | if doesrotate == true then | |
589 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
590 | end | |
591 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
592 | if wave.Transparency > 0.99 then | |
593 | wave:remove() | |
594 | end | |
595 | end | |
596 | end)) | |
597 | end | |
598 | ||
599 | function CreateRing1(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
600 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
601 | local mesh = IT("SpecialMesh",wave) | |
602 | mesh.MeshType = "FileMesh" | |
603 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
604 | mesh.Scale = VT(size,size,size) | |
605 | mesh.Offset = VT(0,0,0) | |
606 | wave.CFrame = cframe | |
607 | coroutine.resume(coroutine.create(function(PART) | |
608 | for i = 1, waitt do | |
609 | Swait() | |
610 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
611 | if doesrotate == true then | |
612 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
613 | end | |
614 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
615 | if wave.Transparency > 0.99 then | |
616 | wave:remove() | |
617 | end | |
618 | end | |
619 | end)) | |
620 | end | |
621 | ||
622 | function MagicBlock1(size,waitt,cframe,color) | |
623 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size), true) | |
624 | local mesh = IT("BlockMesh",wave) | |
625 | wave.CFrame = cframe | |
626 | coroutine.resume(coroutine.create(function(PART) | |
627 | for i = 1, waitt do | |
628 | Swait() | |
629 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
630 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
631 | wave.Transparency = wave.Transparency + (1/waitt) | |
632 | if wave.Transparency > 0.99 then | |
633 | wave:remove() | |
634 | end | |
635 | end | |
636 | end)) | |
637 | end | |
638 | ||
639 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
640 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
641 | local mesh = IT("SpecialMesh",wave) | |
642 | mesh.MeshType = "Sphere" | |
643 | mesh.Scale = SIZE | |
644 | mesh.Offset = VT(0,0,0) | |
645 | wave.CFrame = CFRAME | |
646 | coroutine.resume(coroutine.create(function(PART) | |
647 | for i = 1, WAIT do | |
648 | Swait() | |
649 | mesh.Scale = mesh.Scale + GROW | |
650 | wave.Transparency = wave.Transparency + (1/WAIT) | |
651 | if wave.Transparency > 0.99 then | |
652 | wave:remove() | |
653 | end | |
654 | end | |
655 | end)) | |
656 | end | |
657 | ||
658 | function MakeForm(PART,TYPE) | |
659 | if TYPE == "Cyl" then | |
660 | local MSH = IT("CylinderMesh",PART) | |
661 | elseif TYPE == "Ball" then | |
662 | local MSH = IT("SpecialMesh",PART) | |
663 | MSH.MeshType = "Sphere" | |
664 | elseif TYPE == "Wedge" then | |
665 | local MSH = IT("SpecialMesh",PART) | |
666 | MSH.MeshType = "Wedge" | |
667 | end | |
668 | end | |
669 | ||
670 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
671 | if FLOOR ~= nil then | |
672 | coroutine.resume(coroutine.create(function() | |
673 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
674 | PART.CFrame = CF(POSITION) | |
675 | for i = 1, 45 do | |
676 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
677 | RingPiece.Material = FLOOR.Material | |
678 | RingPiece.Color = FLOOR.Color | |
679 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
680 | Debris:AddItem(RingPiece,SWAIT/100) | |
681 | end | |
682 | PART:remove() | |
683 | end)) | |
684 | end | |
685 | end | |
686 | ||
687 | function CheckTableForString(Table, String) | |
688 | for i, v in pairs(Table) do | |
689 | if string.find(string.lower(String), string.lower(v)) then | |
690 | return true | |
691 | end | |
692 | end | |
693 | return false | |
694 | end | |
695 | ||
696 | function CheckIntangible(Hit) | |
697 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
698 | if Hit and Hit.Parent then | |
699 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
700 | return true | |
701 | end | |
702 | end | |
703 | return false | |
704 | end | |
705 | ||
706 | Debris = game:GetService("Debris") | |
707 | ||
708 | local S = IT("Sound") | |
709 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
710 | local NEWSOUND = nil | |
711 | coroutine.resume(coroutine.create(function() | |
712 | NEWSOUND = S:Clone() | |
713 | NEWSOUND.Parent = PARENT | |
714 | NEWSOUND.Volume = VOLUME | |
715 | NEWSOUND.Pitch = PITCH | |
716 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
717 | NEWSOUND:play() | |
718 | if DOESLOOP == true then | |
719 | NEWSOUND.Looped = true | |
720 | else | |
721 | repeat wait(1) until NEWSOUND.Playing == false | |
722 | NEWSOUND:remove() | |
723 | end | |
724 | end)) | |
725 | return NEWSOUND | |
726 | end | |
727 | ||
728 | Player = owner | |
729 | Character = Player.Character | |
730 | PlayerGui = Player.PlayerGui | |
731 | Backpack = Player.Backpack | |
732 | Torso = Character.Torso | |
733 | Head = Character.Head | |
734 | Humanoid = Character.Humanoid | |
735 | RootPart = Character.HumanoidRootPart | |
736 | RootJoint = RootPart.RootJoint | |
737 | LeftArm = Character["Left Arm"] | |
738 | LeftLeg = Character["Left Leg"] | |
739 | RightArm = Character["Right Arm"] | |
740 | RightLeg = Character["Right Leg"] | |
741 | LS = Torso["Left Shoulder"] | |
742 | LH = Torso["Left Hip"] | |
743 | RS = Torso["Right Shoulder"] | |
744 | RH = Torso["Right Hip"] | |
745 | Humanoid.MaxHealth = math.huge | |
746 | ||
747 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
748 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
749 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
750 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
751 | if RayHit and CheckIntangible(RayHit) then | |
752 | if DelayIfHit then | |
753 | wait() | |
754 | end | |
755 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
756 | end | |
757 | return RayHit, RayPos, RayNormal | |
758 | end | |
759 | ||
760 | function CreateNeonCircle(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH) | |
761 | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false) | |
762 | for i = 1, 45 do | |
763 | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false) | |
764 | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0)) | |
765 | end | |
766 | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
767 | coroutine.resume(coroutine.create(function() | |
768 | if DOESSPIN == true then | |
769 | while true do | |
770 | wait() | |
771 | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1) | |
772 | end | |
773 | end | |
774 | end)) | |
775 | end | |
776 | ||
777 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
778 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
779 | local mesh = IT("SpecialMesh",wave) | |
780 | mesh.MeshType = "FileMesh" | |
781 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
782 | mesh.Scale = SIZE | |
783 | mesh.Offset = VT(0,0,0) | |
784 | wave.CFrame = CFRAME | |
785 | coroutine.resume(coroutine.create(function(PART) | |
786 | for i = 1, WAIT do | |
787 | Swait() | |
788 | mesh.Scale = mesh.Scale + GROW | |
789 | if DOESROT == true then | |
790 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
791 | end | |
792 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
793 | if wave.Transparency > 0.99 then | |
794 | wave:remove() | |
795 | end | |
796 | end | |
797 | end)) | |
798 | end | |
799 | ||
800 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
801 | function WACKYEFFECT(Table) | |
802 | local TYPE = (Table.EffectType or "Sphere") | |
803 | local SIZE = (Table.Size or VT(1,1,1)) | |
804 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
805 | local TRANSPARENCY = (Table.Transparency or 0) | |
806 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
807 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
808 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
809 | local ROTATION1 = (Table.RotationX or 0) | |
810 | local ROTATION2 = (Table.RotationY or 0) | |
811 | local ROTATION3 = (Table.RotationZ or 0) | |
812 | local MATERIAL = (Table.Material or "Neon") | |
813 | local COLOR = (Table.Color or C3(1,1,1)) | |
814 | local TIME = (Table.Time or 45) | |
815 | local SOUNDID = (Table.SoundID or nil) | |
816 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
817 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
818 | coroutine.resume(coroutine.create(function() | |
819 | local PLAYSSOUND = false | |
820 | local SOUND = nil | |
821 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
822 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
823 | PLAYSSOUND = true | |
824 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
825 | end | |
826 | EFFECT.Color = COLOR | |
827 | local MSH = nil | |
828 | if TYPE == "Sphere" then | |
829 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
830 | elseif TYPE == "Block" then | |
831 | MSH = IT("BlockMesh",EFFECT) | |
832 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
833 | elseif TYPE == "Wave" then | |
834 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
835 | elseif TYPE == "Ring" then | |
836 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
837 | elseif TYPE == "Slash" then | |
838 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
839 | elseif TYPE == "Round Slash" then | |
840 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
841 | elseif TYPE == "Swirl" then | |
842 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
843 | elseif TYPE == "Skull" then | |
844 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
845 | elseif TYPE == "Crystal" then | |
846 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
847 | end | |
848 | if MSH ~= nil then | |
849 | local MOVESPEED = nil | |
850 | if MOVEDIRECTION ~= nil then | |
851 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
852 | end | |
853 | local GROWTH = SIZE - ENDSIZE | |
854 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
855 | if TYPE == "Block" then | |
856 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
857 | else | |
858 | EFFECT.CFrame = CFRAME | |
859 | end | |
860 | for LOOP = 1, TIME+1 do | |
861 | Swait() | |
862 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
863 | if TYPE == "Wave" then | |
864 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
865 | end | |
866 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
867 | if TYPE == "Block" then | |
868 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
869 | else | |
870 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
871 | end | |
872 | if MOVEDIRECTION ~= nil then | |
873 | local ORI = EFFECT.Orientation | |
874 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
875 | EFFECT.Orientation = ORI | |
876 | end | |
877 | end | |
878 | if PLAYSSOUND == false then | |
879 | EFFECT:remove() | |
880 | else | |
881 | SOUND.Stopped:Connect(function() | |
882 | EFFECT:remove() | |
883 | end) | |
884 | end | |
885 | else | |
886 | if PLAYSSOUND == false then | |
887 | EFFECT:remove() | |
888 | else | |
889 | repeat Swait() until SOUND.Playing == false | |
890 | EFFECT:remove() | |
891 | end | |
892 | end | |
893 | end)) | |
894 | end | |
895 | ||
896 | local asd = Instance.new("ParticleEmitter") | |
897 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
898 | asd.LightEmission = .1 | |
899 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
900 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
901 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
902 | asd.Transparency = bbb | |
903 | asd.Size = aaa | |
904 | asd.ZOffset = .9 | |
905 | asd.Acceleration = Vector3.new(0, -15, 0) | |
906 | asd.LockedToPart = false | |
907 | asd.EmissionDirection = "Back" | |
908 | asd.Lifetime = NumberRange.new(1, 2) | |
909 | asd.Rotation = NumberRange.new(-100, 100) | |
910 | asd.RotSpeed = NumberRange.new(-100, 100) | |
911 | asd.Speed = NumberRange.new(10) | |
912 | asd.Enabled = false | |
913 | asd.VelocitySpread = 999 | |
914 | ||
915 | local PE=Instance.new("ParticleEmitter",art) | |
916 | PE.LightEmission=.8 | |
917 | PE.Color = ColorSequence.new(BRICKC("Really red").Color) | |
918 | PE.Size=NumberSequence.new(EyeSizes) | |
919 | PE.Transparency=NumberSequence.new(EyeTrans) | |
920 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
921 | PE.Rotation=NumberRange.new(0,360) | |
922 | PE.Rate=999 | |
923 | PE.VelocitySpread = 10000 | |
924 | PE.Acceleration = Vector3.new(0,0,0) | |
925 | PE.Drag = 5 | |
926 | PE.Speed = NumberRange.new(0,0,0) | |
927 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
928 | PE.ZOffset = -1.5 | |
929 | PE.Name = "PE" | |
930 | PE.Enabled = false | |
931 | ||
932 | local P=Instance.new("ParticleEmitter",art) | |
933 | P.LightEmission=.8 | |
934 | P.Color = ColorSequence.new(BRICKC("Pink").Color) | |
935 | P.Size=NumberSequence.new(EyeSizes) | |
936 | P.Transparency=NumberSequence.new(EyeTrans) | |
937 | P.Lifetime=NumberRange.new(0.35,1.5) | |
938 | P.Rotation=NumberRange.new(0,360) | |
939 | P.Rate=999 | |
940 | P.VelocitySpread = 10000 | |
941 | P.Acceleration = Vector3.new(0,0,0) | |
942 | P.Drag = 5 | |
943 | P.Speed = NumberRange.new(0,0,0) | |
944 | P.Texture="http://www.roblox.com/asset/?id=1351966707" | |
945 | P.ZOffset = -1.5 | |
946 | P.Name = "P" | |
947 | P.Enabled = false | |
948 | ||
949 | function particles(art) | |
950 | local PARTICLES = PE:Clone() | |
951 | PARTICLES.Parent = art | |
952 | end | |
953 | ||
954 | function particles1(art) | |
955 | local PARTICLES1 = P:Clone() | |
956 | PARTICLES1.Parent = art | |
957 | end | |
958 | ||
959 | function getbloody(victim,amount) | |
960 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
961 | PART.CFrame = victim.CFrame | |
962 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
963 | Debris:AddItem(PART,5) | |
964 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
965 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
966 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
967 | local prtcl = asd:Clone() | |
968 | prtcl.Parent = PART | |
969 | prtcl:Emit(amount*10) | |
970 | end | |
971 | ||
972 | local Particle = IT("ParticleEmitter",nil) | |
973 | Particle.Enabled = false | |
974 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
975 | Particle.LightEmission = 0.5 | |
976 | Particle.Rate = 150 | |
977 | Particle.ZOffset = 1 | |
978 | Particle.Rotation = NumberRange.new(-180, 180) | |
979 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
980 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
981 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
982 | ||
983 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
984 | function ParticleEmitter(Table) | |
985 | local PRTCL = Particle:Clone() | |
986 | local Speed = Table.Speed or 5 | |
987 | local Drag = Table.Drag or 0 | |
988 | local Size1 = Table.Size1 or 1 | |
989 | local Size2 = Table.Size2 or 5 | |
990 | local Lifetime1 = Table.Lifetime1 or 1 | |
991 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
992 | local Parent = Table.Parent or Torso | |
993 | local Emit = Table.Emit or 100 | |
994 | local Offset = Table.Offset or 360 | |
995 | local Acel = Table.Acel or VT(0,0,0) | |
996 | local Enabled = Table.Enabled or false | |
997 | PRTCL.Parent = Parent | |
998 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
999 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1000 | PRTCL.Speed = NumberRange.new(Speed) | |
1001 | PRTCL.VelocitySpread = Offset | |
1002 | PRTCL.Drag = Drag | |
1003 | PRTCL.Acceleration = Acel | |
1004 | if Enabled == false then | |
1005 | PRTCL:Emit(Emit) | |
1006 | Debris:AddItem(PRTCL,Lifetime2) | |
1007 | else | |
1008 | PRTCL.Enabled = true | |
1009 | end | |
1010 | return PRTCL | |
1011 | end | |
1012 | ||
1013 | function Zap(Table) | |
1014 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
1015 | local Duration = Table.Duration or 2 | |
1016 | local Offset = Table.Offset or 2 | |
1017 | local Individualize = Table.Individualize or false | |
1018 | local MaxRange = Table.MaxRange or 200 | |
1019 | local SegmentLength = Table.SegmentLength or 5 | |
1020 | local Transparency = Table.Transparency or 0 | |
1021 | local Ignore = Table.Ignore or {} | |
1022 | local SIZE = Table.SIZE or 0.3 | |
1023 | if not (StartPos and TargetPos) or not Character then | |
1024 | return | |
1025 | end | |
1026 | local LightningModel = IT("Folder", Effects) | |
1027 | LightningModel.Name = "ZAPP" | |
1028 | for i, v in pairs({Character, LightningModel}) do | |
1029 | table.insert(Ignore, v) | |
1030 | end | |
1031 | local LastPos = StartPos | |
1032 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
1033 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
1034 | local RayLength = (StartPos - RayPos).Magnitude | |
1035 | local Struck = false | |
1036 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
1037 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
1038 | local LightningBolt = IT("Model", Effects) | |
1039 | LightningBolt.Name = "Lightning" | |
1040 | if not Individualize then | |
1041 | table.insert(LightningBolts, LightningBolt) | |
1042 | end | |
1043 | LastBolt = LightningBolt | |
1044 | Debris:AddItem(LightningBolt, Duration) | |
1045 | LightningBolt.Parent = LightningModel | |
1046 | for i = 1, TotalSegments do | |
1047 | if not Struck then | |
1048 | local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset) | |
1049 | local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy | |
1050 | local SegmentVec = NewPos - LastPos | |
1051 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) | |
1052 | local RayVec = LastPos - RayPos | |
1053 | local LightningPart = BaseLightning:Clone() | |
1054 | LightningPart.BrickColor = BrickColor.new(Color) | |
1055 | LightningPart.Transparency = Transparency | |
1056 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
1057 | LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)) | |
1058 | table.insert(Effects2, { | |
1059 | LightningPart, | |
1060 | "Disappear", | |
1061 | 0.025, | |
1062 | 1, | |
1063 | 1, | |
1064 | 1, | |
1065 | 2 | |
1066 | }) | |
1067 | local CylinderMesh = IT("CylinderMesh", LightningPart) | |
1068 | local OrigCF = LightningPart.CFrame | |
1069 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
1070 | LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0) | |
1071 | LightningPart.Parent = LightningBolt | |
1072 | LastPos = NewPos | |
1073 | end | |
1074 | end | |
1075 | return { | |
1076 | RayHit = RayHit, | |
1077 | RayPos = RayPos, | |
1078 | RayNormal = RayNormal, | |
1079 | LightningModel = LightningModel | |
1080 | } | |
1081 | end | |
1082 | ||
1083 | function MagicSphere2(size,waitt,cframe,color) | |
1084 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1), true) | |
1085 | local mesh = IT("SpecialMesh",wave) | |
1086 | mesh.MeshType = "Sphere" | |
1087 | mesh.Scale = VT(size,size,size) | |
1088 | mesh.Offset = VT(0,0,0) | |
1089 | wave.CFrame = cframe | |
1090 | coroutine.resume(coroutine.create(function(PART) | |
1091 | for i = 1, waitt do | |
1092 | Swait() | |
1093 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1094 | wave.Transparency = wave.Transparency - (1/waitt) | |
1095 | end | |
1096 | wave:remove() | |
1097 | end)) | |
1098 | end | |
1099 | ||
1100 | function re(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH) | |
1101 | local CirclePart = IT("Model",Effects) | |
1102 | CirclePart.Name = "re" | |
1103 | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false) | |
1104 | for i = 1, 45 do | |
1105 | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false) | |
1106 | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0)) | |
1107 | end | |
1108 | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1109 | coroutine.resume(coroutine.create(function() | |
1110 | if DOESSPIN == true then | |
1111 | while true do | |
1112 | wait() | |
1113 | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1) | |
1114 | end | |
1115 | end | |
1116 | end)) | |
1117 | end | |
1118 | ||
1119 | ||
1120 | function turnto(position) | |
1121 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1122 | end | |
1123 | ||
1124 | --//=================================\\ | |
1125 | --|| WEAPON CREATION | |
1126 | --\\=================================// | |
1127 | ||
1128 | function createaddon(position,size) | |
1129 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false) | |
1130 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1131 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false) | |
1132 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1133 | end | |
1134 | ||
1135 | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(1.025*Player_Size,2.025*Player_Size,1.025*Player_Size),false) | |
1136 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1137 | FIST.CanCollide = true | |
1138 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,1.05*Player_Size,1.05*Player_Size),false) | |
1139 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1140 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.06*Player_Size,0.2*Player_Size,1.06*Player_Size),false) | |
1141 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1142 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.55*Player_Size,1.05*Player_Size),false) | |
1143 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1144 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.25*Player_Size,1.05*Player_Size),false) | |
1145 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.15 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1146 | MakeForm(part,"Wedge") | |
1147 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.25*Player_Size,1.05*Player_Size),false) | |
1148 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1149 | MakeForm(part,"Wedge") | |
1150 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.035*Player_Size,0.3*Player_Size,1.035*Player_Size),false) | |
1151 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1152 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.035*Player_Size,0.3*Player_Size,1.035*Player_Size),false) | |
1153 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1154 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,1.1*Player_Size,1.1*Player_Size),false) | |
1155 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1156 | MakeForm(part,"Wedge") | |
1157 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.15*Player_Size,1.15*Player_Size,1.15*Player_Size),false) | |
1158 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.05 * Player_Size, -0.505 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1159 | MakeForm(part,"Wedge") | |
1160 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1161 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1162 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1163 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1164 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1165 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, 0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1166 | createaddon(0.4,0.4) | |
1167 | createaddon(0.5,0.3) | |
1168 | createaddon(0.6,0.2) | |
1169 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(0.3*Player_Size,1.1*Player_Size,0.3*Player_Size),false) | |
1170 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1171 | ||
1172 | for _, c in pairs(Weapon:GetChildren()) do | |
1173 | if c.ClassName == "Part" then | |
1174 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1175 | end | |
1176 | end | |
1177 | ||
1178 | Weapon.Parent = Character | |
1179 | ||
1180 | Humanoid.Died:connect(function() | |
1181 | ATTACK = true | |
1182 | end) | |
1183 | ||
1184 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1185 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1186 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1187 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1188 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1189 | ||
1190 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
1191 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Z] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
1192 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
1193 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] laber", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
1194 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[U] Karma mode...", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text5") | |
1195 | ||
1196 | --//=================================\\ | |
1197 | --|| DAMAGE FUNCTIONS | |
1198 | --\\=================================// | |
1199 | ||
1200 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1201 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1202 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1203 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1204 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1205 | BODYPOSITION.P = 2000 | |
1206 | BODYPOSITION.D = 100 | |
1207 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1208 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1209 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1210 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1211 | BILLBOARDGUI.Adornee = STATPART | |
1212 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1213 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1214 | BILLBOARDGUI.AlwaysOnTop = false | |
1215 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1216 | TEXTLABEL.BackgroundTransparency = 1 | |
1217 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1218 | TEXTLABEL.Text = TEXT | |
1219 | TEXTLABEL.Font = "SciFi" | |
1220 | TEXTLABEL.FontSize="Size42" | |
1221 | TEXTLABEL.TextColor3 = COLOR | |
1222 | TEXTLABEL.TextStrokeTransparency = 1 | |
1223 | TEXTLABEL.TextScaled = true | |
1224 | TEXTLABEL.TextWrapped = true | |
1225 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1226 | if LABELTYPE == "Normal" then | |
1227 | for i = 1, 30 do | |
1228 | Swait() | |
1229 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
1230 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1231 | end | |
1232 | elseif LABELTYPE == "Debuff" then | |
1233 | for i = 1, 30 do | |
1234 | Swait() | |
1235 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1236 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1237 | end | |
1238 | elseif LABELTYPE == "Shock" then | |
1239 | local ORIGIN = STATPART.Position | |
1240 | for i = 1, 30 do | |
1241 | Swait() | |
1242 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1243 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1244 | end | |
1245 | end | |
1246 | THEPART.Parent = nil | |
1247 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1248 | end | |
1249 | ||
1250 | local Particle = IT("ParticleEmitter",nil) | |
1251 | Particle.Enabled = false | |
1252 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1253 | Particle.LightEmission = 2 | |
1254 | Particle.Rate = 200 | |
1255 | Particle.ZOffset = 2 | |
1256 | Particle.Rotation = NumberRange.new(-180, 180) | |
1257 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1258 | Particle.Texture = "http://www.roblox.com/asset/?id=1647687279" | |
1259 | Particle.Color = ColorSequence.new(Color3.fromRGB(1,1,1),Color3.fromRGB(1,1,1)) | |
1260 | ||
1261 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1262 | function ParticleEmitter(Table) | |
1263 | local PRTCL = Particle:Clone() | |
1264 | local Speed = Table.Speed or 5 | |
1265 | local Drag = Table.Drag or 0 | |
1266 | local Size1 = Table.Size1 or 1 | |
1267 | local Size2 = Table.Size2 or 5 | |
1268 | local Lifetime1 = Table.Lifetime1 or 1 | |
1269 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1270 | local Parent = Table.Parent or Torso | |
1271 | local Emit = Table.Emit or 100 | |
1272 | local Offset = Table.Offset or 360 | |
1273 | local Acel = Table.Acel or VT(0,0,0) | |
1274 | local Enabled = Table.Enabled or false | |
1275 | PRTCL.Parent = Parent | |
1276 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1277 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1278 | PRTCL.Speed = NumberRange.new(Speed) | |
1279 | PRTCL.VelocitySpread = Offset | |
1280 | PRTCL.Drag = Drag | |
1281 | PRTCL.Acceleration = Acel | |
1282 | if Enabled == false then | |
1283 | PRTCL:Emit(Emit) | |
1284 | Debris:AddItem(PRTCL,Lifetime2) | |
1285 | else | |
1286 | PRTCL.Enabled = true | |
1287 | end | |
1288 | return PRTCL | |
1289 | end | |
1290 | ||
1291 | local TAUNT = false | |
1292 | ||
1293 | --//=================================\\ | |
1294 | --|| DAMAGING | |
1295 | --\\=================================// | |
1296 | ||
1297 | function killnearest(position,range,maxstrength,direction) | |
1298 | for i,v in ipairs(workspace:GetChildren()) do | |
1299 | local body = v:GetChildren() | |
1300 | for part = 1, #body do | |
1301 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1302 | if(body[part].Position - position).Magnitude < range then | |
1303 | if v.ClassName == "Model" then | |
1304 | --v:BreakJoints() | |
1305 | end | |
1306 | local POS = position | |
1307 | coroutine.resume(coroutine.create(function() | |
1308 | body[part].Anchored = true | |
1309 | body[part].Parent = Effects | |
1310 | body[part].CanCollide = true | |
1311 | local SIZE = body[part].Size | |
1312 | body[part].Material = "Neon" | |
1313 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
1314 | for i = 1, 75 do | |
1315 | Swait() | |
1316 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1317 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1318 | end | |
1319 | coroutine.resume(coroutine.create(function() | |
1320 | while true do | |
1321 | Swait() | |
1322 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1323 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1324 | end | |
1325 | end)) | |
1326 | body[part].Anchored = false | |
1327 | body[part].Velocity = direction.lookVector*maxstrength | |
1328 | end)) | |
1329 | end | |
1330 | end | |
1331 | end | |
1332 | if v.ClassName == "Part" then | |
1333 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1334 | local POS = position | |
1335 | coroutine.resume(coroutine.create(function() | |
1336 | v.Anchored = true | |
1337 | v.Parent = Effects | |
1338 | local SIZE = v.Size | |
1339 | v.Material = "Neon" | |
1340 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
1341 | for i = 1, 75 do | |
1342 | Swait() | |
1343 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1344 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1345 | end | |
1346 | coroutine.resume(coroutine.create(function() | |
1347 | while true do | |
1348 | Swait() | |
1349 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1350 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1351 | end | |
1352 | end)) | |
1353 | v.Anchored = false | |
1354 | v.Velocity = direction.lookVector*maxstrength | |
1355 | end)) | |
1356 | end | |
1357 | end | |
1358 | end | |
1359 | end | |
1360 | ||
1361 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
1362 | local dmg = math.huge | |
1363 | for i,v in ipairs(workspace:GetChildren()) do | |
1364 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1365 | local body = v:GetChildren() | |
1366 | for part = 1, #body do | |
1367 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1368 | if(body[part].Position - position).Magnitude < radius then | |
1369 | if v.ClassName == "Model" then | |
1370 | if v:FindFirstChild("Humanoid") then | |
1371 | if v.Humanoid.Health ~= 0 then | |
1372 | if CanBeDodgedByJumping == true then | |
1373 | if body[part].Position.Y < position.Y+5 then | |
1374 | if math.random(1,100) < critrate+1 then | |
1375 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1376 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1377 | else | |
1378 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1379 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1380 | end | |
1381 | local defence = Instance.new("BoolValue",v) | |
1382 | defence.Name = ("HitBy"..Player.Name) | |
1383 | game:GetService("Debris"):AddItem(defence, 0.25) | |
1384 | end | |
1385 | else | |
1386 | if beserk == true then | |
1387 | v.Humanoid.Health = 0 | |
1388 | end | |
1389 | if math.random(1,100) < critrate+1 then | |
1390 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1391 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1392 | else | |
1393 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1394 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1395 | end | |
1396 | local defence = Instance.new("BoolValue",v) | |
1397 | defence.Name = ("HitBy"..Player.Name) | |
1398 | game:GetService("Debris"):AddItem(defence, 0.25) | |
1399 | end | |
1400 | end | |
1401 | end | |
1402 | end | |
1403 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1404 | end | |
1405 | end | |
1406 | end | |
1407 | if v.ClassName == "Part" then | |
1408 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1409 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1410 | end | |
1411 | end | |
1412 | end | |
1413 | end | |
1414 | end | |
1415 | ||
1416 | function SpawnSoul(Humanoid) | |
1417 | coroutine.resume(coroutine.create(function() | |
1418 | local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso") | |
1419 | local SOULMODEL = IT("Model",Effects) | |
1420 | SOULMODEL.Name = Humanoid.Parent.Name.."'s Soul" | |
1421 | local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "White", "Head", VT(0.5,0.5,0.5)) | |
1422 | SOUL.CFrame = CF(TORSO.Position) | |
1423 | local A1 = IT("Attachment",SOUL) | |
1424 | A1.Position = Vector3.new(0, 0.25, 0) | |
1425 | local A2 = IT("Attachment",SOUL) | |
1426 | A2.Position = Vector3.new(0, -0.25, 0) | |
1427 | local Trail = IT("Trail",SOUL) | |
1428 | Trail.LightEmission = 0.3 | |
1429 | Trail.FaceCamera = true | |
1430 | Trail.Texture = "rbxassetid://945758042" | |
1431 | Trail.Attachment0 = A1 | |
1432 | Trail.Attachment1 = A2 | |
1433 | Trail.Lifetime = 0.5 | |
1434 | Trail.MinLength = 0 | |
1435 | Trail.Transparency = NumberSequence.new(0) | |
1436 | Trail.Color = ColorSequence.new(SOUL.Color) | |
1437 | MakeForm(SOUL,"Ball") | |
1438 | local DISTANCE = nil | |
1439 | local HUM = IT("Humanoid",SOULMODEL) | |
1440 | repeat | |
1441 | Swait() | |
1442 | SOUL.CFrame = CF(SOUL.Position,Torso.Position)*CF(0,0,-0.2) | |
1443 | DISTANCE = (SOUL.Position - Torso.Position).Magnitude | |
1444 | until DISTANCE < 0.4 | |
1445 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2}) | |
1446 | SOUL.Transparency = 1 | |
1447 | A1.Parent = Torso | |
1448 | A2.Parent = Torso | |
1449 | Trail.Parent = Torso | |
1450 | Debris:AddItem(SOULMODEL,10) | |
1451 | SOULWELL = SOULWELL + 1 | |
1452 | for i = 1, 100 do | |
1453 | Swait() | |
1454 | Trail.Transparency = NumberSequence.new(i/100) | |
1455 | end | |
1456 | A1:remove() | |
1457 | A2:remove() | |
1458 | Trail:remove() | |
1459 | end)) | |
1460 | end | |
1461 | ||
1462 | function new_mode() | |
1463 | ATTACK = true | |
1464 | Rooted = false | |
1465 | TAUNT = true | |
1466 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1467 | Swait() | |
1468 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1469 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1470 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1471 | end | |
1472 | for i=0, 3, 0.1 / Animation_Speed do | |
1473 | Swait() | |
1474 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1475 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1476 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1477 | end | |
1478 | CreateSound(363808674, Torso, 10, 1.3) | |
1479 | for i=0, 1, 0.1 / Animation_Speed do | |
1480 | Swait() | |
1481 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed) | |
1482 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed) | |
1483 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1484 | end | |
1485 | CreateSound(649634100, Torso, 10, 0.8) | |
1486 | for i=0, 0.01, 0.1 / Animation_Speed do | |
1487 | Swait() | |
1488 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1489 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1490 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1491 | end | |
1492 | ATTACK = false | |
1493 | Rooted = false | |
1494 | TAUNT = false | |
1495 | end | |
1496 | ||
1497 | function Shatter(Part) | |
1498 | if Part.Transparency == 0 then | |
1499 | local SOUNDPART = CreatePart(3, Effects, "Glass", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
1500 | Debris:AddItem(SOUNDPART,5) | |
1501 | CreateSound("626807593", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
1502 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
1503 | local SIZESET = SIZE/4 | |
1504 | local XOffset = Part.Size.X*1.5/SIZESET | |
1505 | local YOffset = Part.Size.Y*1.5/SIZESET | |
1506 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
1507 | for x = 1, math.ceil(XOffset) do | |
1508 | for y = 1, math.ceil(YOffset) do | |
1509 | for z = 1, math.ceil(ZOffset) do | |
1510 | local SHARD = CreatePart(3, Effects, "Glass", 0, 0.15, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
1511 | SHARD.CanCollide = true | |
1512 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-Part.Size.X/4),(Part.Size.Y/2-Part.Size.Y/4),(Part.Size.Z/2-Part.Size.Z/4)) | |
1513 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
1514 | Debris:AddItem(SHARD,MRANDOM(10,25)/10) | |
1515 | for _, c in pairs(Part:GetChildren()) do | |
1516 | if c.ClassName == "ParticleEmitter" or c.ClassName == "PointLight" or c.ClassName == "Fire" then | |
1517 | c:Clone().Parent = SHARD | |
1518 | end | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | end | |
1523 | end | |
1524 | Part:remove() | |
1525 | end | |
1526 | ||
1527 | function createfireball(size,explosionsize,pos,velocity) | |
1528 | local FIREBALLCOLORS = {"yeller", "yeller", "yeller"} | |
1529 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
1530 | local FIREBALL = IT("Part",Effects) | |
1531 | FIREBALL.Shape = "Ball" | |
1532 | FIREBALL.Size = VT(size,size,size) | |
1533 | FIREBALL.Material = "Neon" | |
1534 | FIREBALL.CFrame = CF(pos) | |
1535 | FIREBALL.Transparency = 1 | |
1536 | local bv = Instance.new("BodyVelocity") | |
1537 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1538 | bv.velocity = velocity | |
1539 | bv.Parent = FIREBALL | |
1540 | bv.Name = "MOVE" | |
1541 | local HIT = false | |
1542 | local harm = FIREBALL.Touched:Connect(function(hit) | |
1543 | if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then | |
1544 | HIT = true | |
1545 | coroutine.resume(coroutine.create(function() | |
1546 | FIREBALL.Anchored = true | |
1547 | FIREBALL.CanCollide = false | |
1548 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1) | |
1549 | AoEDamage(FIREBALL.Position,explosionsize*2,35,45,25,false,3,2,false,true) | |
1550 | for i = 1, 2 do | |
1551 | MagicBlock1(explosionsize/3/i,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1552 | ||
1553 | MagicBlock1(explosionsize/1/i,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1554 | end | |
1555 | Swait(250) | |
1556 | FIREBALL:remove() | |
1557 | end)) | |
1558 | end | |
1559 | end) | |
1560 | coroutine.resume(coroutine.create(function() | |
1561 | repeat | |
1562 | Swait() | |
1563 | MagicBlock2(size,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1564 | until HIT == true | |
1565 | end)) | |
1566 | return FIREBALL | |
1567 | end | |
1568 | ||
1569 | function CreateWave3(inair,size,doesrotate,rotatedirection,waitt,part,offset,color) | |
1570 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1571 | local mesh = IT("SpecialMesh",wave) | |
1572 | mesh.MeshType = "FileMesh" | |
1573 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1574 | mesh.Scale = VT(size,size,size) | |
1575 | mesh.Offset = VT(0,0,-size/8) | |
1576 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
1577 | coroutine.resume(coroutine.create(function(PART) | |
1578 | for i = 1, waitt do | |
1579 | Swait() | |
1580 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1581 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1582 | if doesrotate == true then | |
1583 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1584 | end | |
1585 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1586 | if wave.Transparency > 0.99 then | |
1587 | wave:remove() | |
1588 | end | |
1589 | end | |
1590 | end)) | |
1591 | end | |
1592 | ||
1593 | function Erupt(cframe,size) | |
1594 | coroutine.resume(coroutine.create(function() | |
1595 | local FIREBALLCOLORS = {"Deep orange", "Deep orange", "Deep orange"} | |
1596 | local FIREPILLARHITSOUNDS = {"171378971", "646619365", "472579737", "144140670"} | |
1597 | for i = 1, 5 do | |
1598 | CreateSwirl(0,i,true,-0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1599 | Swait(15) | |
1600 | end | |
1601 | AoEDamage(cframe.p,size,35,45,25,false,3,2,false,true) | |
1602 | local brick = IT("Part",Effects) | |
1603 | brick.CanCollide = false | |
1604 | brick.Anchored = true | |
1605 | brick.Size = VT(0,0,0) | |
1606 | brick.Transparency = 1 | |
1607 | brick.Name = "POS" | |
1608 | brick.CFrame = cframe | |
1609 | game:GetService("Debris"):AddItem(brick, 5) | |
1610 | AoEDamage(brick.Position,size*2,35,45,25,false,3,2,false,true) | |
1611 | CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], brick, 3, 1) | |
1612 | MagicSphere1(size,25,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1613 | MagicSphere1(size/2,35,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1614 | MagicSphere1(size/3,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1615 | MagicSphere2(size*5,25,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1616 | CreateSwirl1(0,size,true,0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1617 | CreateSwirl1(0,size,true,0.35,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1618 | CreateSwirl1(0,size,true,0.1,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1619 | CreateSwirl1(0,size,true,-0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1620 | CreateSwirl1(0,size,true,-0.35,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1621 | CreateSwirl1(0,size,true,-0.1,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1622 | MagicBlock1(size/6,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1623 | end)) | |
1624 | end | |
1625 | ||
1626 | function killnearest1(position,range,maxstrength) | |
1627 | for i,v in ipairs(workspace:GetChildren()) do | |
1628 | local body = v:GetChildren() | |
1629 | for part = 1, #body do | |
1630 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1631 | if(body[part].Position - position).Magnitude < range then | |
1632 | if v.ClassName == "Model" then | |
1633 | v:BreakJoints() | |
1634 | end | |
1635 | table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1636 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1637 | end | |
1638 | end | |
1639 | end | |
1640 | if v.ClassName == "Part" then | |
1641 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1642 | table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1643 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | end | |
1648 | ||
1649 | function KillChildren(v) | |
1650 | v:BreakJoints() | |
1651 | for _, c in pairs(v:GetChildren()) do | |
1652 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1653 | if c.Transparency < 1 then | |
1654 | if c:FindFirstChildOfClass("Decal") then | |
1655 | c:FindFirstChildOfClass("Decal"):remove() | |
1656 | end | |
1657 | particles(c) | |
1658 | c.PE.Enabled = true | |
1659 | c.Parent = Effects | |
1660 | c.CanCollide = false | |
1661 | c.Material = "Neon" | |
1662 | c.Color = C3(1,0,0) | |
1663 | c.Transparency = 0.5 | |
1664 | local grav = Instance.new("BodyPosition",c) | |
1665 | grav.P = 20000 | |
1666 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1667 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1668 | grav.Name = "GravityForce" | |
1669 | coroutine.resume(coroutine.create(function() | |
1670 | for i = 1, 50 do | |
1671 | Swait() | |
1672 | c.Transparency = c.Transparency + 0.01 | |
1673 | end | |
1674 | c.PE.Enabled = false | |
1675 | Debris:AddItem(c,2) | |
1676 | end)) | |
1677 | end | |
1678 | end | |
1679 | end | |
1680 | end | |
1681 | ||
1682 | function KillChildren1(v) | |
1683 | v:BreakJoints() | |
1684 | for _, c in pairs(v:GetChildren()) do | |
1685 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1686 | if c.Transparency < 1 then | |
1687 | if c:FindFirstChildOfClass("Decal") then | |
1688 | c:FindFirstChildOfClass("Decal"):remove() | |
1689 | end | |
1690 | particles1(c) | |
1691 | c.P.Enabled = true | |
1692 | c.Parent = Effects | |
1693 | c.CanCollide = false | |
1694 | c.Material = "Neon" | |
1695 | c.Color = C3(0.5,0,0.5) | |
1696 | c.Transparency = 0.5 | |
1697 | local grav = Instance.new("BodyPosition",c) | |
1698 | grav.P = 20000 | |
1699 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1700 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1701 | grav.Name = "GravityForce" | |
1702 | coroutine.resume(coroutine.create(function() | |
1703 | for i = 1, 50 do | |
1704 | Swait() | |
1705 | c.Transparency = c.Transparency + 0.01 | |
1706 | end | |
1707 | c.P.Enabled = false | |
1708 | Debris:AddItem(c,2) | |
1709 | end)) | |
1710 | end | |
1711 | end | |
1712 | end | |
1713 | end | |
1714 | ||
1715 | function killnearest2(position,range) | |
1716 | for i,v in ipairs(workspace:GetChildren()) do | |
1717 | local body = v:GetChildren() | |
1718 | for part = 1, #body do | |
1719 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1720 | if(body[part].Position - position).Magnitude < range then | |
1721 | if v.ClassName == "Model" then | |
1722 | KillChildren(v) | |
1723 | end | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | end | |
1729 | ||
1730 | function killnearest3(position,range) | |
1731 | for i,v in ipairs(workspace:GetChildren()) do | |
1732 | local body = v:GetChildren() | |
1733 | for part = 1, #body do | |
1734 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1735 | if(body[part].Position - position).Magnitude < range then | |
1736 | if v.ClassName == "Model" then | |
1737 | KillChildren1(v) | |
1738 | end | |
1739 | end | |
1740 | end | |
1741 | end | |
1742 | end | |
1743 | end | |
1744 | ||
1745 | function CreateDebreeRing1(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
1746 | if FLOOR ~= nil then | |
1747 | coroutine.resume(coroutine.create(function() | |
1748 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
1749 | PART.CFrame = CF(POSITION) | |
1750 | for i = 1, 45 do | |
1751 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
1752 | RingPiece.Material = FLOOR.Material | |
1753 | RingPiece.Color = FLOOR.Color | |
1754 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1755 | Debris:AddItem(RingPiece,SWAIT) | |
1756 | end | |
1757 | PART:remove() | |
1758 | end)) | |
1759 | end | |
1760 | end | |
1761 | ||
1762 | function CreateFlyingDebree1(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
1763 | if FLOOR ~= nil then | |
1764 | for i = 1, AMOUNT do | |
1765 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
1766 | DEBREE.Material = FLOOR.Material | |
1767 | DEBREE.Color = FLOOR.Color | |
1768 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1769 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
1770 | coroutine.resume(coroutine.create(function() | |
1771 | Swait(15) | |
1772 | DEBREE.Parent = workspace | |
1773 | DEBREE.CanCollide = true | |
1774 | Debris:AddItem(DEBREE,SWAIT) | |
1775 | end)) | |
1776 | end | |
1777 | end | |
1778 | end | |
1779 | ||
1780 | function ApplyDamage1(Humanoid,Damage,CritRate,CritMultiplier,DoesOneShot) | |
1781 | coroutine.resume(coroutine.create(function() | |
1782 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1783 | defence.Name = ("HitBy"..Player.Name) | |
1784 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1785 | Damage = Damage * DAMAGEMULTIPLIER | |
1786 | if Humanoid.Health ~= 0 then | |
1787 | local CritChance = MRANDOM(1,100) | |
1788 | if CritChance < CritRate + 1 then | |
1789 | Damage = Damage*CritMultiplier | |
1790 | end | |
1791 | if Damage > Humanoid.Health then | |
1792 | Damage = math.ceil(Humanoid.Health) | |
1793 | if Damage == 0 then | |
1794 | Damage = 0.1 | |
1795 | end | |
1796 | end | |
1797 | if DoesOneShot == false then | |
1798 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1799 | if c.Name ~= "HumanoidRootPart" and c.Name ~= "Torso" and c.Name ~= "Head" and c.Name ~= "UpperTorso" and c.Name ~= "LowerTorso" then | |
1800 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1801 | if MRANDOM(1,20) == 1 then | |
1802 | Shatter(c) | |
1803 | end | |
1804 | end | |
1805 | end | |
1806 | end | |
1807 | Humanoid.Health = Humanoid.Health - Damage | |
1808 | if Humanoid.Parent:FindFirstChild("Head") then | |
1809 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1) | |
1810 | if CritChance < CritRate + 1 then | |
1811 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0)) | |
1812 | else | |
1813 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1814 | end | |
1815 | end | |
1816 | elseif DoesOneShot == true then | |
1817 | --print("["..Humanoid.Parent.Name.."]: One shot!? Really!?!?") | |
1818 | Humanoid.Parent:BreakJoints() | |
1819 | if Humanoid.Parent:FindFirstChild("Head") then | |
1820 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "INF", C3(1, 0, 0)) | |
1821 | end | |
1822 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1823 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1824 | Shatter(c) | |
1825 | end | |
1826 | end | |
1827 | end | |
1828 | if Humanoid.Health == 0 then | |
1829 | --print("["..Humanoid.Parent.Name.."]: It's like stepping on glass, but worse!") | |
1830 | SpawnSoul(Humanoid) | |
1831 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1832 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1833 | Shatter(c) | |
1834 | end | |
1835 | end | |
1836 | end | |
1837 | end | |
1838 | end)) | |
1839 | end | |
1840 | ||
1841 | function AoEDamage1(position,radius,min,max,maxstrength,critrate,critmultiplier,BESERK) | |
1842 | local dmg = math.random(10000,100000) | |
1843 | for i,v in ipairs(workspace:GetChildren()) do | |
1844 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1845 | local body = v:GetChildren() | |
1846 | for part = 1, #body do | |
1847 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1848 | if(body[part].Position - position).Magnitude < radius then | |
1849 | if v.ClassName == "Model" then | |
1850 | if v:FindFirstChildOfClass("Humanoid") then | |
1851 | ApplyDamage1(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier,BESERK) | |
1852 | local bv = Instance.new("BodyVelocity") | |
1853 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1854 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
1855 | bv.Parent = body[part] | |
1856 | Debris:AddItem(bv,0.2) | |
1857 | end | |
1858 | end | |
1859 | end | |
1860 | end | |
1861 | end | |
1862 | end | |
1863 | if v:FindFirstChild("HitBy"..Player.Name) then | |
1864 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
1865 | end | |
1866 | end | |
1867 | end | |
1868 | ||
1869 | local HANDFOLDER = IT("Folder",Weapon) | |
1870 | HANDFOLDER.Name = "Hands" | |
1871 | ||
1872 | --//=================================\\ | |
1873 | --|| ATTACK FUNCTIONS AND STUFF | |
1874 | --\\=================================// | |
1875 | ||
1876 | function AttackTemplate() | |
1877 | ATTACK = true | |
1878 | Rooted = false | |
1879 | for i=0, 1, 0.1 / Animation_Speed do | |
1880 | Swait() | |
1881 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
1882 | 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.1 / Animation_Speed) | |
1883 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1884 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
1885 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1886 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1887 | end | |
1888 | ATTACK = false | |
1889 | Rooted = false | |
1890 | end | |
1891 | ||
1892 | function turnto(pos) | |
1893 | RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
1894 | end | |
1895 | ||
1896 | function Fire() | |
1897 | ATTACK = true | |
1898 | Rooted = true | |
1899 | CreateSound("169445572", RightArm, 2, 1.6) | |
1900 | for i=0, 5, 0.1 / Animation_Speed2 do | |
1901 | Swait() | |
1902 | turnto(Mouse.Hit.p) | |
1903 | MagicSphere(0.8,15,RightArm.CFrame * CF(0,-1.5,0),"CGA brown") | |
1904 | 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) | |
1905 | 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) | |
1906 | 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) | |
1907 | 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) | |
1908 | 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) | |
1909 | 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) | |
1910 | end | |
1911 | local aimpos = Mouse.Hit.p | |
1912 | createfireball(4,8,RightArm.CFrame * CF(0,-5,0).p,CF(RightArm.CFrame * CF(0,-5,0).p,aimpos).lookVector*100) | |
1913 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
1914 | Swait() | |
1915 | 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) | |
1916 | 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) | |
1917 | 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) | |
1918 | 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) | |
1919 | 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) | |
1920 | 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) | |
1921 | end | |
1922 | ATTACK = false | |
1923 | Rooted = false | |
1924 | end | |
1925 | ||
1926 | function PinkPunch() | |
1927 | ATTACK = true | |
1928 | Rooted = false | |
1929 | local SPEED = Speed | |
1930 | Speed = 8 | |
1931 | CreateSound("136007472", RightArm, 10, 1.1) | |
1932 | for i=0, 3, 0.1 / Animation_Speed do | |
1933 | Swait() | |
1934 | turnto(Mouse.Hit.p) | |
1935 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Pink",VT(-1/15,-1/15,-1/15)) | |
1936 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Pink",VT(-2/15,-2/15,-2/15)) | |
1937 | 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(-85)), 0.15 / Animation_Speed) | |
1938 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
1939 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1940 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1941 | 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) | |
1942 | 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) | |
1943 | end | |
1944 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1945 | Swait() | |
1946 | turnto(Mouse.Hit.p) | |
1947 | 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(65)), 1 / Animation_Speed) | |
1948 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1949 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1950 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1951 | 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)), 1 / Animation_Speed) | |
1952 | 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)), 1 / Animation_Speed) | |
1953 | end | |
1954 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Pink", "Punch", VT(50,50,50),false) | |
1955 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
1956 | PART.Shape = "Ball" | |
1957 | local bv = Instance.new("BodyVelocity") | |
1958 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1959 | bv.velocity = RootPart.CFrame.lookVector*600 | |
1960 | bv.Parent = PART | |
1961 | bv.Name = "PROJECTILEVELOCITY" | |
1962 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Pink",VT(2.5,0.2,2.5)) | |
1963 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Pink",VT(3,0.2,3)) | |
1964 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Pink",VT(2,0.6,2)) | |
1965 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Pink",VT(2.2,0.6,2.2)) | |
1966 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
1967 | coroutine.resume(coroutine.create(function() | |
1968 | for i = 1, 10 do | |
1969 | Swait() | |
1970 | PART.Transparency = PART.Transparency + 0.2/10 | |
1971 | PART.Size = PART.Size + VT(5,5,5) | |
1972 | killnearest3(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
1973 | end | |
1974 | PART:Destroy() | |
1975 | end)) | |
1976 | for i=0, 1, 0.1 / Animation_Speed do | |
1977 | Swait() | |
1978 | 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(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
1979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
1980 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1981 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1982 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1983 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1984 | end | |
1985 | Speed = SPEED | |
1986 | ATTACK = false | |
1987 | Rooted = false | |
1988 | end | |
1989 | ||
1990 | function GoldenPunch() | |
1991 | ATTACK = true | |
1992 | Rooted = false | |
1993 | local SPEED = Speed | |
1994 | Speed = 8 | |
1995 | CreateSound("169445572", RightArm, 10, 1.1) | |
1996 | for i=0, 4, 0.1 / Animation_Speed do | |
1997 | Swait() | |
1998 | turnto(Mouse.Hit.p) | |
1999 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15)) | |
2000 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) | |
2001 | 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(-85)), 0.15 / Animation_Speed) | |
2002 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
2003 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2004 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2005 | 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) | |
2006 | 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) | |
2007 | end | |
2008 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2009 | Swait() | |
2010 | turnto(Mouse.Hit.p) | |
2011 | 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(65)), 1 / Animation_Speed) | |
2012 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2013 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2014 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2015 | 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)), 1 / Animation_Speed) | |
2016 | 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)), 1 / Animation_Speed) | |
2017 | end | |
2018 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false) | |
2019 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
2020 | PART.Shape = "Ball" | |
2021 | local bv = Instance.new("BodyVelocity") | |
2022 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2023 | bv.velocity = RootPart.CFrame.lookVector*600 | |
2024 | bv.Parent = PART | |
2025 | bv.Name = "PROJECTILEVELOCITY" | |
2026 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2.5,0.2,2.5)) | |
2027 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3)) | |
2028 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2)) | |
2029 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(2.2,0.6,2.2)) | |
2030 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
2031 | coroutine.resume(coroutine.create(function() | |
2032 | for i = 1, 10 do | |
2033 | Swait() | |
2034 | PART.Transparency = PART.Transparency + 0.2/10 | |
2035 | PART.Size = PART.Size + VT(5,5,5) | |
2036 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
2037 | end | |
2038 | PART:Destroy() | |
2039 | end)) | |
2040 | for i=0, 1, 0.1 / Animation_Speed do | |
2041 | Swait() | |
2042 | 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(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
2043 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
2044 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2045 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2046 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2047 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2048 | end | |
2049 | Speed = SPEED | |
2050 | ATTACK = false | |
2051 | Rooted = false | |
2052 | end | |
2053 | ||
2054 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
2055 | coroutine.resume(coroutine.create(function() | |
2056 | local METEOR = IT("Model",Effects) | |
2057 | METEOR.Name = "Meteorite" | |
2058 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2059 | METEOR.PrimaryPart = CENTER | |
2060 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2061 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2062 | for i = 1, 15 do | |
2063 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) | |
2064 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2065 | end | |
2066 | if ISDEBREE ~= true then | |
2067 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2068 | else | |
2069 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2070 | end | |
2071 | local IMPACT = false | |
2072 | CreateSound(463593339, CENTER, 10, 0.6) | |
2073 | if SIZE >= 3.5 then | |
2074 | for i = 1, MRANDOM(3,7) do | |
2075 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
2076 | end | |
2077 | end | |
2078 | for i = 1, 200 do | |
2079 | Swait() | |
2080 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
2081 | if HITFLOOR == nil then | |
2082 | local ORI = CENTER.Orientation | |
2083 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2084 | else | |
2085 | if HITFLOOR.Anchored == true then | |
2086 | CreateDebreeRing1(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
2087 | CreateFlyingDebree1(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
2088 | end | |
2089 | IMPACT = true | |
2090 | break | |
2091 | end | |
2092 | end | |
2093 | if IMPACT == true then | |
2094 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2095 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
2096 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2097 | killnearest2(CENTER.Position,30*SIZE) | |
2098 | end | |
2099 | METEOR:remove() | |
2100 | end)) | |
2101 | end | |
2102 | ||
2103 | function Q() | |
2104 | ATTACK = true | |
2105 | Rooted = false | |
2106 | CreateSound(1368573150, RightArm, 3, 1.5) | |
2107 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2108 | Swait() | |
2109 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2110 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2111 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2112 | end | |
2113 | local POWER1 = 0 | |
2114 | repeat | |
2115 | Swait() | |
2116 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2117 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2118 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2119 | POWER1 = POWER1 + 10 | |
2120 | if POWER1 >= 100 then | |
2121 | POWER1 = 100 | |
2122 | end | |
2123 | until KEYHOLD == false | |
2124 | if POWER1 < 1 then | |
2125 | SpawnMeteor(Mouse.Hit.p/2) | |
2126 | else | |
2127 | if POWER1 < 100 then | |
2128 | POWER1 = 100 | |
2129 | end | |
2130 | SpawnMeteor(Mouse.Hit.p,POWER1/59) | |
2131 | end | |
2132 | ATTACK = false | |
2133 | Rooted = false | |
2134 | end | |
2135 | ||
2136 | function Mach20() | |
2137 | local ORIGIN = RootPart.Position | |
2138 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
2139 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
2140 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Pearl") | |
2141 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
2142 | SOUNDPART.CFrame = RootPart.CFrame | |
2143 | Debris:AddItem(SOUNDPART,5) | |
2144 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
2145 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
2146 | Swait() | |
2147 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
2148 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
2149 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Pearl") | |
2150 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
2151 | SOUNDPART.CFrame = RootPart.CFrame | |
2152 | Debris:AddItem(SOUNDPART,5) | |
2153 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
2154 | if MRANDOM(1,8) == 1 then | |
2155 | ATTACK = true | |
2156 | Rooted = true | |
2157 | local FRUITSTABLE = { | |
2158 | {MeshId = "16190555", TextureId = "16190577", Color = "Really red"}, | |
2159 | {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"}, | |
2160 | {MeshId = "24394186", TextureId = "24394178", Color = "Brown"} | |
2161 | } | |
2162 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
2163 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
2164 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) | |
2165 | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) | |
2166 | weldBetween(RightArm,FRUITMODEL) | |
2167 | for i=0, 4, 0.1 / Animation_Speed do | |
2168 | Swait() | |
2169 | 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) | |
2170 | 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) | |
2171 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2172 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2173 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2174 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2175 | end | |
2176 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) | |
2177 | FRUITMODEL:remove() | |
2178 | for i = 1, 15 do | |
2179 | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
2180 | end | |
2181 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2182 | Swait() | |
2183 | 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) | |
2184 | 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) | |
2185 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2186 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2187 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2188 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2189 | end | |
2190 | ATTACK = false | |
2191 | Rooted = false | |
2192 | end | |
2193 | end | |
2194 | ||
2195 | function ImplosionCollision() | |
2196 | ATTACK = true | |
2197 | Rooted = true | |
2198 | CreateSound("169445572", RightArm, 10, 0.8) | |
2199 | for i=0, 8, 0.1 / Animation_Speed do | |
2200 | Swait() | |
2201 | turnto(Mouse.Hit.p) | |
2202 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.2,0,0.2)) | |
2203 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1.1) | |
2204 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,1),0) | |
2205 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Gold",VT(0.001,0.001,2),0) | |
2206 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15)) | |
2207 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) | |
2208 | 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(-85)), 0.15 / Animation_Speed) | |
2209 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
2210 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2211 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2212 | 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) | |
2213 | 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) | |
2214 | end | |
2215 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2216 | Swait() | |
2217 | turnto(Mouse.Hit.p) | |
2218 | 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(65)), 1 / Animation_Speed) | |
2219 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2220 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2221 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2222 | 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)), 1 / Animation_Speed) | |
2223 | 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)), 1 / Animation_Speed) | |
2224 | end | |
2225 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Gold",VT(-0.04,-0.04,-0.04)) | |
2226 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) | |
2227 | coroutine.resume(coroutine.create(function() | |
2228 | Swait(100) | |
2229 | for i = 1, 5 do | |
2230 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Gold",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
2231 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4.5*i,0.2,4.5*i)) | |
2232 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5*i,0.2,5*i)) | |
2233 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4*i,0.6,4*i)) | |
2234 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5.2*i,0.6,5.2*i)) | |
2235 | end | |
2236 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
2237 | for i = 1, 5 do | |
2238 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
2239 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
2240 | end | |
2241 | coroutine.resume(coroutine.create(function() | |
2242 | for i = 1, 50 do | |
2243 | Swait() | |
2244 | for i = 1, 1 do | |
2245 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
2246 | end | |
2247 | for i = 1, 2 do | |
2248 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1 + MRANDOM(1,30)/3) | |
2249 | end | |
2250 | end | |
2251 | end)) | |
2252 | end)) | |
2253 | for i=0, 4, 0.1 / Animation_Speed do | |
2254 | Swait() | |
2255 | 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(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
2256 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
2257 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2258 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2259 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2260 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2261 | end | |
2262 | ATTACK = false | |
2263 | Rooted = false | |
2264 | end | |
2265 | ||
2266 | function W() | |
2267 | ATTACK = true | |
2268 | Rooted = true | |
2269 | UNANCHOR = false | |
2270 | RootPart.Anchored = true | |
2271 | MagicSphere(VT(0,0,0),15,Torso.CFrame,"Really red",VT(2,2,2)) | |
2272 | MagicSphere(VT(0,0,0),15,Torso.CFrame,"Really red",VT(2,2,2)) | |
2273 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2274 | Swait() | |
2275 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2276 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2277 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2278 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2279 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2280 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2281 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2282 | end | |
2283 | for i = 1, 10 do | |
2284 | Swait() | |
2285 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2286 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
2287 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
2288 | if c.ClassName == "Part" then | |
2289 | c.Transparency = c.Transparency + 0.1 | |
2290 | end | |
2291 | end | |
2292 | end | |
2293 | for i=0, 1, 0.1 / Animation_Speed do | |
2294 | Swait() | |
2295 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2296 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2297 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -25) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2298 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2299 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2300 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2301 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2302 | end | |
2303 | local ORIGIN = RootPart.Position | |
2304 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),ORIGIN) | |
2305 | for i=0, 1, 0.1 / Animation_Speed do | |
2306 | Swait() | |
2307 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2308 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2309 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2310 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2311 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2312 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2313 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2314 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2315 | end | |
2316 | UNANCHOR = true | |
2317 | RootPart.Anchored = false | |
2318 | for i = 1, 10 do | |
2319 | Swait() | |
2320 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2321 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
2322 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
2323 | if c.ClassName == "Part" then | |
2324 | c.Transparency = c.Transparency - 0.1 | |
2325 | end | |
2326 | end | |
2327 | end | |
2328 | ATTACK = false | |
2329 | Rooted = false | |
2330 | end | |
2331 | ||
2332 | function t() | |
2333 | ATTACK = true | |
2334 | --Rooted = true | |
2335 | for i=0, 2, 0.1 / Animation_Speed do | |
2336 | Swait() | |
2337 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2338 | 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(0)), 0.15 / Animation_Speed) | |
2339 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2340 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2341 | 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) | |
2342 | 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) | |
2343 | end | |
2344 | local winz = CreateSound("958211048", Head, 50, 1) | |
2345 | local loop = 0 | |
2346 | repeat | |
2347 | Swait() | |
2348 | loop = loop + 1 | |
2349 | if loop == 25 then | |
2350 | loop = 0 | |
2351 | Humanoid.Jump = true | |
2352 | end | |
2353 | until winz.Playing == false | |
2354 | ATTACK = false | |
2355 | --Rooted = false | |
2356 | end | |
2357 | ||
2358 | local asd = Instance.new("ParticleEmitter") | |
2359 | asd.Color = ColorSequence.new(Color3.new(0, 0, 0)) | |
2360 | asd.LightEmission = .1 | |
2361 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
2362 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 4),NumberSequenceKeypoint.new(1, 8)}) | |
2363 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2364 | asd.Transparency = bbb | |
2365 | asd.Size = aaa | |
2366 | asd.ZOffset = .9 | |
2367 | asd.Acceleration = Vector3.new(0, 0, 0) | |
2368 | asd.LockedToPart = false | |
2369 | asd.EmissionDirection = "Back" | |
2370 | asd.Lifetime = NumberRange.new(1, 2) | |
2371 | asd.Rotation = NumberRange.new(-100, 100) | |
2372 | asd.RotSpeed = NumberRange.new(-100, 100) | |
2373 | asd.Speed = NumberRange.new(6) | |
2374 | asd.Enabled = false | |
2375 | asd.Drag = 3 | |
2376 | asd.VelocitySpread = 10000 | |
2377 | ||
2378 | function poofcloud(pos,amount) | |
2379 | local prt = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "Poof", VT(0,0,0)) | |
2380 | prt.Anchored = true | |
2381 | prt.CFrame = CF(pos) | |
2382 | local prtcl = asd:Clone() | |
2383 | prtcl.Parent = prt | |
2384 | prtcl:Emit(amount) | |
2385 | CreateSound("966888080", prt, 6, (math.random(12,16)/10)) | |
2386 | coroutine.resume(coroutine.create(function() | |
2387 | wait(3) | |
2388 | prt:remove() | |
2389 | end)) | |
2390 | end | |
2391 | ||
2392 | local naeeym2 = Instance.new("BillboardGui",Character) | |
2393 | naeeym2.AlwaysOnTop = true | |
2394 | naeeym2.Size = UDim2.new(5,35,2,35) | |
2395 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
2396 | naeeym2.Adornee = Character.Head | |
2397 | naeeym2.Name = "Name" | |
2398 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2399 | tecks2.BackgroundTransparency = 1 | |
2400 | tecks2.TextScaled = true | |
2401 | tecks2.BorderSizePixel = 0 | |
2402 | tecks2.Text = "Laber" | |
2403 | tecks2.Font = "Antique" | |
2404 | tecks2.TextSize = 30 | |
2405 | tecks2.TextStrokeTransparency = 0 | |
2406 | tecks2.TextColor3 = Color3.new(1,1,1) | |
2407 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
2408 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2409 | tecks2.Parent = naeeym2 | |
2410 | ||
2411 | function ghost() | |
2412 | tecks2.TextTransparency = 1 | |
2413 | poofcloud(Torso.Position,50) | |
2414 | g = Character:GetChildren() | |
2415 | for i = 1, #g do | |
2416 | if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then | |
2417 | g[i].Transparency = 1 | |
2418 | Head.face.Transparency = 1 | |
2419 | elseif g[i].ClassName == "Accessory" then | |
2420 | g[i].Handle.Transparency = 1 | |
2421 | end | |
2422 | end | |
2423 | g = Weapon:GetChildren() | |
2424 | for i = 1, #g do | |
2425 | if g[i].ClassName == "Part" then | |
2426 | g[i].Transparency = 1 | |
2427 | end | |
2428 | end | |
2429 | end | |
2430 | ||
2431 | function Trail(Part) | |
2432 | local TRAIL = Part:Clone() | |
2433 | TRAIL.CanCollide = false | |
2434 | TRAIL.Anchored = true | |
2435 | TRAIL.Parent = Effects | |
2436 | TRAIL.Name = "Trail" | |
2437 | local TRANS = Part.Transparency | |
2438 | coroutine.resume(coroutine.create(function() | |
2439 | for i = 1, 20 do | |
2440 | Swait() | |
2441 | TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20) | |
2442 | end | |
2443 | TRAIL:remove() | |
2444 | end)) | |
2445 | end | |
2446 | ||
2447 | function noghost() | |
2448 | tecks2.TextTransparency = 0 | |
2449 | poofcloud(Torso.Position,50) | |
2450 | g = Character:GetChildren() | |
2451 | for i = 1, #g do | |
2452 | if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then | |
2453 | g[i].Transparency = 0 | |
2454 | Head.face.Transparency = 0 | |
2455 | elseif g[i].ClassName == "Accessory" then | |
2456 | g[i].Handle.Transparency = 0 | |
2457 | end | |
2458 | end | |
2459 | g = Weapon:GetChildren() | |
2460 | for i = 1, #g do | |
2461 | if g[i].ClassName == "Part" then | |
2462 | g[i].Transparency = 0 | |
2463 | end | |
2464 | end | |
2465 | end | |
2466 | ||
2467 | local SHIELD = false | |
2468 | ||
2469 | function shield() | |
2470 | if SHIELD == false then | |
2471 | SHIELD = true | |
2472 | coroutine.resume(coroutine.create(function() | |
2473 | local woa = IT("Part",Effects) | |
2474 | woa.Size = VT(5,12,0) | |
2475 | woa.CFrame = RootPart.CFrame * CF(0,3,-7) | |
2476 | woa.Anchored = true | |
2477 | local mesh = IT("SpecialMesh",woa) | |
2478 | mesh.MeshType = "FileMesh" | |
2479 | mesh.MeshId = "rbxassetid://1044207043" | |
2480 | mesh.TextureId = "rbxassetid://1044207051" | |
2481 | mesh.Scale = VT(3,3,3) | |
2482 | CreateSound("638062404", woa, 50, 1) | |
2483 | local woosh = woa.Touched:Connect(function(hit) | |
2484 | if hit.Parent.ClassName == "Model" then | |
2485 | hit.Parent:BreakJoints() | |
2486 | CreateSound("978878312", hit, 2, 1) | |
2487 | elseif hit.ClassName == "Part" and hit.Anchored == false then | |
2488 | hit:remove() | |
2489 | end | |
2490 | end) | |
2491 | repeat | |
2492 | Swait() | |
2493 | woa.CFrame = RootPart.CFrame * CF(0,3,-7) | |
2494 | until SHIELD == false | |
2495 | woosh:disconnect() | |
2496 | CreateSound("638062404", woa, 50, 1) | |
2497 | woa.Anchored = false | |
2498 | local bv = Instance.new("BodyVelocity") | |
2499 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2500 | bv.velocity = RootPart.CFrame.lookVector*150 | |
2501 | bv.Parent = woa | |
2502 | bv.Name = "DASH" | |
2503 | local paw = woa.Touched:Connect(function(hit) | |
2504 | if hit.Parent.ClassName == "Model" then | |
2505 | woa:remove() | |
2506 | hit.Parent:BreakJoints() | |
2507 | CreateSound("978878312", hit, 2, 1) | |
2508 | end | |
2509 | end) | |
2510 | end)) | |
2511 | elseif SHIELD == true then | |
2512 | SHIELD = false | |
2513 | end | |
2514 | end | |
2515 | ||
2516 | function dab() | |
2517 | ATTACK = true | |
2518 | Rooted = true | |
2519 | local lookatmydab = CreateSound("420701460", Head, 50, 1) | |
2520 | sick.Volume = 10 | |
2521 | for i=0, 1, 0.1 / Animation_Speed do | |
2522 | killnearest1(RootPart.Position,25,150) | |
2523 | Swait() | |
2524 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2525 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2526 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(15), RAD(-35), RAD(-100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*4) | |
2527 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*4) | |
2528 | 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(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2529 | 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*4) | |
2530 | end | |
2531 | repeat | |
2532 | killnearest1(RootPart.Position,25,150) | |
2533 | Swait() | |
2534 | until lookatmydab.Playing == false | |
2535 | sick.Volume = 1 | |
2536 | ATTACK = false | |
2537 | Rooted = false | |
2538 | end | |
2539 | ||
2540 | function go() | |
2541 | ATTACK = true | |
2542 | Rooted = true | |
2543 | local target = nil | |
2544 | local targettorso = nil | |
2545 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2546 | target = Mouse.Target.Parent.Humanoid | |
2547 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2548 | end | |
2549 | if target ~= nil then | |
2550 | targettorso.Anchored = true | |
2551 | for i=0, 1, 0.1 / Animation_Speed do | |
2552 | Swait() | |
2553 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2554 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2555 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2556 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2557 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2558 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2559 | 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(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2560 | 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(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2561 | end | |
2562 | local omae = CreateSound("940337206", Head, 50, 1) | |
2563 | repeat | |
2564 | Swait() | |
2565 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2566 | if target then | |
2567 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2568 | end | |
2569 | until omae.Playing == false | |
2570 | if target then | |
2571 | local nani = CreateSound("948494432", targettorso, 50, 1) | |
2572 | repeat | |
2573 | Swait() | |
2574 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2575 | if target then | |
2576 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2577 | end | |
2578 | until nani.Playing == false | |
2579 | target.Parent:BreakJoints() | |
2580 | targettorso.Anchored = false | |
2581 | local boom = Instance.new("Explosion",workspace) | |
2582 | boom.Position = targettorso.Position | |
2583 | CreateSound("691216625", targettorso, 50, 1) | |
2584 | end | |
2585 | end | |
2586 | Rooted = false | |
2587 | ATTACK = false | |
2588 | end | |
2589 | ||
2590 | function yo() | |
2591 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2592 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2593 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2594 | if TORSO and HUM.Health > 0 then | |
2595 | ATTACK = true | |
2596 | Rooted = false | |
2597 | local GYRO = IT("BodyGyro",RootPart) | |
2598 | GYRO.D = 275 | |
2599 | GYRO.P = 20000 | |
2600 | GYRO.MaxTorque = VT(0,40000,0) | |
2601 | for i=0, 0.8, 0.1 / Animation_Speed do | |
2602 | Swait() | |
2603 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2604 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2605 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2606 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2607 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2608 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2609 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2610 | end | |
2611 | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) | |
2612 | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
2613 | local grav = Instance.new("BodyPosition",TORSO) | |
2614 | grav.D = 1500 | |
2615 | grav.P = 20000 | |
2616 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2617 | grav.position = TORSO.Position+VT(0,15,0) | |
2618 | Debris:AddItem(grav,10) | |
2619 | Debris:AddItem(MAGIC,10) | |
2620 | CreateSound(429459101, Torso, 7, 1, false) | |
2621 | CreateSound(429459101, TORSO, 7, 1, false) | |
2622 | for i=0, 1, 0.1 / Animation_Speed do | |
2623 | Swait() | |
2624 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2625 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2626 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2627 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2628 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2629 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2630 | end | |
2631 | GYRO:remove() | |
2632 | ATTACK = false | |
2633 | Rooted = false | |
2634 | end | |
2635 | end | |
2636 | end | |
2637 | ||
2638 | function ro() | |
2639 | ATTACK = true | |
2640 | Rooted = true | |
2641 | local ROAR = CreateSound("199978176", Head, 10, 1) | |
2642 | Swait() | |
2643 | repeat | |
2644 | Swait() | |
2645 | ROAR.Parent = Head | |
2646 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2647 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2648 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2649 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2650 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2651 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2652 | until ROAR.Playing == false | |
2653 | ATTACK = false | |
2654 | Rooted = false | |
2655 | end | |
2656 | ||
2657 | function bl() | |
2658 | local HASSTARTED = false | |
2659 | local target = nil | |
2660 | local targettorso = nil | |
2661 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2662 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2663 | target = Mouse.Target.Parent.Humanoid | |
2664 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2665 | end | |
2666 | end | |
2667 | if target ~= nil then | |
2668 | CreateSound("305685800", Head, 10, 1) | |
2669 | targettorso.Anchored = true | |
2670 | HASSTARTED = true | |
2671 | ATTACK = true | |
2672 | Rooted = true | |
2673 | RootPart.CFrame = targettorso.CFrame * CF(0,0,2) | |
2674 | coroutine.resume(coroutine.create(function() | |
2675 | Swait(10*100) | |
2676 | if HASSTARTED == true then | |
2677 | ATTACK = false | |
2678 | Rooted = false | |
2679 | UNANCHOR = true | |
2680 | end | |
2681 | end)) | |
2682 | UNANCHOR = false | |
2683 | RootPart.Anchored = true | |
2684 | coroutine.resume(coroutine.create(function() | |
2685 | for i=0, 3, 0.1 / Animation_Speed do | |
2686 | Swait() | |
2687 | 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) | |
2688 | 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) | |
2689 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) | |
2690 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) | |
2691 | 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) | |
2692 | 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) | |
2693 | end | |
2694 | for i=0, 3, 0.1 / Animation_Speed do | |
2695 | 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) | |
2696 | 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) | |
2697 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2698 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2699 | 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) | |
2700 | 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) | |
2701 | end | |
2702 | getbloody(targettorso,25) | |
2703 | Swait(5) | |
2704 | targettorso:remove() | |
2705 | Swait(15) | |
2706 | ATTACK = false | |
2707 | Rooted = false | |
2708 | HASSTARTED = false | |
2709 | UNANCHOR = true | |
2710 | end)) | |
2711 | end | |
2712 | end | |
2713 | ||
2714 | function low() | |
2715 | ATTACK = true | |
2716 | Rooted = true | |
2717 | for i=0, 2, 0.1 / Animation_Speed do | |
2718 | Swait() | |
2719 | 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),"Black",VT(0.001,0.001,0.5),0.5) | |
2720 | 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) | |
2721 | 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) | |
2722 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2723 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2724 | 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) | |
2725 | 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) | |
2726 | end | |
2727 | CreateSound("3264923", Torso, 10, 3) | |
2728 | coroutine.resume(coroutine.create(function() | |
2729 | local FRAME = Torso.CFrame | |
2730 | MagicSphere(VT(3,3,3),450,FRAME,"Black",VT(-3/550,-3/550,-3/550),0) | |
2731 | for i = 1, 450 do | |
2732 | Swait() | |
2733 | MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"Black",VT(0.001,0.001,2.5),0.5) | |
2734 | AoEDamage(FRAME.p,1,1500,1000000,-5,false,12,3,false) | |
2735 | end | |
2736 | MagicSphere(VT(6,6,6),70,FRAME,"Black",VT(1,1,1),0) | |
2737 | MagicSphere(VT(5,5,5),70,FRAME,"Black",VT(1,1,1),0.5) | |
2738 | AoEDamage(FRAME.p,55,1500,1000000,-5,false,2,30,false) | |
2739 | end)) | |
2740 | ATTACK = false | |
2741 | Rooted = false | |
2742 | end | |
2743 | ||
2744 | ||
2745 | local Decal = IT("Decal") | |
2746 | function MagicRing() | |
2747 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) | |
2748 | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2749 | local decal = Decal:Clone() | |
2750 | decal.Parent = O1 | |
2751 | decal.Face = "Top" | |
2752 | decal.Texture = "http://www.roblox.com/asset/?id=917750924" | |
2753 | local decal2 = Decal:Clone() | |
2754 | decal2.Parent = O1 | |
2755 | decal2.Face = "Bottom" | |
2756 | decal2.Texture = "http://www.roblox.com/asset/?id=917750924" | |
2757 | return O1 | |
2758 | end | |
2759 | ||
2760 | local LEVEL = 1 | |
2761 | ||
2762 | function I() | |
2763 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character) | |
2764 | if HITFLOOR ~= nil then | |
2765 | do | |
2766 | local POWER = LEVEL | |
2767 | ATTACK = true | |
2768 | Rooted = true | |
2769 | local CENTER = MagicRing() | |
2770 | CENTER.CFrame = CF(HITPOS + VT(0, 0.1, 0)) | |
2771 | CreateSound("424777055", CENTER, 10, 1) | |
2772 | local RAIN = {} | |
2773 | for i = 1, 55 do | |
2774 | Swait() | |
2775 | CENTER.Size = CENTER.Size + VT(POWER, 0, POWER) / 3 | |
2776 | CENTER.CFrame = CENTER.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
2777 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2778 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5 + 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2779 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2780 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2781 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2782 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2783 | end | |
2784 | local MAXDIST = 15 | |
2785 | local DIRECTION = CF(RootPart.Position, VT(Mouse.Hit.p.X, HITPOS.Y, Mouse.Hit.p.Z)).lookVector | |
2786 | local HITFLOOR2, HITPOS2 = Raycast(RootPart.Position, DIRECTION, MAXDIST, Character) | |
2787 | local HITFLOOR3, HITPOS3 = Raycast(HITPOS2, CF(HITPOS2 + VT(0, 1, 0), HITPOS2 + VT(0, -1, 0)).lookVector, MAXDIST, Character) | |
2788 | local ORB = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "ORB", VT(4, 4, 4)) | |
2789 | MakeForm(ORB, "Ball") | |
2790 | CreateSound("201858045", ORB, 10, 0.5) | |
2791 | for i = 0, 1, 0.1 / Animation_Speed do | |
2792 | Swait() | |
2793 | ORB.CFrame = RootPart.CFrame * CF(0, 10 + POWER * 3, 0) | |
2794 | ORB.Transparency = 0 | |
2795 | ORB.Size = ORB.Size + VT(POWER, POWER, POWER) / 7 | |
2796 | local POS = HITPOS + VT(MRANDOM(-CENTER.Size.X / 3, CENTER.Size.X / 3), 0, MRANDOM(-CENTER.Size.X / 3, CENTER.Size.X / 3)) | |
2797 | local RANGE = (POS - RootPart.CFrame * CF(0, 10 + POWER * 3, 0).p).Magnitude | |
2798 | local ZAPTABLE = Zap({ | |
2799 | StartPosition = POS, | |
2800 | TargetPosition = ORB.Position, | |
2801 | Character = workspace, | |
2802 | Color = "Gold", | |
2803 | Individual = true, | |
2804 | MaxRange = RANGE, | |
2805 | SegmentLength = POWER * 2, | |
2806 | Offset = 1 | |
2807 | }) | |
2808 | Debris:AddItem(ZAPTABLE.LightningModel, 0.1) | |
2809 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2810 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2811 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2812 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2813 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2814 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2815 | end | |
2816 | coroutine.resume(coroutine.create(function() | |
2817 | ORB.CFrame = CF(ORB.Position, HITPOS3) | |
2818 | local IMPACT = false | |
2819 | for i = 1, 400 do | |
2820 | Swait() | |
2821 | ORB.CFrame = ORB.CFrame * CF(0, 0, -1) | |
2822 | local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X / 2.2, Character) | |
2823 | if HIT ~= nil then | |
2824 | IMPACT = true | |
2825 | break | |
2826 | end | |
2827 | end | |
2828 | if IMPACT == true then | |
2829 | ORB.Transparency = 1 | |
2830 | local FRONT = ORB.CFrame * CF(0, 0, -1).p | |
2831 | ORB.CFrame = CF(ORB.Position, VT(FRONT.X, ORB.Position.Y, FRONT.Z)) | |
2832 | for i = 1, 35 do | |
2833 | if MRANDOM(1, 5) == 1 then | |
2834 | local POS = CF(ORB.Position) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) * CF(0, 0, -POWER * 15).p | |
2835 | local ZAPTABLE = Zap({ | |
2836 | SIZE = POWER, | |
2837 | StartPosition = ORB.Position, | |
2838 | TargetPosition = POS, | |
2839 | Character = workspace, | |
2840 | Color = "Gold", | |
2841 | Individual = true, | |
2842 | MaxRange = POWER * 35, | |
2843 | SegmentLength = POWER * 5, | |
2844 | Offset = 3 | |
2845 | }) | |
2846 | Debris:AddItem(ZAPTABLE.LightningModel, 0.1) | |
2847 | end | |
2848 | ORB.CFrame = ORB.CFrame * CF(0, 0, -ORB.Size.X / 1.5) | |
2849 | MagicSphere(ORB.Size * 1.1, 25, ORB.CFrame, BRICKC("Gold").Color, -ORB.Size / 35) | |
2850 | CreateWave(VT(ORB.Size.X, 1, ORB.Size.Z) * 5, 35, CF(ORB.Position - VT(0, ORB.Size.Y / 3, 0)) * ANGLES(RAD(0), RAD(i * 5), RAD(0)), true, 5, "Gold", -VT(ORB.Size.X / 24, 0, ORB.Size.Z / 24)) | |
2851 | killnearest(ORB.Position, ORB.Size.X * 2, 500) | |
2852 | Swait() | |
2853 | end | |
2854 | else | |
2855 | ORB:remove() | |
2856 | end | |
2857 | end)) | |
2858 | ATTACK = false | |
2859 | Rooted = false | |
2860 | coroutine.resume(coroutine.create(function() | |
2861 | for i = 1, 55 do | |
2862 | Swait() | |
2863 | CENTER.Size = CENTER.Size - VT(POWER, 0, POWER) | |
2864 | CENTER.CFrame = CENTER.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
2865 | end | |
2866 | CENTER:remove() | |
2867 | end)) | |
2868 | end | |
2869 | end | |
2870 | end | |
2871 | ||
2872 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
2873 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
2874 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2875 | local dmg = math.huge | |
2876 | if humanoid.Health > 0 then | |
2877 | if beserk == true then | |
2878 | humanoid.Health = 0 | |
2879 | else | |
2880 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
2881 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
2882 | if math.random(1,100) < critrate+1 then | |
2883 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
2884 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
2885 | else | |
2886 | humanoid.Health = humanoid.Health - dmg | |
2887 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
2888 | end | |
2889 | local defence = Instance.new("BoolValue",hit.Parent) | |
2890 | defence.Name = ("HitBy"..Player.Name) | |
2891 | game:GetService("Debris"):AddItem(defence, 0.25) | |
2892 | end | |
2893 | end | |
2894 | end | |
2895 | end | |
2896 | ||
2897 | function Attack1() | |
2898 | ATTACK = true | |
2899 | for i=0, 1, 0.1 / Animation_Speed2 do | |
2900 | Swait() | |
2901 | 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) | |
2902 | 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.15 / Animation_Speed2) | |
2903 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
2904 | 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) | |
2905 | 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) | |
2906 | 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) | |
2907 | end | |
2908 | local harm = FIST.Touched:Connect(function(hit) | |
2909 | dealdamage(hit,1500,1800,0,false,0,0) | |
2910 | end) | |
2911 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
2912 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
2913 | Swait() | |
2914 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 0.4 / Animation_Speed2) | |
2915 | 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) | |
2916 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
2917 | 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) | |
2918 | 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) | |
2919 | 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) | |
2920 | end | |
2921 | harm:disconnect() | |
2922 | ATTACK = false | |
2923 | end | |
2924 | ||
2925 | function Bomb() | |
2926 | ATTACK = true | |
2927 | Rooted = false | |
2928 | local GYRO = IT("BodyGyro",RootPart) | |
2929 | GYRO.D = 100 | |
2930 | GYRO.P = 2000 | |
2931 | GYRO.MaxTorque = VT(0,4000000,0) | |
2932 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2933 | local BOMB = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Anime_Bomb", VT(0,0,0)) | |
2934 | for i=0, 2, 0.1 / Animation_Speed do | |
2935 | BOMB.CFrame = RootPart.CFrame*CF(0,5,0) | |
2936 | Swait() | |
2937 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,2,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = BOMB.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil}) | |
2938 | WACKYEFFECT({Time = 100, EffectType = "Block", Size = VT(2,2,2), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil}) | |
2939 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2940 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2941 | 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) | |
2942 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2943 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2944 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2945 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2946 | end | |
2947 | GYRO:remove() | |
2948 | coroutine.resume(coroutine.create(function() | |
2949 | BOMB.CFrame = CF(BOMB.Position,Mouse.Hit.p) | |
2950 | local IMPACT = false | |
2951 | for i = 1,150 do | |
2952 | Swait() | |
2953 | if MRANDOM(1,5) == 1 then | |
2954 | WACKYEFFECT({Time = 50, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.CFrame*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2955 | end | |
2956 | WACKYEFFECT({Time = 10, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil}) | |
2957 | BOMB.CFrame = BOMB.CFrame*CF(0,0,-1) | |
2958 | local HIT = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2, Character) | |
2959 | if HIT ~= nil then | |
2960 | IMPACT = true | |
2961 | break | |
2962 | end | |
2963 | end | |
2964 | if IMPACT == true then | |
2965 | killnearest3(BOMB.Position,5,2,2,VALUE1) | |
2966 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2967 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2968 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2969 | else | |
2970 | BOMB:remove() | |
2971 | end | |
2972 | end)) | |
2973 | ATTACK = false | |
2974 | Rooted = false | |
2975 | end | |
2976 | ||
2977 | function kiss() | |
2978 | ATTACK = true | |
2979 | Rooted = false | |
2980 | local HASGRABBED = false | |
2981 | local GRABTARGET = nil | |
2982 | local TORS = nil | |
2983 | local WELD = nil | |
2984 | for i=0, 1, 0.1 / Animation_Speed do | |
2985 | Swait() | |
2986 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2987 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2988 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2989 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2990 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2991 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2992 | end | |
2993 | local GRAB1 = RightArm.Touched:Connect(function(hit) | |
2994 | if hit.Parent:FindFirstChild("Humanoid") then | |
2995 | if hit.Parent.Humanoid.Health ~= 0 then | |
2996 | UNANCHOR = false | |
2997 | RootPart.Anchored = true | |
2998 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
2999 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
3000 | WELD = weldBetween(RootPart,TORS) | |
3001 | HASGRABBED = true | |
3002 | Rooted = true | |
3003 | end | |
3004 | end | |
3005 | end) | |
3006 | local GRAB2 = LeftArm.Touched:Connect(function(hit) | |
3007 | if hit.Parent:FindFirstChild("Humanoid") then | |
3008 | if hit.Parent.Humanoid.Health ~= 0 then | |
3009 | UNANCHOR = false | |
3010 | RootPart.Anchored = true | |
3011 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
3012 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
3013 | WELD = weldBetween(RootPart,TORS) | |
3014 | HASGRABBED = true | |
3015 | Rooted = true | |
3016 | end | |
3017 | end | |
3018 | end) | |
3019 | for i=0, 1, 0.1 / Animation_Speed do | |
3020 | Swait() | |
3021 | if HASGRABBED == true then | |
3022 | break | |
3023 | end | |
3024 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3025 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3026 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3027 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3028 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3029 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3030 | end | |
3031 | GRAB1:disconnect() | |
3032 | GRAB2:disconnect() | |
3033 | if HASGRABBED == true then | |
3034 | TORS.Anchored = false | |
3035 | GRABTARGET = TORS.Parent | |
3036 | HED = GRABTARGET:FindFirstChild("Head") | |
3037 | for i=0, 2, 0.1 / Animation_Speed do | |
3038 | Swait() | |
3039 | 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) | |
3040 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3041 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3042 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3043 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3044 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3045 | end | |
3046 | local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Carnation pink", "Heart", VT(1,1,1), false) | |
3047 | local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0)) | |
3048 | CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
3049 | local ECH = 0 | |
3050 | CreateSound("247269322", Head, 10, 0.8) | |
3051 | for i=0, 8, 0.1 / Animation_Speed do | |
3052 | Swait() | |
3053 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3054 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed) | |
3055 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3056 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3057 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3058 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3059 | end | |
3060 | WELD:remove() | |
3061 | killnearest3(heart.Position,heart.Size.Y/2+2,2,RootPart.CFrame) | |
3062 | end | |
3063 | UNANCHOR = true | |
3064 | ATTACK = false | |
3065 | Rooted = false | |
3066 | end | |
3067 | ||
3068 | function jump() | |
3069 | Speed = 0 | |
3070 | ATTACK = true | |
3071 | --Rooted = true | |
3072 | for i=0, 2, 0.1 / Animation_Speed do | |
3073 | Swait() | |
3074 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3075 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3076 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3077 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3078 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3079 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3080 | end | |
3081 | CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10) | |
3082 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Black") | |
3083 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Black") | |
3084 | local bv = Instance.new("BodyVelocity") | |
3085 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3086 | bv.velocity = Vector3.new(0,300,0) | |
3087 | bv.Parent = Torso | |
3088 | bv.Name = "DASH" | |
3089 | ATTACK = false | |
3090 | --Rooted = false | |
3091 | game:GetService("Debris"):AddItem(bv, 0.5) | |
3092 | coroutine.resume(coroutine.create(function() | |
3093 | Swait(50) | |
3094 | HASJUMPED = false | |
3095 | Speed = 20 | |
3096 | end)) | |
3097 | end | |
3098 | ||
3099 | function Attack2() | |
3100 | ATTACK = true | |
3101 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3102 | Swait() | |
3103 | 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) | |
3104 | 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) | |
3105 | 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) | |
3106 | 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) | |
3107 | 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) | |
3108 | 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) | |
3109 | end | |
3110 | local harm = FIST.Touched:Connect(function(hit) | |
3111 | dealdamage(hit,500,8000,0,false,0,0) | |
3112 | end) | |
3113 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
3114 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3115 | Swait() | |
3116 | 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) | |
3117 | 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) | |
3118 | 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) | |
3119 | 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) | |
3120 | 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) | |
3121 | 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) | |
3122 | end | |
3123 | harm:disconnect() | |
3124 | ATTACK = false | |
3125 | Speed = 20 | |
3126 | end | |
3127 | ||
3128 | function Attack3() | |
3129 | ATTACK = true | |
3130 | for i=0, 1, 0.1 / Animation_Speed2 do | |
3131 | Swait() | |
3132 | 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) | |
3133 | 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.15 / Animation_Speed2) | |
3134 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3135 | 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) | |
3136 | 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) | |
3137 | 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) | |
3138 | end | |
3139 | local harm = FIST.Touched:Connect(function(hit) | |
3140 | dealdamage(hit,854852652564,9999999999999999999999,0,false,0,0) | |
3141 | end) | |
3142 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
3143 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3144 | Swait() | |
3145 | MagicSphere2(2,15,RightArm.CFrame * CF(0,1.2,0),"CHOSENBRICK") | |
3146 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.3) | |
3147 | 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) | |
3148 | 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) | |
3149 | 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) | |
3150 | 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) | |
3151 | 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) | |
3152 | 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) | |
3153 | end | |
3154 | harm:disconnect() | |
3155 | ATTACK = false | |
3156 | end | |
3157 | ||
3158 | function swait(num) | |
3159 | if num == 0 or num == nil then | |
3160 | ArtificialHB.Event:wait() | |
3161 | else | |
3162 | for i = 0, num do | |
3163 | ArtificialHB.Event:wait() | |
3164 | end | |
3165 | end | |
3166 | end | |
3167 | ||
3168 | function chatfunc(text) | |
3169 | local chat = coroutine.wrap(function() | |
3170 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
3171 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
3172 | end | |
3173 | local Bill = Instance.new("BillboardGui",Character) | |
3174 | Bill.Size = UDim2.new(0,100,0,40) | |
3175 | Bill.StudsOffset = Vector3.new(0,3,0) | |
3176 | Bill.Adornee = Character.Head | |
3177 | Bill.Name = "TalkingBillBoard" | |
3178 | local Hehe = Instance.new("TextLabel",Bill) | |
3179 | Hehe.BackgroundTransparency = 1 | |
3180 | Hehe.BorderSizePixel = 0 | |
3181 | Hehe.Text = "" | |
3182 | Hehe.Font = "Garamond" | |
3183 | Hehe.TextSize = 40 | |
3184 | Hehe.TextStrokeTransparency = 0 | |
3185 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
3186 | coroutine.resume(coroutine.create(function() | |
3187 | while Hehe ~= nil do | |
3188 | swait() | |
3189 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
3190 | Hehe.Rotation = math.random(-5,5) | |
3191 | Hehe.TextColor3 = BRICKC(CHOSENBRICK1).Color | |
3192 | Hehe.TextStrokeColor3 = BRICKC(CHOSENBRICK2).Color | |
3193 | end | |
3194 | end)) | |
3195 | for i = 1,string.len(text),1 do | |
3196 | swait() | |
3197 | Hehe.Text = string.sub(text,1,i) | |
3198 | end | |
3199 | swait(90)--Re[math.random(1, 93)] | |
3200 | for i = 0, 1, .025 do | |
3201 | swait() | |
3202 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
3203 | Hehe.TextStrokeTransparency = i | |
3204 | Hehe.TextTransparency = i | |
3205 | end | |
3206 | Bill:Destroy() | |
3207 | end) | |
3208 | chat() | |
3209 | end | |
3210 | ||
3211 | function onChatted(msg) | |
3212 | chatfunc(msg) | |
3213 | end | |
3214 | ||
3215 | Player.Chatted:connect(onChatted) | |
3216 | ||
3217 | --//=================================\\ | |
3218 | --|| ASSIGN THINGS TO KEYS | |
3219 | --\\=================================// | |
3220 | ||
3221 | function MouseDown(Mouse) | |
3222 | if ATTACK == false then | |
3223 | if COMBO == 1 then | |
3224 | COMBO = "HALT" | |
3225 | Attack1() | |
3226 | COMBO = 2 | |
3227 | elseif COMBO == 2 then | |
3228 | COMBO = "HALT" | |
3229 | Attack2() | |
3230 | COMBO = 3 | |
3231 | elseif COMBO == 3 then | |
3232 | COMBO = "HALT" | |
3233 | Attack3() | |
3234 | COMBO = 1 | |
3235 | end | |
3236 | end | |
3237 | end | |
3238 | ||
3239 | function MouseUp(Mouse) | |
3240 | HOLD = false | |
3241 | end | |
3242 | ||
3243 | function KeyDown(Key) | |
3244 | KEYHOLD = true | |
3245 | if Key == "q" and ATTACK == false then | |
3246 | if CHOSENBRICK == "Gold" then | |
3247 | GoldenPunch() | |
3248 | elseif CHOSENBRICK == "New Yeller" then | |
3249 | ||
3250 | elseif CHOSENBRICK == "Really red" then | |
3251 | Q() | |
3252 | elseif CHOSENBRICK == "Really blue" then | |
3253 | shield() | |
3254 | elseif CHOSENBRICK == "Pink" then | |
3255 | kiss() | |
3256 | elseif CHOSENBRICK == "Black" then | |
3257 | jump() | |
3258 | elseif CHOSENBRICK == "Deep orange" then | |
3259 | ||
3260 | elseif CHOSENBRICK == "RAINBOW" then | |
3261 | ||
3262 | end | |
3263 | end | |
3264 | ||
3265 | if Key == "z" and ATTACK == false then | |
3266 | if CHOSENBRICK == "Gold" then | |
3267 | CHOSENBRICK = "Really red" | |
3268 | elseif CHOSENBRICK == "Really red" then | |
3269 | CHOSENBRICK = "Really blue" | |
3270 | elseif CHOSENBRICK == "Really blue" then | |
3271 | CHOSENBRICK = "Pink" | |
3272 | elseif CHOSENBRICK == "Pink" then | |
3273 | CHOSENBRICK = "Black" | |
3274 | elseif CHOSENBRICK == "Black" then | |
3275 | CHOSENBRICK = "Deep orange" | |
3276 | elseif CHOSENBRICK == "Deep orange" then | |
3277 | CHOSENBRICK = "RAINBOW" | |
3278 | elseif CHOSENBRICK == "RAINBOW" then | |
3279 | CHOSENBRICK = "Gold" | |
3280 | ||
3281 | end | |
3282 | end | |
3283 | ||
3284 | if Key == "u" and ATTACK == false then | |
3285 | if CHOSENBRICK == "Gold" then | |
3286 | new_mode() | |
3287 | CHOSENBRICK = "New Yeller" | |
3288 | elseif CHOSENBRICK == "Really red" then | |
3289 | new_mode() | |
3290 | CHOSENBRICK = "New Yeller" | |
3291 | elseif CHOSENBRICK == "Really blue" then | |
3292 | new_mode() | |
3293 | CHOSENBRICK = "New Yeller" | |
3294 | elseif CHOSENBRICK == "Pink" then | |
3295 | new_mode() | |
3296 | CHOSENBRICK = "New Yeller" | |
3297 | elseif CHOSENBRICK == "Black" then | |
3298 | new_mode() | |
3299 | CHOSENBRICK = "New Yeller" | |
3300 | elseif CHOSENBRICK == "RAINBOW" then | |
3301 | new_mode() | |
3302 | CHOSENBRICK = "New Yeller" | |
3303 | elseif CHOSENBRICK == "New Yeller" then | |
3304 | new_mode() | |
3305 | CHOSENBRICK = "Gold" | |
3306 | ||
3307 | end | |
3308 | end | |
3309 | ||
3310 | ||
3311 | if Key == "c" and ATTACK == false then | |
3312 | if CHOSENBRICK == "Gold" then | |
3313 | Mach20() | |
3314 | elseif CHOSENBRICK == "New Yeller" then | |
3315 | ||
3316 | elseif CHOSENBRICK == "Really red" then | |
3317 | W() | |
3318 | elseif CHOSENBRICK == "Really blue" then | |
3319 | dab() | |
3320 | elseif CHOSENBRICK == "Pink" then | |
3321 | PinkPunch() | |
3322 | elseif CHOSENBRICK == "Black" then | |
3323 | low() | |
3324 | elseif CHOSENBRICK == "Deep orange" then | |
3325 | ||
3326 | elseif CHOSENBRICK == "RAINBOW" then | |
3327 | ||
3328 | end | |
3329 | end | |
3330 | ||
3331 | if Key == "l" and ATTACK == false then | |
3332 | if VALUE1 == false then | |
3333 | ghost() | |
3334 | VALUE1 = true | |
3335 | elseif VALUE1 == true then | |
3336 | noghost() | |
3337 | VALUE1 = false | |
3338 | end | |
3339 | end | |
3340 | ||
3341 | if Key == "e" and ATTACK == false then | |
3342 | if CHOSENBRICK == "Gold" then | |
3343 | ImplosionCollision() | |
3344 | elseif CHOSENBRICK == "New Yeller" then | |
3345 | ||
3346 | elseif CHOSENBRICK == "Really red" then | |
3347 | yo() | |
3348 | elseif CHOSENBRICK == "Really blue" then | |
3349 | go() | |
3350 | elseif CHOSENBRICK == "Pink" then | |
3351 | Bomb() | |
3352 | elseif CHOSENBRICK == "Black" then | |
3353 | bl() | |
3354 | elseif CHOSENBRICK == "Deep orange" then | |
3355 | ||
3356 | elseif CHOSENBRICK == "RAINBOW" then | |
3357 | ||
3358 | end | |
3359 | end | |
3360 | ||
3361 | if Key == "t" and ATTACK == false then | |
3362 | if CHOSENBRICK == "Gold" then | |
3363 | ||
3364 | elseif CHOSENBRICK == "New Yeller" then | |
3365 | ||
3366 | elseif CHOSENBRICK == "Really red" then | |
3367 | ro() | |
3368 | elseif CHOSENBRICK == "Really blue" then | |
3369 | t() | |
3370 | elseif CHOSENBRICK == "Pink" then | |
3371 | ||
3372 | elseif CHOSENBRICK == "Black" then | |
3373 | ||
3374 | elseif CHOSENBRICK == "Deep orange" then | |
3375 | ||
3376 | elseif CHOSENBRICK == "RAINBOW" then | |
3377 | ||
3378 | end | |
3379 | end | |
3380 | ||
3381 | if Key == "p" and ATTACK == false then | |
3382 | if Speed == 20 then | |
3383 | Speed = 150 | |
3384 | elseif Speed == 150 then | |
3385 | Speed = 20 | |
3386 | end | |
3387 | end | |
3388 | end | |
3389 | ||
3390 | function KeyUp(Key) | |
3391 | KEYHOLD = false | |
3392 | end | |
3393 | ||
3394 | Mouse.Button1Down:connect(function(NEWKEY) | |
3395 | MouseDown(NEWKEY) | |
3396 | end) | |
3397 | Mouse.Button1Up:connect(function(NEWKEY) | |
3398 | MouseUp(NEWKEY) | |
3399 | end) | |
3400 | Mouse.KeyDown:connect(function(NEWKEY) | |
3401 | KeyDown(NEWKEY) | |
3402 | end) | |
3403 | Mouse.KeyUp:connect(function(NEWKEY) | |
3404 | KeyUp(NEWKEY) | |
3405 | end) | |
3406 | ||
3407 | --//=================================\\ | |
3408 | --\\=================================// | |
3409 | ||
3410 | ||
3411 | function unanchor() | |
3412 | if UNANCHOR == true then | |
3413 | g = Character:GetChildren() | |
3414 | for i = 1, #g do | |
3415 | if g[i].ClassName == "Part" then | |
3416 | g[i].Anchored = false | |
3417 | end | |
3418 | end | |
3419 | end | |
3420 | end | |
3421 | ||
3422 | ||
3423 | --//=================================\\ | |
3424 | --|| WRAP THE WHOLE SCRIPT UP | |
3425 | --\\=================================// | |
3426 | ||
3427 | Humanoid.Changed:connect(function(Jump) | |
3428 | if Jump == "Jump" and (Disable_Jump == true) then | |
3429 | Humanoid.Jump = false | |
3430 | end | |
3431 | end) | |
3432 | ||
3433 | while true do | |
3434 | Swait() | |
3435 | ANIMATE.Parent = nil | |
3436 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3437 | IDLEANIMATION:Play() | |
3438 | SINE = SINE + CHANGE | |
3439 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3440 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3441 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
3442 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
3443 | local WALKSPEEDVALUE = 0 | |
3444 | if Speed < 35 then | |
3445 | WALKSPEEDVALUE = 6 | |
3446 | else | |
3447 | WALKSPEEDVALUE = 3 | |
3448 | end | |
3449 | if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then | |
3450 | 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) | |
3451 | 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) | |
3452 | --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) | |
3453 | --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) | |
3454 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3455 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3456 | 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) | |
3457 | --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) | |
3458 | --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) | |
3459 | end | |
3460 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3461 | ANIM = "Jump" | |
3462 | if ATTACK == false then | |
3463 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3464 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3465 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3466 | 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) | |
3467 | 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) | |
3468 | 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) | |
3469 | end | |
3470 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3471 | ANIM = "Fall" | |
3472 | if ATTACK == false then | |
3473 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3474 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3475 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3476 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3477 | 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) | |
3478 | 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) | |
3479 | end | |
3480 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3481 | ANIM = "Idle" | |
3482 | if ATTACK == false then | |
3483 | if VALUE1 == 1 then | |
3484 | 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) | |
3485 | 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) | |
3486 | 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) | |
3487 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3488 | 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) | |
3489 | 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) | |
3490 | elseif VALUE1 == 2 then | |
3491 | 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) | |
3492 | 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) | |
3493 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3494 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3495 | 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) | |
3496 | 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) | |
3497 | elseif VALUE1 == 3 then | |
3498 | 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) | |
3499 | 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) | |
3500 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3501 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3502 | 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) | |
3503 | 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) | |
3504 | elseif VALUE1 == 4 then | |
3505 | 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) | |
3506 | 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) | |
3507 | if MRANDOM(1,5) == 1 then | |
3508 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1) | |
3509 | end | |
3510 | 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) | |
3511 | 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) | |
3512 | 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) | |
3513 | 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) | |
3514 | elseif VALUE1 == 5 then | |
3515 | 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) | |
3516 | 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) | |
3517 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3518 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3519 | 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) | |
3520 | 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) | |
3521 | elseif VALUE1 == 6 then | |
3522 | 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) | |
3523 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3524 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3525 | 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) | |
3526 | 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) | |
3527 | 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) | |
3528 | elseif VALUE1 == 7 then | |
3529 | 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) | |
3530 | 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) | |
3531 | 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) | |
3532 | 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) | |
3533 | 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) | |
3534 | 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) | |
3535 | elseif VALUE1 == 8 then | |
3536 | 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) | |
3537 | 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) | |
3538 | 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) | |
3539 | 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) | |
3540 | 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) | |
3541 | 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) | |
3542 | end | |
3543 | end | |
3544 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3545 | ANIM = "Walk" | |
3546 | WALK = WALK + 1 / Animation_Speed | |
3547 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
3548 | WALK = 0 | |
3549 | if WALKINGANIM == true then | |
3550 | WALKINGANIM = false | |
3551 | elseif WALKINGANIM == false then | |
3552 | WALKINGANIM = true | |
3553 | end | |
3554 | end | |
3555 | --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) | |
3556 | --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) | |
3557 | if ATTACK == false then | |
3558 | if VALUE1 < 4 or VALUE1 == 6 then | |
3559 | 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) | |
3560 | 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) | |
3561 | 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) | |
3562 | 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) | |
3563 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3564 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3565 | elseif VALUE1 == 4 then | |
3566 | 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) | |
3567 | 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) | |
3568 | if MRANDOM(1,15) == 1 then | |
3569 | 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) | |
3570 | end | |
3571 | 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) | |
3572 | 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) | |
3573 | 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) | |
3574 | 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) | |
3575 | elseif VALUE1 == 7 then | |
3576 | 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) | |
3577 | 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) | |
3578 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3579 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3580 | 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) | |
3581 | 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) | |
3582 | elseif VALUE1 == 5 then | |
3583 | 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) | |
3584 | 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) | |
3585 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3586 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3587 | 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) | |
3588 | 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) | |
3589 | elseif VALUE1 == 8 then | |
3590 | 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) | |
3591 | 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) | |
3592 | 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) | |
3593 | 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) | |
3594 | 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) | |
3595 | 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) | |
3596 | end | |
3597 | end | |
3598 | end | |
3599 | unanchor() | |
3600 | Humanoid.MaxHealth = "inf" | |
3601 | Humanoid.Health = "inf" | |
3602 | if Rooted == false then | |
3603 | Disable_Jump = false | |
3604 | Humanoid.WalkSpeed = Speed | |
3605 | elseif Rooted == true then | |
3606 | Disable_Jump = true | |
3607 | Humanoid.WalkSpeed = 0 | |
3608 | end | |
3609 | for _, c in pairs(Character:GetDescendants()) do | |
3610 | if c.ClassName == "Part" and c.Name ~= "Neon Gauntlet Part" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
3611 | elseif c.ClassName == "Part" and c.Name == "Neon Gauntlet Part" then | |
3612 | c.BrickColor = BRICKC(CHOSENBRICK2) | |
3613 | c.Material = "Neon" | |
3614 | elseif c.ClassName == "Poof" then | |
3615 | c.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
3616 | end | |
3617 | end | |
3618 | ||
3619 | for _, c in pairs(Character:GetDescendants()) do | |
3620 | if c.ClassName == "Part" and c.Name ~= "Gauntlet Part" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
3621 | elseif c.ClassName == "Part" and c.Name == "Gauntlet Part" then | |
3622 | c.BrickColor = BRICKC(CHOSENBRICK1) | |
3623 | c.Material = "Granite" | |
3624 | end | |
3625 | end | |
3626 | ||
3627 | SKILL1TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3628 | SKILL2TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3629 | SKILL3TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3630 | SKILL4TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3631 | SKILL5TEXT.TextColor3 = BrickColor.Random().Color | |
3632 | if CHOSENBRICK == "Gold" then | |
3633 | CHOSENBRICK1 = "Gold" | |
3634 | CHOSENBRICK2 = "Gold" | |
3635 | Speed = 20 | |
3636 | VALUE1 = 1 | |
3637 | sick.SoundId = "rbxassetid://165704299" | |
3638 | SKILL1TEXT.Text = "[Q] Punch" | |
3639 | SKILL2TEXT.Text = "[Z] Evil mode..." | |
3640 | SKILL3TEXT.Text = "[E] Super punch" | |
3641 | SKILL4TEXT.Text = "[C] Warp" | |
3642 | SKILL5TEXT.Text = "[U] Karma mode..." | |
3643 | tecks2.Text = "!#$฿-Nomal-฿&#!" | |
3644 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3645 | tecks2.TextStrokeColor3 = C3(239/255, 184/255, 56/255) | |
3646 | sick.Volume = 1 | |
3647 | elseif CHOSENBRICK == "New Yeller" then | |
3648 | VALUE1 = 4 | |
3649 | CHOSENBRICK1 = BrickColor.Random().Color | |
3650 | CHOSENBRICK2 = BrickColor.Random().Color | |
3651 | sick.SoundId = "rbxassetid://432664291" | |
3652 | SKILL1TEXT.Text = "[Q] Comming soon" | |
3653 | SKILL2TEXT.Text = "[Z] comming soon" | |
3654 | SKILL3TEXT.Text = "[E] Comming soon" | |
3655 | SKILL4TEXT.Text = "[C] comming soon" | |
3656 | SKILL5TEXT.Text = "[U] Nomal mode..." | |
3657 | sick.Volume = 1 | |
3658 | tecks2.TextColor3 = BrickColor.Random().Color | |
3659 | tecks2.TextStrokeColor3 = BrickColor.Random().Color | |
3660 | tecks2.Text = "kArMa." | |
3661 | elseif CHOSENBRICK == "Really red" then | |
3662 | VALUE1 = 3 | |
3663 | CHOSENBRICK1 = "Really red" | |
3664 | CHOSENBRICK2 = "Really red" | |
3665 | sick.SoundId = "rbxassetid://1524659810" | |
3666 | SKILL1TEXT.Text = "[Q] Meteor" | |
3667 | SKILL2TEXT.Text = "[Z] Meme mode..." | |
3668 | SKILL3TEXT.Text = "[E] Lift" | |
3669 | SKILL4TEXT.Text = "[C] Warp" | |
3670 | tecks2.Text = "-$#฿-Evil-฿#$-" | |
3671 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3672 | tecks2.TextStrokeColor3 = Color3.new(25,0,0) | |
3673 | elseif CHOSENBRICK == "Really blue" then | |
3674 | VALUE1 = 5 | |
3675 | CHOSENBRICK1 = "New Yeller" | |
3676 | CHOSENBRICK2 = "Really blue" | |
3677 | SKILL1TEXT.Text = "[Q] WOA!" | |
3678 | SKILL2TEXT.Text = "[Z] Anime mode..." | |
3679 | SKILL3TEXT.Text = "[E] NANI" | |
3680 | SKILL4TEXT.Text = "[C] Dab" | |
3681 | sick.SoundId = "rbxassetid://2039029608" | |
3682 | tecks2.Text = "$#฿-@Meme glove@-฿#$" | |
3683 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3684 | tecks2.TextStrokeColor3 = Color3.new(0,0,1.5) | |
3685 | elseif CHOSENBRICK == "Pink" then | |
3686 | VALUE1 = 6 | |
3687 | CHOSENBRICK1 = "Black" | |
3688 | CHOSENBRICK2 = "Pink" | |
3689 | SKILL1TEXT.Text = "[Q] kiss" | |
3690 | SKILL2TEXT.Text = "[Z] Darkness mode..." | |
3691 | SKILL3TEXT.Text = "[E] Anime Bomb" | |
3692 | SKILL4TEXT.Text = "[C] Punch" | |
3693 | sick.SoundId = "rbxassetid://1131624146" | |
3694 | tecks2.Text = "!$#฿-Anime-฿#$!" | |
3695 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3696 | tecks2.TextStrokeColor3 = Color3.new(0.5,0,0.5) | |
3697 | elseif CHOSENBRICK == "Black" then | |
3698 | VALUE1 = 7 | |
3699 | CHOSENBRICK1 = "Really black" | |
3700 | CHOSENBRICK2 = "Really black" | |
3701 | SKILL1TEXT.Text = "[Q] Super Jump" | |
3702 | SKILL2TEXT.Text = "[Z] Doge mode..." | |
3703 | SKILL3TEXT.Text = "[E] Darkness dead" | |
3704 | SKILL4TEXT.Text = "[C] Darkness Caver" | |
3705 | sick.SoundId = "rbxassetid://338110450" | |
3706 | tecks2.Text = "!$\#��-Darkness-��#\$!" | |
3707 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3708 | tecks2.TextStrokeColor3 = Color3.new(0.5,0.5,0.5) | |
3709 | elseif CHOSENBRICK == "Deep orange" then | |
3710 | CHOSENBRICK1 = "Deep orange" | |
3711 | CHOSENBRICK2 = "Deep orange" | |
3712 | SKILL1TEXT.Text = "[Q] comming soon" | |
3713 | SKILL2TEXT.Text = "[Z] Rainbow mode..." | |
3714 | SKILL3TEXT.Text = "[E] comming soon" | |
3715 | SKILL4TEXT.Text = "[C] comming soon" | |
3716 | Speed = 65 | |
3717 | VALUE1 = 2 | |
3718 | sick.SoundId = "rbxassetid://412964077" | |
3719 | tecks2.Text = "!$#฿[<-Doge->]฿#$!" | |
3720 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3721 | tecks2.TextStrokeColor3 = Color3.new(233,255,0) | |
3722 | elseif CHOSENBRICK == "RAINBOW" then | |
3723 | VALUE1 = 7 | |
3724 | CHOSENBRICK1 = Color3.fromRGB(cR,cG,cB) | |
3725 | CHOSENBRICK2 = Color3.fromRGB(cR,cG,cB) | |
3726 | SKILL1TEXT.Text = "[Q] comming soon" | |
3727 | SKILL2TEXT.Text = "[Z] Nomal mode..." | |
3728 | SKILL3TEXT.Text = "[E] comming soon" | |
3729 | SKILL4TEXT.Text = "[L] Rainbow ghost (NOT WORKING)" | |
3730 | Speed = 30 | |
3731 | sick.SoundId = "rbxassetid://1493882272" | |
3732 | tecks2.Text = "-$ Rainbow $-" | |
3733 | tecks2.TextColor3 = Color3.fromRGB(cR,cG,cB) | |
3734 | tecks2.TextStrokeColor3 = Color3.fromRGB(cR,cG,cB) | |
3735 | end | |
3736 | end | |
3737 | ||
3738 | ||
3739 | --//=================================\\ | |
3740 | --\\=================================// | |
3741 | ||
3742 | ||
3743 | ||
3744 | ||
3745 | ||
3746 | --//====================================================\\-- | |
3747 | --|| END OF SCRIPT | |
3748 | --\\====================================================//-- |