Advertisement
Guest User

Untitled

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