Advertisement
Demonlord27

shadow op nextflamepb

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