Nico1702

Shield Script

May 29th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.67 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. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://546458506"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37. Humanoid.DisplayDistanceType = "None"
  38.  
  39. IT = Instance.new
  40. CF = CFrame.new
  41. VT = Vector3.new
  42. RAD = math.rad
  43. C3 = Color3.new
  44. UD2 = UDim2.new
  45. BRICKC = BrickColor.new
  46. ANGLES = CFrame.Angles
  47. EULER = CFrame.fromEulerAnglesXYZ
  48. COS = math.cos
  49. ACOS = math.acos
  50. SIN = math.sin
  51. ASIN = math.asin
  52. ABS = math.abs
  53. MRANDOM = math.random
  54. FLOOR = math.floor
  55.  
  56. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  57. local NEWMESH = IT(MESH)
  58. if MESH == "SpecialMesh" then
  59. NEWMESH.MeshType = MESHTYPE
  60. if MESHID ~= "nil" and MESHID ~= "" then
  61. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  62. end
  63. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  64. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  65. end
  66. end
  67. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  68. NEWMESH.Scale = SCALE
  69. NEWMESH.Parent = PARENT
  70. return NEWMESH
  71. end
  72.  
  73. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  74. local NEWPART = IT("Part")
  75. NEWPART.formFactor = FORMFACTOR
  76. NEWPART.Reflectance = REFLECTANCE
  77. NEWPART.Transparency = TRANSPARENCY
  78. NEWPART.CanCollide = false
  79. NEWPART.Locked = true
  80. NEWPART.Anchored = true
  81. if ANCHOR == false then
  82. NEWPART.Anchored = false
  83. end
  84. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  85. NEWPART.Name = NAME
  86. NEWPART.Size = SIZE
  87. NEWPART.Position = Torso.Position
  88. NEWPART.Material = MATERIAL
  89. NEWPART:BreakJoints()
  90. NEWPART.Parent = PARENT
  91. return NEWPART
  92. end
  93.  
  94. --//=================================\\
  95. --|| CUSTOMIZATION
  96. --\\=================================//
  97.  
  98. Class_Name = "Template"
  99. Weapon_Name = "Add-ons"
  100.  
  101. Custom_Colors = {
  102. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  103. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  104.  
  105. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  106. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  107. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  108. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  109. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  110.  
  111. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  112. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  113. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  114. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  115. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  116. }
  117.  
  118.  
  119. Player_Size = 1 --Size of the player.
  120. Animation_Speed = 3
  121. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  122.  
  123. local Speed = 16
  124. local Effects2 = {}
  125.  
  126. --//=================================\\
  127. --|| END OF CUSTOMIZATION
  128. --\\=================================//
  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 CHANGEDEFENSE = 0
  191. local CHANGEDAMAGE = 0
  192. local CHANGEMOVEMENT = 0
  193. local ANIM = "Idle"
  194. local ATTACK = false
  195. local EQUIPPED = false
  196. local HOLD = false
  197. local COMBO = 1
  198. local Rooted = false
  199. local SINE = 0
  200. local KEYHOLD = false
  201. local CHANGE = 2 / Animation_Speed
  202. local WALKINGANIM = false
  203. local WALK = 0
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "Weapon GUI"
  212. local Weapon = IT("Model")
  213. Weapon.Name = Weapon_Name
  214. local Effects = IT("Folder", Weapon)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  219. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  220. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  221. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  222. local UNANCHOR = true
  223. local ROAR = "347739136"
  224. local BOOSTSOUND = "862693565"
  225. local STABSOUND = "862701802"
  226.  
  227. local SKILLTEXTCOLOR = BRICKC("Shamrock").Color
  228.  
  229. --//=================================\\
  230. --\\=================================//
  231.  
  232.  
  233. --//=================================\\
  234. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  235. --\\=================================//
  236.  
  237. ArtificialHB = Instance.new("BindableEvent", script)
  238. ArtificialHB.Name = "ArtificialHB"
  239.  
  240. script:WaitForChild("ArtificialHB")
  241.  
  242. frame = Frame_Speed
  243. tf = 0
  244. allowframeloss = false
  245. tossremainder = false
  246. lastframe = tick()
  247. script.ArtificialHB:Fire()
  248.  
  249. game:GetService("RunService").Heartbeat:connect(function(s, p)
  250. tf = tf + s
  251. if tf >= frame then
  252. if allowframeloss then
  253. script.ArtificialHB:Fire()
  254. lastframe = tick()
  255. else
  256. for i = 1, math.floor(tf / frame) do
  257. script.ArtificialHB:Fire()
  258. end
  259. lastframe = tick()
  260. end
  261. if tossremainder then
  262. tf = 0
  263. else
  264. tf = tf - frame * math.floor(tf / frame)
  265. end
  266. end
  267. end)
  268.  
  269. --//=================================\\
  270. --\\=================================//
  271.  
  272.  
  273.  
  274.  
  275.  
  276. --//=================================\\
  277. --|| SOME FUNCTIONS
  278. --\\=================================//
  279.  
  280. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  281. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  282. end
  283.  
  284. function PositiveAngle(NUMBER)
  285. if NUMBER >= 0 then
  286. NUMBER = 0
  287. end
  288. return NUMBER
  289. end
  290.  
  291. function NegativeAngle(NUMBER)
  292. if NUMBER <= 0 then
  293. NUMBER = 0
  294. end
  295. return NUMBER
  296. end
  297.  
  298. function Swait(NUMBER)
  299. if NUMBER == 0 or NUMBER == nil then
  300. ArtificialHB.Event:wait()
  301. else
  302. for i = 1, NUMBER do
  303. ArtificialHB.Event:wait()
  304. end
  305. end
  306. end
  307.  
  308. function QuaternionFromCFrame(cf)
  309. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  310. local trace = m00 + m11 + m22
  311. if trace > 0 then
  312. local s = math.sqrt(1 + trace)
  313. local recip = 0.5 / s
  314. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  315. else
  316. local i = 0
  317. if m11 > m00 then
  318. i = 1
  319. end
  320. if m22 > (i == 0 and m00 or m11) then
  321. i = 2
  322. end
  323. if i == 0 then
  324. local s = math.sqrt(m00 - m11 - m22 + 1)
  325. local recip = 0.5 / s
  326. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  327. elseif i == 1 then
  328. local s = math.sqrt(m11 - m22 - m00 + 1)
  329. local recip = 0.5 / s
  330. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  331. elseif i == 2 then
  332. local s = math.sqrt(m22 - m00 - m11 + 1)
  333. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  334. end
  335. end
  336. end
  337.  
  338. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  339. local xs, ys, zs = x + x, y + y, z + z
  340. local wx, wy, wz = w * xs, w * ys, w * zs
  341. local xx = x * xs
  342. local xy = x * ys
  343. local xz = x * zs
  344. local yy = y * ys
  345. local yz = y * zs
  346. local zz = z * zs
  347. 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))
  348. end
  349.  
  350. function QuaternionSlerp(a, b, t)
  351. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  352. local startInterp, finishInterp;
  353. if cosTheta >= 0.0001 then
  354. if (1 - cosTheta) > 0.0001 then
  355. local theta = ACOS(cosTheta)
  356. local invSinTheta = 1 / SIN(theta)
  357. startInterp = SIN((1 - t) * theta) * invSinTheta
  358. finishInterp = SIN(t * theta) * invSinTheta
  359. else
  360. startInterp = 1 - t
  361. finishInterp = t
  362. end
  363. else
  364. if (1 + cosTheta) > 0.0001 then
  365. local theta = ACOS(-cosTheta)
  366. local invSinTheta = 1 / SIN(theta)
  367. startInterp = SIN((t - 1) * theta) * invSinTheta
  368. finishInterp = SIN(t * theta) * invSinTheta
  369. else
  370. startInterp = t - 1
  371. finishInterp = t
  372. end
  373. end
  374. 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
  375. end
  376.  
  377. function Clerp(a, b, t)
  378. local qa = {QuaternionFromCFrame(a)}
  379. local qb = {QuaternionFromCFrame(b)}
  380. local ax, ay, az = a.x, a.y, a.z
  381. local bx, by, bz = b.x, b.y, b.z
  382. local _t = 1 - t
  383. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  384. end
  385.  
  386. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  387. local frame = IT("Frame")
  388. frame.BackgroundTransparency = TRANSPARENCY
  389. frame.BorderSizePixel = BORDERSIZEPIXEL
  390. frame.Position = POSITION
  391. frame.Size = SIZE
  392. frame.BackgroundColor3 = COLOR
  393. frame.BorderColor3 = BORDERCOLOR
  394. frame.Name = NAME
  395. frame.Parent = PARENT
  396. return frame
  397. end
  398.  
  399. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  400. local label = IT("TextLabel")
  401. label.BackgroundTransparency = 1
  402. label.Size = UD2(1, 0, 1, 0)
  403. label.Position = UD2(0, 0, 0, 0)
  404. label.TextColor3 = TEXTCOLOR
  405. label.TextStrokeTransparency = STROKETRANSPARENCY
  406. label.TextTransparency = TRANSPARENCY
  407. label.FontSize = TEXTFONTSIZE
  408. label.Font = TEXTFONT
  409. label.BorderSizePixel = BORDERSIZEPIXEL
  410. label.TextScaled = false
  411. label.Text = TEXT
  412. label.Name = NAME
  413. label.Parent = PARENT
  414. return label
  415. end
  416.  
  417. function NoOutlines(PART)
  418. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  419. end
  420.  
  421.  
  422. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  423. local NEWWELD = IT(TYPE)
  424. NEWWELD.Part0 = PART0
  425. NEWWELD.Part1 = PART1
  426. NEWWELD.C0 = C0
  427. NEWWELD.C1 = C1
  428. NEWWELD.Parent = PARENT
  429. return NEWWELD
  430. end
  431.  
  432. local sound = IT("Sound")
  433.  
  434. function CreateSound(ID, PARENT, VOLUME, PITCH)
  435. local NEWSOUND = nil
  436. coroutine.resume(coroutine.create(function()
  437. NEWSOUND = sound:Clone()
  438. NEWSOUND.Parent = PARENT
  439. NEWSOUND.Volume = VOLUME
  440. NEWSOUND.Pitch = PITCH
  441. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  442. Swait()
  443. NEWSOUND:play()
  444. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  445. end))
  446. return NEWSOUND
  447. end
  448.  
  449. function CFrameFromTopBack(at, top, back)
  450. local right = top:Cross(back)
  451. 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)
  452. end
  453.  
  454. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  455. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  456. local mesh = IT("SpecialMesh",wave)
  457. mesh.MeshType = "FileMesh"
  458. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  459. mesh.Scale = VT(size,size,size)
  460. mesh.Offset = VT(0,0,-size/8)
  461. wave.CFrame = cframe
  462. coroutine.resume(coroutine.create(function(PART)
  463. for i = 1, waitt do
  464. Swait()
  465. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  466. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  467. if doesrotate == true then
  468. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  469. end
  470. wave.Transparency = wave.Transparency + (0.5/waitt)
  471. if wave.Transparency > 0.99 then
  472. wave:remove()
  473. end
  474. end
  475. end))
  476. end
  477.  
  478. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  479. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  480. local mesh = IT("SpecialMesh",wave)
  481. mesh.MeshType = "FileMesh"
  482. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  483. mesh.Scale = VT(size,size,size)
  484. wave.CFrame = cframe
  485. coroutine.resume(coroutine.create(function(PART)
  486. for i = 1, waitt do
  487. Swait()
  488. mesh.Scale = mesh.Scale + VT(size/5,size/7,size/5)
  489. if doesrotate == true then
  490. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  491. end
  492. wave.Transparency = wave.Transparency + (0.5/waitt)
  493. if wave.Transparency > 0.99 then
  494. wave:remove()
  495. end
  496. end
  497. end))
  498. end
  499.  
  500. function MakeForm(PART,TYPE)
  501. if TYPE == "Cyl" then
  502. local MSH = IT("CylinderMesh",PART)
  503. elseif TYPE == "Ball" then
  504. local MSH = IT("SpecialMesh",PART)
  505. MSH.MeshType = "Sphere"
  506. elseif TYPE == "Wedge" then
  507. local MSH = IT("SpecialMesh",PART)
  508. MSH.MeshType = "Wedge"
  509. end
  510. end
  511.  
  512. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  513. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  514. local mesh = IT("SpecialMesh",wave)
  515. mesh.MeshType = "FileMesh"
  516. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  517. mesh.Scale = VT(size,size,size)
  518. wave.CFrame = cframe
  519. coroutine.resume(coroutine.create(function(PART)
  520. for i = 1, waitt do
  521. Swait()
  522. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  523. if doesrotate == true then
  524. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  525. end
  526. wave.Transparency = wave.Transparency + (0.5/waitt)
  527. if wave.Transparency > 0.99 then
  528. wave:remove()
  529. end
  530. end
  531. end))
  532. end
  533.  
  534. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
  535. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  536. local mesh = IT("SpecialMesh",wave)
  537. mesh.MeshType = "FileMesh"
  538. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  539. mesh.Scale = VT(size,size,size)
  540. mesh.Offset = VT(0,0,0)
  541. wave.CFrame = cframe
  542. coroutine.resume(coroutine.create(function(PART)
  543. for i = 1, waitt do
  544. Swait()
  545. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  546. if doesrotate == true then
  547. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  548. end
  549. wave.Transparency = wave.Transparency + (0.5/waitt)
  550. if wave.Transparency > 0.99 then
  551. wave:remove()
  552. end
  553. end
  554. end))
  555. end
  556.  
  557. function MagicSphere(size,waitt,cframe,color)
  558. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1), true)
  559. local mesh = IT("SpecialMesh",wave)
  560. mesh.MeshType = "Sphere"
  561. mesh.Scale = VT(size,size,size)
  562. mesh.Offset = VT(0,0,0)
  563. wave.CFrame = cframe
  564. coroutine.resume(coroutine.create(function(PART)
  565. for i = 1, waitt do
  566. Swait()
  567. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  568. wave.Transparency = wave.Transparency + (1/waitt)
  569. if wave.Transparency > 0.99 then
  570. wave:remove()
  571. end
  572. end
  573. end))
  574. end
  575.  
  576. function MagicSphere2(size,waitt,cframe,color)
  577. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1), true)
  578. local mesh = IT("SpecialMesh",wave)
  579. mesh.MeshType = "Sphere"
  580. mesh.Scale = VT(size,size,size)
  581. mesh.Offset = VT(0,0,0)
  582. wave.CFrame = cframe
  583. coroutine.resume(coroutine.create(function(PART)
  584. for i = 1, waitt do
  585. Swait()
  586. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  587. wave.Transparency = wave.Transparency - (1/waitt)
  588. end
  589. wave:remove()
  590. end))
  591. end
  592.  
  593. function MagicBlock(size,waitt,cframe,color)
  594. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size), true)
  595. local mesh = IT("BlockMesh",wave)
  596. wave.CFrame = cframe
  597. coroutine.resume(coroutine.create(function(PART)
  598. for i = 1, waitt do
  599. Swait()
  600. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  601. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  602. wave.Transparency = wave.Transparency + (1/waitt)
  603. if wave.Transparency > 0.99 then
  604. wave:remove()
  605. end
  606. end
  607. end))
  608. end
  609.  
  610. function MagicBlock2(size,waitt,cframe,color)
  611. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(size,size,size), true)
  612. local mesh = IT("BlockMesh",wave)
  613. wave.CFrame = cframe
  614. coroutine.resume(coroutine.create(function(PART)
  615. for i = 1, waitt do
  616. Swait()
  617. mesh.Scale = mesh.Scale - VT(1/waitt,1/waitt,1/waitt)
  618. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  619. wave.Transparency = wave.Transparency - (1/waitt)
  620. end
  621. wave:Destroy()
  622. end))
  623. end
  624.  
  625. function CheckTableForString(Table, String)
  626. for i, v in pairs(Table) do
  627. if string.find(string.lower(String), string.lower(v)) then
  628. return true
  629. end
  630. end
  631. return false
  632. end
  633.  
  634. function CheckIntangible(Hit)
  635. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  636. if Hit and Hit.Parent then
  637. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  638. return true
  639. end
  640. end
  641. return false
  642. end
  643.  
  644. Debris = game:GetService("Debris")
  645.  
  646. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  647. local Direction = CFrame.new(StartPos, Vec).lookVector
  648. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  649. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  650. if RayHit and CheckIntangible(RayHit) then
  651. if DelayIfHit then
  652. wait()
  653. end
  654. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  655. end
  656. return RayHit, RayPos, RayNormal
  657. end
  658.  
  659. function turnto(position)
  660. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  661. end
  662.  
  663. --//=================================\\
  664. --|| SPEECH
  665. --\\=================================//
  666.  
  667. function chatfunc(text,waitt)
  668. local chat = coroutine.wrap(function()
  669. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  670. Character:FindFirstChild("TalkingBillBoard"):destroy()
  671. end
  672. local naeeym2 = Instance.new("BillboardGui",Character)
  673. naeeym2.Size = UDim2.new(0,100,0,40)
  674. naeeym2.StudsOffset = Vector3.new(0,5,0)
  675. naeeym2.Adornee = Character.Head
  676. naeeym2.Name = "TalkingBillBoard"
  677. naeeym2.AlwaysOnTop = true
  678. local tecks2 = Instance.new("TextLabel",naeeym2)
  679. tecks2.BackgroundTransparency = 1
  680. tecks2.BorderSizePixel = 0
  681. tecks2.Text = ""
  682. tecks2.Font = "SciFi"
  683. tecks2.TextSize = 30
  684. tecks2.TextStrokeTransparency = 1
  685. tecks2.TextColor3 = SKILLTEXTCOLOR
  686. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  687. tecks2.Size = UDim2.new(1,0,0.5,0)
  688. for i = 1,string.len(text),1 do
  689. tecks2.Text = string.sub(text,1,i)
  690. Swait()
  691. end
  692. wait(waitt)
  693. coroutine.resume(coroutine.create(function()
  694. for i = 1, 10 do
  695. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  696. Swait()
  697. end
  698. naeeym2:Destroy()
  699. end))
  700. end)
  701. chat()
  702. end
  703.  
  704. --//=================================\\
  705. --|| WEAPON CREATION
  706. --\\=================================//
  707.  
  708. local SH = IT("Part",Weapon)
  709. SH.Size = VT(0.2,5.5,5.5)
  710. SH.Shape = "Cylinder"
  711. SH.Transparency = 1
  712. SH.CanCollide = false
  713. SH.Material = "Neon"
  714. SH.BrickColor = BRICKC"Shamrock"
  715. SH.CFrame = RightArm.CFrame * CF(0.5,0,0)
  716. weldBetween(RightArm,SH)
  717. local SHIELDFUNC = SH.Touched:Connect(function(hit)
  718. if VALUE1 == true then
  719. if hit.Anchored == false and hit.Parent.FindFirstChild("Humanoid") == nil and hit.Parent.ClassName ~= "Accessory" then
  720. hit:Destroy()
  721. end
  722. end
  723. end)
  724. local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Shamrock", "Handle", VT(0*Player_Size,0*Player_Size,0*Player_Size),false)
  725. local Weld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0.5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  726. CreateMesh("SpecialMesh", HandlePart, "FileMesh", "156292343", "", VT(8,8,2), VT(0,0,0))
  727. local HandlePart2 = CreatePart(3, Weapon, "Neon", 0, 1, "Shamrock", "Handle", VT(0*Player_Size,0*Player_Size,0*Player_Size),false)
  728. local Weld2 = CreateWeldOrSnapOrMotor("Weld", HandlePart2, RightArm, HandlePart2, CF(0.5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  729. CreateMesh("SpecialMesh", HandlePart2, "FileMesh", "156292343", "", VT(6,6,2), VT(0,0,0))
  730. local ArmPart = CreatePart(3, Weapon, "Neon", 0, 0, "Shamrock", "Handle", VT(1.01*Player_Size,2.01*Player_Size,1.01*Player_Size),false)
  731. local Weld3 = CreateWeldOrSnapOrMotor("Weld", ArmPart, RightArm, ArmPart, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  732.  
  733. local A = IT("Attachment",Torso)
  734. A.Position = VT(0, -1, 0)
  735. local B = IT("Attachment",Torso)
  736. B.Position = VT(0, 1.5, 0)
  737. local Trail = IT("Trail",Torso)
  738. Trail.Attachment0 = A
  739. Trail.Attachment1 = B
  740. Trail.Lifetime = 0.3
  741. Trail.Transparency = NumberSequence.new(0, 1)
  742. Trail.Enabled = false
  743. Trail.Color = ColorSequence.new(BRICKC("Shamrock").Color)
  744.  
  745. for _, c in pairs(Weapon:GetChildren()) do
  746. if c.ClassName == "Part" then
  747. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  748. end
  749. end
  750.  
  751. Weapon.Parent = Character
  752.  
  753. Humanoid.Died:connect(function()
  754. ATTACK = true
  755. end)
  756.  
  757. print(Class_Name.." loaded.")
  758.  
  759. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  760. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  761. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  762. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  763.  
  764. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Block", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 1")
  765. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Shield bash", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 2")
  766. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C+HOLD] Shield force", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 3")
  767. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Meteor crash", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 4")
  768.  
  769. --//=================================\\
  770. --|| DAMAGE FUNCTIONS
  771. --\\=================================//
  772.  
  773. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  774. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  775. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  776. local BODYGYRO = IT("BodyGyro", STATPART)
  777. local BODYPOSITION = IT("BodyPosition", STATPART)
  778. BODYPOSITION.P = 2000
  779. BODYPOSITION.D = 100
  780. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  781. if LABELTYPE == "Normal" then
  782. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  783. elseif LABELTYPE == "Debuff" then
  784. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  785. elseif LABELTYPE == "Interruption" then
  786. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  787. end
  788. game:GetService("Debris"):AddItem(STATPART ,5)
  789. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  790. BILLBOARDGUI.Adornee = STATPART
  791. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  792. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  793. BILLBOARDGUI.AlwaysOnTop = false
  794. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  795. TEXTLABEL.BackgroundTransparency = 1
  796. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  797. TEXTLABEL.Text = TEXT
  798. TEXTLABEL.Font = "SciFi"
  799. TEXTLABEL.FontSize="Size42"
  800. TEXTLABEL.TextColor3 = COLOR
  801. TEXTLABEL.TextStrokeTransparency = 1
  802. TEXTLABEL.TextScaled = true
  803. TEXTLABEL.TextWrapped = true
  804. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  805. wait(0.2)
  806. for i=1, 5 do
  807. wait()
  808. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  809. end
  810. wait(1.2)
  811. for i=1, 5 do
  812. wait()
  813. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  814. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  815. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  816. end
  817. THEPART.Parent = nil
  818. end),STATPART, BODYPOSITION, TEXTLABEL)
  819. end
  820.  
  821.  
  822. --//=================================\\
  823. --|| DAMAGING
  824. --\\=================================//
  825.  
  826. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  827. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  828. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  829. local dmg = math.random(min,max)
  830. if humanoid.Health > 0 then
  831. if beserk == true then
  832. humanoid.Health = 0
  833. else
  834. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  835. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  836. if math.random(1,100) < critrate+1 then
  837. humanoid.Health = humanoid.Health - dmg*critmultiplier
  838. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  839. else
  840. humanoid.Health = humanoid.Health - dmg
  841. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  842. end
  843. local defence = Instance.new("BoolValue",hit.Parent)
  844. defence.Name = ("HitBy"..Player.Name)
  845. game:GetService("Debris"):AddItem(defence, 0.1)
  846. end
  847. end
  848. end
  849. end
  850.  
  851. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  852. local dmg = math.random(min,max)
  853. for i,v in ipairs(workspace:GetChildren()) do
  854. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  855. local body = v:GetChildren()
  856. for part = 1, #body do
  857. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  858. if(body[part].Position - position).Magnitude < radius then
  859. if v.ClassName == "Model" then
  860. if v:FindFirstChild("Humanoid") then
  861. if v.Humanoid.Health ~= 0 then
  862. if CanBeDodgedByJumping == true then
  863. if body[part].Position.Y < position.Y+5 then
  864. if math.random(1,100) < critrate+1 then
  865. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  866. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  867. else
  868. v.Humanoid.Health = v.Humanoid.Health - dmg
  869. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  870. end
  871. local defence = Instance.new("BoolValue",v)
  872. defence.Name = ("HitBy"..Player.Name)
  873. game:GetService("Debris"):AddItem(defence, 0.1)
  874. end
  875. else
  876. if beserk == true then
  877. v.Humanoid.Health = 0
  878. end
  879. if math.random(1,100) < critrate+1 then
  880. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  881. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  882. else
  883. v.Humanoid.Health = v.Humanoid.Health - dmg
  884. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  885. end
  886. local defence = Instance.new("BoolValue",v)
  887. defence.Name = ("HitBy"..Player.Name)
  888. game:GetService("Debris"):AddItem(defence, 0.1)
  889. end
  890. end
  891. end
  892. end
  893. --Fling(body[part],RootPart.CFrame.lookVector,maxstrength)
  894. end
  895. end
  896. end
  897. if v.ClassName == "Part" then
  898. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  899. --Fling(v,RootPart.CFrame.lookVector,maxstrength)
  900. end
  901. end
  902. end
  903. end
  904. end
  905.  
  906. function AoEStun(POS,RANGE,LAST)
  907. for i,v in ipairs(workspace:GetChildren()) do
  908. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  909. local body = v:GetChildren()
  910. for part = 1, #body do
  911. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  912. if(body[part].Position - POS).Magnitude < RANGE then
  913. if v.ClassName == "Model" then
  914. if v:FindFirstChild("Humanoid") then
  915. if v.Humanoid.Health ~= 0 then
  916. Stun(v.Humanoid,LAST)
  917. local defence = Instance.new("BoolValue",v)
  918. defence.Name = ("StunnedBy"..Player.Name)
  919. game:GetService("Debris"):AddItem(defence, 0.001)
  920. end
  921. end
  922. end
  923. end
  924. end
  925. end
  926. end
  927. end
  928. end
  929.  
  930. function Stun(HUMANOID,LAST)
  931. HUMANOID.PlatformStand = true
  932. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  933. defence.Name = ("StunnedBy"..Player.Name)
  934. game:GetService("Debris"):AddItem(defence, LAST)
  935. if HUMANOID.Parent:FindFirstChild("Head") then
  936. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  937. end
  938. coroutine.resume(coroutine.create(function()
  939. Swait(LAST*100)
  940. HUMANOID.PlatformStand = false
  941. end))
  942. end
  943.  
  944. function killnearest(position,range,maxstrength)
  945. for i,v in ipairs(workspace:GetChildren()) do
  946. local body = v:GetChildren()
  947. for part = 1, #body do
  948. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  949. if(body[part].Position - position).Magnitude < range then
  950. if v.ClassName == "Model" then
  951. v:BreakJoints()
  952. end
  953. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  954. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  955. end
  956. end
  957. end
  958. if v.ClassName == "Part" then
  959. if v.Anchored == false and (v.Position - position).Magnitude < range then
  960. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  961. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  962. end
  963. end
  964. end
  965. end
  966.  
  967. function Fling(part,direction,speed)
  968. part.Velocity = direction*speed
  969. end
  970.  
  971. --//=================================\\
  972. --|| ATTACK FUNCTIONS AND STUFF
  973. --\\=================================//
  974.  
  975. function Block()
  976. ATTACK = true
  977. Rooted = false
  978. VALUE1 = true
  979. local FF = IT("ForceField",Character)
  980. FF.Visible = false
  981. repeat
  982. Swait()
  983. AoEStun(SH.Position,5,1)
  984. turnto(Mouse.Hit.p)
  985. 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(45)), 0.15 / Animation_Speed*3)
  986. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  987. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  988. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  989. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  990. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  991. until KEYHOLD == false
  992. FF:remove()
  993. VALUE1 = false
  994. ATTACK = false
  995. Rooted = false
  996. end
  997.  
  998. function ShieldBash()
  999. ATTACK = true
  1000. Rooted = false
  1001. VALUE1 = true
  1002. local FF = IT("ForceField",Character)
  1003. FF.Visible = false
  1004. for i=0, 1.5, 0.1 / Animation_Speed do
  1005. Swait()
  1006. turnto(Mouse.Hit.p)
  1007. 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(45)), 0.15 / Animation_Speed*3)
  1008. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1011. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1012. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1013. end
  1014. Trail.Enabled = true
  1015. CreateSound(BOOSTSOUND, SH, 2, 1)
  1016. turnto(Mouse.Hit.p)
  1017. for i = 1, 25 do
  1018. Swait()
  1019. turnto(Mouse.Hit.p)
  1020. MagicSphere2(10,15,SH.CFrame,"Shamrock")
  1021. MagicBlock2(8.5,15,SH.CFrame,"Shamrock")
  1022. RootPart.CFrame = RootPart.CFrame * CF(0,0,-5)
  1023. AoEDamage(SH.Position,5,45,55,45,false,5,2,false)
  1024. end
  1025. Swait()
  1026. Trail.Enabled = false
  1027. FF:remove()
  1028. VALUE1 = false
  1029. ATTACK = false
  1030. Rooted = false
  1031. end
  1032.  
  1033. function ShieldForce()
  1034. ATTACK = true
  1035. Rooted = false
  1036. VALUE1 = true
  1037. local FF = IT("ForceField",Character)
  1038. FF.Visible = false
  1039. for i=0, 1.5, 0.1 / Animation_Speed do
  1040. Swait()
  1041. 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(45)), 0.15 / Animation_Speed*3)
  1042. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1043. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1044. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1045. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1046. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1047. end
  1048. MagicSphere2(25,15,SH.CFrame,"Shamrock")
  1049. MagicBlock2(20,15,SH.CFrame,"Shamrock")
  1050. Swait(15)
  1051. repeat
  1052. Swait()
  1053. turnto(Mouse.Hit.p)
  1054. CreateRing(0,12,false,0,10,SH.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),0,0,"Shamrock")
  1055. local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "Shamrock", "Handle", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false)
  1056. BULLET.CFrame = CF(SH.CFrame*CF(3,MRANDOM(-2,2),MRANDOM(-2,2)).p,Mouse.Hit.p)
  1057. local bv = Instance.new("BodyVelocity")
  1058. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1059. bv.velocity = CF(SH.Position,Mouse.Hit.p).lookVector*300
  1060. bv.Parent = BULLET
  1061. bv.Name = "PROJECTILEVELOCITY"
  1062. MakeForm(BULLET,"Ball")
  1063. CreateSound("13775494", BULLET, 2, 2)
  1064. --MagicSphere(2,15,BULLET.CFrame,"Shamrock")
  1065. local BOO = BULLET.Touched:Connect(function(hit)
  1066. dealdamage(hit,5,8,5,false,2,3)
  1067. end)
  1068. table.insert(Effects2,{BULLET,"Disappear",0.04,1,0,0,2})
  1069. until KEYHOLD == false
  1070. FF:remove()
  1071. VALUE1 = false
  1072. ATTACK = false
  1073. Rooted = false
  1074. end
  1075.  
  1076. function MeteorSmash()
  1077. ATTACK = true
  1078. Rooted = false
  1079. VALUE1 = true
  1080. for i=0, 1.5, 0.1 / Animation_Speed do
  1081. Swait()
  1082. 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(45)), 0.15 / Animation_Speed*3)
  1083. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1084. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1085. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1086. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1087. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1088. end
  1089. RootPart.Anchored = true
  1090. UNANCHOR = false
  1091. CreateSound(BOOSTSOUND, SH, 2, 1)
  1092. Rooted = true
  1093. for i=0,4, 0.1 / Animation_Speed do
  1094. Swait()
  1095. MagicSphere2(15,15,SH.CFrame,"Shamrock")
  1096. MagicBlock2(12.5,15,SH.CFrame,"Shamrock")
  1097. RootPart.CFrame = RootPart.CFrame * CF(0,8,-0)
  1098. 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(-25), RAD(0), RAD(45)), 0.15 / Animation_Speed*3)
  1099. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1100. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1101. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1102. 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(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1103. 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(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1104. end
  1105. for i=0, 1.5, 0.1 / Animation_Speed do
  1106. Swait()
  1107. 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(45)), 0.15 / Animation_Speed*3)
  1108. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1109. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1110. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1111. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1112. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1113. end
  1114. for i=0,2, 0.1 / Animation_Speed do
  1115. Swait()
  1116. MagicSphere2(15,15,SH.CFrame,"Shamrock")
  1117. MagicBlock2(12.5,15,SH.CFrame,"Shamrock")
  1118. RootPart.CFrame = RootPart.CFrame * CF(0,-16,-0)
  1119. 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(45), RAD(0), RAD(45)), 0.15 / Animation_Speed*3)
  1120. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1121. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1122. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1123. 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(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1124. 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(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1125. end
  1126. RootPart.CFrame = RootPart.CFrame * CF(0,-8,-0)
  1127. CreateSound("2691586", SH, 10, 1)
  1128. AoEDamage(CF(SH.Position)*CF(0,-1,0).p,45,75,85,95,false,5,2,true)
  1129. for i = 1, 3 do
  1130. MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock")
  1131. MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock")
  1132. MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock")
  1133. CreateWave(0,i*2,true,0.1,45,CF(SH.Position)*CF(0,-1,0),"Shamrock")
  1134. CreateWave(0,i*2,true,-0.1,45,CF(SH.Position)*CF(0,-1,0),"Shamrock")
  1135. end
  1136. for i=0, 1.5, 0.1 / Animation_Speed do
  1137. Swait()
  1138. 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(45), RAD(0), RAD(45)), 0.15 / Animation_Speed*3)
  1139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3)
  1140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  1141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1142. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1143. 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(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1144. end
  1145. UNANCHOR = true
  1146. VALUE1 = false
  1147. ATTACK = false
  1148. Rooted = false
  1149. end
  1150.  
  1151. --//=================================\\
  1152. --|| ASSIGN THINGS TO KEYS
  1153. --\\=================================//
  1154.  
  1155. function MouseDown(Mouse)
  1156. if ATTACK == false then
  1157. end
  1158. end
  1159.  
  1160. function MouseUp(Mouse)
  1161. HOLD = false
  1162. end
  1163.  
  1164. function KeyDown(Key)
  1165. KEYHOLD = true
  1166. if Key == "z" and ATTACK == false then
  1167. Block()
  1168. end
  1169.  
  1170. if Key == "b" and ATTACK == false then
  1171. ShieldBash()
  1172. end
  1173.  
  1174. if Key == "c" and ATTACK == false then
  1175. ShieldForce()
  1176. end
  1177.  
  1178. if Key == "v" and ATTACK == false then
  1179. MeteorSmash()
  1180. end
  1181. end
  1182.  
  1183. function KeyUp(Key)
  1184. KEYHOLD = false
  1185. end
  1186.  
  1187. Mouse.Button1Down:connect(function(NEWKEY)
  1188. MouseDown(NEWKEY)
  1189. end)
  1190. Mouse.Button1Up:connect(function(NEWKEY)
  1191. MouseUp(NEWKEY)
  1192. end)
  1193. Mouse.KeyDown:connect(function(NEWKEY)
  1194. KeyDown(NEWKEY)
  1195. end)
  1196. Mouse.KeyUp:connect(function(NEWKEY)
  1197. KeyUp(NEWKEY)
  1198. end)
  1199.  
  1200. --//=================================\\
  1201. --\\=================================//
  1202.  
  1203.  
  1204. function unanchor()
  1205. if UNANCHOR == true then
  1206. g = Character:GetChildren()
  1207. for i = 1, #g do
  1208. if g[i].ClassName == "Part" then
  1209. g[i].Anchored = false
  1210. end
  1211. end
  1212. end
  1213. end
  1214.  
  1215. --//=================================\\
  1216. --|| WRAP THE WHOLE SCRIPT UP
  1217. --\\=================================//
  1218.  
  1219. Humanoid.Changed:connect(function(Jump)
  1220. if Jump == "Jump" and (Disable_Jump == true) then
  1221. Humanoid.Jump = false
  1222. end
  1223. end)
  1224.  
  1225. ANIMATE.Parent = nil
  1226. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1227. IDLEANIMATION:Play()
  1228.  
  1229. --createaccessory(Head,"http://www.roblox.com/asset/?id=434078905","",VT(3,2,2),VT(0, 0.3, -0.25),BrickColor.new"Pearl")
  1230. createbodypart("Eye","Shamrock",Head,VT(0.2, 0.1, -0.52),VT(2,2,2))
  1231. createbodypart("Eye","Shamrock",Head,VT(-0.2, 0.1, -0.52),VT(2,2,2))
  1232.  
  1233. while true do
  1234. Swait()
  1235. SINE = SINE + CHANGE
  1236. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1237. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1238. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1239. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1240. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1241. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1242. 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)
  1243. 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)
  1244. 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)
  1245. 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)
  1246. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1247. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. end
  1252. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1253. ANIM = "Jump"
  1254. if ATTACK == false then
  1255. 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)
  1256. 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)
  1257. 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)
  1258. 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)
  1259. 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)
  1260. 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)
  1261. end
  1262. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1263. ANIM = "Fall"
  1264. if ATTACK == false then
  1265. 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)
  1266. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1267. 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)
  1268. 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)
  1269. 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)
  1270. 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)
  1271. end
  1272. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1273. ANIM = "Idle"
  1274. if ATTACK == false then
  1275. 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(0)), 0.15 / Animation_Speed)
  1276. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1277. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1278. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1279. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1280. 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(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1281. end
  1282. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1283. ANIM = "Walk"
  1284. WALK = WALK + 1 / Animation_Speed
  1285. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1286. WALK = 0
  1287. if WALKINGANIM == true then
  1288. WALKINGANIM = false
  1289. elseif WALKINGANIM == false then
  1290. WALKINGANIM = true
  1291. end
  1292. end
  1293. --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)
  1294. --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)
  1295. if ATTACK == false then
  1296. 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(0)), 0.15 / Animation_Speed)
  1297. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1298. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1299. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1300. 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)
  1301. 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)
  1302. end
  1303. end
  1304. if #Effects2>0 then
  1305. for e=1,#Effects2 do
  1306. if Effects2[e]~=nil then
  1307. local Thing=Effects2[e]
  1308. if Thing~=nil then
  1309. local Part=Thing[1]
  1310. local Mode=Thing[2]
  1311. local Delay=Thing[3]
  1312. local IncX=Thing[4]
  1313. local IncY=Thing[5]
  1314. local IncZ=Thing[6]
  1315. local Part2=Thing[8]
  1316. if Thing[1].Transparency<=1 then
  1317. if Thing[2]=="Block1" then
  1318. Thing[1].CFrame=Thing[1].CFrame
  1319. Mesh=Thing[1].Mesh
  1320. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1321. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1322. elseif Thing[2]=="Cylinder" then
  1323. Mesh=Thing[1].Mesh
  1324. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1325. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1326. elseif Thing[2]=="Blood" then
  1327. Mesh=Thing[7]
  1328. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1329. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1330. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1331. elseif Thing[2]=="Elec" then
  1332. Mesh=Thing[1].Mesh
  1333. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1334. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1335. elseif Thing[2]=="Disappear" then
  1336. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1337. end
  1338. else
  1339. Part.Parent=nil
  1340. table.remove(Effects2,e)
  1341. end
  1342. end
  1343. end
  1344. end
  1345. end
  1346. unanchor()
  1347. Humanoid.MaxHealth = "inf"
  1348. Humanoid.Health = "inf"
  1349. if Rooted == false then
  1350. Disable_Jump = false
  1351. Humanoid.WalkSpeed = Speed
  1352. elseif Rooted == true then
  1353. Disable_Jump = true
  1354. Humanoid.WalkSpeed = 0
  1355. end
  1356. q = Character:GetChildren()
  1357. for u = 1, #q do
  1358. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1359. --q[u]:remove()
  1360. end
  1361. end
  1362. if Head:FindFirstChild("face") then
  1363. Head.face:remove()
  1364. end
  1365. if Head:FindFirstChild("Mesh") then
  1366. local mesh = Head.Mesh
  1367. if mesh.ClassName == "SpecialMesh" and mesh.Name ~= "Skull" then
  1368. mesh:remove()
  1369. local newmesh = Instance.new("SpecialMesh")
  1370. newmesh.Scale = Vector3.new(1,1,1)
  1371. newmesh.MeshId = "http://www.roblox.com/asset/?id=181343290"
  1372. newmesh.TextureId = "http://www.roblox.com/asset/?id=181343313"
  1373. newmesh.Parent = Head
  1374. newmesh.Name = "Skull"
  1375. end
  1376. end
  1377. Weld.C0 = Clerp(Weld.C0, CF(0.5 * Player_Size, 0 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(SINE*5)), 0.15 / Animation_Speed)
  1378. Weld2.C0 = Clerp(Weld2.C0, CF(0.5 * Player_Size, 0 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-SINE*5)), 0.15 / Animation_Speed)
  1379. if VALUE1 == false then
  1380. SH.CanCollide = false
  1381. SH.Transparency = 1
  1382. HandlePart.Transparency = 1
  1383. HandlePart2.Transparency = 1
  1384. elseif VALUE1 == true then
  1385. SH.CanCollide = true
  1386. SH.Transparency = MRANDOM(3,6)/10
  1387. HandlePart.Transparency = MRANDOM(3,6)/10
  1388. HandlePart2.Transparency = MRANDOM(3,6)/10
  1389. end
  1390. ArmPart.Transparency = MRANDOM(2,4)/10
  1391. local MATHS = {"0","1"}
  1392. 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)]
  1393. end
  1394.  
  1395. --//=================================\\
  1396. --\\=================================//
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. --//====================================================\\--
  1403. --|| END OF SCRIPT
  1404. --\\====================================================//--
Add Comment
Please, Sign In to add comment