View difference between Paste ID: ZnJ0SiQM and hJdvZn5U
SHOW: | | - or go back to the newest paste.
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
-- Injustice --
886
for i = 1, 16 do
887
	local FACE = CreatePart(3, Injustice, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01*SIZE,0.65*SIZE,1.01*SIZE),false)
888
	FACE.Color = C3(0,0,0)
889
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
890
	CreateWeldOrSnapOrMotor("Weld", Injustice, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
891
end
892
local EYE = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.15*SIZE,0.15*SIZE,0.15*SIZE),false)
893
MakeForm(EYE,"Ball")
894
CreateWeldOrSnapOrMotor("Weld", Injustice, Head, EYE, CF(0.15,0.26,-0.55), CF(-0, 0, 0.27))
895
local EYE2 = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Eyeball", VT(0.15*SIZE,0.15*SIZE,0.15*SIZE),false)
896
MakeForm(EYE2,"Ball")
897
CreateWeldOrSnapOrMotor("Weld", Injustice, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0.27))
898
local HAT1 = CreatePart(3, Injustice, "Metal", 0, 0, "Really black", "Hat", VT(2*SIZE,0.2*SIZE,2*SIZE),false)
899
MakeForm(HAT1,"Cyl")
900
HATWELD = CreateWeldOrSnapOrMotor("Weld", Injustice, Head, HAT1, CF(0,1,0), CF(0, 0, 0))
901
local BELT = CreatePart(3, Injustice, "Metal", 0, 0, "Really black", "Hat", VT(2.01*SIZE,0.15*SIZE,2.01*SIZE),false)
902
BELT.Color = Color3.new(0,0,0)
903
MakeForm(BELT,"Cyl")
904
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
905
local HAT2 = CreatePart(3, Injustice, "Metal", 0, 0, "Really black", "Hat", VT(1.3*SIZE,2.2*SIZE,1.3*SIZE),false)
906
MakeForm(HAT2,"Cyl")
907
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
908
local BELT = CreatePart(3, Injustice, "Metal", 0, 0, "Really black", "Hat", VT(1.31*SIZE,0.2*SIZE,1.31*SIZE),false)
909
BELT.Color = Color3.new(0,0,0)
910
MakeForm(BELT,"Cyl")
911
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
912
local GEM = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25*SIZE,0.25*SIZE,0.1*SIZE),false)
913
MakeForm(GEM,"Ball")
914
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
915
local GEM = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Gem", VT(0.25*SIZE,0.25*SIZE,0.1*SIZE),false)
916
MakeForm(GEM,"Ball")
917
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
918
local GEM = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1*SIZE,0.25*SIZE,0.25*SIZE),false)
919
MakeForm(GEM,"Ball")
920
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
921
local GEM = CreatePart(3, Injustice, "Neon", 0, 0, "New Yeller", "Gem", VT(0.1*SIZE,0.25*SIZE,0.25*SIZE),false)
922
MakeForm(GEM,"Ball")
923
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
924
local BELT = CreatePart(3, Injustice, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
925
BELT.Color = Color3.new(0,0,0)
926
MakeForm(BELT,"Cyl")
927
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
928
local BELT = CreatePart(3, Injustice, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
929
BELT.Color = Color3.new(0,0,0)
930
MakeForm(BELT,"Cyl")
931
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
932
local BELT = CreatePart(3, Injustice, "Neon", 0, 0, "Black", "Hat", VT(1.31*SIZE,0.1*SIZE,1.31*SIZE),false)
933
BELT.Color = Color3.new(0,0,0)
934
MakeForm(BELT,"Cyl")
935
CreateWeldOrSnapOrMotor("Weld", Injustice, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
936
937
-- IdleGun(Injustice) --
938
939
local Handle = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false)
940
local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-1.6, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
941
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
942
MakeForm(Part,"Wedge")
943
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
944
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false)
945
MakeForm(Part,"Wedge")
946
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
947
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false)
948
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
949
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
950
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
951
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
952
MakeForm(Part,"Cyl")
953
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
954
for i = 1, 8 do
955
	local Piece = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
956
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
957
end
958
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false)
959
MakeForm(Part,"Cyl")
960
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
961
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false)
962
MakeForm(Part,"Ball")
963
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
964
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false)
965
MakeForm(Part,"Wedge")
966
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
967
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false)
968
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
969
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false)
970
MakeForm(Part,"Cyl")
971
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
972
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false)
973
MakeForm(Part,"Cyl")
974
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
975
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false)
976
MakeForm(Part,"Cyl")
977
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
978
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
979
MakeForm(Part,"Wedge")
980
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
981
local LASTPART = Handle
982
for i = 1, 10 do
983
	if LASTPART == Handle then
984
		local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false)
985
		LASTPART = Part
986
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
987
	else
988
		local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false)
989
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
990
		LASTPART = Part
991
	end
992
end
993
994
local Barrel = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false)
995
MakeForm(Barrel,"Cyl")
996
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
997
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false)
998
MakeForm(Part,"Cyl")
999
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1000
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false)
1001
MakeForm(Part,"Wedge")
1002
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1003
local Hole = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false)
1004
MakeForm(Hole,"Cyl")
1005
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1006
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false)
1007
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1008
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1009
local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false)
1010
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1011
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1012
coroutine.resume(coroutine.create(function()
1013
	while wait() do
1014
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1015
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1016
	end
1017
end))
1018
-- UsedGun(Injustice) --
1019
1020
local Handle2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false)
1021
local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, RightArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1022
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
1023
MakeForm(Part,"Wedge")
1024
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1025
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false)
1026
MakeForm(Part,"Wedge")
1027
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1028
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false)
1029
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1030
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
1031
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1032
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
1033
MakeForm(Part,"Cyl")
1034
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1035
for i = 1, 8 do
1036
	local Piece = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
1037
	CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1038
end
1039
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false)
1040
MakeForm(Part,"Cyl")
1041
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1042
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false)
1043
MakeForm(Part,"Ball")
1044
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1045
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false)
1046
MakeForm(Part,"Wedge")
1047
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1048
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false)
1049
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1050
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false)
1051
MakeForm(Part,"Cyl")
1052
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1053
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false)
1054
MakeForm(Part,"Cyl")
1055
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1056
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false)
1057
MakeForm(Part,"Cyl")
1058
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1059
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
1060
MakeForm(Part,"Wedge")
1061
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1062
local LASTPART = Handle2
1063
for i = 1, 10 do
1064
	if LASTPART == Handle then
1065
		local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false)
1066
		LASTPART = Part
1067
		CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1068
	else
1069
		local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false)
1070
		CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1071
		LASTPART = Part
1072
	end
1073
end
1074
1075
local Barrel2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false)
1076
MakeForm(Barrel,"Cyl")
1077
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1078
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false)
1079
MakeForm(Part,"Cyl")
1080
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1081
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false)
1082
MakeForm(Part,"Wedge")
1083
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1084
local Hole2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false)
1085
MakeForm(Hole,"Cyl")
1086
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
1087
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false)
1088
local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1089
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1090
local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false)
1091
local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1092
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1093
coroutine.resume(coroutine.create(function()
1094
	while wait() do
1095
		GEARWELD3.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1096
		GEARWELD4.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1097
	end
1098
end))
1099
1100
for _, b in pairs(Injustice:GetChildren()) do
1101
	if b.ClassName == "Part" then
1102
		b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1103
	end
1104
end
1105
1106
for _, b in pairs(Weapon:GetChildren()) do
1107
	if b.ClassName == "Part" then
1108
		b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1109
	end
1110
end
1111
1112
1113
for _, b in pairs(InjusticeGun2:GetChildren()) do
1114
	if b.ClassName == "Part" then
1115
		b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1116
	end
1117
end
1118
1119
for _, b in pairs(InjusticeGun:GetChildren()) do
1120
	if b.ClassName == "Part" then
1121
		b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1122
	end
1123
end
1124
1125
function chatfunc(text)
1126
	local chat = coroutine.wrap(function()
1127
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
1128
		Character:FindFirstChild("TalkingBillBoard"):destroy()
1129
	end
1130
	local Bill = Instance.new("BillboardGui",Character)
1131
	Bill.Size = UDim2.new(0,100,0,40)
1132
	Bill.StudsOffset = Vector3.new(0,3,0)
1133
	Bill.Adornee = Character.Head
1134
	Bill.Name = "TalkingBillBoard"
1135
	local Hehe = Instance.new("TextLabel",Bill)
1136
	Hehe.BackgroundTransparency = 1
1137
	Hehe.BorderSizePixel = 0
1138
	Hehe.Text = ""
1139
	Hehe.Font = "Fantasy"
1140
	Hehe.TextSize = 40
1141
	Hehe.TextStrokeTransparency = 0
1142
	Hehe.Size = UDim2.new(1,0,0.5,0)
1143
	coroutine.resume(coroutine.create(function()
1144
		while Hehe ~= nil do
1145
			wait()	
1146
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
1147
			Hehe.Rotation = math.random(-5,5)
1148
			Hehe.TextColor3 = Color3.new(0,0,0)
1149
			Hehe.TextStrokeColor3 = Color3.new(255,255,0)
1150
		end
1151
	end))
1152
	for i = 1,string.len(text),1 do
1153
		wait()
1154
		Hehe.Text = string.sub(text,1,i)
1155
	end
1156
	wait(1.5)--Re[math.random(1, 93)]
1157
	for i = 0, 1, .025 do
1158
		wait()
1159
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
1160
		Hehe.TextStrokeTransparency = i
1161
		Hehe.TextTransparency = i
1162
	end
1163
	Bill:Destroy()
1164
	end)
1165
chat()
1166
end
1167
1168
function onChatted(msg)
1169
	chatfunc(msg)
1170
end
1171
1172
chatfunc("Injustice V2 edited by KillerzTH_1596.")
1173
1174
Player.Chatted:connect(onChatted)
1175
1176
Neck.Name = "Weld"
1177
RootJoint.Name = "Weld"
1178
RightShoulder.Name = "Weld"
1179
LeftShoulder.Name = "Weld"
1180
RightHip.Name = "Weld"
1181
LeftHip.Name = "Weld"
1182
1183
Weapon.Parent = Character
1184
Injustice.Parent = Character
1185
InjusticeGun.Parent = Character
1186
InjusticeGun2.Parent = nil
1187
1188
local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
1189
local SKILLFONT = "Fantasy"
1190
local SKILLTEXTSIZE = 7
1191
1192
Weapon.Parent = Character
1193
Humanoid.Parent = Character
1194
1195
Humanoid.Died:connect(function()
1196
	ATTACK = true
1197
end)
1198
1199
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")
1200
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")
1201
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")
1202
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")
1203
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")
1204
1205
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Injustice Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
1206
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Smite", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
1207
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
1208
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Bullets Rain", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
1209
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Fire", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
1210
1211
--//=================================\\
1212
--||			DAMAGING
1213
--\\=================================//
1214
1215
1216
function killnearest(position,range,maxstrength,direction)
1217
    for i,v in ipairs(workspace:GetChildren()) do
1218
    local body = v:GetChildren()
1219
        for part = 1, #body do
1220
            if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1221
                if(body[part].Position - position).Magnitude < range then
1222
                    if v.ClassName == "Model" then
1223
                        --v:BreakJoints()
1224
                    end
1225
                    local POS = position
1226
                    coroutine.resume(coroutine.create(function()
1227
                        body[part].Anchored = true
1228
                        body[part].Parent = Effects
1229
                        body[part].CanCollide = true
1230
                        local SIZE = body[part].Size
1231
                        body[part].Material = "Neon"
1232
                        CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
1233
                        for i = 1, 75 do
1234
                            Swait()
1235
                            body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1236
                            body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1237
                        end
1238
                        coroutine.resume(coroutine.create(function()
1239
                            while true do
1240
                                Swait()
1241
                                body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1242
                                body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1243
                            end
1244
                        end))
1245
                        body[part].Anchored = false
1246
                        body[part].Velocity = direction.lookVector*maxstrength
1247
                    end))
1248
                end
1249
            end
1250
        end
1251
        if v.ClassName == "Part" then
1252
            if v.Anchored == false and (v.Position - position).Magnitude < range then
1253
                local POS = position
1254
                coroutine.resume(coroutine.create(function()
1255
                    v.Anchored = true
1256
                    v.Parent = Effects
1257
                    local SIZE = v.Size
1258
                    v.Material = "Neon"
1259
                    CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
1260
                    for i = 1, 75 do
1261
                        Swait()
1262
                        v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1263
                        v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1264
                    end
1265
                    coroutine.resume(coroutine.create(function()
1266
                        while true do
1267
                            Swait()
1268
                            v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1269
                            v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1270
                        end
1271
                    end))
1272
                    v.Anchored = false
1273
                    v.Velocity = direction.lookVector*maxstrength
1274
                end))
1275
            end
1276
        end
1277
    end
1278
end
1279
1280
function ApplyDamage(Humanoid,Damage,TorsoPart)
1281
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1282
	defence.Name = ("HitBy"..Player.Name)
1283
	game:GetService("Debris"):AddItem(defence, 0)
1284
	Damage = Damage * DAMAGEMULTIPLIER
1285
	if Humanoid.Health ~= 0 then
1286
		local CritChance = MRANDOM(1,1)
1287
		if Damage > Humanoid.Health then
1288
			Damage = math.ceil(Humanoid.Health)
1289
			if Damage == 0 then
1290
				Damage = 0.1
1291
			end
1292
		end
1293
		Humanoid.Health = Humanoid.Health - Damage
1294
	end
1295
end
1296
1297
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1298
	local CHILDREN = workspace:GetDescendants()
1299
	for index, CHILD in pairs(CHILDREN) do
1300
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1301
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1302
			if HUM then
1303
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1304
				if TORSO then
1305
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1306
						if INSTAKILL == true then
1307
							CHILD:BreakJoints()
1308
						else
1309
							local DMG = MRANDOM(MINDMG,MAXDMG)
1310
							ApplyDamage(HUM,DMG,TORSO)
1311
						end
1312
						if FLING > 0 then
1313
							for _, c in pairs(CHILD:GetChildren()) do
1314
								if c:IsA("BasePart") then
1315
									local bv = Instance.new("BodyVelocity") 
1316
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1317
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1318
									bv.Parent = c
1319
									Debris:AddItem(bv,0.05)
1320
								end
1321
							end
1322
						end
1323
					end
1324
				end
1325
			end
1326
		end
1327
	end
1328
end
1329
1330
function ApplyAoE(POSITION,RANGE,FLING,BURN)
1331
	local CHILDREN = workspace:GetDescendants()
1332
	for index, CHILD in pairs(CHILDREN) do
1333
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1334
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1335
			if HUM then
1336
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1337
				if TORSO then
1338
					if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
1339
						CHILD:BreakJoints()
1340
						if FLING ~= 0 then
1341
							for _, c in pairs(CHILD:GetChildren()) do
1342
								if c:IsA("BasePart") and c.Transparency == 0 then
1343
									if BURN == true then
1344
										Fire(c)
1345
									end
1346
									local bv = Instance.new("BodyVelocity") 
1347
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1348
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1349
									bv.Parent = c
1350
									Debris:AddItem(bv,0.05)
1351
								end
1352
							end
1353
						end
1354
					end
1355
				end
1356
			end
1357
		end
1358
	end
1359
end
1360
1361
function ApplyAoE2(POSITION,RANGE,FLING,BURN)
1362
	local CHILDREN = workspace:GetDescendants()
1363
	for index, CHILD in pairs(CHILDREN) do
1364
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1365
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1366
			if HUM then
1367
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1368
				if TORSO then
1369
					if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
1370
						CHILD:BreakJoints()
1371
						if FLING ~= 0 then
1372
							for _, c in pairs(CHILD:GetChildren()) do
1373
								if c:IsA("BasePart") and c.Transparency == 0 then
1374
									if BURN == true then
1375
										Fire(c)
1376
									end
1377
									local bv = Instance.new("BodyVelocity") 
1378
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1379
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1380
									bv.Parent = c
1381
									Debris:AddItem(bv,0.05)
1382
								end
1383
							end
1384
						end
1385
					end
1386
				end
1387
			end
1388
		end
1389
	end
1390
end
1391
1392
function Kill(Char)
1393
	local NewCharacter = IT("Model",Effects)
1394
	NewCharacter.Name = "Ow im ded ;-;"
1395
	for _, c in pairs(Char:GetDescendants()) do
1396
		if c:IsA("BasePart") and c.Transparency == 0 then
1397
			c:BreakJoints()
1398
			c.Material = "Glass"
1399
			c.Color = C3(0,0,0)
1400
			c.CanCollide = true
1401
			c.Transparency = 0.3
1402
			if c:FindFirstChildOfClass("SpecialMesh") then
1403
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1404
			end
1405
			if c.Name == "Head" then
1406
				c:ClearAllChildren()
1407
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1408
			end
1409
			if c.ClassName == "MeshPart" then
1410
				c.TextureID = ""
1411
			end
1412
			if c:FindFirstChildOfClass("BodyPosition") then
1413
				c:FindFirstChildOfClass("BodyPosition"):remove()
1414
			end
1415
			if c:FindFirstChildOfClass("ParticleEmitter") then
1416
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1417
			end
1418
			c.Parent = NewCharacter
1419
			c.Name = "DeadPart"
1420
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1421
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1422
		end
1423
	end
1424
	Char:remove()
1425
	Debris:AddItem(NewCharacter,5)
1426
end
1427
1428
1429
--//=================================\\
1430
--||	ATTACK FUNCTIONS AND STUFF
1431
--\\=================================//
1432
1433
function SpawnTrail(FROM,TO,BIG)
1434
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
1435
	MakeForm(TRAIL,"Cyl")
1436
	local DIST = (FROM - TO).Magnitude
1437
	if BIG == true then
1438
		TRAIL.Size = VT(0.5,DIST,0.5)
1439
	else
1440
		TRAIL.Size = VT(0.25,DIST,0.25)
1441
	end
1442
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
1443
	coroutine.resume(coroutine.create(function()
1444
		for i = 1, 5 do
1445
			Swait()
1446
			TRAIL.Transparency = TRAIL.Transparency + 0.1
1447
		end
1448
		TRAIL:remove()
1449
	end))
1450
end
1451
1452
local EyeSizes={
1453
	NumberSequenceKeypoint.new(0,2,0),
1454
	NumberSequenceKeypoint.new(1,0,0)
1455
}
1456
local EyeTrans={
1457
	NumberSequenceKeypoint.new(0,0.5,0),
1458
	NumberSequenceKeypoint.new(1,1,0)
1459
}
1460
local PE=Instance.new("ParticleEmitter",nil)
1461
PE.LightEmission=.8
1462
PE.Color = ColorSequence.new(BRICKC("Bright yellow").Color,BRICKC("New Yeller").Color)
1463
PE.Size=NumberSequence.new(EyeSizes)
1464
PE.Transparency=NumberSequence.new(EyeTrans)
1465
PE.Lifetime=NumberRange.new(0.35,1)
1466
PE.Rotation=NumberRange.new(0,360)
1467
PE.Rate=100
1468
PE.VelocitySpread = 10000
1469
PE.Acceleration = Vector3.new(0,85,0)
1470
PE.Drag = 5
1471
PE.Speed = NumberRange.new(0.1,5)
1472
PE.Texture="http://www.roblox.com/asset/?id=1460745664"
1473
PE.ZOffset = 0.5
1474
PE.Name = "PE"
1475
PE.Enabled = false
1476
function Fire(art)
1477
	local PARTICLES = PE:Clone()
1478
	PARTICLES.Parent = art
1479
	PARTICLES.Enabled = true
1480
	return PARTICLES
1481
end
1482
1483
function Bullet()
1484
	ATTACK = true
1485
	Rooted = false
1486
	InjusticeGun2.Parent = Character
1487
	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})
1488
	InjusticeGun.Parent = nil
1489
	for i=0, 0.4, 0.1 / Animation_Speed do
1490
		Swait()
1491
		turnto(Mouse.Hit.p)
1492
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1493
		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)
1494
		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)
1495
		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)
1496
			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)
1497
			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)
1498
	end
1499
	repeat
1500
		for i=0, 0.2, 0.1 / Animation_Speed do
1501
			Swait()
1502
			turnto(Mouse.Hit.p)
1503
			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)
1504
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(-10), RAD(0), RAD(-32)), 0.5 / Animation_Speed)
1505
            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)
1506
            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)
1507
			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)
1508
		end
1509
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000000, Character)
1510
		SpawnTrail(Hole2.Position,POS)
1511
		ApplyAoE(POS,3,5,3000,3000,0,1,false)
1512
		if HIT ~= nil then
1513
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1514
			end
1515
		end
1516
		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})
1517
		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})
1518
		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})
1519
		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})
1520
		for i=0, 0.3, 0.1 / Animation_Speed do
1521
			Swait()
1522
			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)
1523
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(5), RAD(0), RAD(-32)), 0.25 / Animation_Speed)
1524
            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)
1525
            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)
1526
			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)
1527
		end
1528
	until KEYHOLD == false
1529
	InjusticeGun2.Parent = nil
1530
	InjusticeGun.Parent = Character
1531
	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})
1532
    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})
1533
	ATTACK = false
1534
	Rooted = false
1535
end
1536
1537
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
1538
	PLAYMAINANIM = false
1539
	if WhichPose == "Cast1" then
1540
		for i=0, Time, 0.1 / Animation_Speed do
1541
			Swait()
1542
			if Magic == true then
1543
				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})
1544
			end
1545
			if Gyro ~= nil and Gyro ~= false then
1546
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
1547
			end
1548
			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)
1549
			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)
1550
			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)
1551
			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)
1552
			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)
1553
			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)
1554
        end
1555
	elseif WhichPose == "Cast2" then
1556
		for i=0, Time, 0.1 / Animation_Speed do
1557
			Swait()
1558
			if Magic == true then
1559
				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})
1560
			end
1561
			if Gyro ~= nil and Gyro ~= false then
1562
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
1563
			end
1564
			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)
1565
			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)
1566
			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)
1567
			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)
1568
			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)
1569
			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)
1570
		end
1571
	elseif WhichPose == "RightArmUp" then
1572
		for i=0, Time, 0.1 / Animation_Speed do
1573
			Swait()
1574
			if Magic == true then
1575
				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})
1576
			end
1577
			if Gyro ~= nil and Gyro ~= false then
1578
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
1579
			end
1580
			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)
1581
			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)
1582
			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)
1583
			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)
1584
			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)
1585
			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)
1586
		end
1587
	elseif WhichPose == "Taunt" then
1588
		for i=0, Time, 0.1 / Animation_Speed do
1589
			Swait()
1590
			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)
1591
			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)
1592
			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)
1593
			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)
1594
			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)
1595
			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)
1596
		end
1597
		HATWELD.Part0 = RightArm
1598
		HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
1599
		CreateSound(221057812,Torso,10,1,false)
1600
		for i=0, Time*2, 0.1 / Animation_Speed do
1601
			Swait()
1602
			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)
1603
			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)
1604
			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)
1605
			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)
1606
			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)
1607
			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)
1608
		end
1609
		for i=0, Time, 0.1 / Animation_Speed do
1610
			Swait()
1611
			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)
1612
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
1613
			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)
1614
			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)
1615
			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)
1616
			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)
1617
			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)
1618
		end
1619
		HATWELD.Part0 = Head
1620
		HATWELD.C0 = CF(0,1,0)
1621
	elseif WhichPose == "Prepare key" then
1622
		for i=0, Time, 0.1 / Animation_Speed do
1623
			Swait()
1624
			if Gyro ~= nil and Gyro ~= false then
1625
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
1626
			end
1627
			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)
1628
			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)
1629
			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)
1630
			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)
1631
			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)
1632
			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)
1633
		end
1634
	elseif WhichPose == "Turn key" then
1635
		for i=0, Time, 0.1 / Animation_Speed do
1636
			Swait()
1637
			if Gyro ~= nil and Gyro ~= false then
1638
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
1639
			end
1640
			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)
1641
			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)
1642
			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)
1643
			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)
1644
			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)
1645
			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)
1646
		end
1647
	end
1648
	PLAYMAINANIM = true
1649
end
1650
1651
function Inferno_Ring()
1652
	ATTACK = true
1653
	Rooted = false
1654
	local GYRO = IT("BodyGyro",RootPart)
1655
	GYRO.D = 750
1656
	GYRO.P = 20000
1657
	GYRO.MaxTorque = VT(0,40000000,0)
1658
	local FIRE = IT("Model",Effects)
1659
	FIRE.Name = "Fire"
1660
	local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Eggplant", "Center", VT(0,0,0))
1661
	FIRE.PrimaryPart = MAIN
1662
	local FIRES = {}
1663
	for i = 1, 45 do
1664
		local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Eggplant", "RingPart", VT(3,3,3))
1665
		PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
1666
		local F = Fire(PRT)
1667
		table.insert(FIRES,F)
1668
	end
1669
	repeat
1670
		FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
1671
		Pose("Cast1",1.5,0.01,false,GYRO)
1672
	until HOLD == true
1673
	coroutine.resume(coroutine.create(function()
1674
		for i = 1, 4 do
1675
			ApplyAoE2(MAIN.Position,21,-15,true)
1676
			CreateSound(463598785,MAIN,3,1,false)
1677
			for E = 1, #FIRES do
1678
				if FIRES[E] ~= nil then
1679
					FIRES[E].Acceleration = VT(0,300,0)
1680
					FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
1681
				end
1682
			end
1683
			wait(0.3)
1684
		end
1685
		for E = 1, #FIRES do
1686
			if FIRES[E] ~= nil then
1687
				FIRES[E].Enabled = false
1688
			end
1689
		end
1690
		Debris:AddItem(FIRE,5)
1691
	end))
1692
	CreateSound(215395388,RightArm,3,2,false)
1693
	Pose("Cast2",1.5,0.5,true)
1694
	GYRO:remove()
1695
	ATTACK = false
1696
	Rooted = false
1697
end
1698
1699
function Thunder()
1700
	ATTACK = true
1701
	Rooted = false
1702
    local BOLTSOUNDS = {168586621,168586586,178452241}
1703
	local GYRO = IT("BodyGyro",RootPart)
1704
	GYRO.D = 750
1705
	GYRO.P = 20000
1706
	GYRO.MaxTorque = VT(0,40000000,0)
1707
	CreateSound(469345336,Torso,3,2,false)
1708
	Pose("Cast2",1.5,2,true,GYRO)
1709
	coroutine.resume(coroutine.create(function()
1710
		local FRAME = RootPart.CFrame
1711
		for i = 1, 25 do
1712
			local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
1713
			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})
1714
			local Hitpos = LightningTable.End
1715
			ApplyAoE(Hitpos,15,20,75,50,false)
1716
			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})
1717
			for i = 1, 4 do
1718
				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})
1719
			end
1720
			wait(0.05)
1721
		end
1722
	end))
1723
	Pose("Cast2",1.5,0.7,true)
1724
	GYRO:remove()
1725
	ATTACK = false
1726
	Rooted = false
1727
end
1728
1729
function Bullet_Rain()
1730
	ATTACK = true
1731
	Rooted = true
1732
    InjusticeGun2.Parent = Character
1733
	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})
1734
	InjusticeGun.Parent = nil
1735
	for i=0, 0.6, 0.1 / Animation_Speed do
1736
		Swait()
1737
		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)
1738
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)
1739
RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
1740
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1741
		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)
1742
	end
1743
	local DONE = false
1744
	local GATE = nil
1745
	local GATESPIN = true
1746
	coroutine.resume(coroutine.create(function()
1747
		repeat
1748
			Swait()
1749
			if GATE ~= nil then
1750
				GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
1751
			end
1752
		until GATESPIN == false
1753
	end))
1754
	coroutine.resume(coroutine.create(function()
1755
		repeat
1756
			Swait()
1757
		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)
1758
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)
1759
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)
1760
		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)
1761
		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)
1762
		until DONE == true
1763
		Swait(10)
1764
		for i = 1, 75 do
1765
			Swait(1.5)
1766
			local FIRED = false
1767
			local CHILDREN = workspace:GetDescendants()
1768
			for index, CHILD in pairs(CHILDREN) do
1769
				if CHILD.ClassName == "Model" and CHILD ~= Character then
1770
					local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1771
					if HUM then
1772
						local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1773
						if TORSO then
1774
							if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
1775
								local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
1776
								local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
1777
								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})
1778
								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})
1779
								SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)		
1780
								Kill(CHILD)
1781
								FIRED = true
1782
								break
1783
							end
1784
						end
1785
					end
1786
				end
1787
			end
1788
			if FIRED == false then
1789
				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)))
1790
				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})
1791
				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})
1792
				SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
1793
				local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
1794
				if HITBOD ~= nil then
1795
					if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
1796
						Kill(HITBOD.Parent)
1797
					end
1798
				end
1799
			end
1800
		end
1801
		for i = 1, 45 do
1802
			Swait()
1803
			GATE.Size = GATE.Size - VT(3,0,3)
1804
		end
1805
		GATESPIN = false
1806
		GATE:remove()
1807
		end))
1808
	Swait(5)
1809
	local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p, (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 15, Character)
1810
	GATE = CreatePart(3, Effects, "Neon", 0, 1, "Instutional white", "Gate", VT(0,0,0))
1811
	local DECAL = IT("Decal",GATE)
1812
	DECAL.Texture = "http://www.roblox.com/asset/?id=0"
1813
	DECAL.Face = "Top"
1814
	GATE.CFrame = CF(HITPOS)
1815
	CreateSound(160772554, GATE, 4, 1.3, false)
1816
	for i = 1, 45 do
1817
		Swait()
1818
		GATE.Size = GATE.Size + VT(3,0,3)
1819
	end
1820
	CreateSound(145080998, Hole2, 7, 1, false)
1821
	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})
1822
	InjusticeGun.Parent = Character
1823
	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})
1824
    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})
1825
	InjusticeGun2.Parent = nil
1826
	ATTACK = false
1827
	Rooted = false
1828
	DONE = true
1829
end
1830
1831
function JusticeBeam()
1832
	ATTACK = true
1833
	Rooted = false
1834
	coroutine.resume(coroutine.create(function()
1835
	local AIMPOS = Mouse.Hit.p
1836
	local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
1837
		local RAYS = {}
1838
		for i = 1, 4 do
1839
			local RAY = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ray", VT(15,2000,15))
1840
			MakeForm(RAY,"Cyl")
1841
			RAY.Mesh.Scale = VT(1,1.1,1)
1842
			table.insert(RAYS,RAY)
1843
		end
1844
		CreateSound(348663022, Effects, 2, 1.2, false)
1845
		for i = 1, 100 do
1846
			Swait()
1847
			for e = 1, #RAYS do
1848
				if RAYS[e] ~= nil then
1849
					local RAY = RAYS[e]
1850
					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)
1851
					RAY.Transparency = RAY.Transparency - 0.01
1852
				end
1853
			end
1854
		end
1855
		for i = 1, 20 do
1856
			Swait()
1857
			for e = 1, #RAYS do
1858
				if RAYS[e] ~= nil then
1859
					local RAY = RAYS[e]
1860
					RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
1861
				end
1862
			end
1863
		end
1864
		wait(0.3)
1865
		for i = 1, 16 do
1866
			local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
1867
			SpawnTrail(POS+VT(0,200,0),POS)
1868
		end
1869
        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})
1870
		CreateDebreeRing(AIM,AIMPOS-VT(15,15,15),20,VT(5,5,5),5)
1871
		CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
1872
		CreateSound(130972023, Effects, 2, 1, false)
1873
		ApplyAoE(AIMPOS,35,50,95,100,false)
1874
	        end))
1875
	        for i=0, 1.9, 0.1 / Animation_Speed do
1876
		    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})
1877
		    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})
1878
		    Swait()
1879
			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)
1880
			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)
1881
			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)
1882
			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)
1883
            end
1884
	ATTACK = false
1885
	Rooted = false
1886
	end
1887
1888
function Hat()
1889
	ATTACK = true
1890
	Rooted = false
1891
	Pose("Taunt",0.4,1.2,false)
1892
	ATTACK = false
1893
	Rooted = false
1894
end
1895
1896
--//================================\\
1897
--||            INTRO
1898
--\\================================//
1899
1900
		coroutine.resume(coroutine.create(function()
1901
	    local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1902
        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})
1903
        Swait(10)
1904
        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})
1905
        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})
1906
        Swait(57)
1907
        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})
1908
        Swait(6.5)
1909
        ApplyAoE(HITPOS,8,10,15,100,false)
1910
        text.Text = "Injustice"
1911
        text.TextStrokeColor3 = Color3.new(255/255, 255/255, 0/255)
1912
        for i=0, 1, 0.1 / Animation_Speed do
1913
		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})
1914
        end
1915
		end))
1916
		for i=0, 1.5, 0.1 / Animation_Speed do
1917
			Swait()
1918
			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)
1919
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1920
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1921
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1922
			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)
1923
			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)
1924
		end
1925
		for i=0, 0.4, 0.1 / Animation_Speed do
1926
			Swait()
1927
			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)
1928
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1929
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(50), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1930
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-50), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1931
			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)
1932
			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)
1933
		end
1934
		for i=0, 1, 0.1 / Animation_Speed do
1935
			Swait()
1936
			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)
1937
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1938
			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)
1939
			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)
1940
			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)
1941
			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)
1942
		end
1943
1944
--//=================================\\
1945
--||	  ASSIGN THINGS TO KEYS
1946
--\\=================================//
1947
1948
function MouseDown(Mouse)
1949
	HOLD = true
1950
	if ATTACK == false then
1951
	end
1952
end
1953
1954
function MouseUp(Mouse)
1955
HOLD = false
1956
end
1957
1958
function KeyDown(Key)
1959
	KEYHOLD = true
1960
	if Key == "z" and ATTACK == false then
1961
		Bullet()
1962
	end
1963
1964
	if Key == "b" and ATTACK == false then
1965
		JusticeBeam()
1966
	end
1967
1968
	if Key == "c" and ATTACK == false then
1969
		Thunder()
1970
	end
1971
1972
	if Key == "v" and ATTACK == false then
1973
		Bullet_Rain()
1974
	end
1975
1976
	if Key == "x" and ATTACK == false then
1977
		Inferno_Ring()
1978
	end
1979
1980
	if Key == "t" and ATTACK == false then
1981
		Hat()
1982
	end
1983
end
1984
1985
function KeyUp(Key)
1986
	KEYHOLD = false
1987
end
1988
1989
	Mouse.Button1Down:connect(function(NEWKEY)
1990
		MouseDown(NEWKEY)
1991
	end)
1992
	Mouse.Button1Up:connect(function(NEWKEY)
1993
		MouseUp(NEWKEY)
1994
	end)
1995
	Mouse.KeyDown:connect(function(NEWKEY)
1996
		KeyDown(NEWKEY)
1997
	end)
1998
	Mouse.KeyUp:connect(function(NEWKEY)
1999
		KeyUp(NEWKEY)
2000
	end)
2001
2002
--//=================================\\
2003
--\\=================================//
2004
2005
2006
function unanchor()
2007
	if UNANCHOR == true then
2008
		RootPart.Anchored = false
2009
	end
2010
	g = Character:GetChildren()
2011
	for i = 1, #g do
2012
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
2013
			g[i].Anchored = false
2014
		end
2015
	end
2016
	g = Weapon:GetChildren()
2017
	for i = 1, #g do
2018
		if g[i].ClassName == "Part" then
2019
			g[i].Anchored = false
2020
		end
2021
	end
2022
end
2023
2024
--//=================================\\
2025
--||	WRAP THE WHOLE SCRIPT UP
2026
--\\=================================//
2027
2028
Humanoid.Changed:connect(function(Jump)
2029
	if Jump == "Jump" and (Disable_Jump == true) then
2030
		Humanoid.Jump = false
2031
	end
2032
end)
2033
2034
while true do
2035
	Swait()
2036
	script.Parent = WEAPONGUI
2037
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2038
	    v:Stop();
2039
	end
2040
	ANIMATE.Parent = nil
2041
	SINE = SINE + CHANGE*1.5
2042
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2043
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2044
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
2045
	local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
2046
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2047
		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)
2048
		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)
2049
		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)
2050
		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)
2051
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2052
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2053
		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)
2054
		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)
2055
		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)
2056
	end
2057
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2058
		ANIM = "Jump"
2059
		if ATTACK == false then
2060
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2061
			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)
2062
			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)
2063
			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)
2064
			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)
2065
			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)
2066
	    end
2067
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2068
		ANIM = "Fall"
2069
		if ATTACK == false then
2070
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2071
			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)
2072
			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)
2073
			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)
2074
			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)
2075
			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)
2076
		end
2077
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2078
		ANIM = "Idle"
2079
		if ATTACK == false then
2080
			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)
2081
			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)
2082
			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)
2083
			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)
2084
			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)
2085
			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)
2086
		end
2087
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2088
		ANIM = "Walk"
2089
		if ATTACK == false then
2090
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
2091
			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)
2092
			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)
2093
			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)
2094
			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)
2095
			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)
2096
		end
2097
	end
2098
	unanchor()
2099
	Humanoid.MaxHealth = "inf"
2100
	Humanoid.Health = "inf"
2101
	if Rooted == false then
2102
		Disable_Jump = false
2103
		Humanoid.WalkSpeed = Speed
2104
	elseif Rooted == true then
2105
		Disable_Jump = true
2106
		Humanoid.WalkSpeed = 0
2107
	end
2108
	for _, c in pairs(Character:GetChildren()) do
2109
		if c.ClassName == "Part" and c.Name ~= "Detail" then
2110
			c.Material = "Fabric"
2111
			if c:FindFirstChildOfClass("ParticleEmitter") then
2112
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2113
			end
2114
			if c ~= Head then
2115
				c.Color = C3(1,1,1)
2116
			else
2117
				c.Color = C3(1,1,1)
2118
			end
2119
			if c == Head then
2120
				if c:FindFirstChild("face") then
2121
					c.face:remove()
2122
				end
2123
			end
2124
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
2125
			c:remove()
2126
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
2127
			c:remove()
2128
		end
2129
	end
2130
	sick.SoundId = "rbxassetid://"..SONG
2131
	sick.Looped = true
2132
	sick.Pitch = 1
2133
	sick.Volume = 5
2134
	sick.Parent = Torso
2135
	sick:Resume()
2136
	--sick.Playing = false
2137
	Humanoid.Name = "Injustice = "..Player.Name
2138
end
2139
2140
--//=================================\\
2141
--\\=================================//
2142
2143
2144
2145
2146
2147
--//====================================================\\--
2148
--||			  		 END OF SCRIPT
2149
--\\====================================================//--