Advertisement
yabagaba

Untitled

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