Advertisement
Fogdoggy

Cat Hammer

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