Advertisement
Ninja_Camper

garra (tentar aumentar dano)

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