Advertisement
doryna2281337

Untitled

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