daily pastebin goal
4%
SHARE
TWEET

Script builder Banoober

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