Advertisement
Robloxian_Scripter

Ban hammer

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