SHOW:
|
|
- or go back to the newest paste.
1 | --Reminder to self, Be in R6-- | |
2 | ||
3 | wait(0.3) | |
4 | ||
5 | local Player = game.Players.localPlayer | |
6 | local Character = Player.Character | |
7 | local Humanoid = Character.Humanoid | |
8 | local LeftArm = Character["Left Arm"] | |
9 | local RightArm = Character["Right Arm"] | |
10 | local LeftLeg = Character["Left Leg"] | |
11 | local RightLeg = Character["Right Leg"] | |
12 | local Head = Character.Head | |
13 | local Torso = Character.Torso | |
14 | local RootPart = Character.HumanoidRootPart | |
15 | local RootJoint = RootPart.RootJoint | |
16 | local txt = Instance.new("BillboardGui", Character) | |
17 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
18 | local velocity = RootPart.Velocity.y | |
19 | CV = "Maroon" | |
20 | Player = game.Players.LocalPlayer | |
21 | char = Player.Character | |
22 | warn("Edit by MCStriker9") | |
23 | local txt = Instance.new("BillboardGui", Character) | |
24 | txt.Adornee = Character.Head | |
25 | txt.Name = "_status" | |
26 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
27 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
28 | local text = Instance.new("TextLabel", txt) | |
29 | text.Size = UDim2.new(10, 0, 7, 0) | |
30 | text.FontSize = "Size24" | |
31 | text.TextScaled = true | |
32 | text.TextTransparency = 0 | |
33 | text.BackgroundTransparency = 1 | |
34 | text.TextTransparency = 0 | |
35 | text.TextStrokeTransparency = 1 | |
36 | text.Font = "14" | |
37 | v = Instance.new("Part") | |
38 | v.Name = "ColorBrick" | |
39 | v.Parent = Player.Character | |
40 | v.FormFactor = "Symmetric" | |
41 | v.Anchored = true | |
42 | v.CanCollide = false | |
43 | v.BottomSurface = "Smooth" | |
44 | v.TopSurface = "Smooth" | |
45 | v.Size = Vector3.new(10, 5, 3) | |
46 | v.Transparency = 1 | |
47 | v.CFrame = Character.Torso.CFrame | |
48 | v.BrickColor = BrickColor.new(CV) | |
49 | v.Transparency = 1 | |
50 | touchCounter = 0 | |
51 | local cR=255 | |
52 | local cG=0 | |
53 | local cB=0 | |
54 | local flg5=1 local omgidk=1 | |
55 | local add=15 | |
56 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
57 | if omgidk>10000 then omgidk=0 end | |
58 | omgidk=omgidk+1 | |
59 | if cR>=255 then flg5=1 end | |
60 | if cG>=255 then flg5=2 end | |
61 | if cB>=255 then flg5=3 end | |
62 | if flg5==1 then cR=cR-add cG=cG+add end | |
63 | if flg5==2 then cG=cG-add cB=cB+add end | |
64 | if flg5==3 then cB=cB-add cR=cR+add end | |
65 | color=Color3.fromRGB(cR,cG,cB) | |
66 | text.TextColor3 = color | |
67 | end) | |
68 | v.Shape = "Block" | |
69 | text.Text = Player.Name..", Viusix" | |
70 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
71 | for _, c in pairs(workspace:children()) do | |
72 | local hum = c:findFirstChild("Humanoid") | |
73 | if hum ~= nil then | |
74 | local head = hit | |
75 | if head ~= nil then | |
76 | local targ = head.Position - Part.Position | |
77 | local mag = targ.magnitude | |
78 | if Magnitude >= mag and c.Name ~= Player.Name then | |
79 | CFuncs.Sound.Create("324867021", head, 1, 1) | |
80 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch) | |
81 | end | |
82 | end | |
83 | end | |
84 | end | |
85 | end | |
86 | ||
87 | Parts={} | |
88 | function GetDiscoColor(hue) | |
89 | local section = hue % 1 * 3 | |
90 | local secondary = 0.5 * math.pi * (section % 1) | |
91 | if section < 1 then | |
92 | return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary)) | |
93 | elseif section < 2 then | |
94 | return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary)) | |
95 | else | |
96 | return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1) | |
97 | end | |
98 | end | |
99 | Part = function(x,y,z,color,tr,cc,an,parent) | |
100 | local p = Instance.new('Part',parent or Weapon) | |
101 | p.formFactor = 'Custom' | |
102 | p.Size = Vector3.new(x,y,z) | |
103 | p.BrickColor = BrickColor.new(color) | |
104 | p.CanCollide = cc | |
105 | p.Transparency = tr | |
106 | p.Anchored = an | |
107 | p.TopSurface,p.BottomSurface = 0,0 | |
108 | p:BreakJoints'' | |
109 | table.insert(Parts,p) | |
110 | return p | |
111 | end | |
112 | Weld = function(p0,p1) | |
113 | local w = Instance.new('Motor',p0) | |
114 | w.Part0 = p0 | |
115 | w.Part1 = p1 | |
116 | return w | |
117 | end | |
118 | Mesh = function(par,num,x,y,z) | |
119 | local msh = 0 | |
120 | if num == 1 then | |
121 | msh = Instance.new("SpecialMesh",par) | |
122 | msh.MeshId='rbxasset://fonts/torso.mesh' | |
123 | msh.TextureId='rbxasset://25701026' | |
124 | end | |
125 | if num == 2 then | |
126 | msh = Instance.new("SpecialMesh",par) | |
127 | msh.MeshId='rbxasset://fonts/head.mesh' | |
128 | msh.TextureId='rbxassetid://25701026' | |
129 | end | |
130 | msh.Scale = Vector3.new(x,y,z) | |
131 | return msh | |
132 | end | |
133 | - | plr=Game.Players.LocalPlayer |
133 | + | plr=game.Players.LocalPlayer |
134 | char=plr.Character | |
135 | for _,v in pairs(char:GetChildren()) do | |
136 | if v.ClassName=="Part" then | |
137 | v.Transparency=1 | |
138 | elseif v.ClassName=="Hat" then | |
139 | v.Handle.Mesh.TextureId='rbxassetid://25701026' | |
140 | table.insert(Parts,v.Handle) | |
141 | end | |
142 | end | |
143 | t=Part(1,1,1,'',0,false,false,char) | |
144 | Mesh(t,1,1,1,1) | |
145 | Weld(char.Torso,t) | |
146 | a=Part(1,1,1,'',0,false,false,char) | |
147 | Mesh(a,1,.5,1,1) | |
148 | Weld(char['Right Arm'],a) | |
149 | a=Part(1,1,1,'',0,false,false,char) | |
150 | Mesh(a,1,.5,1,1) | |
151 | Weld(char['Left Arm'],a) | |
152 | l=Part(1,1,1,'',0,false,false,char) | |
153 | Mesh(l,1,.5,1,1) | |
154 | Weld(char['Right Leg'],l) | |
155 | l=Part(1,1,1,'',0,false,false,char) | |
156 | Mesh(l,1,.5,1,1) | |
157 | Weld(char['Left Leg'],l) | |
158 | h=Part(1,1,1,'',0,false,false,char) | |
159 | Mesh(h,2,1,1,1) | |
160 | Weld(char.Head,h) | |
161 | - | Spawn(function() |
161 | + | spawn(function() |
162 | while(coroutine.yield())do | |
163 | for i=1,#Parts do | |
164 | Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.8)--vertex 4 lyfe | |
165 | end | |
166 | end; | |
167 | end); | |
168 | ||
169 | char.Head.face:Destroy() | |
170 | ||
171 | for i,v in pairs(char:GetChildren()) do | |
172 | if v.ClassName == "Accessory" then | |
173 | v:Remove() | |
174 | elseif v.ClassName == "Shirt" then | |
175 | v:Remove() | |
176 | elseif v.ClassName == "Pants" then | |
177 | v:Remove() | |
178 | elseif v.ClassName == "ShirtGraphic" then | |
179 | v:Remove() | |
180 | end | |
181 | end | |
182 | ||
183 | wait(0.3) | |
184 | ||
185 | Player = game:GetService("Players").LocalPlayer | |
186 | PlayerGui = Player.PlayerGui | |
187 | Cam = workspace.CurrentCamera | |
188 | Backpack = Player.Backpack | |
189 | Character = Player.Character | |
190 | Humanoid = Character.Humanoid | |
191 | Mouse = Player:GetMouse() | |
192 | RootPart = Character["HumanoidRootPart"] | |
193 | Torso = Character["Torso"] | |
194 | Head = Character["Head"] | |
195 | RightArm = Character["Right Arm"] | |
196 | LeftArm = Character["Left Arm"] | |
197 | RightLeg = Character["Right Leg"] | |
198 | LeftLeg = Character["Left Leg"] | |
199 | RootJoint = RootPart["RootJoint"] | |
200 | Neck = Torso["Neck"] | |
201 | RightShoulder = Torso["Right Shoulder"] | |
202 | LeftShoulder = Torso["Left Shoulder"] | |
203 | RightHip = Torso["Right Hip"] | |
204 | LeftHip = Torso["Left Hip"] | |
205 | local sick = Instance.new("Sound",Character) | |
206 | sick.SoundId = "rbxassetid://319927867" | |
207 | sick.Looped = true | |
208 | sick.Pitch = 1 | |
209 | sick.Volume = 86783 | |
210 | sick:Play() | |
211 | ||
212 | IT = Instance.new | |
213 | CF = CFrame.new | |
214 | VT = Vector3.new | |
215 | RAD = math.rad | |
216 | C3 = Color3.new | |
217 | UD2 = UDim2.new | |
218 | BRICKC = BrickColor.new | |
219 | ANGLES = CFrame.Angles | |
220 | EULER = CFrame.fromEulerAnglesXYZ | |
221 | COS = math.cos | |
222 | ACOS = math.acos | |
223 | SIN = math.sin | |
224 | ASIN = math.asin | |
225 | ABS = math.abs | |
226 | MRANDOM = math.random | |
227 | FLOOR = math.floor | |
228 | ||
229 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
230 | local NEWMESH = IT(MESH) | |
231 | if MESH == "SpecialMesh" then | |
232 | NEWMESH.MeshType = MESHTYPE | |
233 | if MESHID ~= "nil" and MESHID ~= "" then | |
234 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
235 | end | |
236 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
237 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
238 | end | |
239 | end | |
240 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
241 | NEWMESH.Scale = SCALE | |
242 | NEWMESH.Parent = PARENT | |
243 | return NEWMESH | |
244 | end | |
245 | ||
246 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
247 | local NEWPART = IT("Part") | |
248 | NEWPART.formFactor = FORMFACTOR | |
249 | NEWPART.Reflectance = REFLECTANCE | |
250 | NEWPART.Transparency = TRANSPARENCY | |
251 | NEWPART.CanCollide = false | |
252 | NEWPART.Locked = true | |
253 | NEWPART.Anchored = true | |
254 | if ANCHOR == false then | |
255 | NEWPART.Anchored = false | |
256 | end | |
257 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
258 | NEWPART.Name = NAME | |
259 | NEWPART.Size = SIZE | |
260 | NEWPART.Position = Torso.Position | |
261 | NEWPART.Material = MATERIAL | |
262 | NEWPART:BreakJoints() | |
263 | NEWPART.Parent = PARENT | |
264 | return NEWPART | |
265 | end | |
266 | ||
267 | ||
268 | function CreatePart1(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, NAME, SIZE, ANCHOR) | |
269 | local NEWPART = IT("Part") | |
270 | NEWPART.formFactor = FORMFACTOR | |
271 | NEWPART.Reflectance = REFLECTANCE | |
272 | NEWPART.Transparency = TRANSPARENCY | |
273 | NEWPART.CanCollide = false | |
274 | NEWPART.Locked = true | |
275 | NEWPART.Anchored = true | |
276 | if ANCHOR == false then | |
277 | NEWPART.Anchored = false | |
278 | end | |
279 | NEWPART.Name = NAME | |
280 | NEWPART.Size = SIZE | |
281 | NEWPART.Position = Torso.Position | |
282 | NEWPART.Material = MATERIAL | |
283 | NEWPART:BreakJoints() | |
284 | NEWPART.Parent = PARENT | |
285 | return NEWPART | |
286 | end | |
287 | ||
288 | --//=================================\\ | |
289 | --|| CUSTOMIZATION | |
290 | --\\=================================// | |
291 | ||
292 | Player_Size = 1 --Size of the player. | |
293 | Animation_Speed = 6 | |
294 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
295 | ||
296 | local Speed = 500 | |
297 | local Effects2 = {} | |
298 | ||
299 | local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well | |
300 | "Crimson", | |
301 | "Bright red", | |
302 | "Black", | |
303 | "Sand Red", | |
304 | "Reddish Brown", | |
305 | "Dark Stone Grey", | |
306 | "Medium Stone Grey", | |
307 | "Brown", | |
308 | "Dark Red", | |
309 | } | |
310 | ||
311 | --//=================================\\ | |
312 | --|| END OF CUSTOMIZATION | |
313 | --\\=================================// | |
314 | ||
315 | local function weldBetween(a, b) | |
316 | local weldd = Instance.new("ManualWeld") | |
317 | weldd.Part0 = a | |
318 | weldd.Part1 = b | |
319 | weldd.C0 = CFrame.new() | |
320 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
321 | weldd.Parent = a | |
322 | return weldd | |
323 | end | |
324 | ||
325 | --//=================================\\ | |
326 | --|| USEFUL VALUES | |
327 | --\\=================================// | |
328 | ||
329 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
330 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
331 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
332 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
333 | local CHANGEDEFENSE = 0 | |
334 | local CHANGEDAMAGE = 0 | |
335 | local CHANGEMOVEMENT = 0 | |
336 | local ANIM = "Idle" | |
337 | local ATTACK = false | |
338 | local EQUIPPED = false | |
339 | local HOLD = false | |
340 | local COMBO = 1 | |
341 | local Rooted = false | |
342 | local SINE = 0 | |
343 | local KEYHOLD = false | |
344 | local CHANGE = 2 / Animation_Speed | |
345 | local WALKINGANIM = false | |
346 | local WALK = 0 | |
347 | local VALUE1 = false | |
348 | local VALUE2 = false | |
349 | local ROBLOXIDLEANIMATION = IT("Animation") | |
350 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
351 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
352 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
353 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
354 | WEAPONGUI.Name = "Weapon GUI" | |
355 | local Weapon = IT("Model") | |
356 | Weapon.Name = "Adds" | |
357 | local HITFLOOR = nil | |
358 | local Effects = IT("Folder", Weapon) | |
359 | Effects.Name = "Effects" | |
360 | local ANIMATOR = Humanoid.Animator | |
361 | local ANIMATE = Character.Animate | |
362 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
363 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
364 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
365 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
366 | local UNANCHOR = true | |
367 | ||
368 | rainbowNumber = 1 | |
369 | ||
370 | local SKILLTEXTCOLOR = BrickColor.new(Rainbow[rainbowNumber]).Color | |
371 | ||
372 | --//=================================\\ | |
373 | --\\=================================// | |
374 | ||
375 | ||
376 | ||
377 | ||
378 | --//=================================\\ | |
379 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
380 | --\\=================================// | |
381 | ||
382 | ArtificialHB = Instance.new("BindableEvent", script) | |
383 | ArtificialHB.Name = "ArtificialHB" | |
384 | ||
385 | script:WaitForChild("ArtificialHB") | |
386 | ||
387 | frame = Frame_Speed | |
388 | tf = 0 | |
389 | allowframeloss = false | |
390 | tossremainder = false | |
391 | lastframe = tick() | |
392 | script.ArtificialHB:Fire() | |
393 | ||
394 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
395 | tf = tf + s | |
396 | if tf >= frame then | |
397 | if allowframeloss then | |
398 | script.ArtificialHB:Fire() | |
399 | lastframe = tick() | |
400 | else | |
401 | for i = 1, math.floor(tf / frame) do | |
402 | script.ArtificialHB:Fire() | |
403 | end | |
404 | lastframe = tick() | |
405 | end | |
406 | if tossremainder then | |
407 | tf = 0 | |
408 | else | |
409 | tf = tf - frame * math.floor(tf / frame) | |
410 | end | |
411 | end | |
412 | end) | |
413 | ||
414 | --//=================================\\ | |
415 | --\\=================================// | |
416 | ||
417 | ||
418 | ||
419 | --//=================================\\ | |
420 | --|| SOME FUNCTIONS | |
421 | --\\=================================// | |
422 | ||
423 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
424 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
425 | end | |
426 | ||
427 | function PositiveAngle(NUMBER) | |
428 | if NUMBER >= 0 then | |
429 | NUMBER = 0 | |
430 | end | |
431 | return NUMBER | |
432 | end | |
433 | ||
434 | function NegativeAngle(NUMBER) | |
435 | if NUMBER <= 0 then | |
436 | NUMBER = 0 | |
437 | end | |
438 | return NUMBER | |
439 | end | |
440 | ||
441 | function Swait(NUMBER) | |
442 | if NUMBER == 0 or NUMBER == nil then | |
443 | ArtificialHB.Event:wait() | |
444 | else | |
445 | for i = 1, NUMBER do | |
446 | ArtificialHB.Event:wait() | |
447 | end | |
448 | end | |
449 | end | |
450 | ||
451 | function QuaternionFromCFrame(cf) | |
452 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
453 | local trace = m00 + m11 + m22 | |
454 | if trace > 0 then | |
455 | local s = math.sqrt(1 + trace) | |
456 | local recip = 0.5 / s | |
457 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
458 | else | |
459 | local i = 0 | |
460 | if m11 > m00 then | |
461 | i = 1 | |
462 | end | |
463 | if m22 > (i == 0 and m00 or m11) then | |
464 | i = 2 | |
465 | end | |
466 | if i == 0 then | |
467 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
468 | local recip = 0.5 / s | |
469 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
470 | elseif i == 1 then | |
471 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
472 | local recip = 0.5 / s | |
473 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
474 | elseif i == 2 then | |
475 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
476 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
477 | end | |
478 | end | |
479 | end | |
480 | ||
481 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
482 | local xs, ys, zs = x + x, y + y, z + z | |
483 | local wx, wy, wz = w * xs, w * ys, w * zs | |
484 | local xx = x * xs | |
485 | local xy = x * ys | |
486 | local xz = x * zs | |
487 | local yy = y * ys | |
488 | local yz = y * zs | |
489 | local zz = z * zs | |
490 | 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)) | |
491 | end | |
492 | ||
493 | function QuaternionSlerp(a, b, t) | |
494 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
495 | local startInterp, finishInterp; | |
496 | if cosTheta >= 0.0001 then | |
497 | if (1 - cosTheta) > 0.0001 then | |
498 | local theta = ACOS(cosTheta) | |
499 | local invSinTheta = 1 / SIN(theta) | |
500 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
501 | finishInterp = SIN(t * theta) * invSinTheta | |
502 | else | |
503 | startInterp = 1 - t | |
504 | finishInterp = t | |
505 | end | |
506 | else | |
507 | if (1 + cosTheta) > 0.0001 then | |
508 | local theta = ACOS(-cosTheta) | |
509 | local invSinTheta = 1 / SIN(theta) | |
510 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
511 | finishInterp = SIN(t * theta) * invSinTheta | |
512 | else | |
513 | startInterp = t - 1 | |
514 | finishInterp = t | |
515 | end | |
516 | end | |
517 | 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 | |
518 | end | |
519 | ||
520 | function Clerp(a, b, t) | |
521 | local qa = {QuaternionFromCFrame(a)} | |
522 | local qb = {QuaternionFromCFrame(b)} | |
523 | local ax, ay, az = a.x, a.y, a.z | |
524 | local bx, by, bz = b.x, b.y, b.z | |
525 | local _t = 1 - t | |
526 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
527 | end | |
528 | ||
529 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
530 | local frame = IT("Frame") | |
531 | frame.BackgroundTransparency = TRANSPARENCY | |
532 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
533 | frame.Position = POSITION | |
534 | frame.Size = SIZE | |
535 | frame.BackgroundColor3 = COLOR | |
536 | frame.BorderColor3 = BORDERCOLOR | |
537 | frame.Name = NAME | |
538 | frame.Parent = PARENT | |
539 | return frame | |
540 | end | |
541 | ||
542 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
543 | local label = IT("TextLabel") | |
544 | label.BackgroundTransparency = 1 | |
545 | label.Size = UD2(1, 0, 1, 0) | |
546 | label.Position = UD2(0, 0, 0, 0) | |
547 | label.TextColor3 = TEXTCOLOR | |
548 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
549 | label.TextTransparency = TRANSPARENCY | |
550 | label.FontSize = TEXTFONTSIZE | |
551 | label.Font = TEXTFONT | |
552 | label.BorderSizePixel = BORDERSIZEPIXEL | |
553 | label.TextScaled = false | |
554 | label.Text = TEXT | |
555 | label.Name = NAME | |
556 | label.Parent = PARENT | |
557 | return label | |
558 | end | |
559 | ||
560 | function NoOutlines(PART) | |
561 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
562 | end | |
563 | ||
564 | ||
565 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
566 | local NEWWELD = IT(TYPE) | |
567 | NEWWELD.Part0 = PART0 | |
568 | NEWWELD.Part1 = PART1 | |
569 | NEWWELD.C0 = C0 | |
570 | NEWWELD.C1 = C1 | |
571 | NEWWELD.Parent = PARENT | |
572 | return NEWWELD | |
573 | end | |
574 | ||
575 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
576 | local NEWSOUND = nil | |
577 | coroutine.resume(coroutine.create(function() | |
578 | NEWSOUND = IT("Sound", PARENT) | |
579 | NEWSOUND.Volume = VOLUME | |
580 | NEWSOUND.Pitch = PITCH | |
581 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
582 | Swait() | |
583 | NEWSOUND:play() | |
584 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
585 | end)) | |
586 | return NEWSOUND | |
587 | end | |
588 | ||
589 | function CFrameFromTopBack(at, top, back) | |
590 | local right = top:Cross(back) | |
591 | 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) | |
592 | end | |
593 | ||
594 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
595 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0)) | |
596 | local mesh = IT("SpecialMesh",wave) | |
597 | mesh.MeshType = "FileMesh" | |
598 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
599 | mesh.Scale = SIZE | |
600 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
601 | wave.CFrame = CFRAME | |
602 | coroutine.resume(coroutine.create(function(PART) | |
603 | for i = 1, WAIT do | |
604 | Swait() | |
605 | mesh.Scale = mesh.Scale + GROW | |
606 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
607 | if DOESROT == true then | |
608 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
609 | end | |
610 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
611 | if wave.Transparency > 0.99 then | |
612 | wave:remove() | |
613 | end | |
614 | end | |
615 | end)) | |
616 | end | |
617 | ||
618 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
619 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0)) | |
620 | local mesh = IT("SpecialMesh",wave) | |
621 | mesh.MeshType = "FileMesh" | |
622 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
623 | mesh.Scale = SIZE | |
624 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
625 | wave.CFrame = CFRAME | |
626 | coroutine.resume(coroutine.create(function(PART) | |
627 | for i = 1, WAIT do | |
628 | Swait() | |
629 | mesh.Scale = mesh.Scale + GROW | |
630 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
631 | if DOESROT == true then | |
632 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
633 | end | |
634 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
635 | if wave.Transparency > 0.99 then | |
636 | wave:remove() | |
637 | end | |
638 | end | |
639 | end)) | |
640 | end | |
641 | ||
642 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
643 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(0,0,0)) | |
644 | local mesh = IT("SpecialMesh",wave) | |
645 | mesh.MeshType = "FileMesh" | |
646 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
647 | mesh.Scale = SIZE | |
648 | wave.CFrame = CFRAME | |
649 | coroutine.resume(coroutine.create(function(PART) | |
650 | for i = 1, WAIT do | |
651 | Swait() | |
652 | mesh.Scale = mesh.Scale + GROW | |
653 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
654 | if DOESROT == true then | |
655 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
656 | end | |
657 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
658 | if wave.Transparency > 0.99 then | |
659 | wave:remove() | |
660 | end | |
661 | end | |
662 | end)) | |
663 | end | |
664 | ||
665 | ||
666 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
667 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Maroon"), "Effect", VT(1,1,1), true) | |
668 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
669 | wave.CFrame = CFRAME | |
670 | coroutine.resume(coroutine.create(function(PART) | |
671 | for i = 1, WAIT do | |
672 | Swait() | |
673 | mesh.Scale = mesh.Scale * GROW | |
674 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
675 | if wave.Transparency > 0.99 then | |
676 | wave:remove() | |
677 | end | |
678 | end | |
679 | end)) | |
680 | end | |
681 | ||
682 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
683 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Maroon"), "Effect", VT(1,1,1), true) | |
684 | local mesh = IT("SpecialMesh",wave) | |
685 | mesh.MeshType = "Sphere" | |
686 | mesh.Scale = SIZE | |
687 | mesh.Offset = VT(0,0,0) | |
688 | wave.CFrame = CFRAME | |
689 | coroutine.resume(coroutine.create(function(PART) | |
690 | for i = 1, WAIT do | |
691 | Swait() | |
692 | mesh.Scale = mesh.Scale + GROW | |
693 | wave.Transparency = wave.Transparency + (1/WAIT) | |
694 | if wave.Transparency > 0.99 then | |
695 | wave:remove() | |
696 | end | |
697 | end | |
698 | end)) | |
699 | end | |
700 | ||
701 | function MakeForm(PART,TYPE) | |
702 | if TYPE == "Cyl" then | |
703 | local MSH = IT("CylinderMesh",PART) | |
704 | elseif TYPE == "Ball" then | |
705 | local MSH = IT("SpecialMesh",PART) | |
706 | MSH.MeshType = "Sphere" | |
707 | elseif TYPE == "Wedge" then | |
708 | local MSH = IT("SpecialMesh",PART) | |
709 | MSH.MeshType = "Wedge" | |
710 | end | |
711 | end | |
712 | ||
713 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
714 | if FLOOR ~= nil then | |
715 | coroutine.resume(coroutine.create(function() | |
716 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
717 | PART.CFrame = CF(POSITION) | |
718 | for i = 1, 45 do | |
719 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
720 | RingPiece.Material = FLOOR.Material | |
721 | RingPiece.Color = FLOOR.Color | |
722 | 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))) | |
723 | Debris:AddItem(RingPiece,SWAIT/100) | |
724 | end | |
725 | PART:remove() | |
726 | end)) | |
727 | end | |
728 | end | |
729 | ||
730 | function CheckTableForString(Table, String) | |
731 | for i, v in pairs(Table) do | |
732 | if string.find(string.lower(String), string.lower(v)) then | |
733 | return true | |
734 | end | |
735 | end | |
736 | return false | |
737 | end | |
738 | ||
739 | function CheckIntangible(Hit) | |
740 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
741 | if Hit and Hit.Parent then | |
742 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
743 | return true | |
744 | end | |
745 | end | |
746 | return false | |
747 | end | |
748 | ||
749 | Debris = game:GetService("Debris") | |
750 | ||
751 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
752 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
753 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
754 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
755 | if RayHit and CheckIntangible(RayHit) then | |
756 | if DelayIfHit then | |
757 | wait() | |
758 | end | |
759 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
760 | end | |
761 | return RayHit, RayPos, RayNormal | |
762 | end | |
763 | ||
764 | function turnto(position) | |
765 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
766 | end | |
767 | ||
768 | --//=================================\\ | |
769 | --|| WEAPON CREATION | |
770 | --\\=================================// | |
771 | local FIST = CreatePart1(3, Weapon, "Neon", 0, 0, "Neon Gauntlet Part1", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) | |
772 | Light = Instance.new("PointLight",FIST) | |
773 | Light.Brightness = 0.85 | |
774 | touchCounter = 0 | |
775 | local cR=255 | |
776 | local cG=0 | |
777 | local cB=0 | |
778 | local flg5=1 local omgidk=1 | |
779 | local add=7.5 | |
780 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
781 | if omgidk>10000 then omgidk=0 end | |
782 | omgidk=omgidk+1 | |
783 | if cR>=255 then flg5=1 end | |
784 | if cG>=255 then flg5=2 end | |
785 | if cB>=255 then flg5=3 end | |
786 | if flg5==1 then cR=cR-add cG=cG+add end | |
787 | if flg5==2 then cG=cG-add cB=cB+add end | |
788 | if flg5==3 then cB=cB-add cR=cR+add end | |
789 | color=Color3.fromRGB(cR,cG,cB) | |
790 | Light.Color = color | |
791 | end) | |
792 | 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)) | |
793 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) | |
794 | 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)) | |
795 | ||
796 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
797 | 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)) | |
798 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
799 | 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)) | |
800 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
801 | 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)) | |
802 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
803 | 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)) | |
804 | ||
805 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
806 | 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)) | |
807 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
808 | 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)) | |
809 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
810 | 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)) | |
811 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
812 | 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)) | |
813 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
814 | 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)) | |
815 | touchCounter = 0 | |
816 | local cR=255 | |
817 | local cG=0 | |
818 | local cB=0 | |
819 | local flg5=1 local omgidk=1 | |
820 | local add=7.5 | |
821 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
822 | if omgidk>10000 then omgidk=0 end | |
823 | omgidk=omgidk+1 | |
824 | if cR>=255 then flg5=1 end | |
825 | if cG>=255 then flg5=2 end | |
826 | if cB>=255 then flg5=3 end | |
827 | if flg5==1 then cR=cR-add cG=cG+add end | |
828 | if flg5==2 then cG=cG-add cB=cB+add end | |
829 | if flg5==3 then cB=cB-add cR=cR+add end | |
830 | color=Color3.fromRGB(cR,cG,cB) | |
831 | local d = Weapon:FindFirstChild("Neon Gauntlet Part") | |
832 | if d then | |
833 | d.Color = color | |
834 | end | |
835 | local d = Weapon:FindFirstChild("Neon Gauntlet Part1") | |
836 | if d then | |
837 | d.Color = color | |
838 | end | |
839 | end) | |
840 | for _, c in pairs(Weapon:GetChildren()) do | |
841 | if c.ClassName == "Part" then | |
842 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
843 | end | |
844 | end | |
845 | ||
846 | Weapon.Parent = Character | |
847 | ||
848 | local BODY = {} | |
849 | ||
850 | for _, c in pairs(Character:GetChildren()) do | |
851 | if c.ClassName == "Part" then | |
852 | table.insert(BODY,{c,Character}) | |
853 | for _, q in pairs(c:GetChildren()) do | |
854 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
855 | table.insert(BODY,{q,c}) | |
856 | end | |
857 | end | |
858 | end | |
859 | end | |
860 | ||
861 | function refit() | |
862 | Character.Parent = workspace | |
863 | for e = 1, #BODY do | |
864 | if BODY[e] ~= nil then | |
865 | local STUFF = BODY[e] | |
866 | local PART = STUFF[1] | |
867 | local PARENT = STUFF[2] | |
868 | PART.Parent = PARENT | |
869 | end | |
870 | end | |
871 | end | |
872 | ||
873 | Humanoid.HealthChanged:connect(function() | |
874 | Humanoid.Parent = nil | |
875 | Humanoid.MaxHealth = "inf" | |
876 | Humanoid.Health = "inf" | |
877 | refit() | |
878 | Humanoid.Parent = Character | |
879 | end) | |
880 | ||
881 | Humanoid.Died:connect(function() | |
882 | Humanoid.Parent = nil | |
883 | Humanoid.MaxHealth = "inf" | |
884 | Humanoid.Health = "inf" | |
885 | refit() | |
886 | Humanoid.Parent = Character | |
887 | end) | |
888 | ||
889 | Humanoid.Died:connect(function() | |
890 | ATTACK = true | |
891 | end) | |
892 | ||
893 | function onTouched(brick) | |
894 | local humn = brick.Parent:FindFirstChildOfClass("Humanoid") | |
895 | if humn then | |
896 | humn.Health = -1 | |
897 | end | |
898 | end | |
899 | ||
900 | 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") | |
901 | 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") | |
902 | 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") | |
903 | 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") | |
904 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
905 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
906 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.01, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
907 | ||
908 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] Ultra Punch", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
909 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[F] Punish", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
910 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Dash", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
911 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Q] Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
912 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] R.I.P World", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text5") | |
913 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[R] Destruction", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text6") | |
914 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[T] Apocalypse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text7") | |
915 | ||
916 | --//=================================\\ | |
917 | --|| DAMAGE FUNCTIONS | |
918 | --\\=================================// | |
919 | ||
920 | function onTouched(Torso) | |
921 | local humn = brick.Parent:FindFirstChildOfClass("Humanoid") | |
922 | if humn then | |
923 | humn.Health = -1 | |
924 | end | |
925 | end | |
926 | ||
927 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
928 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
929 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
930 | local BODYGYRO = IT("BodyGyro", STATPART) | |
931 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
932 | BODYPOSITION.P = 2000 | |
933 | BODYPOSITION.D = 100 | |
934 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
935 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
936 | game:GetService("Debris"):AddItem(STATPART ,5) | |
937 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
938 | BILLBOARDGUI.Adornee = STATPART | |
939 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
940 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
941 | BILLBOARDGUI.AlwaysOnTop = false | |
942 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
943 | TEXTLABEL.BackgroundTransparency = 1 | |
944 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
945 | TEXTLABEL.Text = TEXT | |
946 | TEXTLABEL.Font = "SciFi" | |
947 | TEXTLABEL.FontSize="Size42" | |
948 | TEXTLABEL.TextColor3 = COLOR | |
949 | TEXTLABEL.TextStrokeTransparency = 1 | |
950 | TEXTLABEL.TextScaled = true | |
951 | TEXTLABEL.TextWrapped = true | |
952 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
953 | if LABELTYPE == "Normal" then | |
954 | for i = 1, 30 do | |
955 | Swait() | |
956 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
957 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
958 | end | |
959 | elseif LABELTYPE == "Debuff" then | |
960 | for i = 1, 30 do | |
961 | Swait() | |
962 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
963 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
964 | end | |
965 | elseif LABELTYPE == "Shock" then | |
966 | local ORIGIN = STATPART.Position | |
967 | for i = 1, 30 do | |
968 | Swait() | |
969 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
970 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
971 | end | |
972 | end | |
973 | THEPART.Parent = nil | |
974 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
975 | end | |
976 | ||
977 | --//=================================\\ | |
978 | --|| DAMAGING | |
979 | --\\=================================// | |
980 | ||
981 | function killnearest(position,range,maxstrength,direction) | |
982 | for i,v in ipairs(workspace:GetChildren()) do | |
983 | local body = v:GetChildren() | |
984 | for part = 1, #body do | |
985 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
986 | if(body[part].Position - position).Magnitude < range then | |
987 | if v.ClassName == "Model" then | |
988 | --v:BreakJoints() | |
989 | end | |
990 | local POS = position | |
991 | coroutine.resume(coroutine.create(function() | |
992 | body[part].Anchored = true | |
993 | body[part].Parent = Effects | |
994 | body[part].CanCollide = true | |
995 | local SIZE = body[part].Size | |
996 | body[part].Material = "Neon" | |
997 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
998 | for i = 1, 75 do | |
999 | Swait() | |
1000 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1001 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1002 | end | |
1003 | coroutine.resume(coroutine.create(function() | |
1004 | while true do | |
1005 | Swait() | |
1006 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1007 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1008 | end | |
1009 | end)) | |
1010 | body[part].Anchored = false | |
1011 | body[part].Velocity = direction.lookVector*maxstrength | |
1012 | end)) | |
1013 | end | |
1014 | end | |
1015 | end | |
1016 | if v.ClassName == "Part" then | |
1017 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1018 | local POS = position | |
1019 | coroutine.resume(coroutine.create(function() | |
1020 | v.Anchored = true | |
1021 | v.Parent = Effects | |
1022 | local SIZE = v.Size | |
1023 | v.Material = "Neon" | |
1024 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
1025 | for i = 1, 75 do | |
1026 | Swait() | |
1027 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1028 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1029 | end | |
1030 | coroutine.resume(coroutine.create(function() | |
1031 | while true do | |
1032 | Swait() | |
1033 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1034 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1035 | end | |
1036 | end)) | |
1037 | v.Anchored = false | |
1038 | v.Velocity = direction.lookVector*maxstrength | |
1039 | end)) | |
1040 | end | |
1041 | end | |
1042 | end | |
1043 | end | |
1044 | ||
1045 | --//=================================\\ | |
1046 | --|| ATTACK FUNCTIONS AND STUFF | |
1047 | --\\=================================// | |
1048 | ||
1049 | function AttackTemplate() | |
1050 | ATTACK = true | |
1051 | Rooted = false | |
1052 | for i=0, 1, 0.1 / Animation_Speed do | |
1053 | Swait() | |
1054 | 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) | |
1055 | 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) | |
1056 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1057 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1058 | 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) | |
1059 | 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) | |
1060 | end | |
1061 | ATTACK = false | |
1062 | Rooted = false | |
1063 | end | |
1064 | ||
1065 | function UltraPunch() | |
1066 | ATTACK = true | |
1067 | Rooted = false | |
1068 | local SPEED = Speed | |
1069 | Speed = 8 | |
1070 | CreateSound("214876666", RightArm, 7.5, 0.8) | |
1071 | for i=0, 0, 0.1 / Animation_Speed do | |
1072 | Swait() | |
1073 | turnto(Mouse.Hit.p) | |
1074 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-1/15,-1/15,-1/15)) | |
1075 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-2/15,-2/15,-2/15)) | |
1076 | 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) | |
1077 | 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) | |
1078 | 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) | |
1079 | 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) | |
1080 | 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) | |
1081 | 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) | |
1082 | end | |
1083 | for i=0, 0, 0.1 / Animation_Speed do | |
1084 | Swait() | |
1085 | turnto(Mouse.Hit.p) | |
1086 | 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) | |
1087 | 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) | |
1088 | 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) | |
1089 | 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) | |
1090 | 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) | |
1091 | 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) | |
1092 | end | |
1093 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Maroon", "Punch", VT(50,50,50),false) | |
1094 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
1095 | PART.Shape = "Ball" | |
1096 | local bv = Instance.new("BodyVelocity") | |
1097 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1098 | bv.velocity = RootPart.CFrame.lookVector*600 | |
1099 | bv.Parent = PART | |
1100 | bv.Name = "PROJECTILEVELOCITY" | |
1101 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(2.5,0.2,2.5)) | |
1102 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Maroon",VT(3,0.2,3)) | |
1103 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(2,0.6,2)) | |
1104 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Maroon",VT(2.2,0.6,2.2)) | |
1105 | CreateSound("414517163", Effects, 3.5, MRANDOM(7, 12) / 10) | |
1106 | coroutine.resume(coroutine.create(function() | |
1107 | for i = 1, 11 do | |
1108 | Swait() | |
1109 | PART.Transparency = PART.Transparency + 0.2/10 | |
1110 | PART.Size = PART.Size + VT(5,5,5) | |
1111 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
1112 | end | |
1113 | PART:Destroy() | |
1114 | end)) | |
1115 | for i=0, 0, 0.1 / Animation_Speed do | |
1116 | Swait() | |
1117 | 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) | |
1118 | 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) | |
1119 | 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) | |
1120 | 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) | |
1121 | 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) | |
1122 | 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) | |
1123 | end | |
1124 | Speed = SPEED | |
1125 | ATTACK = false | |
1126 | Rooted = false | |
1127 | end | |
1128 | ||
1129 | function Punish() | |
1130 | Animation_Speed = 1 | |
1131 | ATTACK = true | |
1132 | Rooted = false | |
1133 | local HASGRABBED = false | |
1134 | local WELD = nil | |
1135 | local TORS = nil | |
1136 | local hitting = FIST.Touched:connect(function(hit) | |
1137 | if hit.Parent:FindFirstChild("Humanoid") then | |
1138 | if hit.Parent.Humanoid.Health ~= 0 then | |
1139 | UNANCHOR = false | |
1140 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1141 | TORS.Anchored = true | |
1142 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1143 | WELD = weldBetween(RightArm,TORS) | |
1144 | HASGRABBED = true | |
1145 | Rooted = true | |
1146 | end | |
1147 | end | |
1148 | end) | |
1149 | for i=0, 2, 0.1 / Animation_Speed do | |
1150 | Swait() | |
1151 | if HASGRABBED == true then | |
1152 | break | |
1153 | end | |
1154 | 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) | |
1155 | 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) | |
1156 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1157 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1158 | 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) | |
1159 | 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) | |
1160 | end | |
1161 | hitting:disconnect() | |
1162 | if HASGRABBED == true then | |
1163 | TORS.Anchored = false | |
1164 | RootPart.Anchored = true | |
1165 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1166 | Swait() | |
1167 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1168 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1169 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1170 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1171 | 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) | |
1172 | 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) | |
1173 | end | |
1174 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5)) | |
1175 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6)) | |
1176 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0)) | |
1177 | SOUNDPART.CFrame = RootPart.CFrame | |
1178 | Debris:AddItem(SOUNDPART,5) | |
1179 | CreateSound("357202073", SOUNDPART, 0, 1) | |
1180 | for i = 1, 16 do | |
1181 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
1182 | end | |
1183 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1184 | Swait() | |
1185 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1186 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1187 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1188 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1189 | 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) | |
1190 | 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) | |
1191 | end | |
1192 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1193 | Swait() | |
1194 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1195 | 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) | |
1196 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1197 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1198 | 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) | |
1199 | 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) | |
1200 | end | |
1201 | if HITFLOOR ~= nil then | |
1202 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
1203 | end | |
1204 | CreateSound("414517163", Effects, 3.5, MRANDOM(7, 12) / 10) | |
1205 | WELD:remove() | |
1206 | for i = 1, 26 do | |
1207 | Swait() | |
1208 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
1209 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3)) | |
1210 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(1,0.4,1)) | |
1211 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(2.3,0.3,2.3)) | |
1212 | 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) | |
1213 | 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))),"Maroon", 1 + MRANDOM(1,30)/15) | |
1214 | end | |
1215 | end | |
1216 | UNANCHOR = true | |
1217 | ATTACK = false | |
1218 | Rooted = false | |
1219 | Animation_Speed = 8 | |
1220 | end | |
1221 | ||
1222 | function Dash() | |
1223 | local ORIGIN = RootPart.Position | |
1224 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1225 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1226 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0)) | |
1227 | SOUNDPART.CFrame = RootPart.CFrame | |
1228 | Debris:AddItem(SOUNDPART,5) | |
1229 | CreateSound("357202032", SOUNDPART, 0, 1) | |
1230 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
1231 | Swait() | |
1232 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1233 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1234 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0)) | |
1235 | SOUNDPART.CFrame = RootPart.CFrame | |
1236 | Debris:AddItem(SOUNDPART,5) | |
1237 | CreateSound("1295446488", SOUNDPART, 2.5, 1) | |
1238 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1239 | Swait() | |
1240 | 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) | |
1241 | 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) | |
1242 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1243 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1244 | 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) | |
1245 | 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) | |
1246 | end | |
1247 | ATTACK = false | |
1248 | Rooted = false | |
1249 | end | |
1250 | function Begoner9000() | |
1251 | ATTACK = true | |
1252 | Rooted = true | |
1253 | CreateSound("255679384", RightArm, 8, 1) | |
1254 | for i=0, 0, 0.1 / Animation_Speed do | |
1255 | Swait() | |
1256 | turnto(Mouse.Hit.p) | |
1257 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Maroon",VT(0.2,0,0.2)) | |
1258 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1.1) | |
1259 | 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) | |
1260 | 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),"Maroon",VT(0.001,0.001,2),0) | |
1261 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-1/15,-1/15,-1/15)) | |
1262 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Maroon",VT(-2/15,-2/15,-2/15)) | |
1263 | 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) | |
1264 | 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) | |
1265 | 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) | |
1266 | 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) | |
1267 | 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) | |
1268 | 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) | |
1269 | end | |
1270 | for i=0, 0, 0.1 / Animation_Speed do | |
1271 | Swait() | |
1272 | turnto(Mouse.Hit.p) | |
1273 | 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) | |
1274 | 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) | |
1275 | 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) | |
1276 | 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) | |
1277 | 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) | |
1278 | 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) | |
1279 | end | |
1280 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Maroon",VT(-0.04,-0.04,-0.04)) | |
1281 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) | |
1282 | coroutine.resume(coroutine.create(function() | |
1283 | Swait(0.01) | |
1284 | for i = 1, 2 do | |
1285 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Maroon",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
1286 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(4.5*i,0.2,4.5*i)) | |
1287 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Maroon",VT(4*i,0.6,4*i)) | |
1288 | end | |
1289 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
1290 | for i = 1, 3 do | |
1291 | CreateSound("414517163", Effects, 3.5, 0.8) | |
1292 | CreateSound("414517163", Effects, 3.5, 0.8) | |
1293 | end | |
1294 | coroutine.resume(coroutine.create(function() | |
1295 | for i = 1, 3 do | |
1296 | Swait() | |
1297 | for i = 1, 1 do | |
1298 | 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) | |
1299 | end | |
1300 | for i = 1, 2 do | |
1301 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1 + MRANDOM(1,30)/3) | |
1302 | end | |
1303 | end | |
1304 | end)) | |
1305 | end)) | |
1306 | for i=0, 0, 0.1 / Animation_Speed do | |
1307 | Swait() | |
1308 | 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) | |
1309 | 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) | |
1310 | 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) | |
1311 | 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) | |
1312 | 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) | |
1313 | 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) | |
1314 | end | |
1315 | ATTACK = false | |
1316 | Rooted = false | |
1317 | end | |
1318 | ||
1319 | --//=================================\\ | |
1320 | --|| ASSIGN THINGS TO KEYS | |
1321 | --\\=================================// | |
1322 | ||
1323 | function MouseDown(Mouse) | |
1324 | if ATTACK == false then | |
1325 | end | |
1326 | end | |
1327 | ||
1328 | function MouseUp(Mouse) | |
1329 | HOLD = false | |
1330 | end | |
1331 | ||
1332 | function KeyDown(Key) | |
1333 | KEYHOLD = true | |
1334 | if Key == "e" and ATTACK == false then | |
1335 | UltraPunch() | |
1336 | end | |
1337 | ||
1338 | if Key == "f" and ATTACK == false then | |
1339 | Punish() | |
1340 | end | |
1341 | ||
1342 | if Key == "c" and ATTACK == false then | |
1343 | Dash() | |
1344 | end | |
1345 | ||
1346 | if Key == "q" and ATTACK == false then | |
1347 | Begoner9000()() | |
1348 | end | |
1349 | ||
1350 | if Key == "t" and ATTACK == false then | |
1351 | Begoner9000() | |
1352 | wait(0.43) | |
1353 | Begoner9000() | |
1354 | wait(0.43) | |
1355 | Begoner9000() | |
1356 | wait(0.43) | |
1357 | Begoner9000() | |
1358 | wait(0.43) | |
1359 | Begoner9000() | |
1360 | wait(0.43) | |
1361 | Begoner9000() | |
1362 | wait(0.43) | |
1363 | Begoner9000() | |
1364 | wait(0.43) | |
1365 | Begoner9000() | |
1366 | wait(0.43) | |
1367 | Begoner9000() | |
1368 | wait(0.43) | |
1369 | Begoner9000() | |
1370 | end | |
1371 | ||
1372 | if Key == "g" and ATTACK == false then | |
1373 | Begoner9000() | |
1374 | UltraPunch() | |
1375 | wait(0.0001) | |
1376 | Begoner9000() | |
1377 | UltraPunch() | |
1378 | wait(0.0001) | |
1379 | Begoner9000() | |
1380 | UltraPunch() | |
1381 | wait(0.0001) | |
1382 | Begoner9000() | |
1383 | UltraPunch() | |
1384 | wait(0.0001) | |
1385 | Begoner9000() | |
1386 | UltraPunch() | |
1387 | wait(0.0001) | |
1388 | Begoner9000() | |
1389 | UltraPunch() | |
1390 | wait(0.0001) | |
1391 | Begoner9000() | |
1392 | UltraPunch() | |
1393 | wait(0.0001) | |
1394 | Begoner9000() | |
1395 | UltraPunch() | |
1396 | wait(0.0001) | |
1397 | Begoner9000() | |
1398 | UltraPunch() | |
1399 | wait(0.0001) | |
1400 | Begoner9000() | |
1401 | UltraPunch() | |
1402 | wait(0.0001) | |
1403 | Begoner9000() | |
1404 | UltraPunch() | |
1405 | wait(0.0001) | |
1406 | Begoner9000() | |
1407 | UltraPunch() | |
1408 | wait(0.0001) | |
1409 | Begoner9000() | |
1410 | UltraPunch() | |
1411 | wait(0.0001) | |
1412 | Begoner9000() | |
1413 | UltraPunch() | |
1414 | wait(0.0001) | |
1415 | Begoner9000() | |
1416 | UltraPunch() | |
1417 | wait(0.0001) | |
1418 | Begoner9000() | |
1419 | UltraPunch() | |
1420 | wait(0.0001) | |
1421 | Begoner9000() | |
1422 | UltraPunch() | |
1423 | wait(0.0001) | |
1424 | Begoner9000() | |
1425 | UltraPunch() | |
1426 | wait(0.0001) | |
1427 | Begoner9000() | |
1428 | UltraPunch() | |
1429 | wait(0.0001) | |
1430 | Begoner9000() | |
1431 | UltraPunch() | |
1432 | wait(0.0001) | |
1433 | Begoner9000() | |
1434 | UltraPunch() | |
1435 | wait(0.0001) | |
1436 | Begoner9000() | |
1437 | UltraPunch() | |
1438 | wait(0.0001) | |
1439 | Begoner9000() | |
1440 | UltraPunch() | |
1441 | wait(0.0001) | |
1442 | Begoner9000() | |
1443 | UltraPunch() | |
1444 | wait(0.0001) | |
1445 | Begoner9000() | |
1446 | UltraPunch() | |
1447 | wait(0.0001) | |
1448 | Begoner9000() | |
1449 | UltraPunch() | |
1450 | wait(0.0001) | |
1451 | Begoner9000() | |
1452 | UltraPunch() | |
1453 | wait(0.0001) | |
1454 | Begoner9000() | |
1455 | UltraPunch() | |
1456 | wait(0.0001) | |
1457 | Begoner9000() | |
1458 | UltraPunch() | |
1459 | wait(0.0001) | |
1460 | Begoner9000() | |
1461 | UltraPunch() | |
1462 | wait(0.0001) | |
1463 | Begoner9000() | |
1464 | UltraPunch() | |
1465 | wait(0.0001) | |
1466 | Begoner9000() | |
1467 | UltraPunch() | |
1468 | wait(0.0001) | |
1469 | Begoner9000() | |
1470 | UltraPunch() | |
1471 | wait(0.0001) | |
1472 | Begoner9000() | |
1473 | UltraPunch() | |
1474 | wait(0.0001) | |
1475 | Begoner9000() | |
1476 | UltraPunch() | |
1477 | wait(0.0001) | |
1478 | Begoner9000() | |
1479 | UltraPunch() | |
1480 | wait(0.0001) | |
1481 | Begoner9000() | |
1482 | UltraPunch() | |
1483 | wait(0.0001) | |
1484 | Begoner9000() | |
1485 | UltraPunch() | |
1486 | wait(0.0001) | |
1487 | Begoner9000() | |
1488 | UltraPunch() | |
1489 | wait(0.0001) | |
1490 | Begoner9000() | |
1491 | UltraPunch() | |
1492 | wait(0.0001) | |
1493 | Begoner9000() | |
1494 | UltraPunch() | |
1495 | wait(0.0001) | |
1496 | Begoner9000() | |
1497 | UltraPunch() | |
1498 | wait(0.0001) | |
1499 | Begoner9000() | |
1500 | UltraPunch() | |
1501 | wait(0.0001) | |
1502 | Begoner9000() | |
1503 | UltraPunch() | |
1504 | wait(0.0001) | |
1505 | Begoner9000() | |
1506 | UltraPunch() | |
1507 | wait(0.0001) | |
1508 | Begoner9000() | |
1509 | UltraPunch() | |
1510 | wait(0.0001) | |
1511 | Begoner9000() | |
1512 | UltraPunch() | |
1513 | wait(0.0001) | |
1514 | Begoner9000() | |
1515 | UltraPunch() | |
1516 | wait(0.0001) | |
1517 | Begoner9000() | |
1518 | UltraPunch() | |
1519 | wait(0.0001) | |
1520 | Begoner9000() | |
1521 | UltraPunch() | |
1522 | wait(0.0001) | |
1523 | Begoner9000() | |
1524 | UltraPunch() | |
1525 | wait(0.0001) | |
1526 | Begoner9000() | |
1527 | UltraPunch() | |
1528 | wait(0.0001) | |
1529 | Begoner9000() | |
1530 | UltraPunch() | |
1531 | wait(0.0001) | |
1532 | Begoner9000() | |
1533 | UltraPunch() | |
1534 | wait(0.0001) | |
1535 | Begoner9000() | |
1536 | UltraPunch() | |
1537 | wait(0.0001) | |
1538 | Begoner9000() | |
1539 | UltraPunch() | |
1540 | wait(0.0001) | |
1541 | Begoner9000() | |
1542 | UltraPunch() | |
1543 | wait(0.0001) | |
1544 | Begoner9000() | |
1545 | UltraPunch() | |
1546 | wait(0.0001) | |
1547 | Begoner9000() | |
1548 | UltraPunch() | |
1549 | wait(0.0001) | |
1550 | Begoner9000() | |
1551 | UltraPunch() | |
1552 | wait(0.0001) | |
1553 | Begoner9000() | |
1554 | UltraPunch() | |
1555 | wait(0.0001) | |
1556 | Begoner9000() | |
1557 | UltraPunch() | |
1558 | wait(0.0001) | |
1559 | Begoner9000() | |
1560 | UltraPunch() | |
1561 | wait(0.0001) | |
1562 | Begoner9000() | |
1563 | UltraPunch() | |
1564 | wait(0.0001) | |
1565 | Begoner9000() | |
1566 | UltraPunch() | |
1567 | wait(0.0001) | |
1568 | Begoner9000() | |
1569 | UltraPunch() | |
1570 | wait(0.0001) | |
1571 | Begoner9000() | |
1572 | UltraPunch() | |
1573 | wait(0.0001) | |
1574 | Begoner9000() | |
1575 | UltraPunch() | |
1576 | wait(0.0001) | |
1577 | Begoner9000() | |
1578 | UltraPunch() | |
1579 | wait(0.0001) | |
1580 | Begoner9000() | |
1581 | UltraPunch() | |
1582 | wait(0.0001) | |
1583 | Begoner9000() | |
1584 | UltraPunch() | |
1585 | wait(0.0001) | |
1586 | Begoner9000() | |
1587 | UltraPunch() | |
1588 | wait(0.0001) | |
1589 | Begoner9000() | |
1590 | UltraPunch() | |
1591 | wait(0.0001) | |
1592 | Begoner9000() | |
1593 | UltraPunch() | |
1594 | wait(0.0001) | |
1595 | Begoner9000() | |
1596 | UltraPunch() | |
1597 | wait(0.0001) | |
1598 | Begoner9000() | |
1599 | UltraPunch() | |
1600 | wait(0.0001) | |
1601 | Begoner9000() | |
1602 | UltraPunch() | |
1603 | wait(0.0001) | |
1604 | Begoner9000() | |
1605 | UltraPunch() | |
1606 | wait(0.0001) | |
1607 | Begoner9000() | |
1608 | UltraPunch() | |
1609 | wait(0.0001) | |
1610 | Begoner9000() | |
1611 | UltraPunch() | |
1612 | wait(0.0001) | |
1613 | Begoner9000() | |
1614 | UltraPunch() | |
1615 | wait(0.0001) | |
1616 | Begoner9000() | |
1617 | UltraPunch() | |
1618 | wait(0.0001) | |
1619 | Begoner9000() | |
1620 | UltraPunch() | |
1621 | wait(0.0001) | |
1622 | Begoner9000() | |
1623 | UltraPunch() | |
1624 | wait(0.0001) | |
1625 | Begoner9000() | |
1626 | UltraPunch() | |
1627 | wait(0.0001) | |
1628 | Begoner9000() | |
1629 | UltraPunch() | |
1630 | wait(0.0001) | |
1631 | Begoner9000() | |
1632 | UltraPunch() | |
1633 | wait(0.0001) | |
1634 | Begoner9000() | |
1635 | UltraPunch() | |
1636 | wait(0.0001) | |
1637 | Begoner9000() | |
1638 | UltraPunch() | |
1639 | wait(0.0001) | |
1640 | Begoner9000() | |
1641 | UltraPunch() | |
1642 | wait(0.0001) | |
1643 | Begoner9000() | |
1644 | UltraPunch() | |
1645 | wait(0.0001) | |
1646 | Begoner9000() | |
1647 | UltraPunch() | |
1648 | wait(0.0001) | |
1649 | Begoner9000() | |
1650 | UltraPunch() | |
1651 | wait(0.0001) | |
1652 | Begoner9000() | |
1653 | UltraPunch() | |
1654 | wait(0.0001) | |
1655 | Begoner9000() | |
1656 | UltraPunch() | |
1657 | wait(0.0001) | |
1658 | Begoner9000() | |
1659 | UltraPunch() | |
1660 | wait(0.0001) | |
1661 | Begoner9000() | |
1662 | UltraPunch() | |
1663 | wait(0.0001) | |
1664 | Begoner9000() | |
1665 | UltraPunch() | |
1666 | wait(0.0001) | |
1667 | Begoner9000() | |
1668 | UltraPunch() | |
1669 | wait(0.0001) | |
1670 | Begoner9000() | |
1671 | UltraPunch() | |
1672 | end | |
1673 | ||
1674 | if Key == "r" and ATTACK == false then | |
1675 | UltraPunch() | |
1676 | wait(0.0002) | |
1677 | UltraPunch() | |
1678 | wait(0.0002) | |
1679 | UltraPunch() | |
1680 | wait(0.0002) | |
1681 | UltraPunch() | |
1682 | wait(0.0002) | |
1683 | UltraPunch() | |
1684 | wait(0.0002) | |
1685 | UltraPunch() | |
1686 | wait(0.0002) | |
1687 | UltraPunch() | |
1688 | wait(0.0002) | |
1689 | UltraPunch() | |
1690 | wait(0.0002) | |
1691 | UltraPunch() | |
1692 | wait(0.0002) | |
1693 | UltraPunch() | |
1694 | wait(0.0002) | |
1695 | UltraPunch() | |
1696 | wait(0.0002) | |
1697 | UltraPunch() | |
1698 | wait(0.0002) | |
1699 | UltraPunch() | |
1700 | wait(0.0002) | |
1701 | UltraPunch() | |
1702 | wait(0.0002) | |
1703 | UltraPunch() | |
1704 | wait(0.0002) | |
1705 | UltraPunch() | |
1706 | wait(0.0002) | |
1707 | UltraPunch() | |
1708 | wait(0.0002) | |
1709 | UltraPunch() | |
1710 | wait(0.0002) | |
1711 | UltraPunch() | |
1712 | wait(0.0002) | |
1713 | UltraPunch() | |
1714 | wait(0.0002) | |
1715 | UltraPunch() | |
1716 | wait(0.0002) | |
1717 | UltraPunch() | |
1718 | end | |
1719 | ||
1720 | if Key == "p" and ATTACK == false then | |
1721 | if Speed == 16 then | |
1722 | Speed = 150 | |
1723 | elseif Speed == 150 then | |
1724 | Speed = 16 | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | ||
1729 | function KeyUp(Key) | |
1730 | KEYHOLD = false | |
1731 | end | |
1732 | ||
1733 | Mouse.Button1Down:connect(function(NEWKEY) | |
1734 | MouseDown(NEWKEY) | |
1735 | end) | |
1736 | Mouse.Button1Up:connect(function(NEWKEY) | |
1737 | MouseUp(NEWKEY) | |
1738 | end) | |
1739 | Mouse.KeyDown:connect(function(NEWKEY) | |
1740 | KeyDown(NEWKEY) | |
1741 | end) | |
1742 | Mouse.KeyUp:connect(function(NEWKEY) | |
1743 | KeyUp(NEWKEY) | |
1744 | end) | |
1745 | ||
1746 | --//=================================\\ | |
1747 | --\\=================================// | |
1748 | ||
1749 | ||
1750 | function unanchor() | |
1751 | if UNANCHOR == true then | |
1752 | - | g = Character:GetChildren() |
1752 | + | local g = Character:GetChildren() |
1753 | for i = 1, #g do | |
1754 | if g[i].ClassName == "Part" then | |
1755 | g[i].Anchored = false | |
1756 | end | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | ||
1761 | ||
1762 | --//=================================\\ | |
1763 | --|| WRAP THE WHOLE SCRIPT UP | |
1764 | --\\=================================// | |
1765 | ||
1766 | Humanoid.Changed:connect(function(Jump) | |
1767 | if Jump == "Jump" and (Disable_Jump == true) then | |
1768 | Humanoid.Jump = false | |
1769 | end | |
1770 | end) | |
1771 | ||
1772 | while true do | |
1773 | Swait() | |
1774 | ANIMATE.Parent = nil | |
1775 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1776 | IDLEANIMATION:Play() | |
1777 | SINE = SINE + CHANGE | |
1778 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1779 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1780 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1781 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1782 | local WALKSPEEDVALUE = 0 | |
1783 | if Speed < 35 then | |
1784 | WALKSPEEDVALUE = 48 | |
1785 | else | |
1786 | WALKSPEEDVALUE = 48 | |
1787 | end | |
1788 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
1789 | 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) | |
1790 | 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) | |
1791 | if Speed < 35 then | |
1792 | 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) | |
1793 | 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) | |
1794 | else | |
1795 | 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) | |
1796 | 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) | |
1797 | end | |
1798 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
1799 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1800 | 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) | |
1801 | 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) | |
1802 | 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) | |
1803 | end | |
1804 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1805 | ANIM = "Jump" | |
1806 | if ATTACK == false then | |
1807 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1808 | 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) | |
1809 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1810 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1811 | 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) | |
1812 | 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) | |
1813 | end | |
1814 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1815 | ANIM = "Fall" | |
1816 | if ATTACK == false then | |
1817 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1818 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1819 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1820 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1821 | 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) | |
1822 | 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) | |
1823 | end | |
1824 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1825 | ANIM = "Idle" | |
1826 | if ATTACK == false then | |
1827 | 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) | |
1828 | 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) | |
1829 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1830 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1831 | 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) | |
1832 | 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) | |
1833 | end | |
1834 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
1835 | ANIM = "Walk" | |
1836 | WALK = WALK + 1 / Animation_Speed | |
1837 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1838 | WALK = 0 | |
1839 | if WALKINGANIM == true then | |
1840 | WALKINGANIM = false | |
1841 | elseif WALKINGANIM == false then | |
1842 | WALKINGANIM = true | |
1843 | end | |
1844 | end | |
1845 | --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) | |
1846 | --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) | |
1847 | if ATTACK == false then | |
1848 | if Speed < 35 then | |
1849 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1850 | 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) | |
1851 | 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) | |
1852 | 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) | |
1853 | 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) | |
1854 | 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) | |
1855 | else | |
1856 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1857 | 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) | |
1858 | 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) | |
1859 | 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) | |
1860 | 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) | |
1861 | 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) | |
1862 | end | |
1863 | end | |
1864 | end | |
1865 | unanchor() | |
1866 | Humanoid.MaxHealth = "inf" | |
1867 | Humanoid.Health = "inf" | |
1868 | if Rooted == false then | |
1869 | Disable_Jump = false | |
1870 | Humanoid.WalkSpeed = Speed | |
1871 | elseif Rooted == true then | |
1872 | Disable_Jump = true | |
1873 | Humanoid.WalkSpeed = 0 | |
1874 | end | |
1875 | local MATHS = {"0","1"} | |
1876 | 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)] | |
1877 | Humanoid.PlatformStand = false | |
1878 | end | |
1879 | ||
1880 | ||
1881 | --//====================================================\\-- | |
1882 | --|| END OF SCRIPT | |
1883 | --\\====================================================//-- |