Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.82 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| SUPERIOR BY JAVIERPAP1
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game.Players.LocalPlayer
  8. Character = Player.Character
  9. local txt = Instance.new("BillboardGui", Character)
  10. txt.Adornee = Character.Head
  11. txt.Name = "_status"
  12. txt.Size = UDim2.new(2, 0, 1.2, 0)
  13. txt.StudsOffset = Vector3.new(-9, 10, 0)
  14. local text = Instance.new("TextLabel", txt)
  15. text.Size = UDim2.new(10, 0, 7, 0)
  16. text.FontSize = "Size24"
  17. text.TextScaled = true
  18. text.TextTransparency = 0
  19. text.BackgroundTransparency = 1
  20. text.TextTransparency = 0
  21. text.TextStrokeTransparency = 0
  22. text.Font = "Bodoni"
  23. text.TextStrokeColor3 = Color3.new(1,1,0)
  24. text.Text = " "
  25.  
  26. Player = game:GetService("Players").LocalPlayer
  27. PlayerGui = Player.PlayerGui
  28. Cam = workspace.CurrentCamera
  29. Backpack = Player.Backpack
  30. Character = Player.Character
  31. Humanoid = Character.Humanoid
  32. Mouse = Player:GetMouse()
  33. RootPart = Character["HumanoidRootPart"]
  34. Torso = Character["Torso"]
  35. Head = Character["Head"]
  36. RightArm = Character["Right Arm"]
  37. LeftArm = Character["Left Arm"]
  38. RightLeg = Character["Right Leg"]
  39. LeftLeg = Character["Left Leg"]
  40. RootJoint = RootPart["RootJoint"]
  41. Neck = Torso["Neck"]
  42. RightShoulder = Torso["Right Shoulder"]
  43. LeftShoulder = Torso["Left Shoulder"]
  44. RightHip = Torso["Right Hip"]
  45. LeftHip = Torso["Left Hip"]
  46. Character.Archivable = true
  47. Player:ClearCharacterAppearance()
  48.  
  49. IT = Instance.new
  50. CF = CFrame.new
  51. VT = Vector3.new
  52. RAD = math.rad
  53. C3 = Color3.new
  54. UD2 = UDim2.new
  55. BRICKC = BrickColor.new
  56. ANGLES = CFrame.Angles
  57. EULER = CFrame.fromEulerAnglesXYZ
  58. COS = math.cos
  59. ACOS = math.acos
  60. SIN = math.sin
  61. ASIN = math.asin
  62. ABS = math.abs
  63. MRANDOM = math.random
  64. FLOOR = math.floor
  65.  
  66. --//=================================\\
  67. --|| USEFUL VALUES
  68. --\\=================================//
  69.  
  70. Animation_Speed = 3
  71. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  72. local Speed = 20
  73. local SIZE = 1.4
  74. local Player_Size = 1.4
  75. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  76. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  77. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  78. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  79. local DAMAGEMULTIPLIER = 1
  80. local ANIM = "Idle"
  81. local ATTACK = false
  82. local EQUIPPED = false
  83. local HOLD = false
  84. local COMBO = 1
  85. local Rooted = false
  86. local SINE = 0
  87. local KEYHOLD = false
  88. local CHANGE = 2 / Animation_Speed
  89. local WALKINGANIM = false
  90. local VALUE1 = false
  91. local VALUE2 = false
  92. local ROBLOXIDLEANIMATION = IT("Animation")
  93. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  94. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  95. local ATANIM = IT("Animation")
  96. ATANIM.Name = "Attack Animation"
  97. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  98. --ROBLOXIDLEANIMATION.Parent = Humanoid
  99. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  100. WEAPONGUI.Name = "Weapon GUI"
  101. local Weapon = IT("Model")
  102. Weapon.Name = "Adds"
  103. local Injustice = IT("Model")
  104. Weapon.Name = "Adds"
  105. local InjusticeGun = IT("Model")
  106. Weapon.Name = "Adds"
  107. local InjusticeGun2 = IT("Model")
  108. Weapon.Name = "Adds"
  109. local Effects = IT("Folder", Weapon)
  110. Effects.Name = "Effects"
  111. local ANIMATOR = Humanoid.Animator
  112. local ANIMATE = Character.Animate
  113. local UNANCHOR = true
  114. local CLOCKLOOP = 0
  115. local SONG = 929330882
  116. local CLOCKTARGET = nil
  117. local CLOCKSPEED = 5
  118. script.Parent = WEAPONGUI
  119. local CLONE = Character:Clone()
  120. CLONE.Parent = nil
  121. Character.Archivable = false
  122. local sick = Instance.new("Sound",Torso)
  123. local BOLTSOUNDS = {168586621,168586586,178452241}
  124.  
  125. --//=================================\\
  126. --\\=================================//
  127.  
  128.  
  129. --//=================================\\
  130. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  131. --\\=================================//
  132.  
  133. ArtificialHB = Instance.new("BindableEvent", script)
  134. ArtificialHB.Name = "ArtificialHB"
  135.  
  136. script:WaitForChild("ArtificialHB")
  137.  
  138. frame = Frame_Speed
  139. tf = 0
  140. allowframeloss = false
  141. tossremainder = false
  142. lastframe = tick()
  143. script.ArtificialHB:Fire()
  144.  
  145. game:GetService("RunService").Heartbeat:connect(function(s, p)
  146. tf = tf + s
  147. if tf >= frame then
  148. if allowframeloss then
  149. script.ArtificialHB:Fire()
  150. lastframe = tick()
  151. else
  152. for i = 1, math.floor(tf / frame) do
  153. script.ArtificialHB:Fire()
  154. end
  155. lastframe = tick()
  156. end
  157. if tossremainder then
  158. tf = 0
  159. else
  160. tf = tf - frame * math.floor(tf / frame)
  161. end
  162. end
  163. end)
  164.  
  165. --//=================================\\
  166. --\\=================================//
  167.  
  168. --//=================================\\
  169. --|| SOME FUNCTIONS
  170. --\\=================================//
  171.  
  172. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  173. if FLOOR ~= nil then
  174. coroutine.resume(coroutine.create(function()
  175. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  176. PART.CFrame = CF(POSITION)
  177. for i = 1, 45 do
  178. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  179. RingPiece.Material = FLOOR.Material
  180. RingPiece.Color = FLOOR.Color
  181. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  182. Debris:AddItem(RingPiece,SWAIT)
  183. end
  184. PART:remove()
  185. end))
  186. end
  187. end
  188.  
  189. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  190. if FLOOR ~= nil then
  191. for i = 1, AMOUNT do
  192. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  193. DEBREE.Material = FLOOR.Material
  194. DEBREE.Color = FLOOR.Color
  195. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  196. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  197. coroutine.resume(coroutine.create(function()
  198. Swait(15)
  199. DEBREE.Parent = workspace
  200. DEBREE.CanCollide = true
  201. Debris:AddItem(DEBREE,SWAIT)
  202. end))
  203. end
  204. end
  205. end
  206.  
  207. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  208. function Lightning(Table)
  209. local Color = Table.Color or C3(1,1,1)
  210. local StartPos = Table.Start or Torso.Position
  211. local EndPos = Table.End or Mouse.Hit.p
  212. local SegmentLength = Table.SegmentL or 2
  213. local Thickness = Table.Thickness or 0.1
  214. local Dissapear = Table.DoesFade or false
  215. local Parent = Table.Ignore or Character
  216. local MaxDist = Table.MaxDist or 400
  217. local Branches = Table.Branches or false
  218. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  219. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  220. local LIGHTNINGMODEL = IT("Model",Effects)
  221. LIGHTNINGMODEL.Name = "Lightning"
  222. local LastBolt = nil
  223. for E = 1, DISTANCE do
  224. local ExtraSize = (DISTANCE-E)/15
  225. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  226. PART.Color = Color
  227. MakeForm(PART,"Cyl")
  228. if LastBolt == nil then
  229. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  230. else
  231. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  232. end
  233. LastBolt = PART
  234. if Branches == true then
  235. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  236. if CHOICE == 1 then
  237. local LASTBRANCH = nil
  238. for i = 1, MRANDOM(2,5) do
  239. local ExtraSize2 = ((DISTANCE-E)/25)/i
  240. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  241. PART.Color = Color
  242. MakeForm(PART,"Cyl")
  243. if LASTBRANCH == nil then
  244. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  245. else
  246. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  247. end
  248. LASTBRANCH = PART
  249. end
  250. end
  251. end
  252. end
  253. if Dissapear == true then
  254. coroutine.resume(coroutine.create(function()
  255. for i = 1, 10 do
  256. Swait()
  257. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  258. if c.ClassName == "Part" then
  259. c.Transparency = i/10
  260. end
  261. end
  262. end
  263. LIGHTNINGMODEL:remove()
  264. end))
  265. elseif Dissapear == false then
  266. Debris:AddItem(LIGHTNINGMODEL,0.1)
  267. end
  268. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  269. end
  270.  
  271. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  272. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  273. local mesh = IT("SpecialMesh",wave)
  274. mesh.MeshType = "FileMesh"
  275. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  276. mesh.Scale = SIZE
  277. mesh.Offset = VT(0,0,-SIZE.X/8)
  278. wave.CFrame = CFRAME
  279. coroutine.resume(coroutine.create(function(PART)
  280. for i = 1, WAIT do
  281. Swait()
  282. mesh.Scale = mesh.Scale + GROW
  283. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  284. if DOESROT == true then
  285. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  286. end
  287. wave.Transparency = wave.Transparency + (0.5/WAIT)
  288. if wave.Transparency > 0.99 then
  289. wave:remove()
  290. end
  291. end
  292. end))
  293. end
  294.  
  295. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  296. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  297. local mesh = IT("SpecialMesh",wave)
  298. mesh.MeshType = "FileMesh"
  299. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  300. mesh.Scale = SIZE
  301. --mesh.Offset = VT(0,0,-SIZE.X/8)
  302. wave.CFrame = CFRAME
  303. coroutine.resume(coroutine.create(function(PART)
  304. for i = 1, WAIT do
  305. Swait()
  306. mesh.Scale = mesh.Scale + GROW
  307. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  308. if DOESROT == true then
  309. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  310. end
  311. wave.Transparency = wave.Transparency + (0.5/WAIT)
  312. if wave.Transparency > 0.99 then
  313. wave:remove()
  314. end
  315. end
  316. end))
  317. end
  318.  
  319. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  320. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  321. local mesh = IT("SpecialMesh",wave)
  322. mesh.MeshType = "Sphere"
  323. mesh.Scale = SIZE
  324. mesh.Offset = VT(0,0,0)
  325. wave.CFrame = CFRAME
  326. coroutine.resume(coroutine.create(function(PART)
  327. for i = 1, WAIT do
  328. Swait()
  329. mesh.Scale = mesh.Scale + GROW
  330. wave.Transparency = wave.Transparency + (1/WAIT)
  331. if wave.Transparency > 0.99 then
  332. wave:remove()
  333. end
  334. end
  335. end))
  336. end
  337.  
  338. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  339. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  340. local mesh = IT("SpecialMesh",wave)
  341. mesh.MeshType = "FileMesh"
  342. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  343. mesh.Scale = SIZE
  344. wave.CFrame = CFRAME
  345. coroutine.resume(coroutine.create(function(PART)
  346. for i = 1, WAIT do
  347. Swait()
  348. mesh.Scale = mesh.Scale + GROW
  349. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  350. if DOESROT == true then
  351. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  352. end
  353. wave.Transparency = wave.Transparency + (0.5/WAIT)
  354. if wave.Transparency > 0.99 then
  355. wave:remove()
  356. end
  357. end
  358. end))
  359. end
  360.  
  361. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  362. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  363. end
  364.  
  365. function PositiveAngle(NUMBER)
  366. if NUMBER >= 0 then
  367. NUMBER = 0
  368. end
  369. return NUMBER
  370. end
  371.  
  372. function NegativeAngle(NUMBER)
  373. if NUMBER <= 0 then
  374. NUMBER = 0
  375. end
  376. return NUMBER
  377. end
  378.  
  379. function Swait(NUMBER)
  380. if NUMBER == 0 or NUMBER == nil then
  381. ArtificialHB.Event:wait()
  382. else
  383. for i = 1, NUMBER do
  384. ArtificialHB.Event:wait()
  385. end
  386. end
  387. end
  388.  
  389. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  390. local NEWMESH = IT(MESH)
  391. if MESH == "SpecialMesh" then
  392. NEWMESH.MeshType = MESHTYPE
  393. if MESHID ~= "nil" and MESHID ~= "" then
  394. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  395. end
  396. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  397. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  398. end
  399. end
  400. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  401. NEWMESH.Scale = SCALE
  402. NEWMESH.Parent = PARENT
  403. return NEWMESH
  404. end
  405.  
  406. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  407. local NEWPART = IT("Part")
  408. NEWPART.formFactor = FORMFACTOR
  409. NEWPART.Reflectance = REFLECTANCE
  410. NEWPART.Transparency = TRANSPARENCY
  411. NEWPART.CanCollide = false
  412. NEWPART.Locked = true
  413. NEWPART.Anchored = true
  414. if ANCHOR == false then
  415. NEWPART.Anchored = false
  416. end
  417. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  418. NEWPART.Name = NAME
  419. NEWPART.Size = SIZE
  420. NEWPART.Position = Torso.Position
  421. NEWPART.Material = MATERIAL
  422. NEWPART:BreakJoints()
  423. NEWPART.Parent = PARENT
  424. return NEWPART
  425. end
  426.  
  427. local function weldBetween(a, b)
  428. local weldd = Instance.new("ManualWeld")
  429. weldd.Part0 = a
  430. weldd.Part1 = b
  431. weldd.C0 = CFrame.new()
  432. weldd.C1 = b.CFrame:inverse() * a.CFrame
  433. weldd.Parent = a
  434. return weldd
  435. end
  436.  
  437.  
  438. function QuaternionFromCFrame(cf)
  439. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  440. local trace = m00 + m11 + m22
  441. if trace > 0 then
  442. local s = math.sqrt(1 + trace)
  443. local recip = 0.5 / s
  444. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  445. else
  446. local i = 0
  447. if m11 > m00 then
  448. i = 1
  449. end
  450. if m22 > (i == 0 and m00 or m11) then
  451. i = 2
  452. end
  453. if i == 0 then
  454. local s = math.sqrt(m00 - m11 - m22 + 1)
  455. local recip = 0.5 / s
  456. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  457. elseif i == 1 then
  458. local s = math.sqrt(m11 - m22 - m00 + 1)
  459. local recip = 0.5 / s
  460. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  461. elseif i == 2 then
  462. local s = math.sqrt(m22 - m00 - m11 + 1)
  463. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  464. end
  465. end
  466. end
  467.  
  468. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  469. local xs, ys, zs = x + x, y + y, z + z
  470. local wx, wy, wz = w * xs, w * ys, w * zs
  471. local xx = x * xs
  472. local xy = x * ys
  473. local xz = x * zs
  474. local yy = y * ys
  475. local yz = y * zs
  476. local zz = z * zs
  477. 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))
  478. end
  479.  
  480. function QuaternionSlerp(a, b, t)
  481. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  482. local startInterp, finishInterp;
  483. if cosTheta >= 0.0001 then
  484. if (1 - cosTheta) > 0.0001 then
  485. local theta = ACOS(cosTheta)
  486. local invSinTheta = 1 / SIN(theta)
  487. startInterp = SIN((1 - t) * theta) * invSinTheta
  488. finishInterp = SIN(t * theta) * invSinTheta
  489. else
  490. startInterp = 1 - t
  491. finishInterp = t
  492. end
  493. else
  494. if (1 + cosTheta) > 0.0001 then
  495. local theta = ACOS(-cosTheta)
  496. local invSinTheta = 1 / SIN(theta)
  497. startInterp = SIN((t - 1) * theta) * invSinTheta
  498. finishInterp = SIN(t * theta) * invSinTheta
  499. else
  500. startInterp = t - 1
  501. finishInterp = t
  502. end
  503. end
  504. 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
  505. end
  506.  
  507. function Clerp(a, b, t)
  508. local qa = {QuaternionFromCFrame(a)}
  509. local qb = {QuaternionFromCFrame(b)}
  510. local ax, ay, az = a.x, a.y, a.z
  511. local bx, by, bz = b.x, b.y, b.z
  512. local _t = 1 - t
  513. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  514. end
  515.  
  516. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  517. local frame = IT("Frame")
  518. frame.BackgroundTransparency = TRANSPARENCY
  519. frame.BorderSizePixel = BORDERSIZEPIXEL
  520. frame.Position = POSITION
  521. frame.Size = SIZE
  522. frame.BackgroundColor3 = COLOR
  523. frame.BorderColor3 = BORDERCOLOR
  524. frame.Name = NAME
  525. frame.Parent = PARENT
  526. return frame
  527. end
  528.  
  529. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  530. local label = IT("TextLabel")
  531. label.BackgroundTransparency = 1
  532. label.Size = UD2(1, 0, 1, 0)
  533. label.Position = UD2(0, 0, 0, 0)
  534. label.TextColor3 = TEXTCOLOR
  535. label.TextStrokeTransparency = STROKETRANSPARENCY
  536. label.TextTransparency = TRANSPARENCY
  537. label.FontSize = TEXTFONTSIZE
  538. label.Font = TEXTFONT
  539. label.BorderSizePixel = BORDERSIZEPIXEL
  540. label.TextStrokeColor3 = C3(1,1,1)
  541. label.TextScaled = false
  542. label.Text = TEXT
  543. label.Name = NAME
  544. label.Parent = PARENT
  545. return label
  546. end
  547.  
  548. function NoOutlines(PART)
  549. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  550. end
  551.  
  552. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  553. local NEWWELD = IT(TYPE)
  554. NEWWELD.Part0 = PART0
  555. NEWWELD.Part1 = PART1
  556. NEWWELD.C0 = C0
  557. NEWWELD.C1 = C1
  558. NEWWELD.Parent = PARENT
  559. return NEWWELD
  560. end
  561.  
  562. local S = IT("Sound")
  563. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  564. local NEWSOUND = nil
  565. coroutine.resume(coroutine.create(function()
  566. NEWSOUND = S:Clone()
  567. NEWSOUND.Parent = PARENT
  568. NEWSOUND.Volume = VOLUME
  569. NEWSOUND.Pitch = PITCH
  570. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  571. NEWSOUND:play()
  572. if DOESLOOP == true then
  573. NEWSOUND.Looped = true
  574. else
  575. repeat wait(1) until NEWSOUND.Playing == false
  576. NEWSOUND:remove()
  577. end
  578. end))
  579. return NEWSOUND
  580. end
  581.  
  582. function CFrameFromTopBack(at, top, back)
  583. local right = top:Cross(back)
  584. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  585. end
  586.  
  587. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  588. function WACKYEFFECT(Table)
  589. local TYPE = (Table.EffectType or "Sphere")
  590. local SIZE = (Table.Size or VT(1,1,1))
  591. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  592. local TRANSPARENCY = (Table.Transparency or 0)
  593. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  594. local CFRAME = (Table.CFrame or Torso.CFrame)
  595. local MOVEDIRECTION = (Table.MoveToPos or nil)
  596. local ROTATION1 = (Table.RotationX or 0)
  597. local ROTATION2 = (Table.RotationY or 0)
  598. local ROTATION3 = (Table.RotationZ or 0)
  599. local MATERIAL = (Table.Material or "Neon")
  600. local COLOR = (Table.Color or C3(1,1,1))
  601. local TIME = (Table.Time or 45)
  602. local SOUNDID = (Table.SoundID or nil)
  603. local SOUNDPITCH = (Table.SoundPitch or nil)
  604. local SOUNDVOLUME = (Table.SoundVolume or nil)
  605. coroutine.resume(coroutine.create(function()
  606. local PLAYSSOUND = false
  607. local SOUND = nil
  608. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  609. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  610. PLAYSSOUND = true
  611. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  612. end
  613. EFFECT.Color = COLOR
  614. local MSH = nil
  615. if TYPE == "Sphere" then
  616. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  617. elseif TYPE == "Block" then
  618. MSH = IT("BlockMesh",EFFECT)
  619. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  620. elseif TYPE == "Wave" then
  621. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  622. elseif TYPE == "Ring" then
  623. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  624. elseif TYPE == "Slash" then
  625. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  626. elseif TYPE == "Round Slash" then
  627. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  628. elseif TYPE == "Swirl" then
  629. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  630. elseif TYPE == "Skull" then
  631. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  632. elseif TYPE == "Crystal" then
  633. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  634. end
  635. if MSH ~= nil then
  636. local MOVESPEED = nil
  637. if MOVEDIRECTION ~= nil then
  638. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  639. end
  640. local GROWTH = SIZE - ENDSIZE
  641. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  642. if TYPE == "Block" then
  643. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  644. else
  645. EFFECT.CFrame = CFRAME
  646. end
  647. for LOOP = 1, TIME+1 do
  648. Swait()
  649. MSH.Scale = MSH.Scale - GROWTH/TIME
  650. if TYPE == "Wave" then
  651. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  652. end
  653. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  654. if TYPE == "Block" then
  655. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  656. else
  657. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  658. end
  659. if MOVEDIRECTION ~= nil then
  660. local ORI = EFFECT.Orientation
  661. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  662. EFFECT.Orientation = ORI
  663. end
  664. end
  665. if PLAYSSOUND == false then
  666. EFFECT:remove()
  667. else
  668. repeat Swait() until SOUND.Playing == false
  669. EFFECT:remove()
  670. end
  671. else
  672. if PLAYSSOUND == false then
  673. EFFECT:remove()
  674. else
  675. repeat Swait() until SOUND.Playing == false
  676. EFFECT:remove()
  677. end
  678. end
  679. end))
  680. end
  681.  
  682. function MakeForm(PART,TYPE)
  683. if TYPE == "Cyl" then
  684. local MSH = IT("CylinderMesh",PART)
  685. elseif TYPE == "Ball" then
  686. local MSH = IT("SpecialMesh",PART)
  687. MSH.MeshType = "Sphere"
  688. elseif TYPE == "Wedge" then
  689. local MSH = IT("SpecialMesh",PART)
  690. MSH.MeshType = "Wedge"
  691. end
  692. end
  693.  
  694. Debris = game:GetService("Debris")
  695.  
  696. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  697. local DIRECTION = CF(StartPos,EndPos).lookVector
  698. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  699. end
  700.  
  701. function turnto(position)
  702. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  703. end
  704.  
  705. --//=================================\\
  706. --|| WEAPON CREATION
  707. --\\=================================//
  708.  
  709. Humanoid.Parent = nil
  710. RootPart.Size = RootPart.Size*SIZE
  711. Torso.Size = Torso.Size*SIZE
  712. RightArm.Size = RightArm.Size*SIZE
  713. RightLeg.Size = RightLeg.Size*SIZE
  714. LeftArm.Size = LeftArm.Size*SIZE
  715. LeftLeg.Size = LeftLeg.Size*SIZE
  716. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  717. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  718. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  719. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  720. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  721. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  722. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  723. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  724. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  725. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  726. Head.Size = Head.Size*SIZE
  727. RootJoint.Parent = RootPart
  728. Neck.Parent = Torso
  729. RightShoulder.Parent = Torso
  730. LeftShoulder.Parent = Torso
  731. RightHip.Parent = Torso
  732. LeftHip.Parent = Torso
  733.  
  734. -- Shirt and Pant --
  735.  
  736. local top = Instance.new("Shirt")
  737. top.ShirtTemplate = "rbxassetid://338740550"
  738. top.Parent = Character
  739. top.Name = "Cloth"
  740. local bottom = Instance.new("Pants")
  741. bottom.PantsTemplate = "rbxassetid://338750779"
  742. bottom.Parent = Character
  743. bottom.Name = "Cloth"
  744.  
  745. -- SUPERIOR --
  746. for i = 1, 16 do
  747. local FACE = CreatePart(3, SUPERIOR, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01*SIZE,0.65*SIZE,1.01*SIZE),false)
  748. FACE.Color = C3(0,0,0)
  749. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  750. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  751. end
  752. local EYE = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.15*SIZE,0.15*SIZE,0.15*SIZE),false)
  753. MakeForm(EYE,"Ball")
  754. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, Head, EYE, CF(0.15,0.26,-0.55), CF(-0, 0, 0.27))
  755. local EYE2 = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.15*SIZE,0.15*SIZE,0.15*SIZE),false)
  756. MakeForm(EYE2,"Ball")
  757. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0.27))
  758. local HAT1 = CreatePart(3, SUPERIOR, "Metal", 0, 0, "Really black", "Hat", VT(2*SIZE,0.2*SIZE,2*SIZE),false)
  759. MakeForm(HAT1,"Cyl")
  760. HATWELD = CreateWeldOrSnapOrMotor("Weld", SUPERIOR, Head, HAT1, CF(0,1,0), CF(0, 0, 0))
  761. local BELT = CreatePart(3, SUPERIOR, "Metal", 0, 0, "Really black", "Hat", VT(2.01*SIZE,0.15*SIZE,2.01*SIZE),false)
  762. BELT.Color = Color3.new(0,0,0)
  763. MakeForm(BELT,"Cyl")
  764. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  765. local HAT2 = CreatePart(3, SUPERIOR, "Metal", 0, 0, "Really black", "Hat", VT(1.3*SIZE,2.2*SIZE,1.3*SIZE),false)
  766. MakeForm(HAT2,"Cyl")
  767. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  768. local BELT = CreatePart(3, SUPERIOR, "Metal", 0, 0, "Really black", "Hat", VT(1.31*SIZE,0.2*SIZE,1.31*SIZE),false)
  769. BELT.Color = Color3.new(0,0,0)
  770. MakeForm(BELT,"Cyl")
  771. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  772. local GEM = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25*SIZE,0.25*SIZE,0.1*SIZE),false)
  773. MakeForm(GEM,"Ball")
  774. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  775. local GEM = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25*SIZE,0.25*SIZE,0.1*SIZE),false)
  776. MakeForm(GEM,"Ball")
  777. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  778. local GEM = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1*SIZE,0.25*SIZE,0.25*SIZE),false)
  779. MakeForm(GEM,"Ball")
  780. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  781. local GEM = CreatePart(3, SUPERIOR, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1*SIZE,0.25*SIZE,0.25*SIZE),false)
  782. MakeForm(GEM,"Ball")
  783. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  784. local BELT = CreatePart(3, SUPERIOR, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
  785. BELT.Color = Color3.new(0,0,0)
  786. MakeForm(BELT,"Cyl")
  787. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  788. local BELT = CreatePart(3, SUPERIOR, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
  789. BELT.Color = Color3.new(0,0,0)
  790. MakeForm(BELT,"Cyl")
  791. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  792. local BELT = CreatePart(3, SUPERIOR, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
  793. BELT.Color = Color3.new(0,0,0)
  794. MakeForm(BELT,"Cyl")
  795. CreateWeldOrSnapOrMotor("Weld", SUPERIOR, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  796.  
  797. -- IdleGun(SUPERIOR) --
  798.  
  799. local Handle = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false)
  800. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-1.6, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  801. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  802. MakeForm(Part,"Wedge")
  803. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  804. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false)
  805. MakeForm(Part,"Wedge")
  806. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  807. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false)
  808. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  809. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  810. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  811. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  812. MakeForm(Part,"Cyl")
  813. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  814. for i = 1, 8 do
  815. local Piece = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  816. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  817. end
  818. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false)
  819. MakeForm(Part,"Cyl")
  820. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  821. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false)
  822. MakeForm(Part,"Ball")
  823. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  824. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false)
  825. MakeForm(Part,"Wedge")
  826. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  827. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false)
  828. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  829. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false)
  830. MakeForm(Part,"Cyl")
  831. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  832. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false)
  833. MakeForm(Part,"Cyl")
  834. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  835. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false)
  836. MakeForm(Part,"Cyl")
  837. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  838. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  839. MakeForm(Part,"Wedge")
  840. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  841. local LASTPART = Handle
  842. for i = 1, 10 do
  843. if LASTPART == Handle then
  844. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false)
  845. LASTPART = Part
  846. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  847. else
  848. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false)
  849. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  850. LASTPART = Part
  851. end
  852. end
  853.  
  854. local Barrel = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false)
  855. MakeForm(Barrel,"Cyl")
  856. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  857. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false)
  858. MakeForm(Part,"Cyl")
  859. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  860. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false)
  861. MakeForm(Part,"Wedge")
  862. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  863. local Hole = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false)
  864. MakeForm(Hole,"Cyl")
  865. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  866. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false)
  867. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  868. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  869. local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false)
  870. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  871. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  872. coroutine.resume(coroutine.create(function()
  873. while wait() do
  874. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  875. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  876. end
  877. end))
  878. -- UsedGun(Injustice) --
  879.  
  880. local Handle2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false)
  881. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, RightArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  882. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  883. MakeForm(Part,"Wedge")
  884. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  885. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false)
  886. MakeForm(Part,"Wedge")
  887. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  888. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false)
  889. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  890. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  891. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  892. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  893. MakeForm(Part,"Cyl")
  894. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  895. for i = 1, 8 do
  896. local Piece = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  897. CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  898. end
  899. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false)
  900. MakeForm(Part,"Cyl")
  901. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  902. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false)
  903. MakeForm(Part,"Ball")
  904. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  905. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false)
  906. MakeForm(Part,"Wedge")
  907. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  908. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false)
  909. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  910. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false)
  911. MakeForm(Part,"Cyl")
  912. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  913. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false)
  914. MakeForm(Part,"Cyl")
  915. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  916. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false)
  917. MakeForm(Part,"Cyl")
  918. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  919. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  920. MakeForm(Part,"Wedge")
  921. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  922. local LASTPART = Handle2
  923. for i = 1, 10 do
  924. if LASTPART == Handle then
  925. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false)
  926. LASTPART = Part
  927. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  928. else
  929. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false)
  930. CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  931. LASTPART = Part
  932. end
  933. end
  934.  
  935. local Barrel2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false)
  936. MakeForm(Barrel,"Cyl")
  937. CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  938. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false)
  939. MakeForm(Part,"Cyl")
  940. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  941. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false)
  942. MakeForm(Part,"Wedge")
  943. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  944. local Hole2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false)
  945. MakeForm(Hole,"Cyl")
  946. CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  947. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false)
  948. local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  949. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  950. local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false)
  951. local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  952. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  953. coroutine.resume(coroutine.create(function()
  954. while wait() do
  955. GEARWELD3.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  956. GEARWELD4.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  957. end
  958. end))
  959.  
  960. for _, b in pairs(Injustice:GetChildren()) do
  961. if b.ClassName == "Part" then
  962. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  963. end
  964. end
  965.  
  966. for _, b in pairs(Weapon:GetChildren()) do
  967. if b.ClassName == "Part" then
  968. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  969. end
  970. end
  971.  
  972.  
  973. for _, b in pairs(InjusticeGun2:GetChildren()) do
  974. if b.ClassName == "Part" then
  975. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  976. end
  977. end
  978.  
  979. for _, b in pairs(InjusticeGun:GetChildren()) do
  980. if b.ClassName == "Part" then
  981. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  982. end
  983. end
  984.  
  985. function chatfunc(text)
  986. local chat = coroutine.wrap(function()
  987. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  988. Character:FindFirstChild("TalkingBillBoard"):destroy()
  989. end
  990. local Bill = Instance.new("BillboardGui",Character)
  991. Bill.Size = UDim2.new(0,100,0,40)
  992. Bill.StudsOffset = Vector3.new(0,3,0)
  993. Bill.Adornee = Character.Head
  994. Bill.Name = "TalkingBillBoard"
  995. local Hehe = Instance.new("TextLabel",Bill)
  996. Hehe.BackgroundTransparency = 1
  997. Hehe.BorderSizePixel = 0
  998. Hehe.Text = ""
  999. Hehe.Font = "Fantasy"
  1000. Hehe.TextSize = 40
  1001. Hehe.TextStrokeTransparency = 0
  1002. Hehe.Size = UDim2.new(1,0,0.5,0)
  1003. coroutine.resume(coroutine.create(function()
  1004. while Hehe ~= nil do
  1005. wait()
  1006. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1007. Hehe.Rotation = math.random(-5,5)
  1008. Hehe.TextColor3 = Color3.new(0,0,0)
  1009. Hehe.TextStrokeColor3 = Color3.new(255,255,0)
  1010. end
  1011. end))
  1012. for i = 1,string.len(text),1 do
  1013. wait()
  1014. Hehe.Text = string.sub(text,1,i)
  1015. end
  1016. wait(1.5)--Re[math.random(1, 93)]
  1017. for i = 0, 1, .025 do
  1018. wait()
  1019. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1020. Hehe.TextStrokeTransparency = i
  1021. Hehe.TextTransparency = i
  1022. end
  1023. Bill:Destroy()
  1024. end)
  1025. chat()
  1026. end
  1027.  
  1028. function onChatted(msg)
  1029. chatfunc(msg)
  1030. end
  1031.  
  1032. chatfunc("Injustice V2 edited by KillerzTH_1596.")
  1033.  
  1034. Player.Chatted:connect(onChatted)
  1035.  
  1036. Neck.Name = "Weld"
  1037. RootJoint.Name = "Weld"
  1038. RightShoulder.Name = "Weld"
  1039. LeftShoulder.Name = "Weld"
  1040. RightHip.Name = "Weld"
  1041. LeftHip.Name = "Weld"
  1042.  
  1043. Weapon.Parent = Character
  1044. Injustice.Parent = Character
  1045. InjusticeGun.Parent = Character
  1046. InjusticeGun2.Parent = nil
  1047.  
  1048. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  1049. local SKILLFONT = "Fantasy"
  1050. local SKILLTEXTSIZE = 7
  1051.  
  1052. Weapon.Parent = Character
  1053. Humanoid.Parent = Character
  1054.  
  1055. Humanoid.Died:connect(function()
  1056. ATTACK = true
  1057. end)
  1058.  
  1059. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1060. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1061. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1062. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1063. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1064.  
  1065. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Injustice Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1066. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Smite", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1067. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1068. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Bullets Rain", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1069. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Fire", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1070.  
  1071. --//=================================\\
  1072. --|| DAMAGING
  1073. --\\=================================//
  1074.  
  1075.  
  1076. function killnearest(position,range,maxstrength,direction)
  1077. for i,v in ipairs(workspace:GetChildren()) do
  1078. local body = v:GetChildren()
  1079. for part = 1, #body do
  1080. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1081. if(body[part].Position - position).Magnitude < range then
  1082. if v.ClassName == "Model" then
  1083. --v:BreakJoints()
  1084. end
  1085. local POS = position
  1086. coroutine.resume(coroutine.create(function()
  1087. body[part].Anchored = true
  1088. body[part].Parent = Effects
  1089. body[part].CanCollide = true
  1090. local SIZE = body[part].Size
  1091. body[part].Material = "Neon"
  1092. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1093. for i = 1, 75 do
  1094. Swait()
  1095. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1096. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1097. end
  1098. coroutine.resume(coroutine.create(function()
  1099. while true do
  1100. Swait()
  1101. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1102. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1103. end
  1104. end))
  1105. body[part].Anchored = false
  1106. body[part].Velocity = direction.lookVector*maxstrength
  1107. end))
  1108. end
  1109. end
  1110. end
  1111. if v.ClassName == "Part" then
  1112. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1113. local POS = position
  1114. coroutine.resume(coroutine.create(function()
  1115. v.Anchored = true
  1116. v.Parent = Effects
  1117. local SIZE = v.Size
  1118. v.Material = "Neon"
  1119. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1120. for i = 1, 75 do
  1121. Swait()
  1122. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1123. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1124. end
  1125. coroutine.resume(coroutine.create(function()
  1126. while true do
  1127. Swait()
  1128. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1129. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1130. end
  1131. end))
  1132. v.Anchored = false
  1133. v.Velocity = direction.lookVector*maxstrength
  1134. end))
  1135. end
  1136. end
  1137. end
  1138. end
  1139.  
  1140. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1141. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1142. defence.Name = ("HitBy"..Player.Name)
  1143. game:GetService("Debris"):AddItem(defence, 0)
  1144. Damage = Damage * DAMAGEMULTIPLIER
  1145. if Humanoid.Health ~= 0 then
  1146. local CritChance = MRANDOM(1,1)
  1147. if Damage > Humanoid.Health then
  1148. Damage = math.ceil(Humanoid.Health)
  1149. if Damage == 0 then
  1150. Damage = 0.1
  1151. end
  1152. end
  1153. Humanoid.Health = Humanoid.Health - Damage
  1154. end
  1155. end
  1156.  
  1157. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1158. local CHILDREN = workspace:GetDescendants()
  1159. for index, CHILD in pairs(CHILDREN) do
  1160. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1161. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1162. if HUM then
  1163. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1164. if TORSO then
  1165. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1166. if INSTAKILL == true then
  1167. CHILD:BreakJoints()
  1168. else
  1169. local DMG = MRANDOM(MINDMG,MAXDMG)
  1170. ApplyDamage(HUM,DMG,TORSO)
  1171. end
  1172. if FLING > 0 then
  1173. for _, c in pairs(CHILD:GetChildren()) do
  1174. if c:IsA("BasePart") then
  1175. local bv = Instance.new("BodyVelocity")
  1176. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1177. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1178. bv.Parent = c
  1179. Debris:AddItem(bv,0.05)
  1180. end
  1181. end
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. end
  1188. end
  1189.  
  1190. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1191. local CHILDREN = workspace:GetDescendants()
  1192. for index, CHILD in pairs(CHILDREN) do
  1193. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1194. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1195. if HUM then
  1196. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1197. if TORSO then
  1198. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1199. CHILD:BreakJoints()
  1200. if FLING ~= 0 then
  1201. for _, c in pairs(CHILD:GetChildren()) do
  1202. if c:IsA("BasePart") and c.Transparency == 0 then
  1203. if BURN == true then
  1204. Fire(c)
  1205. end
  1206. local bv = Instance.new("BodyVelocity")
  1207. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1208. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1209. bv.Parent = c
  1210. Debris:AddItem(bv,0.05)
  1211. end
  1212. end
  1213. end
  1214. end
  1215. end
  1216. end
  1217. end
  1218. end
  1219. end
  1220.  
  1221. function ApplyAoE2(POSITION,RANGE,FLING,BURN)
  1222. local CHILDREN = workspace:GetDescendants()
  1223. for index, CHILD in pairs(CHILDREN) do
  1224. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1225. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1226. if HUM then
  1227. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1228. if TORSO then
  1229. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1230. CHILD:BreakJoints()
  1231. if FLING ~= 0 then
  1232. for _, c in pairs(CHILD:GetChildren()) do
  1233. if c:IsA("BasePart") and c.Transparency == 0 then
  1234. if BURN == true then
  1235. Fire(c)
  1236. end
  1237. local bv = Instance.new("BodyVelocity")
  1238. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1239. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1240. bv.Parent = c
  1241. Debris:AddItem(bv,0.05)
  1242. end
  1243. end
  1244. end
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251.  
  1252. function Kill(Char)
  1253. local NewCharacter = IT("Model",Effects)
  1254. NewCharacter.Name = "Ow im ded ;-;"
  1255. for _, c in pairs(Char:GetDescendants()) do
  1256. if c:IsA("BasePart") and c.Transparency == 0 then
  1257. c:BreakJoints()
  1258. c.Material = "Glass"
  1259. c.Color = C3(0,0,0)
  1260. c.CanCollide = true
  1261. c.Transparency = 0.3
  1262. if c:FindFirstChildOfClass("SpecialMesh") then
  1263. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1264. end
  1265. if c.Name == "Head" then
  1266. c:ClearAllChildren()
  1267. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1268. end
  1269. if c.ClassName == "MeshPart" then
  1270. c.TextureID = ""
  1271. end
  1272. if c:FindFirstChildOfClass("BodyPosition") then
  1273. c:FindFirstChildOfClass("BodyPosition"):remove()
  1274. end
  1275. if c:FindFirstChildOfClass("ParticleEmitter") then
  1276. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1277. end
  1278. c.Parent = NewCharacter
  1279. c.Name = "DeadPart"
  1280. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1281. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1282. end
  1283. end
  1284. Char:remove()
  1285. Debris:AddItem(NewCharacter,5)
  1286. end
  1287.  
  1288.  
  1289. --//=================================\\
  1290. --|| ATTACK FUNCTIONS AND STUFF
  1291. --\\=================================//
  1292.  
  1293. function SpawnTrail(FROM,TO,BIG)
  1294. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  1295. MakeForm(TRAIL,"Cyl")
  1296. local DIST = (FROM - TO).Magnitude
  1297. if BIG == true then
  1298. TRAIL.Size = VT(0.5,DIST,0.5)
  1299. else
  1300. TRAIL.Size = VT(0.25,DIST,0.25)
  1301. end
  1302. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1303. coroutine.resume(coroutine.create(function()
  1304. for i = 1, 5 do
  1305. Swait()
  1306. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1307. end
  1308. TRAIL:remove()
  1309. end))
  1310. end
  1311.  
  1312. local EyeSizes={
  1313. NumberSequenceKeypoint.new(0,2,0),
  1314. NumberSequenceKeypoint.new(1,0,0)
  1315. }
  1316. local EyeTrans={
  1317. NumberSequenceKeypoint.new(0,0.5,0),
  1318. NumberSequenceKeypoint.new(1,1,0)
  1319. }
  1320. local PE=Instance.new("ParticleEmitter",nil)
  1321. PE.LightEmission=.8
  1322. PE.Color = ColorSequence.new(BRICKC("Bright yellow").Color,BRICKC("New Yeller").Color)
  1323. PE.Size=NumberSequence.new(EyeSizes)
  1324. PE.Transparency=NumberSequence.new(EyeTrans)
  1325. PE.Lifetime=NumberRange.new(0.35,1)
  1326. PE.Rotation=NumberRange.new(0,360)
  1327. PE.Rate=100
  1328. PE.VelocitySpread = 10000
  1329. PE.Acceleration = Vector3.new(0,85,0)
  1330. PE.Drag = 5
  1331. PE.Speed = NumberRange.new(0.1,5)
  1332. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  1333. PE.ZOffset = 0.5
  1334. PE.Name = "PE"
  1335. PE.Enabled = false
  1336. function Fire(art)
  1337. local PARTICLES = PE:Clone()
  1338. PARTICLES.Parent = art
  1339. PARTICLES.Enabled = true
  1340. return PARTICLES
  1341. end
  1342.  
  1343. function Bullet()
  1344. ATTACK = true
  1345. Rooted = false
  1346. InjusticeGun2.Parent = Character
  1347. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1348. InjusticeGun.Parent = nil
  1349. for i=0, 0.4, 0.1 / Animation_Speed do
  1350. Swait()
  1351. turnto(Mouse.Hit.p)
  1352. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1353. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1354. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1355. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1356. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1357. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1358. end
  1359. repeat
  1360. for i=0, 0.2, 0.1 / Animation_Speed do
  1361. Swait()
  1362. turnto(Mouse.Hit.p)
  1363. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed)
  1364. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(-10), RAD(0), RAD(-32)), 0.5 / Animation_Speed)
  1365. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1366. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1367. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1368. end
  1369. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000000, Character)
  1370. SpawnTrail(Hole2.Position,POS)
  1371. ApplyAoE(POS,3,5,3000,3000,0,1,false)
  1372. if HIT ~= nil then
  1373. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1374. end
  1375. end
  1376. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1377. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1378. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1379. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1380. for i=0, 0.3, 0.1 / Animation_Speed do
  1381. Swait()
  1382. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed)
  1383. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(5), RAD(0), RAD(-32)), 0.25 / Animation_Speed)
  1384. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(15), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1385. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1386. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1387. end
  1388. until KEYHOLD == false
  1389. InjusticeGun2.Parent = nil
  1390. InjusticeGun.Parent = Character
  1391. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1392. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel2.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1393. ATTACK = false
  1394. Rooted = false
  1395. end
  1396.  
  1397. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1398. PLAYMAINANIM = false
  1399. if WhichPose == "Cast1" then
  1400. for i=0, Time, 0.1 / Animation_Speed do
  1401. Swait()
  1402. if Magic == true then
  1403. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1404. end
  1405. if Gyro ~= nil and Gyro ~= false then
  1406. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1407. end
  1408. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE - 0.04 * SIN(SINE / 24)*SIZE, 0*SIZE + 0.04 * SIN(SINE / 12)*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1410. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1411. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1412. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06*SIZE * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1413. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06*SIZE * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1414. end
  1415. elseif WhichPose == "Cast2" then
  1416. for i=0, Time, 0.1 / Animation_Speed do
  1417. Swait()
  1418. if Magic == true then
  1419. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1420. end
  1421. if Gyro ~= nil and Gyro ~= false then
  1422. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1423. end
  1424. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE - 0.04 * SIN(SINE / 24)*SIZE, 0*SIZE + 0.04 * SIN(SINE / 12)*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1425. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(10 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1426. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1427. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1428. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06*SIZE * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1429. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06*SIZE * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1430. end
  1431. elseif WhichPose == "RightArmUp" then
  1432. for i=0, Time, 0.1 / Animation_Speed do
  1433. Swait()
  1434. if Magic == true then
  1435. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1436. end
  1437. if Gyro ~= nil and Gyro ~= false then
  1438. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1439. end
  1440. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  1441. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1442. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1443. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1444. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1445. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1446. end
  1447. elseif WhichPose == "Taunt" then
  1448. for i=0, Time, 0.1 / Animation_Speed do
  1449. Swait()
  1450. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1454. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1455. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1456. end
  1457. HATWELD.Part0 = RightArm
  1458. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1459. CreateSound(221057812,Torso,10,1,false)
  1460. for i=0, Time*2, 0.1 / Animation_Speed do
  1461. Swait()
  1462. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1464. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1465. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1466. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1467. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1468. end
  1469. for i=0, Time, 0.1 / Animation_Speed do
  1470. Swait()
  1471. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1472. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1473. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.5*SIZE) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1474. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5*SIZE) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1475. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1476. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1477. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  1478. end
  1479. HATWELD.Part0 = Head
  1480. HATWELD.C0 = CF(0,1,0)
  1481. elseif WhichPose == "Prepare key" then
  1482. for i=0, Time, 0.1 / Animation_Speed do
  1483. Swait()
  1484. if Gyro ~= nil and Gyro ~= false then
  1485. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1486. end
  1487. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  1488. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1*SIZE) - 1*SIZE)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1489. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE + 0.15*SIZE * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1490. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15*SIZE * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1491. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1492. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1493. end
  1494. elseif WhichPose == "Turn key" then
  1495. for i=0, Time, 0.1 / Animation_Speed do
  1496. Swait()
  1497. if Gyro ~= nil and Gyro ~= false then
  1498. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1499. end
  1500. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  1501. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1*SIZE) - 1*SIZE)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1502. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5*SIZE + 0.15*SIZE * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1503. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE + 0.15*SIZE * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1504. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1505. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1506. end
  1507. end
  1508. PLAYMAINANIM = true
  1509. end
  1510.  
  1511. function Inferno_Ring()
  1512. ATTACK = true
  1513. Rooted = false
  1514. local GYRO = IT("BodyGyro",RootPart)
  1515. GYRO.D = 750
  1516. GYRO.P = 20000
  1517. GYRO.MaxTorque = VT(0,40000000,0)
  1518. local FIRE = IT("Model",Effects)
  1519. FIRE.Name = "Fire"
  1520. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Eggplant", "Center", VT(0,0,0))
  1521. FIRE.PrimaryPart = MAIN
  1522. local FIRES = {}
  1523. for i = 1, 45 do
  1524. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Eggplant", "RingPart", VT(3,3,3))
  1525. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  1526. local F = Fire(PRT)
  1527. table.insert(FIRES,F)
  1528. end
  1529. repeat
  1530. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  1531. Pose("Cast1",1.5,0.01,false,GYRO)
  1532. until HOLD == true
  1533. coroutine.resume(coroutine.create(function()
  1534. for i = 1, 4 do
  1535. ApplyAoE2(MAIN.Position,21,-15,true)
  1536. CreateSound(463598785,MAIN,3,1,false)
  1537. for E = 1, #FIRES do
  1538. if FIRES[E] ~= nil then
  1539. FIRES[E].Acceleration = VT(0,300,0)
  1540. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  1541. end
  1542. end
  1543. wait(0.3)
  1544. end
  1545. for E = 1, #FIRES do
  1546. if FIRES[E] ~= nil then
  1547. FIRES[E].Enabled = false
  1548. end
  1549. end
  1550. Debris:AddItem(FIRE,5)
  1551. end))
  1552. CreateSound(215395388,RightArm,3,2,false)
  1553. Pose("Cast2",1.5,0.5,true)
  1554. GYRO:remove()
  1555. ATTACK = false
  1556. Rooted = false
  1557. end
  1558.  
  1559. function Thunder()
  1560. ATTACK = true
  1561. Rooted = false
  1562. local BOLTSOUNDS = {168586621,168586586,178452241}
  1563. local GYRO = IT("BodyGyro",RootPart)
  1564. GYRO.D = 750
  1565. GYRO.P = 20000
  1566. GYRO.MaxTorque = VT(0,40000000,0)
  1567. CreateSound(469345336,Torso,3,2,false)
  1568. Pose("Cast2",1.5,2,true,GYRO)
  1569. coroutine.resume(coroutine.create(function()
  1570. local FRAME = RootPart.CFrame
  1571. for i = 1, 25 do
  1572. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1573. local LightningTable = Lightning({Color = C3(1,1,0), Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = true})
  1574. local Hitpos = LightningTable.End
  1575. ApplyAoE(Hitpos,15,20,75,50,false)
  1576. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1577. for i = 1, 4 do
  1578. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1579. end
  1580. wait(0.05)
  1581. end
  1582. end))
  1583. Pose("Cast2",1.5,0.7,true)
  1584. GYRO:remove()
  1585. ATTACK = false
  1586. Rooted = false
  1587. end
  1588.  
  1589. function Bullet_Rain()
  1590. ATTACK = true
  1591. Rooted = true
  1592. InjusticeGun2.Parent = Character
  1593. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1594. InjusticeGun.Parent = nil
  1595. for i=0, 0.6, 0.1 / Animation_Speed do
  1596. Swait()
  1597. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1598. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1599. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1601. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6*SIZE, 0.75*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1602. end
  1603. local DONE = false
  1604. local GATE = nil
  1605. local GATESPIN = true
  1606. coroutine.resume(coroutine.create(function()
  1607. repeat
  1608. Swait()
  1609. if GATE ~= nil then
  1610. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  1611. end
  1612. until GATESPIN == false
  1613. end))
  1614. coroutine.resume(coroutine.create(function()
  1615. repeat
  1616. Swait()
  1617. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1618. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1619. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.01 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1620. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0.01, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1621. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.75*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(-180), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1622. until DONE == true
  1623. Swait(10)
  1624. for i = 1, 75 do
  1625. Swait(1.5)
  1626. local FIRED = false
  1627. local CHILDREN = workspace:GetDescendants()
  1628. for index, CHILD in pairs(CHILDREN) do
  1629. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1630. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1631. if HUM then
  1632. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1633. if TORSO then
  1634. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1635. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1636. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1637. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 3})
  1638. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1639. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1640. Kill(CHILD)
  1641. FIRED = true
  1642. break
  1643. end
  1644. end
  1645. end
  1646. end
  1647. end
  1648. if FIRED == false then
  1649. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1650. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6})
  1651. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1652. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1653. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1654. if HITBOD ~= nil then
  1655. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1656. Kill(HITBOD.Parent)
  1657. end
  1658. end
  1659. end
  1660. end
  1661. for i = 1, 45 do
  1662. Swait()
  1663. GATE.Size = GATE.Size - VT(3,0,3)
  1664. end
  1665. GATESPIN = false
  1666. GATE:remove()
  1667. end))
  1668. Swait(5)
  1669. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p, (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 15, Character)
  1670. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Instutional white", "Gate", VT(0,0,0))
  1671. local DECAL = IT("Decal",GATE)
  1672. DECAL.Texture = "http://www.roblox.com/asset/?id=0"
  1673. DECAL.Face = "Top"
  1674. GATE.CFrame = CF(HITPOS)
  1675. CreateSound(160772554, GATE, 4, 1.3, false)
  1676. for i = 1, 45 do
  1677. Swait()
  1678. GATE.Size = GATE.Size + VT(3,0,3)
  1679. end
  1680. CreateSound(145080998, Hole2, 7, 1, false)
  1681. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1682. InjusticeGun.Parent = Character
  1683. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1684. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel2.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1685. InjusticeGun2.Parent = nil
  1686. ATTACK = false
  1687. Rooted = false
  1688. DONE = true
  1689. end
  1690.  
  1691. function JusticeBeam()
  1692. ATTACK = true
  1693. Rooted = false
  1694. coroutine.resume(coroutine.create(function()
  1695. local AIMPOS = Mouse.Hit.p
  1696. local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
  1697. local RAYS = {}
  1698. for i = 1, 4 do
  1699. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ray", VT(15,2000,15))
  1700. MakeForm(RAY,"Cyl")
  1701. RAY.Mesh.Scale = VT(1,1.1,1)
  1702. table.insert(RAYS,RAY)
  1703. end
  1704. CreateSound(348663022, Effects, 2, 1.2, false)
  1705. for i = 1, 100 do
  1706. Swait()
  1707. for e = 1, #RAYS do
  1708. if RAYS[e] ~= nil then
  1709. local RAY = RAYS[e]
  1710. RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0)
  1711. RAY.Transparency = RAY.Transparency - 0.01
  1712. end
  1713. end
  1714. end
  1715. for i = 1, 20 do
  1716. Swait()
  1717. for e = 1, #RAYS do
  1718. if RAYS[e] ~= nil then
  1719. local RAY = RAYS[e]
  1720. RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
  1721. end
  1722. end
  1723. end
  1724. wait(0.3)
  1725. for i = 1, 16 do
  1726. local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
  1727. SpawnTrail(POS+VT(0,200,0),POS)
  1728. end
  1729. WACKYEFFECT({Time = 20, EffectType = "Sphere", Size = VT(0,0.55,0), Size2 = VT(90,2,90), Transparency = 0, Transparency2 = 1, CFrame = CF(AIMPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1730. CreateDebreeRing(AIM,AIMPOS-VT(15,15,15),20,VT(5,5,5),5)
  1731. CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
  1732. CreateSound(130972023, Effects, 2, 1, false)
  1733. ApplyAoE(AIMPOS,35,50,95,100,false)
  1734. end))
  1735. for i=0, 1.9, 0.1 / Animation_Speed do
  1736. WACKYEFFECT({Time = 20, EffectType = "Block", Size = VT(1.5,1.5,1.5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1737. WACKYEFFECT({Time = 20, EffectType = "Block", Size = VT(1.5,1.5,1.5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1738. Swait()
  1739. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1740. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1741. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(120), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(25 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1742. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(120), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-25 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1743. end
  1744. ATTACK = false
  1745. Rooted = false
  1746. end
  1747.  
  1748. function Hat()
  1749. ATTACK = true
  1750. Rooted = false
  1751. Pose("Taunt",0.4,1.2,false)
  1752. ATTACK = false
  1753. Rooted = false
  1754. end
  1755.  
  1756. --//================================\\
  1757. --|| INTRO
  1758. --\\================================//
  1759.  
  1760. coroutine.resume(coroutine.create(function()
  1761. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1762. WACKYEFFECT({Time = 60, EffectType = "Wave", Size = VT(12,0.55,12)*SIZE, Size2 = VT(12,0.55,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  1763. Swait(10)
  1764. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0.5,0.55,0.5), Size2 = VT(0.5,4,0.5), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0.4, 0.2, -0.8), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 743521450, SoundPitch = 1.15, SoundVolume = 6})
  1765. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0.55,0.5,0.5), Size2 = VT(4,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0.4, 0.2, -0.8), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 743521450, SoundPitch = 0.95, SoundVolume = 6})
  1766. Swait(57)
  1767. WACKYEFFECT({Time = 150, EffectType = "Wave", Size = VT(12,0.55,12)*SIZE, Size2 = VT(12,0.55,12), Transparency = 1, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 1259054947, SoundPitch = 1, SoundVolume = 6})
  1768. Swait(6.5)
  1769. ApplyAoE(HITPOS,8,10,15,100,false)
  1770. text.Text = "Injustice"
  1771. text.TextStrokeColor3 = Color3.new(255/255, 255/255, 0/255)
  1772. for i=0, 1, 0.1 / Animation_Speed do
  1773. WACKYEFFECT({Time = 85, EffectType = "Crystal", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1774. end
  1775. end))
  1776. for i=0, 1.5, 0.1 / Animation_Speed do
  1777. Swait()
  1778. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1779. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1780. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1781. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1782. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1783. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1784. end
  1785. for i=0, 0.4, 0.1 / Animation_Speed do
  1786. Swait()
  1787. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1788. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(50), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1790. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-50), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1791. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1792. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1793. end
  1794. for i=0, 1, 0.1 / Animation_Speed do
  1795. Swait()
  1796. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, -0.7) * ANGLES(RAD(0), RAD(170), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, -0.7) * ANGLES(RAD(0), RAD(-170), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1800. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1802. end
  1803.  
  1804. --//=================================\\
  1805. --|| ASSIGN THINGS TO KEYS
  1806. --\\=================================//
  1807.  
  1808. function MouseDown(Mouse)
  1809. HOLD = true
  1810. if ATTACK == false then
  1811. end
  1812. end
  1813.  
  1814. function MouseUp(Mouse)
  1815. HOLD = false
  1816. end
  1817.  
  1818. function KeyDown(Key)
  1819. KEYHOLD = true
  1820. if Key == "z" and ATTACK == false then
  1821. Bullet()
  1822. end
  1823.  
  1824. if Key == "b" and ATTACK == false then
  1825. JusticeBeam()
  1826. end
  1827.  
  1828. if Key == "c" and ATTACK == false then
  1829. Thunder()
  1830. end
  1831.  
  1832. if Key == "v" and ATTACK == false then
  1833. Bullet_Rain()
  1834. end
  1835.  
  1836. if Key == "x" and ATTACK == false then
  1837. Inferno_Ring()
  1838. end
  1839.  
  1840. if Key == "t" and ATTACK == false then
  1841. Hat()
  1842. end
  1843. end
  1844.  
  1845. function KeyUp(Key)
  1846. KEYHOLD = false
  1847. end
  1848.  
  1849. Mouse.Button1Down:connect(function(NEWKEY)
  1850. MouseDown(NEWKEY)
  1851. end)
  1852. Mouse.Button1Up:connect(function(NEWKEY)
  1853. MouseUp(NEWKEY)
  1854. end)
  1855. Mouse.KeyDown:connect(function(NEWKEY)
  1856. KeyDown(NEWKEY)
  1857. end)
  1858. Mouse.KeyUp:connect(function(NEWKEY)
  1859. KeyUp(NEWKEY)
  1860. end)
  1861.  
  1862. --//=================================\\
  1863. --\\=================================//
  1864.  
  1865.  
  1866. function unanchor()
  1867. if UNANCHOR == true then
  1868. RootPart.Anchored = false
  1869. end
  1870. g = Character:GetChildren()
  1871. for i = 1, #g do
  1872. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1873. g[i].Anchored = false
  1874. end
  1875. end
  1876. g = Weapon:GetChildren()
  1877. for i = 1, #g do
  1878. if g[i].ClassName == "Part" then
  1879. g[i].Anchored = false
  1880. end
  1881. end
  1882. end
  1883.  
  1884. --//=================================\\
  1885. --|| WRAP THE WHOLE SCRIPT UP
  1886. --\\=================================//
  1887.  
  1888. Humanoid.Changed:connect(function(Jump)
  1889. if Jump == "Jump" and (Disable_Jump == true) then
  1890. Humanoid.Jump = false
  1891. end
  1892. end)
  1893.  
  1894. while true do
  1895. Swait()
  1896. script.Parent = WEAPONGUI
  1897. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1898. v:Stop();
  1899. end
  1900. ANIMATE.Parent = nil
  1901. SINE = SINE + CHANGE*1.5
  1902. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1903. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1904. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1905. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1906. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1907. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1908. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1909. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1910. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1911. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1912. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1913. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1914. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1915. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1916. end
  1917. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1918. ANIM = "Jump"
  1919. if ATTACK == false then
  1920. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1921. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1922. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1923. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1924. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1925. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  1926. end
  1927. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1928. ANIM = "Fall"
  1929. if ATTACK == false then
  1930. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1931. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1932. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1933. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1934. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  1935. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  1936. end
  1937. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1938. ANIM = "Idle"
  1939. if ATTACK == false then
  1940. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1941. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1942. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(40), RAD(-20 + 2.5 * SIN(SINE / 12)), RAD(-85 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1943. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(40), RAD(20 - 2.5 * SIN(SINE / 12)), RAD(85 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1944. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1945. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1946. end
  1947. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1948. ANIM = "Walk"
  1949. if ATTACK == false then
  1950. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1951. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  1952. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(45), RAD(-10 + 2.5 * SIN(SINE / 12)), RAD(-75 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1953. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.4*SIZE) * ANGLES(RAD(50), RAD(10 - 2.5 * SIN(SINE / 12)), RAD(75 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1954. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1955. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1956. end
  1957. end
  1958. unanchor()
  1959. Humanoid.MaxHealth = "inf"
  1960. Humanoid.Health = "inf"
  1961. if Rooted == false then
  1962. Disable_Jump = false
  1963. Humanoid.WalkSpeed = Speed
  1964. elseif Rooted == true then
  1965. Disable_Jump = true
  1966. Humanoid.WalkSpeed = 0
  1967. end
  1968. for _, c in pairs(Character:GetChildren()) do
  1969. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1970. c.Material = "Fabric"
  1971. if c:FindFirstChildOfClass("ParticleEmitter") then
  1972. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1973. end
  1974. if c ~= Head then
  1975. c.Color = C3(1,1,1)
  1976. else
  1977. c.Color = C3(1,1,1)
  1978. end
  1979. if c == Head then
  1980. if c:FindFirstChild("face") then
  1981. c.face:remove()
  1982. end
  1983. end
  1984. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1985. c:remove()
  1986. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1987. c:remove()
  1988. end
  1989. end
  1990. sick.SoundId = "rbxassetid://"..SONG
  1991. sick.Looped = true
  1992. sick.Pitch = 1
  1993. sick.Volume = 5
  1994. sick.Parent = Torso
  1995. sick:Resume()
  1996. --sick.Playing = false
  1997. Humanoid.Name = "Injustice = "..Player.Name
  1998. end
  1999.  
  2000. --//=================================\\
  2001. --\\=================================//
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007. --//====================================================\\--
  2008. --|| END OF SCRIPT
  2009. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement