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