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