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