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