Advertisement
Guest User

swagwasteredit

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