SHOW:
|
|
- or go back to the newest paste.
1 | local remote = NS ([==[ | |
2 | --//====================================================\\-- | |
3 | --|| CREATED BY SHACKLUSTER | |
4 | --\\====================================================//-- | |
5 | ||
6 | warn'AN EDIT OF "FULL BAN HAMMER STUPIDITY" By UndeniableInfinity.' | |
7 | warn'Why did i make this? because people seem to get shocked by the size.' | |
8 | warn'so i made..."BANHAMMER UNIVERSE", a bigger version of BanHammer Infinity.' | |
9 | warn'Credits to Shackluster, He created the original.' | |
10 | ||
11 | wait(0.2) | |
12 | ||
13 | script.Name = "UndeniableInfinity's UNIVERSAL WIDESPREAD Ban hammer" | |
14 | ||
15 | Player = owner | |
16 | PlayerGui = Player.PlayerGui | |
17 | Cam = workspace.CurrentCamera | |
18 | Backpack = Player.Backpack | |
19 | Character = Player.Character | |
20 | Humanoid = Character.Humanoid | |
21 | Mouse = Player:GetMouse() | |
22 | RootPart = Character["HumanoidRootPart"] | |
23 | Torso = Character["Torso"] | |
24 | Head = Character["Head"] | |
25 | RightArm = Character["Right Arm"] | |
26 | LeftArm = Character["Left Arm"] | |
27 | RightLeg = Character["Right Leg"] | |
28 | LeftLeg = Character["Left Leg"] | |
29 | RootJoint = RootPart["RootJoint"] | |
30 | Neck = Torso["Neck"] | |
31 | RightShoulder = Torso["Right Shoulder"] | |
32 | LeftShoulder = Torso["Left Shoulder"] | |
33 | RightHip = Torso["Right Hip"] | |
34 | LeftHip = Torso["Left Hip"] | |
35 | local sick = Instance.new("Sound",Character) | |
36 | sick.SoundId = "rbxassetid://2065467147" | |
37 | sick.Looped = true | |
38 | sick.Pitch = 1 | |
39 | sick.Volume = 9999999999999 | |
40 | sick:Play(2065467147) | |
41 | ||
42 | IT = Instance.new | |
43 | CF = CFrame.new | |
44 | VT = Vector3.new | |
45 | RAD = math.rad | |
46 | C3 = Color3.new | |
47 | UD2 = UDim2.new | |
48 | BRICKC = BrickColor.new | |
49 | ANGLES = CFrame.Angles | |
50 | EULER = CFrame.fromEulerAnglesXYZ | |
51 | COS = math.cos | |
52 | ACOS = math.acos | |
53 | SIN = math.sin | |
54 | ASIN = math.asin | |
55 | ABS = math.abs | |
56 | MRANDOM = math.random | |
57 | FLOOR = math.floor | |
58 | ||
59 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
60 | local NEWMESH = IT(MESH) | |
61 | if MESH == "SpecialMesh" then | |
62 | NEWMESH.MeshType = MESHTYPE | |
63 | if MESHID ~= "nil" and MESHID ~= "" then | |
64 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
65 | end | |
66 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
67 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
68 | end | |
69 | end | |
70 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
71 | NEWMESH.Scale = SCALE | |
72 | NEWMESH.Parent = PARENT | |
73 | return NEWMESH | |
74 | end | |
75 | ||
76 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
77 | local NEWPART = IT("Part") | |
78 | NEWPART.formFactor = FORMFACTOR | |
79 | NEWPART.Reflectance = REFLECTANCE | |
80 | NEWPART.Transparency = TRANSPARENCY | |
81 | NEWPART.CanCollide = false | |
82 | NEWPART.Locked = true | |
83 | NEWPART.Anchored = true | |
84 | if ANCHOR == false then | |
85 | NEWPART.Anchored = false | |
86 | end | |
87 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
88 | NEWPART.Name = NAME | |
89 | NEWPART.Size = SIZE | |
90 | NEWPART.Position = Torso.Position | |
91 | NEWPART.Material = MATERIAL | |
92 | NEWPART:BreakJoints() | |
93 | NEWPART.Parent = PARENT | |
94 | return NEWPART | |
95 | end | |
96 | ||
97 | --//=================================\\ | |
98 | --|| CUSTOMIZATION | |
99 | --\\=================================// | |
100 | ||
101 | Player_Size = 1 --Size of the player. | |
102 | Animation_Speed = 3 | |
103 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
104 | ||
105 | local Speed = 16 | |
106 | local Effects2 = {} | |
107 | ||
108 | --//=================================\\ | |
109 | --|| END OF CUSTOMIZATION | |
110 | --\\=================================// | |
111 | ||
112 | local function weldBetween(a, b) | |
113 | local weldd = Instance.new("ManualWeld") | |
114 | weldd.Part0 = a | |
115 | weldd.Part1 = b | |
116 | weldd.C0 = CFrame.new() | |
117 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
118 | weldd.Parent = a | |
119 | return weldd | |
120 | end | |
121 | ||
122 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
123 | local acs = Instance.new("Part") | |
124 | acs.CanCollide = false | |
125 | acs.Anchored = false | |
126 | acs.Size = Vector3.new(0,0,0) | |
127 | acs.CFrame = attachmentpart.CFrame | |
128 | acs.Parent = Character | |
129 | acs.BrickColor = color | |
130 | local meshs = Instance.new("SpecialMesh") | |
131 | meshs.MeshId = mesh | |
132 | meshs.TextureId = texture | |
133 | meshs.Parent = acs | |
134 | meshs.Scale = scale | |
135 | meshs.Offset = offset | |
136 | weldBetween(attachmentpart,acs) | |
137 | end | |
138 | ||
139 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
140 | if TYPE == "Gem" then | |
141 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
142 | acs.Anchored = false | |
143 | acs.CanCollide = false | |
144 | acs.CFrame = PART.CFrame | |
145 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
146 | weldBetween(PART,acs) | |
147 | elseif TYPE == "Skull" then | |
148 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
149 | acs.Anchored = false | |
150 | acs.CanCollide = false | |
151 | acs.CFrame = PART.CFrame | |
152 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
153 | weldBetween(PART,acs) | |
154 | elseif TYPE == "Eye" then | |
155 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
156 | acs.Anchored = false | |
157 | acs.CanCollide = false | |
158 | acs.CFrame = PART.CFrame | |
159 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
160 | weldBetween(PART,acs) | |
161 | end | |
162 | end | |
163 | ||
164 | --//=================================\\ | |
165 | --|| USEFUL VALUES | |
166 | --\\=================================// | |
167 | ||
168 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
169 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
170 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
171 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
172 | local CHANGEDEFENSE = 0 | |
173 | local CHANGEDAMAGE = 0 | |
174 | local CHANGEMOVEMENT = 0 | |
175 | local ANIM = "Idle" | |
176 | local ATTACK = false | |
177 | local EQUIPPED = false | |
178 | local HOLD = false | |
179 | local COMBO = 1 | |
180 | local Rooted = false | |
181 | local SINE = 0 | |
182 | local KEYHOLD = false | |
183 | local CHANGE = 2 / Animation_Speed | |
184 | local WALKINGANIM = false | |
185 | local WALK = 0 | |
186 | local VALUE1 = false | |
187 | local HITFLOOR = nil | |
188 | local VALUE2 = false | |
189 | local ROBLOXIDLEANIMATION = IT("Animation") | |
190 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
191 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
192 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
193 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
194 | WEAPONGUI.Name = "Weapon GUI" | |
195 | local Weapon = IT("Model") | |
196 | Weapon.Name = "Adds" | |
197 | local Delete = IT("Model",Character) | |
198 | Delete.Name = "Banlist" | |
199 | local Effects = IT("Folder", Weapon) | |
200 | Effects.Name = "Effects" | |
201 | local ANIMATOR = Humanoid.Animator | |
202 | local ANIMATE = Character.Animate | |
203 | local HITPLAYERSOUNDS = {--[["1", "1", "1", "1", "1", "1"--]]"1", "1", "1", "1", "1", "1"} | |
204 | local HITARMORSOUNDS = {"1", "1", "1", "1", "1"} | |
205 | local HITWEAPONSOUNDS = {"1", "1", "1", "1", "1"} | |
206 | local HITBLOCKSOUNDS = {"1", "1"} | |
207 | local UNANCHOR = true | |
208 | ||
209 | local SKILLTEXTCOLOR = C3(0,0,0) | |
210 | ||
211 | --//=================================\\ | |
212 | --\\=================================// | |
213 | ||
214 | ||
215 | --//=================================\\ | |
216 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
217 | --\\=================================// | |
218 | ||
219 | ArtificialHB = Instance.new("BindableEvent", script) | |
220 | ArtificialHB.Name = "ArtificialHB" | |
221 | ||
222 | script:WaitForChild("ArtificialHB") | |
223 | ||
224 | frame = Frame_Speed | |
225 | tf = 0 | |
226 | allowframeloss = false | |
227 | tossremainder = false | |
228 | lastframe = tick() | |
229 | script.ArtificialHB:Fire() | |
230 | ||
231 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
232 | tf = tf + s | |
233 | if tf >= frame then | |
234 | if allowframeloss then | |
235 | script.ArtificialHB:Fire() | |
236 | lastframe = tick() | |
237 | else | |
238 | for i = 1, math.floor(tf / frame) do | |
239 | script.ArtificialHB:Fire() | |
240 | end | |
241 | lastframe = tick() | |
242 | end | |
243 | if tossremainder then | |
244 | tf = 0 | |
245 | else | |
246 | tf = tf - frame * math.floor(tf / frame) | |
247 | end | |
248 | end | |
249 | end) | |
250 | ||
251 | --//=================================\\ | |
252 | --\\=================================// | |
253 | ||
254 | ||
255 | ||
256 | ||
257 | ||
258 | --//=================================\\ | |
259 | --|| SOME FUNCTIONS | |
260 | --\\=================================// | |
261 | ||
262 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
263 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
264 | end | |
265 | ||
266 | function PositiveAngle(NUMBER) | |
267 | if NUMBER >= 0 then | |
268 | NUMBER = 0 | |
269 | end | |
270 | return NUMBER | |
271 | end | |
272 | ||
273 | function NegativeAngle(NUMBER) | |
274 | if NUMBER <= 0 then | |
275 | NUMBER = 0 | |
276 | end | |
277 | return NUMBER | |
278 | end | |
279 | ||
280 | function Swait(NUMBER) | |
281 | if NUMBER == 0 or NUMBER == nil then | |
282 | ArtificialHB.Event:wait() | |
283 | else | |
284 | for i = 1, NUMBER do | |
285 | ArtificialHB.Event:wait() | |
286 | end | |
287 | end | |
288 | end | |
289 | ||
290 | function QuaternionFromCFrame(cf) | |
291 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
292 | local trace = m00 + m11 + m22 | |
293 | if trace > 0 then | |
294 | local s = math.sqrt(1 + trace) | |
295 | local recip = 0.5 / s | |
296 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
297 | else | |
298 | local i = 0 | |
299 | if m11 > m00 then | |
300 | i = 1 | |
301 | end | |
302 | if m22 > (i == 0 and m00 or m11) then | |
303 | i = 2 | |
304 | end | |
305 | if i == 0 then | |
306 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
307 | local recip = 0.5 / s | |
308 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
309 | elseif i == 1 then | |
310 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
311 | local recip = 0.5 / s | |
312 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
313 | elseif i == 2 then | |
314 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
315 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
316 | end | |
317 | end | |
318 | end | |
319 | ||
320 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
321 | local xs, ys, zs = x + x, y + y, z + z | |
322 | local wx, wy, wz = w * xs, w * ys, w * zs | |
323 | local xx = x * xs | |
324 | local xy = x * ys | |
325 | local xz = x * zs | |
326 | local yy = y * ys | |
327 | local yz = y * zs | |
328 | local zz = z * zs | |
329 | 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)) | |
330 | end | |
331 | ||
332 | function QuaternionSlerp(a, b, t) | |
333 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
334 | local startInterp, finishInterp; | |
335 | if cosTheta >= 0.0001 then | |
336 | if (1 - cosTheta) > 0.0001 then | |
337 | local theta = ACOS(cosTheta) | |
338 | local invSinTheta = 1 / SIN(theta) | |
339 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
340 | finishInterp = SIN(t * theta) * invSinTheta | |
341 | else | |
342 | startInterp = 1 - t | |
343 | finishInterp = t | |
344 | end | |
345 | else | |
346 | if (1 + cosTheta) > 0.0001 then | |
347 | local theta = ACOS(-cosTheta) | |
348 | local invSinTheta = 1 / SIN(theta) | |
349 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
350 | finishInterp = SIN(t * theta) * invSinTheta | |
351 | else | |
352 | startInterp = t - 1 | |
353 | finishInterp = t | |
354 | end | |
355 | end | |
356 | 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 | |
357 | end | |
358 | ||
359 | function Clerp(a, b, t) | |
360 | local qa = {QuaternionFromCFrame(a)} | |
361 | local qb = {QuaternionFromCFrame(b)} | |
362 | local ax, ay, az = a.x, a.y, a.z | |
363 | local bx, by, bz = b.x, b.y, b.z | |
364 | local _t = 1 - t | |
365 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
366 | end | |
367 | ||
368 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
369 | local frame = IT("Frame") | |
370 | frame.BackgroundTransparency = TRANSPARENCY | |
371 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
372 | frame.Position = POSITION | |
373 | frame.Size = SIZE | |
374 | frame.BackgroundColor3 = COLOR | |
375 | frame.BorderColor3 = BORDERCOLOR | |
376 | frame.Name = NAME | |
377 | frame.Parent = PARENT | |
378 | return frame | |
379 | end | |
380 | ||
381 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
382 | local label = IT("TextLabel") | |
383 | label.BackgroundTransparency = 1 | |
384 | label.Size = UD2(1, 0, 1, 0) | |
385 | label.Position = UD2(0, 0, 0, 0) | |
386 | label.TextColor3 = TEXTCOLOR | |
387 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
388 | label.TextTransparency = TRANSPARENCY | |
389 | label.FontSize = TEXTFONTSIZE | |
390 | label.Font = TEXTFONT | |
391 | label.BorderSizePixel = BORDERSIZEPIXEL | |
392 | label.TextScaled = false | |
393 | label.Text = TEXT | |
394 | label.Name = NAME | |
395 | label.Parent = PARENT | |
396 | return label | |
397 | end | |
398 | ||
399 | function NoOutlines(PART) | |
400 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
401 | end | |
402 | ||
403 | ||
404 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
405 | local NEWWELD = IT(TYPE) | |
406 | NEWWELD.Part0 = PART0 | |
407 | NEWWELD.Part1 = PART1 | |
408 | NEWWELD.C0 = C0 | |
409 | NEWWELD.C1 = C1 | |
410 | NEWWELD.Parent = PARENT | |
411 | return NEWWELD | |
412 | end | |
413 | ||
414 | local SOUND = IT("Sound",nil) | |
415 | ||
416 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
417 | local NEWSOUND = nil | |
418 | coroutine.resume(coroutine.create(function() | |
419 | NEWSOUND = SOUND:Clone() | |
420 | NEWSOUND.Parent = PARENT | |
421 | NEWSOUND.Volume = VOLUME | |
422 | NEWSOUND.Pitch = PITCH | |
423 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
424 | Swait() | |
425 | NEWSOUND:play() | |
426 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
427 | end)) | |
428 | return NEWSOUND | |
429 | end | |
430 | ||
431 | function CFrameFromTopBack(at, top, back) | |
432 | local right = top:Cross(back) | |
433 | 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) | |
434 | end | |
435 | ||
436 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
437 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
438 | local mesh = IT("SpecialMesh",wave) | |
439 | mesh.MeshType = "FileMesh" | |
440 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
441 | mesh.Scale = SIZE | |
442 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
443 | local cR=255 | |
444 | local cG=0 | |
445 | local cB=0 | |
446 | local flg5=1 local omgidk=1 | |
447 | local add=15 | |
448 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
449 | if omgidk>10000 then omgidk=0 end | |
450 | omgidk=omgidk+1 | |
451 | if cR>=255 then flg5=1 end | |
452 | if cG>=255 then flg5=2 end | |
453 | if cB>=255 then flg5=3 end | |
454 | if flg5==1 then cR=cR-add cG=cG+add end | |
455 | if flg5==2 then cG=cG-add cB=cB+add end | |
456 | if flg5==3 then cB=cB-add cR=cR+add end | |
457 | color=Color3.fromRGB(cR,cG,cB) | |
458 | mesh.VertexColor = VT(cR,cG,cB) | |
459 | end) | |
460 | wave.CFrame = CFRAME | |
461 | coroutine.resume(coroutine.create(function(PART) | |
462 | for i = 1, WAIT do | |
463 | Swait() | |
464 | mesh.Scale = mesh.Scale + GROW | |
465 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
466 | if DOESROT == true then | |
467 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
468 | end | |
469 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
470 | if wave.Transparency > 0.99 then | |
471 | wave:remove() | |
472 | end | |
473 | end | |
474 | end)) | |
475 | end | |
476 | ||
477 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
478 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
479 | local mesh = IT("SpecialMesh",wave) | |
480 | mesh.MeshType = "Sphere" | |
481 | mesh.Scale = SIZE | |
482 | mesh.Offset = VT(0,0,0) | |
483 | wave.CFrame = CFRAME | |
484 | coroutine.resume(coroutine.create(function(PART) | |
485 | for i = 1, WAIT do | |
486 | Swait() | |
487 | mesh.Scale = mesh.Scale + GROW | |
488 | wave.Transparency = wave.Transparency + (1/WAIT) | |
489 | if wave.Transparency > 0.99 then | |
490 | wave:remove() | |
491 | end | |
492 | end | |
493 | end)) | |
494 | end | |
495 | ||
496 | function MakeForm(PART,TYPE) | |
497 | if TYPE == "Cyl" then | |
498 | local MSH = IT("CylinderMesh",PART) | |
499 | elseif TYPE == "Ball" then | |
500 | local MSH = IT("SpecialMesh",PART) | |
501 | MSH.MeshType = "Sphere" | |
502 | elseif TYPE == "Wedge" then | |
503 | local MSH = IT("SpecialMesh",PART) | |
504 | MSH.MeshType = "Wedge" | |
505 | end | |
506 | end | |
507 | ||
508 | function CheckTableForString(Table, String) | |
509 | for i, v in pairs(Table) do | |
510 | if string.find(string.lower(String), string.lower(v)) then | |
511 | return true | |
512 | end | |
513 | end | |
514 | return false | |
515 | end | |
516 | ||
517 | function CheckIntangible(Hit) | |
518 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
519 | if Hit and Hit.Parent then | |
520 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
521 | return true | |
522 | end | |
523 | end | |
524 | return false | |
525 | end | |
526 | ||
527 | Debris = game:GetService("Debris") | |
528 | ||
529 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
530 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
531 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
532 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
533 | if RayHit and CheckIntangible(RayHit) then | |
534 | if DelayIfHit then | |
535 | wait() | |
536 | end | |
537 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
538 | end | |
539 | return RayHit, RayPos, RayNormal | |
540 | end | |
541 | ||
542 | function turnto(position) | |
543 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
544 | end | |
545 | ||
546 | --//=================================\\ | |
547 | --|| WEAPON CREATION | |
548 | --\\=================================// | |
549 | ||
550 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
551 | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(30,30,30), VT(0, 98, -10)) | |
552 | local cR=255 | |
553 | local cG=0 | |
554 | local cB=0 | |
555 | local flg5=1 local omgidk=1 | |
556 | local add=15 | |
557 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
558 | if omgidk>10000 then omgidk=0 end | |
559 | omgidk=omgidk+1 | |
560 | if cR>=255 then flg5=1 end | |
561 | if cG>=255 then flg5=2 end | |
562 | if cB>=255 then flg5=3 end | |
563 | if flg5==1 then cR=cR-add cG=cG+add end | |
564 | if flg5==2 then cG=cG-add cB=cB+add end | |
565 | if flg5==3 then cB=cB-add cR=cR+add end | |
566 | color=Color3.fromRGB(cR,cG,cB) | |
567 | HandleMesh.VertexColor = VT(cR,cG,cB) | |
568 | end) | |
569 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
570 | - | m = game.Players.Beeish --The name of the guy who was using the script. |
570 | + | m = game.Players.SNEAKY_Dodge --The name of the guy who was using the script. |
571 | char = m.Character | |
572 | local txt = Instance.new("BillboardGui", char) | |
573 | txt.Adornee = char.Head | |
574 | txt.Name = "_status" | |
575 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
576 | txt.StudsOffset = Vector3.new(-9, 30, 0) | |
577 | local text = Instance.new("TextLabel", txt) | |
578 | text.Size = UDim2.new(10, 0, 7, 0) | |
579 | text.FontSize = "Size24" | |
580 | text.TextScaled = true | |
581 | text.TextTransparency = 0 | |
582 | text.BackgroundTransparency = 1 | |
583 | text.TextTransparency = 0 | |
584 | text.TextStrokeTransparency = 0 | |
585 | text.Font = "Bodoni" | |
586 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
587 | v = Instance.new("Part") | |
588 | v.Name = "ColorBrick" | |
589 | v.Parent = m.Character | |
590 | v.FormFactor = "Symmetric" | |
591 | v.Anchored = true | |
592 | v.CanCollide = false | |
593 | v.BottomSurface = "Smooth" | |
594 | v.TopSurface = "Smooth" | |
595 | v.Size = Vector3.new(10, 5, 3) | |
596 | v.Transparency = 1 | |
597 | v.CFrame = char.Torso.CFrame | |
598 | v.BrickColor = BrickColor.new("Really black") | |
599 | v.Transparency = 1 | |
600 | v.Shape = "Block" | |
601 | spawn(function() | |
602 | local TweenService = game:GetService("TweenService") | |
603 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
604 | local Int = 0 | |
605 | while wait(0.5) do | |
606 | if Int == #Colours then Int = 0 end | |
607 | Int = Int+1 | |
608 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
609 | end | |
610 | end) | |
611 | text.Text = "Beeish" | |
612 | for _, c in pairs(Weapon:GetChildren()) do | |
613 | if c.ClassName == "Part" then | |
614 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
615 | end | |
616 | end | |
617 | ||
618 | Weapon.Parent = Character | |
619 | ||
620 | Humanoid.Died:connect(function() | |
621 | ATTACK = true | |
622 | end) | |
623 | ||
624 | 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") | |
625 | 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") | |
626 | ||
627 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1") | |
628 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2") | |
629 | ||
630 | --//=================================\\ | |
631 | --|| DAMAGING | |
632 | --\\=================================// | |
633 | ||
634 | function BAN(CHARACTER) | |
635 | local BANFOLDER = IT("Folder",Effects) | |
636 | local naeeym2 = Instance.new("BillboardGui",BANFOLDER) | |
637 | naeeym2.AlwaysOnTop = false | |
638 | naeeym2.Size = UDim2.new(5,35,2,35) | |
639 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
640 | naeeym2.Name = "AAAA" | |
641 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
642 | tecks2.BackgroundTransparency = 1 | |
643 | tecks2.TextScaled = true | |
644 | tecks2.BorderSizePixel = 0 | |
645 | tecks2.Text = "BANNED" | |
646 | tecks2.Font = "Code" | |
647 | tecks2.TextSize = 30 | |
648 | tecks2.TextStrokeTransparency = 1 | |
649 | tecks2.TextColor3 = Color3.new(1,0,0) | |
650 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
651 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
652 | tecks2.Parent = naeeym2 | |
653 | for i,v in ipairs(CHARACTER:GetChildren()) do | |
654 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
655 | if v.Name ~= "HumanoidRootPart" then | |
656 | local BOD = v:Clone() | |
657 | BOD.CanCollide = false | |
658 | BOD.Anchored = true | |
659 | BOD.CFrame = v.CFrame | |
660 | BOD.Parent = BANFOLDER | |
661 | BOD.Material = "Neon" | |
662 | BOD.Color = C3(1,0,0) | |
663 | if BOD:FindFirstChildOfClass("Decal") then | |
664 | BOD:FindFirstChildOfClass("Decal"):remove() | |
665 | end | |
666 | if BOD.Name == "Head" then | |
667 | naeeym2.Adornee = BOD | |
668 | end | |
669 | if BOD.ClassName == "MeshPart" then | |
670 | BOD.TextureID = "" | |
671 | end | |
672 | end | |
673 | end | |
674 | end | |
675 | CHARACTER:remove() | |
676 | coroutine.resume(coroutine.create(function() | |
677 | for i = 1, 50 do | |
678 | Swait() | |
679 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
680 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
681 | v.Transparency = 1 | |
682 | end | |
683 | naeeym2.Enabled = false | |
684 | end | |
685 | Swait() | |
686 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
687 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
688 | v.Transparency = 0 | |
689 | end | |
690 | naeeym2.Enabled = true | |
691 | end | |
692 | end | |
693 | BANFOLDER:remove() | |
694 | end)) | |
695 | end | |
696 | ||
697 | function BANNEAREST(POS,RANGE) | |
698 | for i,v in ipairs(workspace:GetChildren()) do | |
699 | local body = v:GetChildren() | |
700 | for part = 1, #body do | |
701 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
702 | if(body[part].Position - POS).Magnitude < RANGE then | |
703 | if v:FindFirstChildOfClass("Humanoid") then | |
704 | BAN(v) | |
705 | if game.Players:FindFirstChild(v.Name) then | |
706 | local Value = IT("BoolValue",Delete) | |
707 | Value.Name = v.Name | |
708 | end | |
709 | end | |
710 | end | |
711 | end | |
712 | end | |
713 | end | |
714 | end | |
715 | ||
716 | --//=================================\\ | |
717 | --|| ATTACK FUNCTIONS AND STUFF | |
718 | --\\=================================// | |
719 | ||
720 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
721 | if FLOOR ~= nil then | |
722 | coroutine.resume(coroutine.create(function() | |
723 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
724 | PART.CFrame = CF(POSITION) | |
725 | for i = 1, 45 do | |
726 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
727 | RingPiece.Material = FLOOR.Material | |
728 | RingPiece.Color = FLOOR.Color | |
729 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*25, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
730 | Debris:AddItem(RingPiece,SWAIT/100) | |
731 | end | |
732 | PART:remove() | |
733 | end)) | |
734 | end | |
735 | end | |
736 | ||
737 | function CreateDebreeRingBig(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
738 | if FLOOR ~= nil then | |
739 | coroutine.resume(coroutine.create(function() | |
740 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
741 | PART.CFrame = CF(POSITION) | |
742 | for i = 1, 45 do | |
743 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
744 | RingPiece.Material = FLOOR.Material | |
745 | RingPiece.Color = FLOOR.Color | |
746 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*60, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
747 | Debris:AddItem(RingPiece,SWAIT/100) | |
748 | end | |
749 | PART:remove() | |
750 | end)) | |
751 | end | |
752 | end | |
753 | ||
754 | ||
755 | function BANSLAM() | |
756 | ATTACK = true | |
757 | Rooted = false | |
758 | repeat | |
759 | for i=0, 0.2, 0.1 / Animation_Speed do | |
760 | Swait() | |
761 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed) | |
762 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
763 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
766 | 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(25)), 2 / Animation_Speed) | |
767 | 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(25)), 2 / Animation_Speed) | |
768 | end | |
769 | for i=0, 0.08, 0.1 / Animation_Speed do | |
770 | Swait() | |
771 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
772 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
773 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
774 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
775 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
776 | 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(25)), 0.5 / Animation_Speed) | |
777 | 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(25)), 0.5 / Animation_Speed) | |
778 | end | |
779 | for i=0, 0.08, 0.1 / Animation_Speed do | |
780 | Swait() | |
781 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
782 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
783 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
784 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
785 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
786 | 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(25)), 0.5 / Animation_Speed) | |
787 | 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(25)), 0.5 / Animation_Speed) | |
788 | end | |
789 | CreateSound("1", Effects, 10, 0.9) | |
790 | BANNEAREST(RootPart.CFrame*CF(0,0,-200).p,125) | |
791 | if HITFLOOR ~= nil then | |
792 | CreateSound("289842971", Workspace, 5, 1) | |
793 | CreateSound("289842971", Workspace, 5, 1) | |
794 | CreateSound("289842971", Workspace, 5, 1) | |
795 | CreateSound("289842971", Workspace, 5, 1) | |
796 | CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(50,-0,-200).p,5,VT(28,28,28),35) | |
797 | end | |
798 | CreateWave(VT(125,0,125),45,RootPart.CFrame*CF(50,-0,-200),true,2,"Really red",VT(0,3,0)) | |
799 | CreateWave(VT(125,0,125),45,RootPart.CFrame*CF(50,-0,-200),true,-2,"Really red",VT(0,3,0)) | |
800 | for i=0, 0.1, 0.1 / Animation_Speed do | |
801 | Swait() | |
802 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
803 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
804 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
805 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
806 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
807 | 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(25)), 0.5 / Animation_Speed) | |
808 | 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(25)), 0.5 / Animation_Speed) | |
809 | end | |
810 | if HOLD == true then | |
811 | for i=0, 0.08, 0.1 / Animation_Speed do | |
812 | Swait() | |
813 | if HOLD == false then | |
814 | break | |
815 | end | |
816 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
817 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
818 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
819 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
820 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
821 | 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(25)), 0.5 / Animation_Speed) | |
822 | 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(25)), 0.5 / Animation_Speed) | |
823 | end | |
824 | end | |
825 | until HOLD == false | |
826 | for i=0, 1, 0.1 / Animation_Speed do | |
827 | Swait() | |
828 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
829 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
830 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
831 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
832 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
833 | 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(25)), 0.5 / Animation_Speed) | |
834 | 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(25)), 0.5 / Animation_Speed) | |
835 | end | |
836 | for i=0, 5, 0.1 / Animation_Speed do | |
837 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
838 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
839 | 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) | |
840 | 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) | |
841 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
842 | 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) | |
843 | 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) | |
844 | end | |
845 | ATTACK = false | |
846 | Rooted = false | |
847 | end | |
848 | ||
849 | function ULTRABANSLAM() | |
850 | ATTACK = true | |
851 | Rooted = false | |
852 | repeat | |
853 | CreateSound("907329532", Workspace, 10, 1) | |
854 | wait(2.5) | |
855 | for i=0, 3, 3 / Animation_Speed do | |
856 | Swait() | |
857 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed) | |
858 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
859 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
860 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
861 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
862 | 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(25)), 2 / Animation_Speed) | |
863 | 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(25)), 2 / Animation_Speed) | |
864 | end | |
865 | for i=0, 3, 3 / Animation_Speed do | |
866 | Swait() | |
867 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
868 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
869 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
870 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
871 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
872 | 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(25)), 0.5 / Animation_Speed) | |
873 | 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(25)), 0.5 / Animation_Speed) | |
874 | end | |
875 | for i=0, 3, 3 / Animation_Speed do | |
876 | Swait() | |
877 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
878 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
879 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
880 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
881 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
882 | 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(25)), 0.5 / Animation_Speed) | |
883 | 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(25)), 0.5 / Animation_Speed) | |
884 | end | |
885 | CreateSound("147722910", Effects, 10, 0.9) | |
886 | BANNEAREST(RootPart.CFrame*CF(0,0,-200).p,300) | |
887 | if HITFLOOR ~= nil then | |
888 | CreateSound("289842971", Workspace, 5, 1) | |
889 | CreateSound("289842971", Workspace, 5, 1) | |
890 | CreateSound("289842971", Workspace, 5, 1) | |
891 | CreateSound("289842971", Workspace, 5, 1) | |
892 | CreateDebreeRingBig(HITFLOOR,RootPart.CFrame*CF(50,-0,-200).p,5,VT(50,50,50),35) | |
893 | end | |
894 | CreateWave(VT(300,0,300),45,RootPart.CFrame*CF(50,-0,-200),true,2,"Really red",VT(0,3,0)) | |
895 | CreateWave(VT(300,0,300),45,RootPart.CFrame*CF(50,-0,-200),true,-2,"Really red",VT(0,3,0)) | |
896 | for i=0, 0.1, 0.1 / Animation_Speed do | |
897 | Swait() | |
898 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
899 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
900 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
901 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
902 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
903 | 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(25)), 0.5 / Animation_Speed) | |
904 | 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(25)), 0.5 / Animation_Speed) | |
905 | end | |
906 | if HOLD == true then | |
907 | for i=0, 3, 3 / Animation_Speed do | |
908 | Swait() | |
909 | if HOLD == false then | |
910 | break | |
911 | end | |
912 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
913 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
914 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
915 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
916 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
917 | 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(25)), 0.5 / Animation_Speed) | |
918 | 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(25)), 0.5 / Animation_Speed) | |
919 | end | |
920 | end | |
921 | until HOLD == false | |
922 | for i=0, 3, 3 / Animation_Speed do | |
923 | Swait() | |
924 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed) | |
925 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed) | |
926 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
927 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
928 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
929 | 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(25)), 0.5 / Animation_Speed) | |
930 | 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(25)), 0.5 / Animation_Speed) | |
931 | end | |
932 | for i=0, 5, 3 / Animation_Speed do | |
933 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
934 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
935 | 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) | |
936 | 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) | |
937 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
938 | 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) | |
939 | 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) | |
940 | end | |
941 | ATTACK = false | |
942 | Rooted = false | |
943 | end | |
944 | ||
945 | ||
946 | ||
947 | --//=================================\\ | |
948 | --|| ASSIGN THINGS TO KEYS | |
949 | --\\=================================// | |
950 | ||
951 | function MouseDown(Mouse) | |
952 | HOLD = true | |
953 | if ATTACK == false then | |
954 | BANSLAM() | |
955 | end | |
956 | end | |
957 | ||
958 | function MouseUp(Mouse) | |
959 | HOLD = false | |
960 | end | |
961 | ||
962 | function KeyDown(Key) | |
963 | KEYHOLD = true | |
964 | if Key == "b" and ATTACK == false then | |
965 | local pos = RootPart.Position | |
966 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos) | |
967 | CreateSound("769380905", Torso, 10, 1) | |
968 | end | |
969 | ||
970 | if Key == "z" and ATTACK == false then | |
971 | ULTRABANSLAM() | |
972 | end | |
973 | ||
974 | if Key == "t" then | |
975 | CreateSound("1058417264", Head, 10, 1) | |
976 | Delete:ClearAllChildren() | |
977 | ||
978 | end | |
979 | end | |
980 | ||
981 | function KeyUp(Key) | |
982 | KEYHOLD = false | |
983 | ||
984 | Mouse.Button1Down:connect(function(NEWKEY) | |
985 | MouseDown(NEWKEY) | |
986 | end) | |
987 | Mouse.Button1Up:connect(function(NEWKEY) | |
988 | MouseUp(NEWKEY) | |
989 | end) | |
990 | Mouse.KeyDown:connect(function(NEWKEY) | |
991 | KeyDown(NEWKEY) | |
992 | end) | |
993 | Mouse.KeyUp:connect(function(NEWKEY) | |
994 | KeyUp(NEWKEY) | |
995 | end) | |
996 | end | |
997 | ||
998 | --//=================================\\ | |
999 | --\\=================================// | |
1000 | ||
1001 | ||
1002 | function unanchor() | |
1003 | if UNANCHOR == true then | |
1004 | g = Character:GetChildren() | |
1005 | for i = 1, #g do | |
1006 | if g[i].ClassName == "Part" then | |
1007 | g[i].Anchored = false | |
1008 | end | |
1009 | end | |
1010 | end | |
1011 | end | |
1012 | ||
1013 | ||
1014 | --//=================================\\ | |
1015 | --|| WRAP THE WHOLE SCRIPT UP | |
1016 | --\\=================================// | |
1017 | ||
1018 | Humanoid.Changed:connect(function(Jump) | |
1019 | if Jump == "Jump" and (Disable_Jump == true) then | |
1020 | Humanoid.Jump = false | |
1021 | end | |
1022 | end) | |
1023 | ||
1024 | Speed = 23 | |
1025 | ||
1026 | while true do | |
1027 | Swait() | |
1028 | ANIMATE.Parent = nil | |
1029 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1030 | IDLEANIMATION:Play() | |
1031 | SINE = SINE + CHANGE | |
1032 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1033 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1034 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1035 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1036 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1037 | if ATTACK == false then | |
1038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1039 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1040 | end | |
1041 | if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then | |
1042 | 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 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1043 | 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) | |
1044 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1045 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1046 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then | |
1047 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1048 | 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) | |
1049 | 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) | |
1050 | 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) | |
1051 | end | |
1052 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1053 | ANIM = "Jump" | |
1054 | if ATTACK == false then | |
1055 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1056 | 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) | |
1057 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1058 | 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) | |
1059 | 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) | |
1060 | end | |
1061 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1062 | ANIM = "Fall" | |
1063 | if ATTACK == false then | |
1064 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1065 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1066 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1067 | 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) | |
1068 | 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) | |
1069 | end | |
1070 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1071 | ANIM = "Idle" | |
1072 | if ATTACK == false then | |
1073 | 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) | |
1074 | 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) | |
1075 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1076 | 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) | |
1077 | 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) | |
1078 | end | |
1079 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1080 | ANIM = "Walk" | |
1081 | WALK = WALK + 1 / Animation_Speed | |
1082 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1083 | WALK = 0 | |
1084 | if WALKINGANIM == true then | |
1085 | WALKINGANIM = false | |
1086 | elseif WALKINGANIM == false then | |
1087 | WALKINGANIM = true | |
1088 | end | |
1089 | end | |
1090 | --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) | |
1091 | --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) | |
1092 | if ATTACK == false then | |
1093 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1094 | 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) | |
1095 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1096 | 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) | |
1097 | 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) | |
1098 | end | |
1099 | end | |
1100 | unanchor() | |
1101 | Humanoid.MaxHealth = "inf" | |
1102 | Humanoid.Health = "inf" | |
1103 | if Rooted == false then | |
1104 | Disable_Jump = false | |
1105 | Humanoid.WalkSpeed = Speed | |
1106 | elseif Rooted == true then | |
1107 | Disable_Jump = true | |
1108 | Humanoid.WalkSpeed = 0 | |
1109 | end | |
1110 | local MATHS = {"0","1"} | |
1111 | 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)] | |
1112 | Humanoid.PlatformStand = false | |
1113 | local GAME = game.Players:GetChildren() | |
1114 | for PLAYER = 1, #GAME do | |
1115 | local PLAY = GAME[PLAYER] | |
1116 | if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then | |
1117 | PLAY.Character:remove() | |
1118 | end | |
1119 | end | |
1120 | end | |
1121 | ||
1122 | --//=================================\\ | |
1123 | --\\=================================// | |
1124 | ||
1125 | ||
1126 | ||
1127 | ||
1128 | ||
1129 | --//====================================================\\-- | |
1130 | --|| END OF SCRIPT | |
1131 | --\\====================================================//-- | |
1132 | ]==], owner.Character):WaitForChild 'ServerRemote'; |