Advertisement
Vintage-Furry

Ban

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