Advertisement
Toastymctoast

Ban hammer

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