coolgoldboy166

man hammer

Dec 3rd, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.31 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  50. local NEWMESH = IT(MESH)
  51. if MESH == "SpecialMesh" then
  52. NEWMESH.MeshType = MESHTYPE
  53. if MESHID ~= "nil" and MESHID ~= "" then
  54. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  55. end
  56. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  57. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  58. end
  59. end
  60. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  61. NEWMESH.Scale = SCALE
  62. NEWMESH.Parent = PARENT
  63. return NEWMESH
  64. end
  65.  
  66. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  67. local NEWPART = IT("Part")
  68. NEWPART.formFactor = FORMFACTOR
  69. NEWPART.Reflectance = REFLECTANCE
  70. NEWPART.Transparency = TRANSPARENCY
  71. NEWPART.CanCollide = false
  72. NEWPART.Locked = true
  73. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  74. NEWPART.Name = NAME
  75. NEWPART.Size = SIZE
  76. NEWPART.Position = Torso.Position
  77. NEWPART.Material = MATERIAL
  78. NEWPART:BreakJoints()
  79. NEWPART.Parent = PARENT
  80. return NEWPART
  81. end
  82.  
  83.  
  84. --//=================================\\
  85. --|| CUSTOMIZATION
  86. --\\=================================//
  87.  
  88. Class_Name = "Template"
  89. Weapon_Name = "Add-ons"
  90.  
  91. Custom_Colors = {
  92. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  93. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  94.  
  95. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  96. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  97. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  98. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  99. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  100.  
  101. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  102. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  103. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  104. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  105. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  106. }
  107.  
  108.  
  109. Player_Size = 1 --Size of the player.
  110. Animation_Speed = 3
  111. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  112.  
  113. local Speed = 16
  114. local Effects2 = {}
  115.  
  116. --//=================================\\
  117. --|| END OF CUSTOMIZATION
  118. --\\=================================//
  119.  
  120. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  121. local NEWWELD = IT(TYPE)
  122. NEWWELD.Part0 = PART0
  123. NEWWELD.Part1 = PART1
  124. NEWWELD.C0 = C0
  125. NEWWELD.C1 = C1
  126. NEWWELD.Parent = PARENT
  127. return NEWWELD
  128. end
  129.  
  130. local function weldBetween(a, b)
  131. local weldd = Instance.new("ManualWeld")
  132. weldd.Part0 = a
  133. weldd.Part1 = b
  134. weldd.C0 = CFrame.new()
  135. weldd.C1 = b.CFrame:inverse() * a.CFrame
  136. weldd.Parent = a
  137. return weldd
  138. end
  139.  
  140. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  141. local acs = Instance.new("Part")
  142. acs.CanCollide = false
  143. acs.Anchored = false
  144. acs.Size = Vector3.new(0,0,0)
  145. acs.CFrame = attachmentpart.CFrame
  146. acs.Parent = Character
  147. acs.BrickColor = color
  148. local meshs = Instance.new("SpecialMesh")
  149. meshs.MeshId = mesh
  150. meshs.TextureId = texture
  151. meshs.Parent = acs
  152. meshs.Scale = scale
  153. meshs.Offset = offset
  154. weldBetween(attachmentpart,acs)
  155. end
  156.  
  157. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  158. if TYPE == "Gem" then
  159. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  160. acs.Anchored = false
  161. acs.CanCollide = false
  162. acs.CFrame = PART.CFrame
  163. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  164. weldBetween(PART,acs)
  165. elseif TYPE == "Skull" then
  166. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  167. acs.Anchored = false
  168. acs.CanCollide = false
  169. acs.CFrame = PART.CFrame
  170. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  171. weldBetween(PART,acs)
  172. elseif TYPE == "Eye" then
  173. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  174. acs.Anchored = false
  175. acs.CanCollide = false
  176. acs.CFrame = PART.CFrame
  177. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  178. weldBetween(PART,acs)
  179. end
  180. end
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  187. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  188. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  189. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  190. local CO1 = 0
  191. local CO2 = 0
  192. local CO3 = 0
  193. local CO4 = 0
  194. local CHANGEDEFENSE = 0
  195. local CHANGEDAMAGE = 0
  196. local CHANGEMOVEMENT = 0
  197. local ANIM = "Idle"
  198. local ATTACK = false
  199. local EQUIPPED = false
  200. local HOLD = false
  201. local COMBO = 1
  202. local LASTPOINT = nil
  203. local BLCF = nil
  204. local SCFR = nil
  205. local STAGGERHITANIM = false
  206. local STAGGERANIM = false
  207. local STUNANIM = false
  208. local CRITCHANCENUMBER = 0
  209. local IDLENUMBER = 0
  210. local DONUMBER = 0
  211. local HANDIDLE = false
  212. local SINE = 0
  213. local CHANGE = 2 / Animation_Speed
  214. local WALKINGANIM = false
  215. local WALK = 0
  216. local DISABLEJUMPING = false
  217. local HASBEENBLOCKED = false
  218. local STUNDELAYNUMBER = 0
  219. local MANADELAYNUMBER = 0
  220. local SECONDARYMANADELAYNUMBER = 0
  221. local ROBLOXIDLEANIMATION = IT("Animation")
  222. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  223. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  224. --ROBLOXIDLEANIMATION.Parent = Humanoid
  225. local WEAPONGUI = IT("ScreenGui", nil)
  226. WEAPONGUI.Name = "Weapon GUI"
  227. local WEAPONTOOL = IT("HopperBin", nil)
  228. WEAPONTOOL.Name = Weapon_Name
  229. local Weapon = IT("Model")
  230. Weapon.Name = Weapon_Name
  231. local Effects = IT("Folder", Weapon)
  232. Effects.Name = "Effects"
  233. local ANIMATOR = Humanoid.Animator
  234. local ANIMATE = Character.Animate
  235. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  236. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  237. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  238. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  239. local UNANCHOR = true
  240. local MAGICPARTICLE = "655109389"
  241.  
  242. --//=================================\\
  243. --\\=================================//
  244.  
  245. --//=================================\\
  246. --|| STATS
  247. --\\=================================//
  248.  
  249. if Character:FindFirstChild("Stats") ~= nil then
  250. Character:FindFirstChild("Stats").Parent = nil
  251. end
  252.  
  253. local Stats = IT("Folder", nil)
  254. Stats.Name = "Stats"
  255. local ChangeStat = IT("Folder", Stats)
  256. ChangeStat.Name = "ChangeStat"
  257. local Defense = IT("NumberValue", Stats)
  258. Defense.Name = "Defense"
  259. Defense.Value = 1
  260. local Movement = IT("NumberValue", Stats)
  261. Movement.Name = "Movement"
  262. Movement.Value = 1
  263. local Damage = IT("NumberValue", Stats)
  264. Damage.Name = "Damage"
  265. Damage.Value = 1
  266. local Mana = IT("NumberValue", Stats)
  267. Mana.Name = "Mana"
  268. Mana.Value = 0
  269. local SecondaryMana = IT("NumberValue", Stats)
  270. SecondaryMana.Name = "SecondaryMana"
  271. SecondaryMana.Value = 0
  272. local CanCrit = IT("BoolValue", Stats)
  273. CanCrit.Name = "CanCrit"
  274. CanCrit.Value = false
  275. local CritChance = IT("NumberValue", Stats)
  276. CritChance.Name = "CritChance"
  277. CritChance.Value = 20
  278. local CanPenetrateArmor = IT("BoolValue", Stats)
  279. CanPenetrateArmor.Name = "CanPenetrateArmor"
  280. CanPenetrateArmor.Value = false
  281. local AntiTeamKill = IT("BoolValue", Stats)
  282. AntiTeamKill.Name = "AntiTeamKill"
  283. AntiTeamKill.Value = false
  284. local Rooted = IT("BoolValue", Stats)
  285. Rooted.Name = "Rooted"
  286. Rooted.Value = false
  287. local Block = IT("BoolValue", Stats)
  288. Block.Name = "Block"
  289. Block.Value = false
  290. local RecentEnemy = IT("ObjectValue", Stats)
  291. RecentEnemy.Name = "RecentEnemy"
  292. RecentEnemy.Value = nil
  293. local StaggerHit = IT("BoolValue", Stats)
  294. StaggerHit.Name = "StaggerHit"
  295. StaggerHit.Value = false
  296. local Stagger = IT("BoolValue", Stats)
  297. Stagger.Name = "Stagger"
  298. Stagger.Value = false
  299. local Stun = IT("BoolValue", Stats)
  300. Stun.Name = "Stun"
  301. Stun.Value = false
  302. local StunValue = IT("NumberValue", Stats)
  303. StunValue.Name = "StunValue"
  304. StunValue.Value = 0
  305.  
  306.  
  307. --//=================================\\
  308. --\\=================================//
  309.  
  310.  
  311.  
  312.  
  313.  
  314. --//=================================\\
  315. --|| DEBUFFS / BUFFS
  316. --\\=================================//
  317.  
  318. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  319. DEFENSECHANGE1.Name = "ChangeDefense"
  320. DEFENSECHANGE1.Value = 0
  321.  
  322. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  323. MOVEMENTCHANGE1.Name = "ChangeMovement"
  324. MOVEMENTCHANGE1.Value = 0
  325.  
  326. --//=================================\\
  327. --\\=================================//
  328.  
  329.  
  330. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(2*Player_Size,2*Player_Size,4*Player_Size))
  331. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(-0.5 * Player_Size, -0.5 * Player_Size, -2 * Player_Size) * ANGLES(RAD(-90), RAD(180), RAD(0)), CF(0, 0, 0))
  332. local mmesh = Instance.new("SpecialMesh",HandlePart)
  333. mmesh.MeshType = "FileMesh"
  334. mmesh.MeshId = "rbxassetid://609960239"
  335. mmesh.TextureId = "rbxassetid://609960244"
  336.  
  337.  
  338. --//=================================\\
  339. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  340. --\\=================================//
  341.  
  342. ArtificialHB = Instance.new("BindableEvent", script)
  343. ArtificialHB.Name = "ArtificialHB"
  344.  
  345. script:WaitForChild("ArtificialHB")
  346.  
  347. frame = Frame_Speed
  348. tf = 0
  349. allowframeloss = false
  350. tossremainder = false
  351. lastframe = tick()
  352. script.ArtificialHB:Fire()
  353.  
  354. game:GetService("RunService").Heartbeat:connect(function(s, p)
  355. tf = tf + s
  356. if tf >= frame then
  357. if allowframeloss then
  358. script.ArtificialHB:Fire()
  359. lastframe = tick()
  360. else
  361. for i = 1, math.floor(tf / frame) do
  362. script.ArtificialHB:Fire()
  363. end
  364. lastframe = tick()
  365. end
  366. if tossremainder then
  367. tf = 0
  368. else
  369. tf = tf - frame * math.floor(tf / frame)
  370. end
  371. end
  372. end)
  373.  
  374. --//=================================\\
  375. --\\=================================//
  376.  
  377.  
  378.  
  379.  
  380.  
  381. --//=================================\\
  382. --|| SOME FUNCTIONS
  383. --\\=================================//
  384.  
  385. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  386. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  387. end
  388.  
  389. function PositiveAngle(NUMBER)
  390. if NUMBER >= 0 then
  391. NUMBER = 0
  392. end
  393. return NUMBER
  394. end
  395.  
  396. function NegativeAngle(NUMBER)
  397. if NUMBER <= 0 then
  398. NUMBER = 0
  399. end
  400. return NUMBER
  401. end
  402.  
  403. function Swait(NUMBER)
  404. if NUMBER == 0 or NUMBER == nil then
  405. ArtificialHB.Event:wait()
  406. else
  407. for i = 1, NUMBER do
  408. ArtificialHB.Event:wait()
  409. end
  410. end
  411. end
  412.  
  413. function QuaternionFromCFrame(cf)
  414. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  415. local trace = m00 + m11 + m22
  416. if trace > 0 then
  417. local s = math.sqrt(1 + trace)
  418. local recip = 0.5 / s
  419. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  420. else
  421. local i = 0
  422. if m11 > m00 then
  423. i = 1
  424. end
  425. if m22 > (i == 0 and m00 or m11) then
  426. i = 2
  427. end
  428. if i == 0 then
  429. local s = math.sqrt(m00 - m11 - m22 + 1)
  430. local recip = 0.5 / s
  431. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  432. elseif i == 1 then
  433. local s = math.sqrt(m11 - m22 - m00 + 1)
  434. local recip = 0.5 / s
  435. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  436. elseif i == 2 then
  437. local s = math.sqrt(m22 - m00 - m11 + 1)
  438. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  439. end
  440. end
  441. end
  442.  
  443. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  444. local xs, ys, zs = x + x, y + y, z + z
  445. local wx, wy, wz = w * xs, w * ys, w * zs
  446. local xx = x * xs
  447. local xy = x * ys
  448. local xz = x * zs
  449. local yy = y * ys
  450. local yz = y * zs
  451. local zz = z * zs
  452. 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))
  453. end
  454.  
  455. function QuaternionSlerp(a, b, t)
  456. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  457. local startInterp, finishInterp;
  458. if cosTheta >= 0.0001 then
  459. if (1 - cosTheta) > 0.0001 then
  460. local theta = ACOS(cosTheta)
  461. local invSinTheta = 1 / SIN(theta)
  462. startInterp = SIN((1 - t) * theta) * invSinTheta
  463. finishInterp = SIN(t * theta) * invSinTheta
  464. else
  465. startInterp = 1 - t
  466. finishInterp = t
  467. end
  468. else
  469. if (1 + cosTheta) > 0.0001 then
  470. local theta = ACOS(-cosTheta)
  471. local invSinTheta = 1 / SIN(theta)
  472. startInterp = SIN((t - 1) * theta) * invSinTheta
  473. finishInterp = SIN(t * theta) * invSinTheta
  474. else
  475. startInterp = t - 1
  476. finishInterp = t
  477. end
  478. end
  479. 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
  480. end
  481.  
  482. function Clerp(a, b, t)
  483. local qa = {QuaternionFromCFrame(a)}
  484. local qb = {QuaternionFromCFrame(b)}
  485. local ax, ay, az = a.x, a.y, a.z
  486. local bx, by, bz = b.x, b.y, b.z
  487. local _t = 1 - t
  488. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  489. end
  490.  
  491. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  492. local frame = IT("Frame")
  493. frame.BackgroundTransparency = TRANSPARENCY
  494. frame.BorderSizePixel = BORDERSIZEPIXEL
  495. frame.Position = POSITION
  496. frame.Size = SIZE
  497. frame.BackgroundColor3 = COLOR
  498. frame.BorderColor3 = BORDERCOLOR
  499. frame.Name = NAME
  500. frame.Parent = PARENT
  501. return frame
  502. end
  503.  
  504. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  505. local label = IT("TextLabel")
  506. label.BackgroundTransparency = 1
  507. label.Size = UD2(1, 0, 1, 0)
  508. label.Position = UD2(0, 0, 0, 0)
  509. label.TextColor3 = C3(255, 255, 255)
  510. label.TextStrokeTransparency = STROKETRANSPARENCY
  511. label.TextTransparency = TRANSPARENCY
  512. label.FontSize = TEXTFONTSIZE
  513. label.Font = TEXTFONT
  514. label.BorderSizePixel = BORDERSIZEPIXEL
  515. label.TextScaled = true
  516. label.Text = TEXT
  517. label.Name = NAME
  518. label.Parent = PARENT
  519. return label
  520. end
  521.  
  522. function NoOutlines(PART)
  523. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  524. end
  525.  
  526.  
  527. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  528. local NEWWELD = IT(TYPE)
  529. NEWWELD.Part0 = PART0
  530. NEWWELD.Part1 = PART1
  531. NEWWELD.C0 = C0
  532. NEWWELD.C1 = C1
  533. NEWWELD.Parent = PARENT
  534. return NEWWELD
  535. end
  536.  
  537. function CreateSound(ID, PARENT, VOLUME, PITCH)
  538. local NEWSOUND = nil
  539. coroutine.resume(coroutine.create(function()
  540. NEWSOUND = IT("Sound", PARENT)
  541. NEWSOUND.Volume = VOLUME
  542. NEWSOUND.Pitch = PITCH
  543. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  544. NEWSOUND:play()
  545. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  546. end))
  547. return NEWSOUND
  548. end
  549.  
  550. function CFrameFromTopBack(at, top, back)
  551. local right = top:Cross(back)
  552. 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)
  553. end
  554.  
  555. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  556. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  557. local mesh = IT("SpecialMesh",wave)
  558. mesh.MeshType = "FileMesh"
  559. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  560. mesh.Scale = VT(size,size,size)
  561. mesh.Offset = VT(0,0,-size/8)
  562. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  563. coroutine.resume(coroutine.create(function(PART)
  564. for i = 1, waitt do
  565. Swait()
  566. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  567. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  568. if doesrotate == true then
  569. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  570. end
  571. wave.Transparency = wave.Transparency + (0.5/waitt)
  572. if wave.Transparency > 0.99 then
  573. wave:remove()
  574. end
  575. end
  576. end))
  577. end
  578.  
  579. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  580. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  581. local mesh = IT("SpecialMesh",wave)
  582. mesh.MeshType = "FileMesh"
  583. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  584. mesh.Scale = VT(size,size,size)
  585. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  586. coroutine.resume(coroutine.create(function(PART)
  587. for i = 1, waitt do
  588. Swait()
  589. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  590. if doesrotate == true then
  591. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  592. end
  593. wave.Transparency = wave.Transparency + (0.5/waitt)
  594. if wave.Transparency > 0.99 then
  595. wave:remove()
  596. end
  597. end
  598. end))
  599. end
  600.  
  601. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  602. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  603. local mesh = IT("SpecialMesh",wave)
  604. mesh.MeshType = "FileMesh"
  605. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  606. mesh.Scale = VT(size,size,size)
  607. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  608. coroutine.resume(coroutine.create(function(PART)
  609. for i = 1, waitt do
  610. Swait()
  611. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  612. if doesrotate == true then
  613. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  614. end
  615. wave.Transparency = wave.Transparency + (0.5/waitt)
  616. if wave.Transparency > 0.99 then
  617. wave:remove()
  618. end
  619. end
  620. end))
  621. end
  622.  
  623. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  624. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  625. local mesh = IT("SpecialMesh",wave)
  626. mesh.MeshType = "FileMesh"
  627. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  628. mesh.Scale = VT(size,size,size)
  629. mesh.Offset = VT(0,0,0)
  630. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  631. coroutine.resume(coroutine.create(function(PART)
  632. for i = 1, waitt do
  633. Swait()
  634. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  635. if doesrotate == true then
  636. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  637. end
  638. wave.Transparency = wave.Transparency + (0.5/waitt)
  639. if wave.Transparency > 0.99 then
  640. wave:remove()
  641. end
  642. end
  643. end))
  644. end
  645.  
  646. function MagicSphere(size,waitt,part,offset,color)
  647. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(0,0,0))
  648. local mesh = IT("SpecialMesh",wave)
  649. mesh.MeshType = "FileMesh"
  650. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  651. mesh.Scale = VT(size,size,size)
  652. mesh.Offset = VT(0,0,0)
  653. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  654. coroutine.resume(coroutine.create(function(PART)
  655. for i = 1, waitt do
  656. Swait()
  657. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  658. wave.Transparency = wave.Transparency + (0.5/waitt)
  659. if wave.Transparency > 0.99 then
  660. wave:remove()
  661. end
  662. end
  663. end))
  664. end
  665.  
  666. function MagicBlock(size,waitt,part,offset,color)
  667. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  668. local mesh = IT("BlockMesh",wave)
  669. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  670. coroutine.resume(coroutine.create(function(PART)
  671. for i = 1, waitt do
  672. Swait()
  673. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  674. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  675. wave.Transparency = wave.Transparency + (0.5/waitt)
  676. if wave.Transparency > 0.99 then
  677. wave:remove()
  678. end
  679. end
  680. end))
  681. end
  682.  
  683. local EyeSizes={
  684. NumberSequenceKeypoint.new(0,1,0),
  685. NumberSequenceKeypoint.new(1,0.2,0)
  686. }
  687. local EyeTrans={
  688. NumberSequenceKeypoint.new(0,0,0),
  689. NumberSequenceKeypoint.new(1,1,0)
  690. }
  691. local PE=Instance.new("ParticleEmitter")
  692. PE.LightEmission=0
  693. PE.Size=NumberSequence.new(EyeSizes)
  694. PE.Transparency=NumberSequence.new(EyeTrans)
  695. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  696. PE.Rotation=NumberRange.new(0,360)
  697. PE.Rate=15
  698. PE.Acceleration = Vector3.new(0,75,0)
  699. PE.Drag = 5
  700. PE.Enabled = false
  701. PE.Speed = NumberRange.new(0,0,0)
  702. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  703. PE.ZOffset = 0
  704. PE.Name = "Particles"
  705.  
  706. function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault)
  707. local particle = PE:Clone()
  708. particle.Parent = art
  709. particle.Acceleration = accel
  710. PE.Rate = rate
  711. if type == "Fire" then
  712. local EyeSizes={
  713. NumberSequenceKeypoint.new(0,1,0.3),
  714. NumberSequenceKeypoint.new(1,0.2,0.2)
  715. }
  716. PE.Size = NumberSequence.new(EyeSizes)
  717. elseif type == "Smoke" then
  718. local EyeSizes={
  719. NumberSequenceKeypoint.new(0,1,0),
  720. NumberSequenceKeypoint.new(1,5,0.5)
  721. }
  722. PE.Size = NumberSequence.new(EyeSizes)
  723. elseif type == "Solid" then
  724. local EyeSizes={
  725. NumberSequenceKeypoint.new(0,1,0),
  726. NumberSequenceKeypoint.new(1,1,0)
  727. }
  728. PE.Size = NumberSequence.new(EyeSizes)
  729. end
  730. PE.Drag = drag
  731. particle.Texture = "http://www.roblox.com/asset/?id="..text
  732. particle.Enabled = isenabledbydefault
  733. return particle
  734. end
  735.  
  736. --//=================================\\
  737. --\\=================================//
  738.  
  739.  
  740. --//=================================\\
  741. --|| WEAPON CREATION
  742. --\\=================================//
  743.  
  744. if Player_Size ~= 1 then
  745. for _, v in pairs (Weapon:GetChildren()) do
  746. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  747. local p1 = v.Part1
  748. v.Part1 = nil
  749. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  750. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  751. v.Part1 = p1
  752. elseif v.ClassName == "Part" then
  753. for _, b in pairs (v:GetChildren()) do
  754. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  755. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  756. end
  757. end
  758. end
  759. end
  760. end
  761.  
  762. for _, c in pairs(Weapon:GetChildren()) do
  763. if c.ClassName == "Part" then
  764. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  765. end
  766. end
  767.  
  768. Weapon.Parent = Character
  769.  
  770. Humanoid.Died:connect(function()
  771. ATTACK = true
  772. end)
  773.  
  774. print(Class_Name.." loaded.")
  775.  
  776. --//=================================\\
  777. --\\=================================//
  778.  
  779.  
  780.  
  781.  
  782.  
  783. --//=================================\\
  784. --|| DAMAGE FUNCTIONS
  785. --\\=================================//
  786.  
  787. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  788. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  789. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  790. local BODYGYRO = IT("BodyGyro", STATPART)
  791. local BODYPOSITION = IT("BodyPosition", STATPART)
  792. BODYPOSITION.P = 2000
  793. BODYPOSITION.D = 100
  794. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  795. if LABELTYPE == "Normal" then
  796. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  797. elseif LABELTYPE == "Debuff" then
  798. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  799. elseif LABELTYPE == "Interruption" then
  800. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  801. end
  802. game:GetService("Debris"):AddItem(STATPART ,5)
  803. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  804. BILLBOARDGUI.Adornee = STATPART
  805. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  806. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  807. BILLBOARDGUI.AlwaysOnTop = false
  808. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  809. TEXTLABEL.BackgroundTransparency = 1
  810. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  811. TEXTLABEL.Text = TEXT
  812. TEXTLABEL.Font = "SciFi"
  813. TEXTLABEL.FontSize="Size42"
  814. TEXTLABEL.TextColor3 = COLOR
  815. TEXTLABEL.TextStrokeTransparency = 1
  816. TEXTLABEL.TextScaled = true
  817. TEXTLABEL.TextWrapped = true
  818. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  819. wait(0.2)
  820. for i=1, 5 do
  821. wait()
  822. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  823. end
  824. wait(1.2)
  825. for i=1, 5 do
  826. wait()
  827. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  828. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  829. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  830. end
  831. THEPART.Parent = nil
  832. end),STATPART, BODYPOSITION, TEXTLABEL)
  833. end
  834.  
  835.  
  836. --//=================================\\
  837. --|| DAMAGING
  838. --\\=================================//
  839.  
  840. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  841. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  842. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  843. local dmg = math.random(min,max)
  844. if humanoid.Health > 0 then
  845. if beserk == true then
  846. humanoid.Health = 0
  847. else
  848. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  849. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  850. if math.random(1,100) < critrate+1 then
  851. humanoid.Health = humanoid.Health - dmg*critmultiplier
  852. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  853. else
  854. humanoid.Health = humanoid.Health - dmg
  855. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  856. end
  857. local defence = Instance.new("BoolValue",hit.Parent)
  858. defence.Name = ("HitBy"..Player.Name)
  859. game:GetService("Debris"):AddItem(defence, 0.5)
  860. end
  861. end
  862. end
  863. end
  864.  
  865. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  866. local dmg = math.random(min,max)
  867. for i,v in ipairs(workspace:GetChildren()) do
  868. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  869. local body = v:GetChildren()
  870. for part = 1, #body do
  871. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  872. if(body[part].Position - position).Magnitude < radius then
  873. if v.ClassName == "Model" then
  874. if v:FindFirstChild("Humanoid") then
  875. if v.Humanoid.Health ~= 0 then
  876. if beserk == true then
  877. v.Humanoid.Health = 0
  878. else
  879. if CanBeDodgedByJumping == true then
  880. if body[part].Position.Y < position.Y+5 then
  881. if math.random(1,100) < critrate+1 then
  882. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  883. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  884. else
  885. v.Humanoid.Health = v.Humanoid.Health - dmg
  886. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  887. end
  888. local defence = Instance.new("BoolValue",v)
  889. defence.Name = ("HitBy"..Player.Name)
  890. game:GetService("Debris"):AddItem(defence, 0.5)
  891. end
  892. else
  893. if math.random(1,100) < critrate+1 then
  894. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  895. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  896. else
  897. v.Humanoid.Health = v.Humanoid.Health - dmg
  898. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  899. end
  900. local defence = Instance.new("BoolValue",v)
  901. defence.Name = ("HitBy"..Player.Name)
  902. game:GetService("Debris"):AddItem(defence, 0.5)
  903. end
  904. end
  905. end
  906. end
  907. end
  908. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  909. end
  910. end
  911. end
  912. if v.ClassName == "Part" then
  913. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  914. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  915. end
  916. end
  917. end
  918. end
  919. end
  920.  
  921. function killnearest(position,range,maxstrength)
  922. for i,v in ipairs(workspace:GetChildren()) do
  923. local body = v:GetChildren()
  924. for part = 1, #body do
  925. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  926. if(body[part].Position - position).Magnitude < range then
  927. if v.ClassName == "Model" then
  928. v:BreakJoints()
  929. end
  930. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  931. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  932. end
  933. end
  934. end
  935. if v.ClassName == "Part" then
  936. if v.Anchored == false and (v.Position - position).Magnitude < range then
  937. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  938. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  939. end
  940. end
  941. end
  942. end
  943.  
  944. --//=================================\\
  945. --|| ATTACK FUNCTIONS AND STUFF
  946. --\\=================================//
  947.  
  948. function Man()
  949. ATTACK = true
  950. local Animation_Speed2 = Animation_Speed/6
  951. for i=0, 1, 0.1 / Animation_Speed2 do
  952. Swait()
  953. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.4 / Animation_Speed2)
  954. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(35)), 0.4 / Animation_Speed2)
  955. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed2)
  956. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-5)), 0.4 / Animation_Speed2)
  957. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-15)), 0.4 / Animation_Speed2)
  958. end
  959. local fire = nil
  960. local HITSTRENGTH = 1
  961. repeat
  962. Swait()
  963. if HOLD == true and HITSTRENGTH ~= 25 then
  964. Swait(15)
  965. HITSTRENGTH = HITSTRENGTH + 1
  966. end
  967. if HITSTRENGTH == 25 and fire == nil then
  968. fire = IT("Fire",HandlePart)
  969. end
  970. until HOLD == false
  971. if HITSTRENGTH == 25 then
  972. local OVERDRIVE = CreateSound("752365651", Head, 10, 1, false)
  973. repeat Swait() until OVERDRIVE.Playing == false
  974. fire:remove()
  975. end
  976. CreateSound("147722910", HandlePart, 10, MRANDOM(8, 9) / 10)
  977. local harm = nil
  978. if HITSTRENGTH < 25 then
  979. harm = HandlePart.Touched:Connect(function(hit)
  980. dealdamage(hit,HITSTRENGTH*5,HITSTRENGTH*10,HITSTRENGTH*12,false,0,0)
  981. end)
  982. elseif HITSTRENGTH == 25 then
  983. AoEDamage(HandlePart.Position,45,0,0,500,true,0,0,false)
  984. end
  985. for i=0, 1, 0.1 / Animation_Speed2 do
  986. Swait()
  987. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed2)
  988. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed2)
  989. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed2)
  990. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed2)
  991. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed2)
  992. end
  993. if harm ~= nil then
  994. harm:disconnect()
  995. end
  996. BLCF = nil
  997. SCFR = nil
  998. ATTACK = false
  999. end
  1000.  
  1001. --//=================================\\
  1002. --|| ASSIGN THINGS TO KEYS
  1003. --\\=================================//
  1004.  
  1005. Humanoid.Changed:connect(function(Jump)
  1006. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1007. Humanoid.Jump = false
  1008. end
  1009. end)
  1010.  
  1011. function MouseDown(Mouse)
  1012. HOLD = true
  1013. if ATTACK == false then
  1014. Man()
  1015. end
  1016. end
  1017.  
  1018. function MouseUp(Mouse)
  1019. HOLD = false
  1020. end
  1021.  
  1022. function KeyDown(Key)
  1023. if Key == "e" and ATTACK == false then
  1024. end
  1025. end
  1026.  
  1027. function KeyUp(Key)
  1028. end
  1029.  
  1030. Mouse.Button1Down:connect(function(NEWKEY)
  1031. MouseDown(NEWKEY)
  1032. end)
  1033. Mouse.Button1Up:connect(function(NEWKEY)
  1034. MouseUp(NEWKEY)
  1035. end)
  1036. Mouse.KeyDown:connect(function(NEWKEY)
  1037. KeyDown(NEWKEY)
  1038. end)
  1039. Mouse.KeyUp:connect(function(NEWKEY)
  1040. KeyUp(NEWKEY)
  1041. end)
  1042.  
  1043. --//=================================\\
  1044. --\\=================================//
  1045.  
  1046.  
  1047. function unanchor()
  1048. if UNANCHOR == true then
  1049. g = Character:GetChildren()
  1050. for i = 1, #g do
  1051. if g[i].ClassName == "Part" then
  1052. g[i].Anchored = false
  1053. end
  1054. end
  1055. end
  1056. end
  1057.  
  1058.  
  1059. --//=================================\\
  1060. --|| WRAP THE WHOLE SCRIPT UP
  1061. --\\=================================//
  1062.  
  1063. Humanoid.Changed:connect(function(Jump)
  1064. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1065. Humanoid.Jump = false
  1066. end
  1067. end)
  1068. Rooted = true
  1069. ANIMATE.Parent = nil
  1070. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1071. IDLEANIMATION:Play()
  1072. Rooted = false
  1073.  
  1074. while true do
  1075. Swait()
  1076. SINE = SINE + CHANGE
  1077. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1078. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1079. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1080. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1081. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1082. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1083. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1084. 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)
  1085. 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(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1086. 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(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1087. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1088. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1089. 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)
  1090. 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)
  1091. 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)
  1092. end
  1093. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1094. ANIM = "Jump"
  1095. if ATTACK == false then
  1096. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1097. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1098. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1099. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1100. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1101. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1102. end
  1103. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1104. ANIM = "Fall"
  1105. if ATTACK == false then
  1106. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1107. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1108. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1109. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1110. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1111. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1112. end
  1113. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1114. ANIM = "Idle"
  1115. if ATTACK == false then
  1116. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.15 / Animation_Speed)
  1117. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.15 / Animation_Speed)
  1118. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1119. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1120. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1121. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1122. end
  1123. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1124. ANIM = "Walk"
  1125. WALK = WALK + 1 / Animation_Speed
  1126. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1127. WALK = 0
  1128. if WALKINGANIM == true then
  1129. WALKINGANIM = false
  1130. elseif WALKINGANIM == false then
  1131. WALKINGANIM = true
  1132. end
  1133. end
  1134. --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)
  1135. --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)
  1136. if ATTACK == false then
  1137. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.4 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-35)), 0.15 / Animation_Speed)
  1138. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.15 / Animation_Speed)
  1139. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1140. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1141. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1142. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1143. end
  1144. end
  1145. if #Effects2>0 then
  1146. for e=1,#Effects2 do
  1147. if Effects2[e]~=nil then
  1148. local Thing=Effects2[e]
  1149. if Thing~=nil then
  1150. local Part=Thing[1]
  1151. local Mode=Thing[2]
  1152. local Delay=Thing[3]
  1153. local IncX=Thing[4]
  1154. local IncY=Thing[5]
  1155. local IncZ=Thing[6]
  1156. local Part2=Thing[8]
  1157. if Thing[1].Transparency<=1 then
  1158. if Thing[2]=="Block1" then
  1159. Thing[1].CFrame=Thing[1].CFrame
  1160. Mesh=Thing[1].Mesh
  1161. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1162. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1163. elseif Thing[2]=="Cylinder" then
  1164. Mesh=Thing[1].Mesh
  1165. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1166. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1167. elseif Thing[2]=="Blood" then
  1168. Mesh=Thing[7]
  1169. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1170. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1171. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1172. elseif Thing[2]=="Elec" then
  1173. Mesh=Thing[1].Mesh
  1174. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1175. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1176. elseif Thing[2]=="Disappear" then
  1177. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1178. end
  1179. else
  1180. Part.Parent=nil
  1181. table.remove(Effects2,e)
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. unanchor()
  1188. Humanoid.MaxHealth = "inf"
  1189. Humanoid.Health = "inf"
  1190. if Rooted == false then
  1191. Disable_Jump = false
  1192. Humanoid.WalkSpeed = 25
  1193. elseif Rooted == true then
  1194. Disable_Jump = true
  1195. Humanoid.WalkSpeed = 0
  1196. end
  1197. end
  1198.  
  1199. --//=================================\\
  1200. --\\=================================//
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206. --//====================================================\\--
  1207. --|| END OF SCRIPT
  1208. --\\====================================================//--
Add Comment
Please, Sign In to add comment