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