Advertisement
RIDHOCRaIWIW

usj

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