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