Nahul

S A M P L E. T E X T

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