Advertisement
gdgrg

Untitled

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