Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.07 KB | None | 0 0
  1.  
  2. wait(0.2)
  3.  
  4.  
  5.  
  6. Player = game:GetService("Players").LocalPlayer
  7. PlayerGui = Player.PlayerGui
  8. Cam = workspace.CurrentCamera
  9. Backpack = Player.Backpack
  10. Character = Player.Character
  11. Humanoid = Character.Humanoid
  12. Mouse = Player:GetMouse()
  13. RootPart = Character["HumanoidRootPart"]
  14. Torso = Character["Torso"]
  15. Head = Character["Head"]
  16. RightArm = Character["Right Arm"]
  17. LeftArm = Character["Left Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LeftLeg = Character["Left Leg"]
  20. RootJoint = RootPart["RootJoint"]
  21. Neck = Torso["Neck"]
  22. RightShoulder = Torso["Right Shoulder"]
  23. LeftShoulder = Torso["Left Shoulder"]
  24. RightHip = Torso["Right Hip"]
  25. LeftHip = Torso["Left Hip"]
  26. KEYHOLD = false
  27. IT = Instance.new
  28. CF = CFrame.new
  29. VT = Vector3.new
  30. RAD = math.rad
  31. C3 = Color3.new
  32. UD2 = UDim2.new
  33. BRICKC = BrickColor.new
  34. ANGLES = CFrame.Angles
  35. EULER = CFrame.fromEulerAnglesXYZ
  36. COS = math.cos
  37. ACOS = math.acos
  38. SIN = math.sin
  39. ASIN = math.asin
  40. ABS = math.abs
  41. MRANDOM = math.random
  42. FLOOR = math.floor
  43. local Torsos = {}
  44. Taunts = {907328147,907330619,907332856,907329044,907329893}
  45.  
  46.  
  47. q = Character:GetChildren()
  48. for u = 1, #q do
  49. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  50. q[u]:remove()
  51. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  52. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  53. end
  54. end
  55.  
  56. for i,v in pairs(Character:GetChildren()) do
  57. if v.ClassName == "Shirt" then
  58. v:Remove()
  59. end
  60. if v.ClassName == "Pants" then
  61. v:Remove()
  62. end
  63. end
  64.  
  65.  
  66.  
  67.  
  68. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  69. local NEWMESH = IT(MESH)
  70. if MESH == "SpecialMesh" then
  71. NEWMESH.MeshType = MESHTYPE
  72. if MESHID ~= "nil" and MESHID ~= "" then
  73. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  74. end
  75. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  76. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  77. end
  78. end
  79. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  80. NEWMESH.Scale = SCALE
  81. NEWMESH.Parent = PARENT
  82. return NEWMESH
  83. end
  84.  
  85. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  86. local NEWPART = IT("Part")
  87. NEWPART.formFactor = FORMFACTOR
  88. NEWPART.Reflectance = REFLECTANCE
  89. NEWPART.Transparency = TRANSPARENCY
  90. NEWPART.CanCollide = false
  91. NEWPART.Locked = true
  92. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  93. NEWPART.Name = NAME
  94. NEWPART.Size = SIZE
  95. NEWPART.Position = Torso.Position
  96. NEWPART.Material = MATERIAL
  97. NEWPART:BreakJoints()
  98. NEWPART.Parent = PARENT
  99. return NEWPART
  100. end
  101.  
  102. function particles(art,enabled)
  103. local EyeSizes={
  104. NumberSequenceKeypoint.new(0,.8,0),
  105. NumberSequenceKeypoint.new(1,0,0)
  106. }
  107. local EyeTrans={
  108. NumberSequenceKeypoint.new(0,0,0),
  109. NumberSequenceKeypoint.new(1,1,0)
  110. }
  111. local PE=Instance.new("ParticleEmitter",art)
  112. PE.LightEmission=.4
  113. PE.Size=NumberSequence.new(EyeSizes)
  114. PE.Transparency=NumberSequence.new(EyeTrans)
  115. PE.Lifetime=NumberRange.new(0.5,0.5,0.5)
  116. PE.Rate=360
  117. PE.Speed = NumberRange.new(0,0,0)
  118. PE.Texture="rbxassetid://24419398"
  119. PE.ZOffset = 0
  120. PE.Name = "PE"
  121. PE.Enabled = enabled
  122. end
  123.  
  124. particles(RightArm,true)
  125. particles(LeftArm,true)
  126. particles(RightLeg,true)
  127. particles(LeftLeg,true)
  128. particles(Torso,true)
  129. particles(Head,true)
  130.  
  131.  
  132.  
  133.  
  134. --//=================================\\
  135. --|| CUSTOMIZATION
  136. --\\=================================//
  137.  
  138. Class_Name = "Rannoch"
  139. Weapon_Name = "Add-ons"
  140.  
  141.  
  142. Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
  143. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  144.  
  145. Custom_Color_3 = BRICKC("Black"); --Color for the abilities.
  146. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  147. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  148. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  149. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  150.  
  151. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  152. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  153. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  154. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  155. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  156.  
  157.  
  158. Player_Size = 1 --Size of the player.
  159. Animation_Speed = 3
  160. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  161.  
  162. local Speed = 16
  163. local Effects2 = {}
  164.  
  165. --//=================================\\
  166. --|| END OF CUSTOMIZATION
  167. --\\=================================//
  168.  
  169. local function weldBetween(a, b)
  170. local weldd = Instance.new("ManualWeld")
  171. weldd.Part0 = a
  172. weldd.Part1 = b
  173. weldd.C0 = CFrame.new()
  174. weldd.C1 = b.CFrame:inverse() * a.CFrame
  175. weldd.Parent = a
  176. return weldd
  177. end
  178.  
  179. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  180. local acs = Instance.new("Part")
  181. acs.CanCollide = false
  182. acs.Anchored = false
  183. acs.Size = Vector3.new(0,0,0)
  184. acs.CFrame = attachmentpart.CFrame
  185. acs.Parent = Character
  186. acs.BrickColor = color
  187. local meshs = Instance.new("SpecialMesh")
  188. meshs.MeshId = mesh
  189. meshs.TextureId = texture
  190. meshs.Parent = acs
  191. meshs.Scale = scale
  192. meshs.Offset = offset
  193. weldBetween(attachmentpart,acs)
  194. end
  195.  
  196. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  197. if TYPE == "Gem" then
  198. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  199. acs.Anchored = false
  200. acs.CanCollide = false
  201. acs.CFrame = PART.CFrame
  202. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  203. weldBetween(PART,acs)
  204. elseif TYPE == "Skull" then
  205. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  206. acs.Anchored = false
  207. acs.CanCollide = false
  208. acs.CFrame = PART.CFrame
  209. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  210. weldBetween(PART,acs)
  211. elseif TYPE == "Eye" then
  212. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  213. acs.Anchored = false
  214. acs.CanCollide = false
  215. acs.CFrame = PART.CFrame
  216. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  217. weldBetween(PART,acs)
  218. end
  219. end
  220.  
  221. --//=================================\\
  222. --|| USEFUL VALUES
  223. --\\=================================//
  224.  
  225. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  226. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  227. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  228. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  229. local CO1 = 0
  230. local CO2 = 0
  231. local CO3 = 0
  232. local CO4 = 0
  233. local CHANGEDEFENSE = 0
  234. local CHANGEDAMAGE = 0
  235. local CHANGEMOVEMENT = 0
  236. local ANIM = "Idle"
  237. local ATTACK = false
  238. local EQUIPPED = false
  239. local HOLD = false
  240. local COMBO = 1
  241. local LASTPOINT = nil
  242. local BLCF = nil
  243. local SCFR = nil
  244. local STAGGERHITANIM = false
  245. local STAGGERANIM = false
  246. local STUNANIM = false
  247. local CRITCHANCENUMBER = 0
  248. local IDLENUMBER = 0
  249. local DONUMBER = 0
  250. local HANDIDLE = false
  251. local SINE = 0
  252. local CHANGE = 2 / Animation_Speed
  253. local WALKINGANIM = false
  254. local WALK = 0
  255. local DISABLEJUMPING = false
  256. local HASBEENBLOCKED = false
  257. local STUNDELAYNUMBER = 0
  258. local MANADELAYNUMBER = 0
  259. local SECONDARYMANADELAYNUMBER = 0
  260. local ROBLOXIDLEANIMATION = IT("Animation")
  261. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  262. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  263. --ROBLOXIDLEANIMATION.Parent = Humanoid
  264. local WEAPONGUI = IT("ScreenGui", nil)
  265. WEAPONGUI.Name = "Weapon GUI"
  266. local WEAPONTOOL = IT("HopperBin", nil)
  267. WEAPONTOOL.Name = Weapon_Name
  268. local Weapon = IT("Model")
  269. Weapon.Name = Weapon_Name
  270. local Effects = IT("Folder", Weapon)
  271. Effects.Name = "Effects"
  272. local ANIMATOR = Humanoid.Animator
  273. local ANIMATE = Character.Animate
  274. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  275. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  276. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  277. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  278. local UNANCHOR = true
  279.  
  280. --//=================================\\
  281. --\\=================================//
  282.  
  283. --//=================================\\
  284. --|| STATS
  285. --\\=================================//
  286.  
  287. if Character:FindFirstChild("Stats") ~= nil then
  288. Character:FindFirstChild("Stats").Parent = nil
  289. end
  290.  
  291. local Stats = IT("Folder", nil)
  292. Stats.Name = "Stats"
  293. local ChangeStat = IT("Folder", Stats)
  294. ChangeStat.Name = "ChangeStat"
  295. local Defense = IT("NumberValue", Stats)
  296. Defense.Name = "Defense"
  297. Defense.Value = 1
  298. local Movement = IT("NumberValue", Stats)
  299. Movement.Name = "Movement"
  300. Movement.Value = 1
  301. local Damage = IT("NumberValue", Stats)
  302. Damage.Name = "Damage"
  303. Damage.Value = 1
  304. local Mana = IT("NumberValue", Stats)
  305. Mana.Name = "Mana"
  306. Mana.Value = 0
  307. local SecondaryMana = IT("NumberValue", Stats)
  308. SecondaryMana.Name = "SecondaryMana"
  309. SecondaryMana.Value = 0
  310. local CanCrit = IT("BoolValue", Stats)
  311. CanCrit.Name = "CanCrit"
  312. CanCrit.Value = false
  313. local CritChance = IT("NumberValue", Stats)
  314. CritChance.Name = "CritChance"
  315. CritChance.Value = 20
  316. local CanPenetrateArmor = IT("BoolValue", Stats)
  317. CanPenetrateArmor.Name = "CanPenetrateArmor"
  318. CanPenetrateArmor.Value = false
  319. local AntiTeamKill = IT("BoolValue", Stats)
  320. AntiTeamKill.Name = "AntiTeamKill"
  321. AntiTeamKill.Value = false
  322. local Rooted = IT("BoolValue", Stats)
  323. Rooted.Name = "Rooted"
  324. Rooted.Value = false
  325. local Block = IT("BoolValue", Stats)
  326. Block.Name = "Block"
  327. Block.Value = false
  328. local RecentEnemy = IT("ObjectValue", Stats)
  329. RecentEnemy.Name = "RecentEnemy"
  330. RecentEnemy.Value = nil
  331. local StaggerHit = IT("BoolValue", Stats)
  332. StaggerHit.Name = "StaggerHit"
  333. StaggerHit.Value = false
  334. local Stagger = IT("BoolValue", Stats)
  335. Stagger.Name = "Stagger"
  336. Stagger.Value = false
  337. local Stun = IT("BoolValue", Stats)
  338. Stun.Name = "Stun"
  339. Stun.Value = false
  340. local StunValue = IT("NumberValue", Stats)
  341. StunValue.Name = "StunValue"
  342. StunValue.Value = 0
  343.  
  344.  
  345. --//=================================\\
  346. --\\=================================//
  347.  
  348.  
  349.  
  350.  
  351.  
  352. --//=================================\\
  353. --|| DEBUFFS / BUFFS
  354. --\\=================================//
  355.  
  356. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  357. DEFENSECHANGE1.Name = "ChangeDefense"
  358. DEFENSECHANGE1.Value = 0
  359.  
  360. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  361. MOVEMENTCHANGE1.Name = "ChangeMovement"
  362. MOVEMENTCHANGE1.Value = 0
  363.  
  364. --//=================================\\
  365. --\\=================================//
  366.  
  367.  
  368.  
  369.  
  370.  
  371. --//=================================\\
  372. --| JERRYS' ARTIFICIAL HEARTBEAT
  373. --\\=================================//
  374.  
  375. ArtificialHB = Instance.new("BindableEvent", script)
  376. ArtificialHB.Name = "ArtificialHB"
  377.  
  378. script:WaitForChild("ArtificialHB")
  379.  
  380. frame = Frame_Speed
  381. tf = 0
  382. allowframeloss = false
  383. tossremainder = false
  384. lastframe = tick()
  385. script.ArtificialHB:Fire()
  386.  
  387. game:GetService("RunService").Heartbeat:connect(function(s, p)
  388. tf = tf + s
  389. if tf >= frame then
  390. if allowframeloss then
  391. script.ArtificialHB:Fire()
  392. lastframe = tick()
  393. else
  394. for i = 1, math.floor(tf / frame) do
  395. script.ArtificialHB:Fire()
  396. end
  397. lastframe = tick()
  398. end
  399. if tossremainder then
  400. tf = 0
  401. else
  402. tf = tf - frame * math.floor(tf / frame)
  403. end
  404. end
  405. end)
  406.  
  407. --//=================================\\
  408. --\\=================================//
  409.  
  410.  
  411.  
  412.  
  413.  
  414. --//=================================\\
  415. --|| SOME FUNCTIONS
  416. --\\=================================//
  417.  
  418. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  419. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  420. end
  421.  
  422. function PositiveAngle(NUMBER)
  423. if NUMBER >= 0 then
  424. NUMBER = 0
  425. end
  426. return NUMBER
  427. end
  428.  
  429. function NegativeAngle(NUMBER)
  430. if NUMBER <= 0 then
  431. NUMBER = 0
  432. end
  433. return NUMBER
  434. end
  435.  
  436. function Swait(NUMBER)
  437. if NUMBER == 0 or NUMBER == nil then
  438. ArtificialHB.Event:wait()
  439. else
  440. for i = 1, NUMBER do
  441. ArtificialHB.Event:wait()
  442. end
  443. end
  444. end
  445.  
  446. function QuaternionFromCFrame(cf)
  447. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  448. local trace = m00 + m11 + m22
  449. if trace > 0 then
  450. local s = math.sqrt(1 + trace)
  451. local recip = 0.5 / s
  452. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  453. else
  454. local i = 0
  455. if m11 > m00 then
  456. i = 1
  457. end
  458. if m22 > (i == 0 and m00 or m11) then
  459. i = 2
  460. end
  461. if i == 0 then
  462. local s = math.sqrt(m00 - m11 - m22 + 1)
  463. local recip = 0.5 / s
  464. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  465. elseif i == 1 then
  466. local s = math.sqrt(m11 - m22 - m00 + 1)
  467. local recip = 0.5 / s
  468. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  469. elseif i == 2 then
  470. local s = math.sqrt(m22 - m00 - m11 + 1)
  471. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  472. end
  473. end
  474. end
  475.  
  476. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  477. local xs, ys, zs = x + x, y + y, z + z
  478. local wx, wy, wz = w * xs, w * ys, w * zs
  479. local xx = x * xs
  480. local xy = x * ys
  481. local xz = x * zs
  482. local yy = y * ys
  483. local yz = y * zs
  484. local zz = z * zs
  485. 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))
  486. end
  487.  
  488. function QuaternionSlerp(a, b, t)
  489. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  490. local startInterp, finishInterp;
  491. if cosTheta >= 0.0001 then
  492. if (1 - cosTheta) > 0.0001 then
  493. local theta = ACOS(cosTheta)
  494. local invSinTheta = 1 / SIN(theta)
  495. startInterp = SIN((1 - t) * theta) * invSinTheta
  496. finishInterp = SIN(t * theta) * invSinTheta
  497. else
  498. startInterp = 1 - t
  499. finishInterp = t
  500. end
  501. else
  502. if (1 + cosTheta) > 0.0001 then
  503. local theta = ACOS(-cosTheta)
  504. local invSinTheta = 1 / SIN(theta)
  505. startInterp = SIN((t - 1) * theta) * invSinTheta
  506. finishInterp = SIN(t * theta) * invSinTheta
  507. else
  508. startInterp = t - 1
  509. finishInterp = t
  510. end
  511. end
  512. 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
  513. end
  514.  
  515. function Clerp(a, b, t)
  516. local qa = {QuaternionFromCFrame(a)}
  517. local qb = {QuaternionFromCFrame(b)}
  518. local ax, ay, az = a.x, a.y, a.z
  519. local bx, by, bz = b.x, b.y, b.z
  520. local _t = 1 - t
  521. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  522. end
  523.  
  524. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  525. local frame = IT("Frame")
  526. frame.BackgroundTransparency = TRANSPARENCY
  527. frame.BorderSizePixel = BORDERSIZEPIXEL
  528. frame.Position = POSITION
  529. frame.Size = SIZE
  530. frame.BackgroundColor3 = COLOR
  531. frame.BorderColor3 = BORDERCOLOR
  532. frame.Name = NAME
  533. frame.Parent = PARENT
  534. return frame
  535. end
  536.  
  537. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  538. local label = IT("TextLabel")
  539. label.BackgroundTransparency = 1
  540. label.Size = UD2(1, 0, 1, 0)
  541. label.Position = UD2(0, 0, 0, 0)
  542. label.TextColor3 = C3(255, 255, 255)
  543. label.TextStrokeTransparency = STROKETRANSPARENCY
  544. label.TextTransparency = TRANSPARENCY
  545. label.FontSize = TEXTFONTSIZE
  546. label.Font = TEXTFONT
  547. label.BorderSizePixel = BORDERSIZEPIXEL
  548. label.TextScaled = true
  549. label.Text = TEXT
  550. label.Name = NAME
  551. label.Parent = PARENT
  552. return label
  553. end
  554.  
  555. function NoOutlines(PART)
  556. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  557. end
  558.  
  559.  
  560. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  561. local NEWWELD = IT(TYPE)
  562. NEWWELD.Part0 = PART0
  563. NEWWELD.Part1 = PART1
  564. NEWWELD.C0 = C0
  565. NEWWELD.C1 = C1
  566. NEWWELD.Parent = PARENT
  567. return NEWWELD
  568. end
  569.  
  570. function CreateSound(ID, PARENT, VOLUME, PITCH)
  571. coroutine.resume(coroutine.create(function()
  572. local NEWSOUND = IT("Sound", PARENT)
  573. NEWSOUND.Volume = VOLUME
  574. NEWSOUND.Pitch = PITCH
  575. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  576. Swait()
  577. NEWSOUND:play()
  578. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  579. end))
  580. end
  581.  
  582. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  583. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  584. EFFECTPART.Anchored = true
  585. EFFECTPART.CFrame = CFRAME
  586. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  587. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  588. coroutine.resume(coroutine.create(function(PART, MESH)
  589. for i = 0, 1, delay do
  590. Swait()
  591. PART.CFrame = PART.CFrame * ROTATION
  592. PART.Transparency = i
  593. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  594. end
  595. PART.Parent = nil
  596. end), EFFECTPART, EFFECTMESH)
  597. end
  598.  
  599. function killnearest(position,range,maxstrength)
  600. for i,v in ipairs(workspace:GetChildren()) do
  601. local body = v:GetChildren()
  602. for part = 1, #body do
  603. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  604. if(body[part].Position - position).Magnitude < range then
  605. if v.ClassName == "Model" then
  606. v:BreakJoints()
  607. end
  608. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  609. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  610. end
  611. end
  612. end
  613. if v.ClassName == "Part" then
  614. if v.Anchored == false and (v.Position - position).Magnitude < range then
  615. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  616. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  617. end
  618. end
  619. end
  620. end
  621.  
  622.  
  623. function FuriousExplosion(PART,POS,SCALE)
  624. if PART ~= nil then
  625. PART:remove()
  626. end
  627. local FIREBALLCOLORS = {Custom_Color_1,Custom_Color_2,Custom_Color_3}
  628. POZ = POS.Position
  629. POS = CFrame.new(POS.Position)
  630. MagicSphere(Custom_Color_2, "Neon", POS, ANGLES(0, 0, 0), VT(0, 0, 0), SCALE*40,SCALE*40,SCALE*40, -0.2,00.2,00.2, 0.01)
  631. MagicSphere(Custom_Color_3, "Neon", POS, ANGLES(0, 0, 0), VT(0, 0, 0), SCALE*40,SCALE*40,SCALE*40, -0.5,-0.5,-0.5, 0.01)
  632. local POS2 = Instance.new("Part")
  633. POS2.Size = Vector3.new(SCALE,SCALE,SCALE)
  634. POS2.CFrame = CFrame.new(POS.X,POS.Y,POS.Z)
  635. POS2.Anchored = true
  636. POS2.CanCollide = false
  637. POS2.Parent = Effects
  638. POS2.Transparency = 1
  639. killnearest(POZ,SCALE,50)
  640. local PITCH = 2-SCALE/15
  641. if PITCH < 0.5 then
  642. PITCH = 0.5
  643. end
  644. game:GetService("Debris"):AddItem(POS2, 5)
  645. for i = 1, 8 do
  646. MagicSphere(FIREBALLCOLORS[MRANDOM(1, 3)], "Neon", POS * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SCALE*50,115,115,SCALE*0.85,0,0, 0.02)
  647. end
  648. for i = 1, 12 do
  649. MagicSphere(FIREBALLCOLORS[MRANDOM(1, 3)], "Neon", CF(POZ.X + math.random(-SCALE,SCALE),POZ.Y + math.random(-SCALE,SCALE),POZ.Z + math.random(-SCALE,SCALE)) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0,0,0,SCALE/5,SCALE/5,SCALE/5, 0.04)
  650. end
  651. CreateSound("636458264", Effects, SCALE/15, PITCH)
  652. local FIREBALLHITSOUNDS = {"331888892", "331666100", "304448425"}
  653. CreateSound("186772924", Effects, SCALE/15, PITCH)
  654. Swait()
  655. for i = 1, 5 do
  656. Swait()
  657. --MagnitudeDamage("", "", "", "", 1, 1, 1, 1, POS2, SCALE*1.3, false, 25, 35, 0, "Normal", RootPart, 0, 0.3, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false, "Damage")
  658. SIZE = MRANDOM(SCALE*32,SCALE*48)
  659. MagicSphere(FIREBALLCOLORS[MRANDOM(1, 3)], "Neon", POS, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE,2,SIZE, 5,0,5, 0.02)
  660. end
  661. end
  662.  
  663. --//=================================\\
  664. --\\=================================//
  665.  
  666.  
  667.  
  668.  
  669. --//=================================\\
  670. --|| RESIZE PLAYER
  671. --\\=================================//
  672.  
  673. if Player_Size ~= 1 then
  674. RootPart.Size = RootPart.Size * Player_Size
  675. Torso.Size = Torso.Size * Player_Size
  676. Head.Size = Head.Size * Player_Size
  677. RightArm.Size = RightArm.Size * Player_Size
  678. LeftArm.Size = LeftArm.Size * Player_Size
  679. RightLeg.Size = RightLeg.Size * Player_Size
  680. LeftLeg.Size = LeftLeg.Size * Player_Size
  681. RootJoint.Parent = RootPart
  682. Neck.Parent = Torso
  683. RightShoulder.Parent = Torso
  684. LeftShoulder.Parent = Torso
  685. RightHip.Parent = Torso
  686. LeftHip.Parent = Torso
  687.  
  688. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  689. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  690. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  691. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  692. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  693. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  694. if Disable_Moving_Arms == false then
  695. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  696. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  697. else
  698. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  699. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  700. end
  701. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  702. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  703. 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))
  704. 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))
  705. --------------------
  706. end
  707.  
  708.  
  709. --//=================================\\
  710. --|| NEEDED ACCESSORIES
  711. --\\=================================//
  712.  
  713.  
  714. createaccessory(Head,"http://www.roblox.com/asset/?id=1271547","rbxassetid://99174105",VT(1.05, 1.05, 1.05),VT(0, 1, 0),BrickColor.new"Really black")
  715. local eye1 = createbodypart("Eye","Institutional white",Head,VT(0.2, 0.23, -0.55),VT(5,3,3))
  716. local eye2 = createbodypart("Eye","Institutional white",Head,VT(-0.2, 0.23, -0.55),VT(5,3,3))
  717.  
  718.  
  719.  
  720.  
  721. --//=================================\\
  722. --|| WEAPON CREATION
  723. --\\=================================//
  724.  
  725. if Player_Size ~= 1 then
  726. for _, v in pairs (Weapon:GetChildren()) do
  727. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  728. local p1 = v.Part1
  729. v.Part1 = nil
  730. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  731. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  732. v.Part1 = p1
  733. elseif v.ClassName == "Part" then
  734. for _, b in pairs (v:GetChildren()) do
  735. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  736. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  737. end
  738. end
  739. end
  740. end
  741. end
  742.  
  743. for _, c in pairs(Weapon:GetChildren()) do
  744. if c.ClassName == "Part" then
  745. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  746. end
  747. end
  748.  
  749. Weapon.Parent = Character
  750.  
  751. print(Class_Name.." loaded.")
  752.  
  753. --//=================================\\
  754. --\\=================================//
  755.  
  756.  
  757.  
  758. --//=================================\\
  759. --|| ATTACK FUNCTIONS AND STUFF
  760. --\\=================================//
  761.  
  762. local raysound = Instance.new("Sound",Character)
  763. raysound.SoundId = "rbxassetid://273752162"
  764. raysound.Pitch = 2
  765. raysound.Looped = true
  766. raysound.Volume = 2
  767.  
  768. function Taunt()
  769. CreateSound(Taunts[MRANDOM(1, #Taunts)], Head, 1.4, 1)
  770. end
  771.  
  772.  
  773. function pew()
  774. Rooted = true
  775. CreateSound("331888685", Character, 2, 1)
  776. local sphere = Instance.new("Part",Effects)
  777. sphere.Size = Vector3.new(0,0,0)
  778. sphere.Material = "Neon"
  779. sphere.Shape = "Ball"
  780. sphere.Name = "AntimatterBullet"
  781. sphere.Anchored = true
  782. sphere.Color = Color3.new(0/255, 0/255, 0/255)
  783. sphere.CFrame = RightArm.CFrame * CF(0,-1,0)
  784. sphere.CanCollide = false
  785. particles(sphere,true)
  786. ATTACK = true
  787. local hit = sphere.Touched:connect(function(hit)
  788. if hit.CanCollide == true and hit.Parent ~= Character then
  789. if sphere:FindFirstChild("Inferno") then
  790. FuriousExplosion(sphere,sphere,sphere.Size.Y*20)
  791. else
  792. FuriousExplosion(sphere,sphere,sphere.Size.Y*20)
  793. end
  794. end
  795. end)
  796. repeat
  797. Swait()
  798. if sphere.Size.Y < 8.03 then
  799. sphere.Size = sphere.Size + Vector3.new(0.03,0.03,0.03)
  800. elseif sphere.Size.Y > 8 then
  801. sphere.Size = VT(8,8,8)
  802. end
  803. sphere.CFrame = RightArm.CFrame * CF(0,-1-sphere.Size.Y/2,0)
  804. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.2 / Animation_Speed*3)
  805. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.2 / Animation_Speed)
  806. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(25), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  807. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  808. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  809. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  810. until KEYHOLD == false
  811. CreateSound("1127797047", sphere, 4, MRANDOM(6, 10) / 10)
  812. local taunt = CreateSound("215395388", Character, 1.2, 2.5)
  813. local effect = IT("PitchShiftSoundEffect",taunt)
  814. effect.Octave = 1
  815. local bv = Instance.new("BodyVelocity")
  816. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  817. bv.velocity = RootPart.CFrame.lookVector*50
  818. bv.Parent = sphere
  819. bv.Name = "DASH"
  820. sphere.Anchored = false
  821. for i=0, 1, 0.1 / Animation_Speed*3 do
  822. Swait()
  823. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.2 / Animation_Speed*3)
  824. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.2 / Animation_Speed)
  825. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3)
  826. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  827. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  828. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  829. end
  830. Rooted = false
  831. ATTACK = false
  832. end
  833.  
  834. function HoldRay()
  835. ATTACK = true
  836. UNANCHOR = false
  837. for i=0, 1.5, 0.1 / Animation_Speed do
  838. Swait()
  839. 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)
  840. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  841. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  842. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  843. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  844. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  845. end
  846. CreateSound("428800263", Torso, 15, 3.5)
  847. local sphere = Instance.new("Part",Effects)
  848. sphere.Size = Vector3.new(0,0,0)
  849. sphere.Material = "Neon"
  850. sphere.Shape = "Ball"
  851. sphere.Name = "AntimatterRay"
  852. sphere.Anchored = true
  853. sphere.Color = Color3.new(0,0,0)
  854. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  855. sphere.CanCollide = false
  856. for i=0, 1, 0.1 / Animation_Speed do
  857. Swait()
  858. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  859. sphere.Size = sphere.Size + Vector3.new(0.6,0.6,0.6)
  860. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  861. end
  862. local sound = Instance.new("Sound",Effects)
  863. sound.SoundId = "rbxassetid://165487479"
  864. sound.Volume = 0
  865. sound.Pitch = 3
  866. sound:Play()
  867. repeat
  868. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  869. Swait()
  870. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  871. until sound.Playing == false
  872. sound:Remove()
  873. raysound:Play()
  874. local timer = 1
  875. local Lazor = Instance.new("Part",Effects)
  876. Lazor.Size = Vector3.new(12,12,1000)
  877. Lazor.Name = "AntimatterRay"
  878. Lazor.Material = "Neon"
  879. Lazor.Anchored = true
  880. Lazor.CanCollide = false
  881. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  882. Lazor.Color = Color3.new(0,0,0)
  883. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  884. local hit = Lazor.Touched:connect(function(hit)
  885. if hit.Parent ~= Character and hit.Parent.Parent ~= Character and hit.Parent ~= Effects and hit.Anchored == false and hit:FindFirstChild("Vanishing") == nil then
  886. if hit.Parent:FindFirstChild("Humanoid") then
  887. hit.Parent:BreakJoints()
  888. if hit.Parent:FindFirstChild("Vanishing") == nil then
  889. local vanish = Instance.new("BoolValue",hit.Parent)
  890. vanish.Name = "Vanishing"
  891. local sound = Instance.new("Sound",hit)
  892. sound.SoundId = "rbxassetid://1177785010"
  893. sound.Volume = 10
  894. sound:Play()
  895. end
  896. else
  897. local vanish = Instance.new("BoolValue",hit)
  898. vanish.Name = "Vanishing"
  899. hit.Color = Color3.new(0,0,0)
  900. table.insert(Effects2,{hit,"Disappear",0.07,0,1,1,1})
  901. if hit:FindFirstChildOfClass("SpecialMesh") then
  902. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  903. mesh.TextureId = ""
  904. end
  905. end
  906. end
  907. end)
  908. local hit2 = sphere.Touched:connect(function(hit)
  909. if hit.Parent ~= Character and hit.Parent.Parent ~= Character and hit.Parent ~= Effects and hit.Anchored == false and hit:FindFirstChild("Vanishing") == nil then
  910. if hit.Parent:FindFirstChild("Humanoid") then
  911. hit.Parent:BreakJoints()
  912. if hit.Parent:FindFirstChild("Vanishing") == nil then
  913. local vanish = Instance.new("BoolValue",hit.Parent)
  914. vanish.Name = "Vanishing"
  915. local sound = Instance.new("Sound",hit)
  916. sound.SoundId = "rbxassetid://1177785010"
  917. sound.Volume = 10
  918. sound:Play()
  919. end
  920. else
  921. local vanish = Instance.new("BoolValue",hit)
  922. vanish.Name = "Vanishing"
  923. hit.Color = Color3.new(0,0,0)
  924. table.insert(Effects2,{hit,"Disappear",0.07,0,1,1,1})
  925. if hit:FindFirstChildOfClass("SpecialMesh") then
  926. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  927. mesh.TextureId = ""
  928. end
  929. end
  930. end
  931. end)
  932. repeat
  933. if HOLD == true then
  934. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  935. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  936. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  937. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  938. if timer ==1 then
  939. Lazor.Color = Color3.new(1,1,1)
  940. sphere.Color = Color3.new(0,0,0)
  941. timer = 2
  942. elseif timer ==2 then
  943. Lazor.Color = Color3.new(0,0,0)
  944. sphere.Color = Color3.new(1,1,1)
  945. timer = 1
  946. end
  947. end
  948. Swait()
  949. until HOLD == false
  950. for i=0, 1, 0.1 / Animation_Speed/2 do
  951. Swait()
  952. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  953. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  954. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  955. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  956. sphere.Anchored = true
  957. Lazor.Anchored = true
  958. sphere.Size = sphere.Size - Vector3.new(0.2,0.2,0.2)
  959. Lazor.Size = Lazor.Size - Vector3.new(0.5,0.5,0)
  960. Lazor.Transparency = Lazor.Transparency + 0.03
  961. sphere.Transparency = sphere.Transparency + 0.03
  962. raysound.Volume = raysound.Volume - 0.1
  963. if timer ==1 then
  964. Lazor.Color = Color3.new(1,1,1)
  965. sphere.Color = Color3.new(0,0,0)
  966. timer = 2
  967. elseif timer ==2 then
  968. Lazor.Color = Color3.new(0,0,0)
  969. sphere.Color = Color3.new(1,1,1)
  970. timer = 1
  971. end
  972. end
  973. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Vector3.new(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  974. hit2:disconnect()
  975. hit:disconnect()
  976. raysound:Stop()
  977. raysound.Volume = 5
  978. sphere:remove()
  979. Lazor:remove()
  980. BLCF = nil
  981. SCFR = nil
  982. coroutine.resume(coroutine.create(function()
  983. for i=0, 1, 0.1 / Animation_Speed do
  984. Swait()
  985. 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)
  986. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  987. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  988. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  989. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  990. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  991. end
  992. end))
  993. ATTACK = false
  994. UNANCHOR = true
  995. end
  996.  
  997. local sick = Instance.new("Sound",Character)
  998. sick.SoundId = "rbxassetid://1119237438"
  999. sick.Looped = true
  1000. sick.Pitch = 1
  1001. sick.Volume = 1
  1002. sick:Play()
  1003. sick.Name = "RannochIsHere"
  1004. cloneofmusic = sick:Clone()
  1005.  
  1006. local Spook = false
  1007.  
  1008.  
  1009.  
  1010. --//=================================\\
  1011. --|| ASSIGN THINGS TO KEYS
  1012. --\\=================================//
  1013.  
  1014. Humanoid.Changed:connect(function(Jump)
  1015. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1016. Humanoid.Jump = false
  1017. end
  1018. end)
  1019.  
  1020.  
  1021.  
  1022.  
  1023. function MouseDown(Mouse)
  1024. if HOLD == false and ATTACK == false then
  1025. HOLD = true
  1026. HoldRay()
  1027. elseif HOLD == true then
  1028. HOLD = false
  1029. end
  1030. end
  1031.  
  1032.  
  1033. function MouseUp(Mouse)
  1034. end
  1035.  
  1036. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1037. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1038. end
  1039.  
  1040. function KeyDown(Key)
  1041. if Key == "t" then
  1042. Taunt()
  1043. end
  1044. KEYHOLD = true
  1045. if Key == "w" and HOLD == false and ATTACK == false then
  1046. repeat
  1047. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*150, 1.8, {workspace})
  1048. RootPart.CFrame = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1049. Swait()
  1050. until KEYHOLD == false
  1051. end
  1052. if Key == "s" and HOLD == false and ATTACK == false then
  1053. repeat
  1054. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*-150, 1.8, {workspace})
  1055. RootPart.CFrame = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1056. Swait()
  1057. until KEYHOLD == false
  1058. end
  1059. if Key == "z" and ATTACK == false then
  1060. pew()
  1061. end
  1062. end
  1063.  
  1064. function KeyUp(Key)
  1065. KEYHOLD = false
  1066. end
  1067.  
  1068. Mouse.Button1Down:connect(function(NEWKEY)
  1069. MouseDown(NEWKEY)
  1070. end)
  1071. Mouse.Button1Up:connect(function(NEWKEY)
  1072. MouseUp(NEWKEY)
  1073. end)
  1074. Mouse.KeyDown:connect(function(NEWKEY)
  1075. KeyDown(NEWKEY)
  1076. end)
  1077. Mouse.KeyUp:connect(function(NEWKEY)
  1078. KeyUp(NEWKEY)
  1079. end)
  1080.  
  1081. --//=================================\\
  1082. --\\=================================//
  1083.  
  1084.  
  1085. function unanchor()
  1086. if UNANCHOR == true then
  1087. g = Character:GetChildren()
  1088. for i = 1, #g do
  1089. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1090. g[i].Anchored = false
  1091. end
  1092. end
  1093. end
  1094. RootPart.Anchored = true
  1095. end
  1096.  
  1097.  
  1098. --//=================================\\
  1099. --|| WRAP THE WHOLE SCRIPT UP
  1100. --\\=================================//
  1101.  
  1102. Humanoid.Changed:connect(function(Jump)
  1103. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1104. Humanoid.Jump = false
  1105. end
  1106. end)
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114. ANIMATE.Parent = nil
  1115. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1116. IDLEANIMATION:Play()
  1117.  
  1118. while true do
  1119. Swait()
  1120. SINE = SINE + CHANGE
  1121. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1122. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1123. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1124. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1125. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  1126. if ANIM == "Idle" and TORSOVELOCITY > 1 then
  1127. ANIM = "Idle"
  1128. if ATTACK == false then
  1129. 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)
  1130. 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(5)), 0.15 / Animation_Speed)
  1131. 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)
  1132. 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)
  1133. end
  1134. if #Effects2>0 then
  1135. for e=1,#Effects2 do
  1136. if Effects2[e]~=nil then
  1137. local Thing=Effects2[e]
  1138. if Thing~=nil then
  1139. local Part=Thing[1]
  1140. local Mode=Thing[2]
  1141. local Delay=Thing[3]
  1142. local IncX=Thing[4]
  1143. local IncY=Thing[5]
  1144. local IncZ=Thing[6]
  1145. local Part2=Thing[8]
  1146. if Thing[1].Transparency<=1 then
  1147. if Thing[2]=="Block1" then
  1148. Thing[1].CFrame=Part2.CFrame
  1149. Mesh=Thing[1].Mesh
  1150. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1151. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1152. elseif Thing[2]=="Cylinder" then
  1153. Mesh=Thing[1].Mesh
  1154. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1155. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1156. elseif Thing[2]=="Blood" then
  1157. Mesh=Thing[7]
  1158. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1159. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1160. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1161. elseif Thing[2]=="Elec" then
  1162. Mesh=Thing[1].Mesh
  1163. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1164. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1165. elseif Thing[2]=="Disappear" then
  1166. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1167. elseif Thing[2]=="TorsoSpin" and Spook == true then
  1168. Thing[1].CFrame = CFrame.new(Thing[1].Position,Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180)))
  1169. end
  1170. else
  1171. Part.Parent=nil
  1172. table.remove(Effects2,e)
  1173. end
  1174. end
  1175. end
  1176. end
  1177. end
  1178. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1179. q = Character:GetChildren()
  1180. for u = 1, #q do
  1181. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1182. q[u]:remove()
  1183. elseif q[u].ClassName == "RightArm" and q[u].Name ~= "HumanoidRootPart" then
  1184. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1185. elseif q[u].ClassName == "LeftArm" and q[u].Name ~= "HumanoidRootPart" then
  1186. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1187. elseif q[u].ClassName == "RightLeg" and q[u].Name ~= "HumanoidRootPart" then
  1188. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1189. elseif q[u].ClassName == "LeftLeg" and q[u].Name ~= "HumanoidRootPart" then
  1190. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1191. elseif q[u].ClassName == "Torso" and q[u].Name ~= "HumanoidRootPart" then
  1192. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1193. elseif q[u].ClassName == "Head" and q[u].Name ~= "HumanoidRootPart" then
  1194. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1195. end
  1196. end
  1197. Head.Color = Color3.new(0/255, 0/255, 0/255)
  1198. Torso.Color = Color3.new(0/255, 0/255, 0/255)
  1199. RightLeg.Color = Color3.new(0/255, 0/255, 0/255)
  1200. LeftLeg.Color = Color3.new(0/255, 0/255, 0/255)
  1201. RightArm.Color = Color3.new(0/255, 0/255, 0/255)
  1202. LeftArm.Color = Color3.new(0/255, 0/255, 0/255)
  1203. if sick.Parent == nil then
  1204. sick.Parent = game.Players.LocalPlayer.Character
  1205. end
  1206. unanchor()
  1207. Humanoid.MaxHealth = "inf"
  1208. Humanoid.Health = "inf"
  1209. if Rooted == false then
  1210. Disable_Jump = false
  1211. Humanoid.WalkSpeed = Speed
  1212. elseif Rooted == true then
  1213. Disable_Jump = true
  1214. Humanoid.WalkSpeed = 0
  1215. end
  1216. if Head:FindFirstChild("face") then
  1217. Head.face:remove()
  1218. end
  1219. end
  1220. end
  1221.  
  1222. --//=================================\\
  1223. --\\=================================//
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229. --//====================================================\\--
  1230. --|| END OF SCRIPT
  1231. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement