SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | ||
10 | ||
11 | Player = game:GetService("Players").LocalPlayer | |
12 | PlayerGui = Player.PlayerGui | |
13 | Cam = workspace.CurrentCamera | |
14 | Backpack = Player.Backpack | |
15 | Character = Player.Character | |
16 | Humanoid = Character.Humanoid | |
17 | Mouse = Player:GetMouse() | |
18 | RootPart = Character["HumanoidRootPart"] | |
19 | Torso = Character["Torso"] | |
20 | Head = Character["Head"] | |
21 | RightArm = Character["Right Arm"] | |
22 | LeftArm = Character["Left Arm"] | |
23 | RightLeg = Character["Right Leg"] | |
24 | LeftLeg = Character["Left Leg"] | |
25 | RootJoint = RootPart["RootJoint"] | |
26 | sick.SoundId = "rbxassetid://147888653" | |
27 | Neck = Torso["Neck"] | |
28 | RightShoulder = Torso["Right Shoulder"] | |
29 | LeftShoulder = Torso["Left Shoulder"] | |
30 | RightHip = Torso["Right Hip"] | |
31 | LeftHip = Torso["Left Hip"] | |
32 | ||
33 | IT = Instance.new | |
34 | CF = CFrame.new | |
35 | VT = Vector3.new | |
36 | RAD = math.rad | |
37 | C3 = Color3.new | |
38 | UD2 = UDim2.new | |
39 | BRICKC = BrickColor.new | |
40 | ANGLES = CFrame.Angles | |
41 | EULER = CFrame.fromEulerAnglesXYZ | |
42 | COS = math.cos | |
43 | ACOS = math.acos | |
44 | SIN = math.sin | |
45 | ASIN = math.asin | |
46 | ABS = math.abs | |
47 | MRANDOM = math.random | |
48 | FLOOR = math.floor | |
49 | ||
50 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
51 | local NEWMESH = IT(MESH) | |
52 | if MESH == "SpecialMesh" then | |
53 | NEWMESH.MeshType = MESHTYPE | |
54 | if MESHID ~= "nil" and MESHID ~= "" then | |
55 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
56 | end | |
57 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
58 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
59 | end | |
60 | end | |
61 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
62 | NEWMESH.Scale = SCALE | |
63 | NEWMESH.Parent = PARENT | |
64 | return NEWMESH | |
65 | end | |
66 | ||
67 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
68 | local NEWPART = IT("Part") | |
69 | NEWPART.formFactor = FORMFACTOR | |
70 | NEWPART.Reflectance = REFLECTANCE | |
71 | NEWPART.Transparency = TRANSPARENCY | |
72 | NEWPART.CanCollide = false | |
73 | NEWPART.Locked = true | |
74 | NEWPART.Anchored = true | |
75 | if ANCHOR == false then | |
76 | NEWPART.Anchored = false | |
77 | end | |
78 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
79 | NEWPART.Name = NAME | |
80 | NEWPART.Size = SIZE | |
81 | NEWPART.Position = Torso.Position | |
82 | NEWPART.Material = MATERIAL | |
83 | NEWPART:BreakJoints() | |
84 | NEWPART.Parent = PARENT | |
85 | return NEWPART | |
86 | end | |
87 | ||
88 | --//=================================\\ | |
89 | --|| CUSTOMIZATION | |
90 | --\\=================================// | |
91 | ||
92 | Player_Size = 1 --Size of the player. | |
93 | Animation_Speed = 3 | |
94 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
95 | - | local Speed = 16 |
95 | + | |
96 | local Speed = 90 | |
97 | local Effects2 = {} | |
98 | ||
99 | --//=================================\\ | |
100 | --|| END OF CUSTOMIZATION | |
101 | --\\=================================// | |
102 | ||
103 | local function weldBetween(a, b) | |
104 | local weldd = Instance.new("ManualWeld") | |
105 | weldd.Part0 = a | |
106 | weldd.Part1 = b | |
107 | weldd.C0 = CFrame.new() | |
108 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
109 | weldd.Parent = a | |
110 | return weldd | |
111 | end | |
112 | ||
113 | --//=================================\\ | |
114 | --|| USEFUL VALUES | |
115 | --\\=================================// | |
116 | ||
117 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
118 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
119 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
120 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
121 | local CHANGEDEFENSE = 0 | |
122 | local CHANGEDAMAGE = 0 | |
123 | local CHANGEMOVEMENT = 0 | |
124 | local ANIM = "Idle" | |
125 | local ATTACK = false | |
126 | local EQUIPPED = false | |
127 | local HOLD = false | |
128 | local COMBO = 1 | |
129 | local Rooted = false | |
130 | local SINE = 0 | |
131 | local KEYHOLD = false | |
132 | local CHANGE = 2 / Animation_Speed | |
133 | local WALKINGANIM = false | |
134 | local WALK = 0 | |
135 | local VALUE1 = false | |
136 | local VALUE2 = false | |
137 | local ROBLOXIDLEANIMATION = IT("Animation") | |
138 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
139 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
140 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
141 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
142 | WEAPONGUI.Name = "Weapon GUI" | |
143 | local Weapon = IT("Model") | |
144 | Weapon.Name = "Adds" | |
145 | local HITFLOOR = nil | |
146 | local Effects = IT("Folder", Weapon) | |
147 | Effects.Name = "Effects" | |
148 | local ANIMATOR = Humanoid.Animator | |
149 | local ANIMATE = Character.Animate | |
150 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
151 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
152 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
153 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
154 | local UNANCHOR = true | |
155 | ||
156 | local SKILLTEXTCOLOR = C3(255,165,0) | |
157 | ||
158 | --//=================================\\ | |
159 | --\\=================================// | |
160 | ||
161 | ||
162 | --//=================================\\ | |
163 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
164 | --\\=================================// | |
165 | ||
166 | ArtificialHB = Instance.new("BindableEvent", script) | |
167 | ArtificialHB.Name = "ArtificialHB" | |
168 | ||
169 | script:WaitForChild("ArtificialHB") | |
170 | ||
171 | frame = Frame_Speed | |
172 | tf = 0 | |
173 | allowframeloss = false | |
174 | tossremainder = false | |
175 | lastframe = tick() | |
176 | script.ArtificialHB:Fire() | |
177 | ||
178 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
179 | tf = tf + s | |
180 | if tf >= frame then | |
181 | if allowframeloss then | |
182 | script.ArtificialHB:Fire() | |
183 | lastframe = tick() | |
184 | else | |
185 | for i = 1, math.floor(tf / frame) do | |
186 | script.ArtificialHB:Fire() | |
187 | end | |
188 | lastframe = tick() | |
189 | end | |
190 | if tossremainder then | |
191 | tf = 0 | |
192 | else | |
193 | tf = tf - frame * math.floor(tf / frame) | |
194 | end | |
195 | end | |
196 | end) | |
197 | ||
198 | --//=================================\\ | |
199 | --\\=================================// | |
200 | ||
201 | ||
202 | ||
203 | ||
204 | ||
205 | --//=================================\\ | |
206 | --|| SOME FUNCTIONS | |
207 | --\\=================================// | |
208 | ||
209 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
210 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
211 | end | |
212 | ||
213 | function PositiveAngle(NUMBER) | |
214 | if NUMBER >= 0 then | |
215 | NUMBER = 0 | |
216 | end | |
217 | return NUMBER | |
218 | end | |
219 | ||
220 | function NegativeAngle(NUMBER) | |
221 | if NUMBER <= 0 then | |
222 | NUMBER = 0 | |
223 | end | |
224 | return NUMBER | |
225 | end | |
226 | ||
227 | function Swait(NUMBER) | |
228 | if NUMBER == 0 or NUMBER == nil then | |
229 | ArtificialHB.Event:wait() | |
230 | else | |
231 | for i = 1, NUMBER do | |
232 | ArtificialHB.Event:wait() | |
233 | end | |
234 | end | |
235 | end | |
236 | ||
237 | function QuaternionFromCFrame(cf) | |
238 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
239 | local trace = m00 + m11 + m22 | |
240 | if trace > 0 then | |
241 | local s = math.sqrt(1 + trace) | |
242 | local recip = 0.5 / s | |
243 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
244 | else | |
245 | local i = 0 | |
246 | if m11 > m00 then | |
247 | i = 1 | |
248 | end | |
249 | if m22 > (i == 0 and m00 or m11) then | |
250 | i = 2 | |
251 | end | |
252 | if i == 0 then | |
253 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
254 | local recip = 0.5 / s | |
255 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
256 | elseif i == 1 then | |
257 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
258 | local recip = 0.5 / s | |
259 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
260 | elseif i == 2 then | |
261 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
262 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
263 | end | |
264 | end | |
265 | end | |
266 | ||
267 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
268 | local xs, ys, zs = x + x, y + y, z + z | |
269 | local wx, wy, wz = w * xs, w * ys, w * zs | |
270 | local xx = x * xs | |
271 | local xy = x * ys | |
272 | local xz = x * zs | |
273 | local yy = y * ys | |
274 | local yz = y * zs | |
275 | local zz = z * zs | |
276 | 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)) | |
277 | end | |
278 | ||
279 | function QuaternionSlerp(a, b, t) | |
280 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
281 | local startInterp, finishInterp; | |
282 | if cosTheta >= 0.0001 then | |
283 | if (1 - cosTheta) > 0.0001 then | |
284 | local theta = ACOS(cosTheta) | |
285 | local invSinTheta = 1 / SIN(theta) | |
286 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
287 | finishInterp = SIN(t * theta) * invSinTheta | |
288 | else | |
289 | startInterp = 1 - t | |
290 | finishInterp = t | |
291 | end | |
292 | else | |
293 | if (1 + cosTheta) > 0.0001 then | |
294 | local theta = ACOS(-cosTheta) | |
295 | local invSinTheta = 1 / SIN(theta) | |
296 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
297 | finishInterp = SIN(t * theta) * invSinTheta | |
298 | else | |
299 | startInterp = t - 1 | |
300 | finishInterp = t | |
301 | end | |
302 | end | |
303 | 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 | |
304 | end | |
305 | ||
306 | function Clerp(a, b, t) | |
307 | local qa = {QuaternionFromCFrame(a)} | |
308 | local qb = {QuaternionFromCFrame(b)} | |
309 | local ax, ay, az = a.x, a.y, a.z | |
310 | local bx, by, bz = b.x, b.y, b.z | |
311 | local _t = 1 - t | |
312 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
313 | end | |
314 | ||
315 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
316 | local frame = IT("Frame") | |
317 | frame.BackgroundTransparency = TRANSPARENCY | |
318 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
319 | frame.Position = POSITION | |
320 | frame.Size = SIZE | |
321 | frame.BackgroundColor3 = COLOR | |
322 | frame.BorderColor3 = BORDERCOLOR | |
323 | frame.Name = NAME | |
324 | frame.Parent = PARENT | |
325 | return frame | |
326 | end | |
327 | ||
328 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
329 | local label = IT("TextLabel") | |
330 | label.BackgroundTransparency = 1 | |
331 | label.Size = UD2(1, 0, 1, 0) | |
332 | label.Position = UD2(0, 0, 0, 0) | |
333 | label.TextColor3 = TEXTCOLOR | |
334 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
335 | label.TextTransparency = TRANSPARENCY | |
336 | label.FontSize = TEXTFONTSIZE | |
337 | label.Font = TEXTFONT | |
338 | label.BorderSizePixel = BORDERSIZEPIXEL | |
339 | label.TextScaled = false | |
340 | label.Text = TEXT | |
341 | label.Name = NAME | |
342 | label.Parent = PARENT | |
343 | return label | |
344 | end | |
345 | ||
346 | function NoOutlines(PART) | |
347 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
348 | end | |
349 | ||
350 | ||
351 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
352 | local NEWWELD = IT(TYPE) | |
353 | NEWWELD.Part0 = PART0 | |
354 | NEWWELD.Part1 = PART1 | |
355 | NEWWELD.C0 = C0 | |
356 | NEWWELD.C1 = C1 | |
357 | NEWWELD.Parent = PARENT | |
358 | return NEWWELD | |
359 | end | |
360 | ||
361 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
362 | local NEWSOUND = nil | |
363 | coroutine.resume(coroutine.create(function() | |
364 | NEWSOUND = IT("Sound", PARENT) | |
365 | NEWSOUND.Volume = VOLUME | |
366 | NEWSOUND.Pitch = PITCH | |
367 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
368 | Swait() | |
369 | NEWSOUND:play() | |
370 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
371 | end)) | |
372 | return NEWSOUND | |
373 | end | |
374 | ||
375 | function CFrameFromTopBack(at, top, back) | |
376 | local right = top:Cross(back) | |
377 | 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) | |
378 | end | |
379 | ||
380 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
381 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Deep orange"), "Effect", VT(1,1,1), true) | |
382 | local mesh = IT("SpecialMesh",wave) | |
383 | mesh.MeshType = "FileMesh" | |
384 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
385 | mesh.Scale = SIZE | |
386 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
387 | wave.CFrame = CFRAME | |
388 | coroutine.resume(coroutine.create(function(PART) | |
389 | for i = 1, WAIT do | |
390 | Swait() | |
391 | mesh.Scale = mesh.Scale + GROW | |
392 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
393 | if DOESROT == true then | |
394 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
395 | end | |
396 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
397 | if wave.Transparency > 0.99 then | |
398 | wave:remove() | |
399 | end | |
400 | end | |
401 | end)) | |
402 | end | |
403 | ||
404 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
405 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Deep orange"), "Effect", VT(1,1,1), true) | |
406 | local mesh = IT("SpecialMesh",wave) | |
407 | mesh.MeshType = "FileMesh" | |
408 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
409 | mesh.Scale = SIZE | |
410 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
411 | wave.CFrame = CFRAME | |
412 | coroutine.resume(coroutine.create(function(PART) | |
413 | for i = 1, WAIT do | |
414 | Swait() | |
415 | mesh.Scale = mesh.Scale + GROW | |
416 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
417 | if DOESROT == true then | |
418 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
419 | end | |
420 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
421 | if wave.Transparency > 0.99 then | |
422 | wave:remove() | |
423 | end | |
424 | end | |
425 | end)) | |
426 | end | |
427 | ||
428 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
429 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Deep orange"), "Effect", VT(1,1,1), true) | |
430 | local mesh = IT("SpecialMesh",wave) | |
431 | mesh.MeshType = "FileMesh" | |
432 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
433 | mesh.Scale = SIZE | |
434 | wave.CFrame = CFRAME | |
435 | coroutine.resume(coroutine.create(function(PART) | |
436 | for i = 1, WAIT do | |
437 | Swait() | |
438 | mesh.Scale = mesh.Scale + GROW | |
439 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
440 | if DOESROT == true then | |
441 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
442 | end | |
443 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
444 | if wave.Transparency > 0.99 then | |
445 | wave:remove() | |
446 | end | |
447 | end | |
448 | end)) | |
449 | end | |
450 | ||
451 | ||
452 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
453 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Deep orange"), "Effect", VT(1,1,1), true) | |
454 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
455 | wave.CFrame = CFRAME | |
456 | coroutine.resume(coroutine.create(function(PART) | |
457 | for i = 1, WAIT do | |
458 | Swait() | |
459 | mesh.Scale = mesh.Scale * GROW | |
460 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
461 | if wave.Transparency > 0.99 then | |
462 | wave:remove() | |
463 | end | |
464 | end | |
465 | end)) | |
466 | end | |
467 | ||
468 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
469 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Deep orange"), "Effect", VT(1,1,1), true) | |
470 | local mesh = IT("SpecialMesh",wave) | |
471 | mesh.MeshType = "Sphere" | |
472 | mesh.Scale = SIZE | |
473 | mesh.Offset = VT(0,0,0) | |
474 | wave.CFrame = CFRAME | |
475 | coroutine.resume(coroutine.create(function(PART) | |
476 | for i = 1, WAIT do | |
477 | Swait() | |
478 | mesh.Scale = mesh.Scale + GROW | |
479 | wave.Transparency = wave.Transparency + (1/WAIT) | |
480 | if wave.Transparency > 0.99 then | |
481 | wave:remove() | |
482 | end | |
483 | end | |
484 | end)) | |
485 | end | |
486 | ||
487 | function MakeForm(PART,TYPE) | |
488 | if TYPE == "Cyl" then | |
489 | local MSH = IT("CylinderMesh",PART) | |
490 | elseif TYPE == "Ball" then | |
491 | local MSH = IT("SpecialMesh",PART) | |
492 | MSH.MeshType = "Sphere" | |
493 | elseif TYPE == "Wedge" then | |
494 | local MSH = IT("SpecialMesh",PART) | |
495 | MSH.MeshType = "Wedge" | |
496 | end | |
497 | end | |
498 | ||
499 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
500 | if FLOOR ~= nil then | |
501 | coroutine.resume(coroutine.create(function() | |
502 | local PART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
503 | PART.CFrame = CF(POSITION) | |
504 | for i = 1, 45 do | |
505 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
506 | RingPiece.Material = FLOOR.Material | |
507 | RingPiece.Color = FLOOR.Color | |
508 | 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))) | |
509 | Debris:AddItem(RingPiece,SWAIT/100) | |
510 | end | |
511 | PART:remove() | |
512 | end)) | |
513 | end | |
514 | end | |
515 | ||
516 | function CheckTableForString(Table, String) | |
517 | for i, v in pairs(Table) do | |
518 | if string.find(string.lower(String), string.lower(v)) then | |
519 | return true | |
520 | end | |
521 | end | |
522 | return false | |
523 | end | |
524 | ||
525 | function CheckIntangible(Hit) | |
526 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
527 | if Hit and Hit.Parent then | |
528 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
529 | return true | |
530 | end | |
531 | end | |
532 | return false | |
533 | end | |
534 | ||
535 | Debris = game:GetService("Debris") | |
536 | ||
537 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
538 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
539 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
540 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
541 | if RayHit and CheckIntangible(RayHit) then | |
542 | if DelayIfHit then | |
543 | wait() | |
544 | end | |
545 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
546 | end | |
547 | return RayHit, RayPos, RayNormal | |
548 | end | |
549 | ||
550 | function turnto(position) | |
551 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
552 | end | |
553 | ||
554 | --//=================================\\ | |
555 | --|| WEAPON CREATION | |
556 | --\\=================================// | |
557 | ||
558 | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) | |
559 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
560 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) | |
561 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
562 | ||
563 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
564 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
565 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
566 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
567 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
568 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
569 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
570 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
571 | ||
572 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
573 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
574 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
575 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
576 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
577 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
578 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
579 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
580 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
581 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
582 | ||
583 | for _, c in pairs(Weapon:GetChildren()) do | |
584 | if c.ClassName == "Part" then | |
585 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
586 | end | |
587 | end | |
588 | ||
589 | Weapon.Parent = Character | |
590 | ||
591 | Humanoid.Died:connect(function() | |
592 | ATTACK = true | |
593 | end) | |
594 | ||
595 | 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") | |
596 | 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") | |
597 | 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") | |
598 | 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") | |
599 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
600 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
601 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.01, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
602 | ||
603 | ||
604 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Mini Nuke", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
605 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] RKO OUTTA NOWHERE", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
606 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Teleportation", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
607 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Kim Jong Un's Nuke", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
608 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[Q] Destruction", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text5") | |
609 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[R] Roll' Em", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text6") | |
610 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[E] Apocalypse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text7") | |
611 | ||
612 | --//=================================\\ | |
613 | --|| DAMAGE FUNCTIONS | |
614 | --\\=================================// | |
615 | ||
616 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
617 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
618 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
619 | local BODYGYRO = IT("BodyGyro", STATPART) | |
620 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
621 | BODYPOSITION.P = 2000 | |
622 | BODYPOSITION.D = 100 | |
623 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
624 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
625 | game:GetService("Debris"):AddItem(STATPART ,5) | |
626 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
627 | BILLBOARDGUI.Adornee = STATPART | |
628 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
629 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
630 | BILLBOARDGUI.AlwaysOnTop = false | |
631 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
632 | TEXTLABEL.BackgroundTransparency = 1 | |
633 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
634 | TEXTLABEL.Text = TEXT | |
635 | TEXTLABEL.Font = "SciFi" | |
636 | TEXTLABEL.FontSize="Size42" | |
637 | TEXTLABEL.TextColor3 = ("255,215,0") | |
638 | TEXTLABEL.TextStrokeTransparency = 1 | |
639 | TEXTLABEL.TextScaled = true | |
640 | TEXTLABEL.TextWrapped = true | |
641 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
642 | if LABELTYPE == "Normal" then | |
643 | for i = 1, 30 do | |
644 | Swait() | |
645 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
646 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
647 | end | |
648 | elseif LABELTYPE == "Debuff" then | |
649 | for i = 1, 30 do | |
650 | Swait() | |
651 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
652 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
653 | end | |
654 | elseif LABELTYPE == "Shock" then | |
655 | local ORIGIN = STATPART.Position | |
656 | for i = 1, 30 do | |
657 | Swait() | |
658 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
659 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
660 | end | |
661 | end | |
662 | THEPART.Parent = nil | |
663 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
664 | end | |
665 | ||
666 | --//=================================\\ | |
667 | --|| DAMAGING | |
668 | --\\=================================// | |
669 | ||
670 | function killnearest(position,range,maxstrength,direction) | |
671 | for i,v in ipairs(workspace:GetChildren()) do | |
672 | local body = v:GetChildren() | |
673 | for part = 1, #body do | |
674 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
675 | if(body[part].Position - position).Magnitude < range then | |
676 | if v.ClassName == "Model" then | |
677 | --v:BreakJoints() | |
678 | end | |
679 | local POS = position | |
680 | coroutine.resume(coroutine.create(function() | |
681 | body[part].Anchored = true | |
682 | body[part].Parent = Effects | |
683 | body[part].CanCollide = true | |
684 | local SIZE = body[part].Size | |
685 | body[part].Material = "Neon" | |
686 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
687 | for i = 1, 75 do | |
688 | Swait() | |
689 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
690 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
691 | end | |
692 | coroutine.resume(coroutine.create(function() | |
693 | while true do | |
694 | Swait() | |
695 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
696 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
697 | end | |
698 | end)) | |
699 | body[part].Anchored = false | |
700 | body[part].Velocity = direction.lookVector*maxstrength | |
701 | end)) | |
702 | end | |
703 | end | |
704 | end | |
705 | if v.ClassName == "Part" then | |
706 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
707 | local POS = position | |
708 | coroutine.resume(coroutine.create(function() | |
709 | v.Anchored = true | |
710 | v.Parent = Effects | |
711 | local SIZE = v.Size | |
712 | v.Material = "Neon" | |
713 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
714 | for i = 1, 75 do | |
715 | Swait() | |
716 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
717 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
718 | end | |
719 | coroutine.resume(coroutine.create(function() | |
720 | while true do | |
721 | Swait() | |
722 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
723 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
724 | end | |
725 | end)) | |
726 | v.Anchored = false | |
727 | v.Velocity = direction.lookVector*maxstrength | |
728 | end)) | |
729 | end | |
730 | end | |
731 | end | |
732 | end | |
733 | ||
734 | --//=================================\\ | |
735 | --|| ATTACK FUNCTIONS AND STUFF | |
736 | --\\=================================// | |
737 | ||
738 | function AttackTemplate() | |
739 | ATTACK = true | |
740 | Rooted = false | |
741 | for i=0, 1, 0.1 / Animation_Speed do | |
742 | Swait() | |
743 | 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) | |
744 | 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) | |
745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
747 | 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) | |
748 | 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) | |
749 | end | |
750 | ATTACK = false | |
751 | Rooted = false | |
752 | end | |
753 | ||
754 | function DeathAgreement() | |
755 | ATTACK = true | |
756 | Rooted = false | |
757 | local SPEED = Speed | |
758 | Speed = 8 | |
759 | CreateSound("357202141", RightArm, 10, 1.1) | |
760 | for i=0, 0, 0.01 / Animation_Speed do | |
761 | Swait() | |
762 | turnto(Mouse.Hit.p) | |
763 | 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)) | |
764 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-2/15,-2/15,-2/15)) | |
765 | 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) | |
766 | 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) | |
767 | 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) | |
768 | 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) | |
769 | 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) | |
770 | 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) | |
771 | end | |
772 | for i=0, 0, 0.01 / Animation_Speed do | |
773 | Swait() | |
774 | turnto(Mouse.Hit.p) | |
775 | 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) | |
776 | 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) | |
777 | 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) | |
778 | 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) | |
779 | 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) | |
780 | 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) | |
781 | end | |
782 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Deep orange", "Punch", VT(50,50,50),false) | |
783 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
784 | PART.Shape = "Ball" | |
785 | local bv = Instance.new("BodyVelocity") | |
786 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
787 | bv.velocity = RootPart.CFrame.lookVector*600 | |
788 | bv.Parent = PART | |
789 | bv.Name = "PROJECTILEVELOCITY" | |
790 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(3,0.2,3)) | |
791 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(2.2,0.6,2.2)) | |
792 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
793 | coroutine.resume(coroutine.create(function() | |
794 | for i = 1, 3 do | |
795 | Swait() | |
796 | PART.Transparency = PART.Transparency + 0.2/10 | |
797 | PART.Size = PART.Size + VT(5,5,5) | |
798 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
799 | end | |
800 | PART:Destroy() | |
801 | end)) | |
802 | for i=0, 0, 0.01 / Animation_Speed do | |
803 | Swait() | |
804 | 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) | |
805 | 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) | |
806 | 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) | |
807 | 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) | |
808 | 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) | |
809 | 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) | |
810 | end | |
811 | Speed = SPEED | |
812 | ATTACK = false | |
813 | Rooted = false | |
814 | end | |
815 | ||
816 | function GrabTime() | |
817 | ATTACK = true | |
818 | Rooted = false | |
819 | local HASGRABBED = false | |
820 | local WELD = nil | |
821 | local TORS = nil | |
822 | local hitting = FIST.Touched:connect(function(hit) | |
823 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Deep orange", "Sound", VT(0,0,0)) | |
824 | SOUNDPART.CFrame = RootPart.CFrame | |
825 | Debris:AddItem(SOUNDPART,5) | |
826 | CreateSound("184210861", SOUNDPART, 2, 1) | |
827 | if hit.Parent:FindFirstChild("Humanoid") then | |
828 | if hit.Parent.Humanoid.Health ~= 0 then | |
829 | UNANCHOR = false | |
830 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
831 | TORS.Anchored = true | |
832 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
833 | WELD = weldBetween(RightArm,TORS) | |
834 | HASGRABBED = true | |
835 | Rooted = true | |
836 | end | |
837 | end | |
838 | end) | |
839 | for i=0, 1, 0.1 / Animation_Speed do | |
840 | Swait() | |
841 | if HASGRABBED == true then | |
842 | break | |
843 | end | |
844 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
845 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
846 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
847 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
848 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
849 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
850 | end | |
851 | hitting:disconnect() | |
852 | if HASGRABBED == true then | |
853 | TORS.Anchored = false | |
854 | RootPart.Anchored = true | |
855 | for i=0, 2, 0.1 / Animation_Speed do | |
856 | Swait() | |
857 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
858 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
859 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
860 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
861 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
862 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
863 | end | |
864 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5)) | |
865 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6)) | |
866 | for i = 1, 2 do | |
867 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
868 | end | |
869 | for i=0, 2, 0.1 / Animation_Speed do | |
870 | Swait() | |
871 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
872 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
875 | 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) | |
876 | 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) | |
877 | end | |
878 | for i=0, 0.25, 0.1 / Animation_Speed do | |
879 | Swait() | |
880 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
881 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
882 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
883 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
884 | 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) | |
885 | 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) | |
886 | end | |
887 | if HITFLOOR ~= nil then | |
888 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
889 | end | |
890 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
891 | WELD:remove() | |
892 | for i = 1, 2 do | |
893 | Swait() | |
894 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
895 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3)) | |
896 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Lime green",VT(1,0.4,1)) | |
897 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Lime green",VT(2.3,0.3,2.3)) | |
898 | 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) | |
899 | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Deep orange", 1 + MRANDOM(1,30)/15) | |
900 | end | |
901 | end | |
902 | UNANCHOR = true | |
903 | ATTACK = false | |
904 | Rooted = false | |
905 | end | |
906 | ||
907 | function MaxSpeed() | |
908 | local ORIGIN = RootPart.Position | |
909 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
910 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
911 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Deep orange", "Sound", VT(0,0,0)) | |
912 | SOUNDPART.CFrame = RootPart.CFrame | |
913 | Debris:AddItem(SOUNDPART,5) | |
914 | CreateSound("357202032", SOUNDPART, 2, 1) | |
915 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
916 | Swait() | |
917 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
918 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
919 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Deep orange", "Sound", VT(0,0,0)) | |
920 | SOUNDPART.CFrame = RootPart.CFrame | |
921 | Debris:AddItem(SOUNDPART,5) | |
922 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
923 | if MRANDOM(1,8) == 1 then | |
924 | print'hi' | |
925 | for i=0, 0.5, 0.1 / Animation_Speed do | |
926 | Swait() | |
927 | 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) | |
928 | 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) | |
929 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
930 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
931 | 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) | |
932 | 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) | |
933 | end | |
934 | ATTACK = false | |
935 | Rooted = false | |
936 | end | |
937 | end | |
938 | ||
939 | function GreenUltimate() | |
940 | ATTACK = true | |
941 | Rooted = true | |
942 | CreateSound("358080470", RightArm, 10, 0.8) | |
943 | for i=0, 0, 0.1 / Animation_Speed do | |
944 | Swait() | |
945 | turnto(Mouse.Hit.p) | |
946 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Lime green",VT(0.2,0,0.2)) | |
947 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Lime green", 1.1) | |
948 | 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) | |
949 | 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),"Lime green",VT(0.001,0.001,2),0) | |
950 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-1/15,-1/15,-1/15)) | |
951 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-2/15,-2/15,-2/15)) | |
952 | 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) | |
953 | 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) | |
954 | 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) | |
955 | 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) | |
956 | 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) | |
957 | 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) | |
958 | end | |
959 | for i=0, 0.15, 0 / Animation_Speed do | |
960 | Swait() | |
961 | turnto(Mouse.Hit.p) | |
962 | 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) | |
963 | 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) | |
964 | 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) | |
965 | 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) | |
966 | 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) | |
967 | 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) | |
968 | end | |
969 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Lime green",VT(-0.04,-0.04,-0.04)) | |
970 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) | |
971 | coroutine.resume(coroutine.create(function() | |
972 | Swait(100) | |
973 | for i = 1, 1 do | |
974 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Lime green",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
975 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lime green",VT(4.5*i,0.2,4.5*i)) | |
976 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(5*i,0.2,5*i)) | |
977 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lime green",VT(4*i,0.6,4*i)) | |
978 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(5.2*i,0.6,5.2*i)) | |
979 | end | |
980 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
981 | for i = 1, 2 do | |
982 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
983 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
984 | end | |
985 | coroutine.resume(coroutine.create(function() | |
986 | for i = 1, 2 do | |
987 | Swait() | |
988 | for i = 1, 1 do | |
989 | 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) | |
990 | end | |
991 | for i = 1, 1 do | |
992 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Lime green", 1 + MRANDOM(1,30)/3) | |
993 | end | |
994 | end | |
995 | end)) | |
996 | end)) | |
997 | for i=0, 2, 0.1 / Animation_Speed do | |
998 | Swait() | |
999 | 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) | |
1000 | 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) | |
1001 | 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) | |
1002 | 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) | |
1003 | 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) | |
1004 | 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) | |
1005 | end | |
1006 | ATTACK = false | |
1007 | Rooted = false | |
1008 | end | |
1009 | ||
1010 | --//=================================\\ | |
1011 | --|| ASSIGN THINGS TO KEYS | |
1012 | --\\=================================// | |
1013 | ||
1014 | function MouseDown(Mouse) | |
1015 | if ATTACK == false then | |
1016 | end | |
1017 | end | |
1018 | ||
1019 | function MouseUp(Mouse) | |
1020 | HOLD = false | |
1021 | end | |
1022 | ||
1023 | function KeyDown(Key) | |
1024 | KEYHOLD = true | |
1025 | if Key == "z" and ATTACK == false then | |
1026 | DeathAgreement() | |
1027 | end | |
1028 | ||
1029 | if Key == "b" and ATTACK == false then | |
1030 | GrabTime() | |
1031 | end | |
1032 | ||
1033 | if Key == "c" and ATTACK == false then | |
1034 | MaxSpeed() | |
1035 | end | |
1036 | ||
1037 | if Key == "x" and ATTACK == false then | |
1038 | GreenUltimate() | |
1039 | end | |
1040 | ||
1041 | if Key == "q" and ATTACK == false then | |
1042 | DeathAgreement() | |
1043 | wait(0.001) | |
1044 | DeathAgreement() | |
1045 | wait(0.001) | |
1046 | DeathAgreement() | |
1047 | wait(0.001) | |
1048 | DeathAgreement() | |
1049 | wait(0.001) | |
1050 | DeathAgreement() | |
1051 | wait(0.001) | |
1052 | DeathAgreement() | |
1053 | wait(0.001) | |
1054 | DeathAgreement() | |
1055 | wait(0.001) | |
1056 | DeathAgreement() | |
1057 | wait(0.001) | |
1058 | DeathAgreement() | |
1059 | wait(0.001) | |
1060 | DeathAgreement() | |
1061 | wait(0.001) | |
1062 | DeathAgreement() | |
1063 | wait(0.001) | |
1064 | DeathAgreement() | |
1065 | wait(0.001) | |
1066 | DeathAgreement() | |
1067 | wait(0.001) | |
1068 | DeathAgreement() | |
1069 | wait(0.001) | |
1070 | DeathAgreement() | |
1071 | wait(0.001) | |
1072 | DeathAgreement() | |
1073 | wait(0.001) | |
1074 | DeathAgreement() | |
1075 | wait(0.001) | |
1076 | DeathAgreement() | |
1077 | wait(0.001) | |
1078 | DeathAgreement() | |
1079 | wait(0.001) | |
1080 | DeathAgreement() | |
1081 | wait(0.001) | |
1082 | DeathAgreement() | |
1083 | wait(0.001) | |
1084 | DeathAgreement() | |
1085 | wait(0.001) | |
1086 | DeathAgreement() | |
1087 | wait(0.001) | |
1088 | DeathAgreement() | |
1089 | wait(0.001) | |
1090 | DeathAgreement() | |
1091 | wait(0.001) | |
1092 | DeathAgreement() | |
1093 | wait(0.001) | |
1094 | DeathAgreement() | |
1095 | wait(0.001) | |
1096 | GreenUltimate() | |
1097 | end | |
1098 | if Key == "e" and ATTACK == false then | |
1099 | GreenUltimate() | |
1100 | wait(1) | |
1101 | GreenUltimate() | |
1102 | wait(1) | |
1103 | GreenUltimate() | |
1104 | wait(1) | |
1105 | GreenUltimate() | |
1106 | wait(1) | |
1107 | GreenUltimate() | |
1108 | wait(1) | |
1109 | end | |
1110 | if Key == "r" and ATTACK == false then | |
1111 | DeathAgreement() | |
1112 | wait(0.0000001) | |
1113 | DeathAgreement() | |
1114 | wait(0.0000001) | |
1115 | DeathAgreement() | |
1116 | wait(0.0000001) | |
1117 | DeathAgreement() | |
1118 | wait(0.0000001) | |
1119 | DeathAgreement() | |
1120 | wait(0.0000001) | |
1121 | DeathAgreement() | |
1122 | wait(0.0000001) | |
1123 | DeathAgreement() | |
1124 | wait(0.0000001) | |
1125 | DeathAgreement() | |
1126 | wait(0.0000001) | |
1127 | DeathAgreement() | |
1128 | wait(0.0000001) | |
1129 | DeathAgreement() | |
1130 | wait(0.0000001) | |
1131 | DeathAgreement() | |
1132 | wait(0.0000001) | |
1133 | DeathAgreement() | |
1134 | wait(0.0000001) | |
1135 | DeathAgreement() | |
1136 | wait(0.0000001) | |
1137 | DeathAgreement() | |
1138 | wait(0.0000001) | |
1139 | DeathAgreement() | |
1140 | wait(0.0000001) | |
1141 | DeathAgreement() | |
1142 | wait(0.0000001) | |
1143 | DeathAgreement() | |
1144 | wait(0.0000001) | |
1145 | DeathAgreement() | |
1146 | wait(0.0000001) | |
1147 | DeathAgreement() | |
1148 | wait(0.0000001) | |
1149 | DeathAgreement() | |
1150 | wait(0.0000001) | |
1151 | DeathAgreement() | |
1152 | wait(0.0000001) | |
1153 | DeathAgreement() | |
1154 | wait(0.0000001) | |
1155 | DeathAgreement() | |
1156 | wait(0.0000001) | |
1157 | DeathAgreement() | |
1158 | wait(0.0000001) | |
1159 | DeathAgreement() | |
1160 | wait(0.0000001) | |
1161 | DeathAgreement() | |
1162 | wait(0.0000001) | |
1163 | DeathAgreement() | |
1164 | wait(0.0000001) | |
1165 | DeathAgreement() | |
1166 | wait(0.0000001) | |
1167 | DeathAgreement() | |
1168 | wait(0.0000001) | |
1169 | DeathAgreement() | |
1170 | wait(0.0000001) | |
1171 | DeathAgreement() | |
1172 | wait(0.0000001) | |
1173 | DeathAgreement() | |
1174 | wait(0.0000001) | |
1175 | DeathAgreement() | |
1176 | wait(0.0000001) | |
1177 | DeathAgreement() | |
1178 | wait(0.0000001) | |
1179 | DeathAgreement() | |
1180 | wait(0.0000001) | |
1181 | DeathAgreement() | |
1182 | wait(0.0000001) | |
1183 | DeathAgreement() | |
1184 | wait(0.0000001) | |
1185 | DeathAgreement() | |
1186 | wait(0.0000001) | |
1187 | DeathAgreement() | |
1188 | wait(0.0000001) | |
1189 | DeathAgreement() | |
1190 | wait(0.0000001) | |
1191 | DeathAgreement() | |
1192 | wait(0.0000001) | |
1193 | DeathAgreement() | |
1194 | wait(0.0000001) | |
1195 | DeathAgreement() | |
1196 | wait(0.0000001) | |
1197 | DeathAgreement() | |
1198 | wait(0.0000001) | |
1199 | DeathAgreement() | |
1200 | wait(0.0000001) | |
1201 | DeathAgreement() | |
1202 | wait(0.0000001) | |
1203 | DeathAgreement() | |
1204 | wait(0.0000001) | |
1205 | DeathAgreement() | |
1206 | wait(0.0000001) | |
1207 | DeathAgreement() | |
1208 | wait(0.0000001) | |
1209 | DeathAgreement() | |
1210 | wait(0.0000001) | |
1211 | DeathAgreement() | |
1212 | wait(0.0000001) | |
1213 | DeathAgreement() | |
1214 | wait(0.0000001) | |
1215 | DeathAgreement() | |
1216 | wait(0.0000001) | |
1217 | DeathAgreement() | |
1218 | wait(0.0000001) | |
1219 | DeathAgreement() | |
1220 | wait(0.0000001) | |
1221 | DeathAgreement() | |
1222 | wait(0.0000001) | |
1223 | DeathAgreement() | |
1224 | wait(0.0000001) | |
1225 | DeathAgreement() | |
1226 | wait(0.0000001) | |
1227 | DeathAgreement() | |
1228 | wait(0.0000001) | |
1229 | DeathAgreement() | |
1230 | wait(0.0000001) | |
1231 | DeathAgreement() | |
1232 | wait(0.0000001) | |
1233 | end | |
1234 | ||
1235 | if Key == "p" and ATTACK == false then | |
1236 | if Speed == 16 then | |
1237 | Speed = 150 | |
1238 | elseif Speed == 150 then | |
1239 | Speed = 16 | |
1240 | end | |
1241 | end | |
1242 | end | |
1243 | ||
1244 | function KeyUp(Key) | |
1245 | KEYHOLD = false | |
1246 | end | |
1247 | ||
1248 | Mouse.Button1Down:connect(function(NEWKEY) | |
1249 | MouseDown(NEWKEY) | |
1250 | end) | |
1251 | Mouse.Button1Up:connect(function(NEWKEY) | |
1252 | MouseUp(NEWKEY) | |
1253 | end) | |
1254 | Mouse.KeyDown:connect(function(NEWKEY) | |
1255 | KeyDown(NEWKEY) | |
1256 | end) | |
1257 | Mouse.KeyUp:connect(function(NEWKEY) | |
1258 | KeyUp(NEWKEY) | |
1259 | end) | |
1260 | ||
1261 | --//=================================\\ | |
1262 | --\\=================================// | |
1263 | ||
1264 | ||
1265 | function unanchor() | |
1266 | if UNANCHOR == true then | |
1267 | g = Character:GetChildren() | |
1268 | for i = 1, #g do | |
1269 | if g[i].ClassName == "Part" then | |
1270 | g[i].Anchored = false | |
1271 | end | |
1272 | end | |
1273 | end | |
1274 | end | |
1275 | ||
1276 | ||
1277 | --//=================================\\ | |
1278 | --|| WRAP THE WHOLE SCRIPT UP | |
1279 | --\\=================================// | |
1280 | ||
1281 | Humanoid.Changed:connect(function(Jump) | |
1282 | if Jump == "Jump" and (Disable_Jump == true) then | |
1283 | Humanoid.Jump = false | |
1284 | end | |
1285 | end) | |
1286 | ||
1287 | while true do | |
1288 | Swait() | |
1289 | ANIMATE.Parent = nil | |
1290 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1291 | IDLEANIMATION:Play() | |
1292 | SINE = SINE + CHANGE | |
1293 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1294 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1295 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1296 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1297 | local WALKSPEEDVALUE = 0 | |
1298 | if Speed < 35 then | |
1299 | WALKSPEEDVALUE = 6 | |
1300 | else | |
1301 | WALKSPEEDVALUE = 3 | |
1302 | end | |
1303 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
1304 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
1305 | 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) | |
1306 | if Speed < 35 then | |
1307 | 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1308 | 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1309 | else | |
1310 | 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1311 | 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1312 | end | |
1313 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
1314 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1315 | 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) | |
1316 | 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) | |
1317 | 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) | |
1318 | end | |
1319 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1320 | ANIM = "Jump" | |
1321 | if ATTACK == false then | |
1322 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1326 | 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) | |
1327 | 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) | |
1328 | end | |
1329 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1330 | ANIM = "Fall" | |
1331 | if ATTACK == false then | |
1332 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1333 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1334 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1335 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1336 | 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) | |
1337 | 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) | |
1338 | end | |
1339 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1340 | ANIM = "Idle" | |
1341 | if ATTACK == false then | |
1342 | 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) | |
1343 | 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) | |
1344 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1345 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1346 | 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) | |
1347 | 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) | |
1348 | end | |
1349 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
1350 | ANIM = "Walk" | |
1351 | WALK = WALK + 1 / Animation_Speed | |
1352 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1353 | WALK = 0 | |
1354 | if WALKINGANIM == true then | |
1355 | WALKINGANIM = false | |
1356 | elseif WALKINGANIM == false then | |
1357 | WALKINGANIM = true | |
1358 | end | |
1359 | end | |
1360 | --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) | |
1361 | --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) | |
1362 | if ATTACK == false then | |
1363 | if Speed < 35 then | |
1364 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1365 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1366 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1367 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1368 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1369 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1370 | else | |
1371 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1372 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1373 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1374 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1375 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1376 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1377 | end | |
1378 | end | |
1379 | end | |
1380 | unanchor() | |
1381 | Humanoid.MaxHealth = "inf" | |
1382 | Humanoid.Health = "inf" | |
1383 | if Rooted == false then | |
1384 | Disable_Jump = false | |
1385 | Humanoid.WalkSpeed = Speed | |
1386 | elseif Rooted == true then | |
1387 | Disable_Jump = true | |
1388 | Humanoid.WalkSpeed = 0 | |
1389 | end | |
1390 | local MATHS = {"0","1"} | |
1391 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
1392 | Humanoid.PlatformStand = false | |
1393 | end | |
1394 | ||
1395 | --//=================================\\ | |
1396 | --\\=================================// | |
1397 | ||
1398 | ||
1399 | ||
1400 | ||
1401 | ||
1402 | --//====================================================\\-- | |
1403 | --|| END OF SCRIPT | |
1404 | --\\====================================================//-- |