Advertisement
coolgoldboy166

sharpshooter

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