Advertisement
13242

Untitled

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