Advertisement
Zach_script_stealer2

Ban hammer

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