View difference between Paste ID: Vrpd6w9x and JamsbtJc
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14-
local Player = game:GetService("Players"):WaitForChild(script.PlayerName.Value)
14+
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local h,t
75
	--Give the server mouse data 30 times every second, but only if the values changed
76
	--If player is not moving their mouse, client won't fire events
77
	while wait(1/30) do
78
		if h~=Mouse.Hit or t~=Mouse.Target then
79
			h,t=Mouse.Hit,Mouse.Target
80
			Event:FireServer({isMouse=true,Target=t,Hit=h})
81
		end
82
	end]==],Player.Character)
83
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
84
end
85
---------------------------
86
--/                     \--
87
-- Script By: 123jl123	 --
88
--\                     /--
89
---------------------------
90
--local remote = NS ([=[
91
92
local TweenService = game:GetService("TweenService")
93
local RbxUtility = LoadLibrary("RbxUtility")
94
local Create = RbxUtility.Create
95
96
97
98
local Player = owner
99
if  Player.Character == nil then
100
while Player.Character == nil do wait()
101
	
102
end end
103
104
EffectPack = script.Extras:Clone()
105
script.Extras:Destroy()
106
107
ZTfade=false 
108
ZT=false
109
OverClocking = false
110
local Jets = false
111
MHIT = Vector3.new()
112
Character= Player.Character
113
Torso = Character.Torso
114
Head = Character.Head
115
Humanoid = Character.Humanoid
116
LeftArm = Character["Left Arm"]
117
LeftLeg = Character["Left Leg"]
118
RightArm = Character["Right Arm"]
119
RightLeg = Character["Right Leg"]
120
RootPart = Character["HumanoidRootPart"]
121
local Anim="Idle"
122
local inairvel=0
123
local WalkAnimStep = 0
124
local sine = 0
125
local change = 1
126
Animstep = 0
127
WalkAnimMove=0.1
128
Combo = 0
129
local attack=false
130
local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
131
local Neck = Character.Torso:FindFirstChild("Neck")
132
local visn = 0
133
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) 
134
local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
135
IsXray = false
136
137
local forWFB = 0
138
local forWRL = 0
139
FF = Instance.new("ForceField",Character)
140
FF.Visible = false
141
FF.Name = "FatForce"
142
Effects=Instance.new("Folder",Character)
143
Effects.Name="Effects"
144
it=Instance.new
145
vt=Vector3.new
146
cf=CFrame.new
147
euler=CFrame.fromEulerAnglesXYZ
148
angles=CFrame.Angles
149
local cn = CFrame.new
150
mr=math.rad
151
mememode=false
152
IT = Instance.new
153
CF = CFrame.new
154
VT = Vector3.new
155
RAD = math.rad
156
C3 = Color3.new
157
UD2 = UDim2.new
158
BRICKC = BrickColor.new
159
ANGLES = CFrame.Angles
160
EULER = CFrame.fromEulerAnglesXYZ
161
COS = math.cos
162
ACOS = math.acos
163
SIN = math.sin
164
ASIN = math.asin
165
ABS = math.abs
166
MRANDOM = math.random
167
FLOOR = math.floor
168
169
local lastid= "http://www.roblox.com/asset/?id=146364977"
170
local s2=it("Sound",Torso)
171
local CurId = 1
172
s2.EmitterSize = 30
173
local s2c=s2:Clone()
174
175
playsong = true
176
177
s2.SoundId = lastid
178
	if playsong == true then
179
	s2:play()		
180
	elseif playsong == false then
181
	s2:stop()			
182
	end
183
lastsongpos= 0
184
185
crosshair = Instance.new("BillboardGui",Character)
186
crosshair.Size = UDim2.new(10,0,10,0)
187
crosshair.Enabled = false
188
imgl = Instance.new("ImageLabel",crosshair)
189
imgl.Position = UDim2.new(0,0,0,0)
190
imgl.Size = UDim2.new(1,0,1,0)
191
imgl.Image = "rbxassetid://578065407"
192
imgl.BackgroundTransparency = 1
193
imgl.ImageTransparency = .7
194
imgl.ImageColor3 = Color3.new(1,1,1)
195
	crosshair.StudsOffset = Vector3.new(0,0,-1)
196
197
--//=================================\\
198
--||          LOCAL IDS
199
--\\=================================//
200
201
local GROWL = 1544355717
202
local ROAR = 528589382
203
local ECHOBLAST = 376976397
204
local CAST = 459523898
205
local ALCHEMY = 424195979
206
local BUILDUP = 698824317
207
local BIGBUILDUP = 874376217
208
local IMPACT = 231917744
209
local LARGE_EXPLOSION = 168513088
210
local TURNUP = 299058146
211
212
if Character:FindFirstChild("Animate")then
213
	Character.Animate:Destroy()
214
end
215
216
function RemoveOutlines(part)
217
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
218
end
219
220
221
	
222
223
	CFuncs = {
224
Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
225
	
226
	local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
227
	RemoveOutlines(Part)
228
	return Part
229
end
230
}
231
, 
232
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
233
	
234
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
235
	if Mesh == "SpecialMesh" then
236
		Msh.MeshType = MeshType
237
		Msh.MeshId = MeshId
238
	end
239
	return Msh
240
end
241
}
242
, 
243
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
244
	
245
	local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
246
	if Mesh == "SpecialMesh" then
247
		Msh.MeshType = MeshType
248
		Msh.MeshId = MeshId
249
	end
250
	return Msh
251
end
252
}
253
, 
254
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
255
	
256
	local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
257
	return Weld
258
end
259
}
260
, 
261
Sound = {Create = function(id, par, vol, pit)
262
	
263
	coroutine.resume(coroutine.create(function()
264
		
265
		local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId  = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
266
		wait()
267
		S:play()
268
		game:GetService("Debris"):AddItem(S, 6)
269
	end
270
))
271
end
272
}
273
, 
274
ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
275
	
276
	local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
277
	return fp
278
end
279
}
280
}
281
282
283
284
285
286
	coroutine.resume(coroutine.create(function()
287
		if Head:FindFirstChildOfClass("Decal") then
288
			local face = Head:FindFirstChildOfClass("Decal")
289
			face:Destroy()
290
		end
291
	
292
	end))
293
294
295
296
297
298
299
300
	for i, v in pairs(Character:GetDescendants()) do
301
		if v:IsA("Accessory") or v:IsA("Sound")  then
302
			v:Destroy()
303
		end
304
	end
305
		coroutine.resume(coroutine.create(function()
306
	Character:WaitForChild("Sound"):Destroy()
307
end))
308
309
310
--139248234
311
--//=================================\\
312
--|| SAZERENOS ARTIFICIAL HEARTBEAT
313
--\\=================================//
314
Frame_Speed = 1 / 30
315
ArtificialHB = Instance.new("BindableEvent", script)
316
ArtificialHB.Name = "ArtificialHB"
317
318
script:WaitForChild("ArtificialHB")
319
320
frame = Frame_Speed
321
tf = 0
322
allowframeloss = false
323
tossremainder = false
324
lastframe = tick()
325
script.ArtificialHB:Fire()
326
327
game:GetService("RunService").Heartbeat:connect(function(s, p)
328
	tf = tf + s
329
	if tf >= frame then
330
		if allowframeloss then
331
			script.ArtificialHB:Fire()
332
			lastframe = tick()
333
		else
334
			for i = 1, math.floor(tf / frame) do
335
				script.ArtificialHB:Fire()
336
			end
337
		lastframe = tick()
338
		end
339
		if tossremainder then
340
			tf = 0
341
		else
342
			tf = tf - frame * math.floor(tf / frame)
343
		end
344
	end
345
end)
346
347
--//=================================\\
348
--\\=================================//
349
350
function Swait(NUMBER)
351
	if NUMBER == 0 or NUMBER == nil then
352
		ArtificialHB.Event:wait()
353
	else
354
		for i = 1, NUMBER do
355
			ArtificialHB.Event:wait()
356
		end
357
	end
358
end
359
360
361
---------------
362
--[Functions]--
363
---------------
364
so = function(id, par, vol, pit)
365
366
CFuncs.Sound.Create(id, par, vol, pit)
367
368
369
end
370
371
function weld(parent,part0,part1,c0)
372
local weld=it("Weld") 
373
weld.Parent=parent
374
weld.Part0=part0 
375
weld.Part1=part1 
376
weld.C0=c0
377
return weld
378
end
379
function joint(parent,part0,part1,c0)
380
local weld=it("Motor6D") 
381
weld.Parent=parent
382
weld.Part0=part0 
383
weld.Part1=part1 
384
weld.C0=c0
385
return weld
386
end
387
ArmorParts = {}
388
--ArmorParts = {}
389
function WeldAllTo(Part1,Part2,scan,Extra)
390
local EXCF = Part2.CFrame * Extra	
391
for i, v3 in pairs(scan:GetDescendants()) do
392
	if v3:isA("BasePart") then	
393
local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
394
					v3.Anchored=false
395
					v3.Massless = true
396
					v3.CanCollide=false						
397
v3.Parent = Part1			
398
v3.Locked = true	
399
	if not v3:FindFirstChild("Destroy") then
400
				table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })	
401
else
402
	v3:Destroy()	
403
	end				
404
					end
405
end
406
Part1.Transparency=1
407
--Part2:Destroy()
408
end
409
410
411
412
function JointAllTo(Part1,Part2,scan,Extra)
413
local EXCF = Part2.CFrame * Extra	
414
for i, v3 in pairs(scan:GetDescendants()) do
415
	if v3:isA("BasePart") then	
416
local STW=joint(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
417
					v3.Anchored=false
418
					v3.Massless = true
419
					v3.CanCollide=false						
420
v3.Parent = Part1			
421
v3.Locked = true	
422
	if not v3:FindFirstChild("Destroy") then
423
			--	table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })	
424
else
425
	v3:Destroy()	
426
	end				
427
					end
428
end
429
Part1.Transparency=1
430
--Part2:Destroy()
431
end
432
433
434
435
436
437
438
439
--------------------------------------------H1a
440
local ChestPart = EffectPack.Part:Clone()
441
ChestPart.Parent = Character
442
ChestPart.Name = "H1a"
443
H1a=weld(Torso,Torso,ChestPart,cf(0,.5,-.4))
444
445
--------------------------------------------MissileBox
446
local MissileBox = EffectPack.Part:Clone()
447
MissileBox.Parent = Character
448
MissileBox.Name = "MissileBox"
449
MX1w=weld(Torso,Torso,MissileBox,cf(0,-.7,-.25))
450
--------------------------------------------FlameThrower
451
452
local FlameThrower = EffectPack.Part:Clone()
453
FlameThrower.Parent = Character
454
FlameThrower.Name = "FlameThrower"
455
FlameW=weld(RightArm,RightArm,FlameThrower,cf(0,0,0))
456
--------------------------------------------Hand
457
local Finger1 = EffectPack.Part:Clone()
458
Finger1.Parent = Character
459
Finger1.Name = "RightLow1"
460
Fg1=weld(RightArm,RightArm,Finger1,cf(0,0,0))
461
--------------------------------------------Hand
462
local Finger2 = EffectPack.Part:Clone()
463
Finger2.Parent = Character
464
Finger2.Name = "RightLow2"
465
Fg2=weld(RightArm,RightArm,Finger2,cf(0,0,0))
466
--------------------------------------------Hand
467
local Finger3 = EffectPack.Part:Clone()
468
Finger3.Parent = Character
469
Finger3.Name = "RightLow3"
470
Fg3=weld(RightArm,RightArm,Finger3,cf(0,0,0))
471
--------------------------------------------Hand
472
local Finger4 = EffectPack.Part:Clone()
473
Finger4.Parent = Character
474
Finger4.Name = "RightLow4"
475
Fg4=weld(RightArm,RightArm,Finger4,cf(0,0,0))
476
--------------------------------------------Boot
477
local Boot1 = EffectPack.Part:Clone()
478
Boot1.Parent = Character
479
Boot1.Name = "RightFrontBoot"
480
RB1=weld(RightLeg,RightLeg,Boot1,cf(0,0,0))
481
--------------------------------------------Boot
482
local Boot2 = EffectPack.Part:Clone()
483
Boot2.Parent = Character
484
Boot2.Name = "RightBackBoot"
485
RB2=weld(RightLeg,RightLeg,Boot2,cf(0,0,0))
486
--------------------------------------------Boot
487
local Boot3 = EffectPack.Part:Clone()
488
Boot3.Parent = Character
489
Boot3.Name = "LeftFrontBoot"
490
LB1=weld(LeftLeg,LeftLeg,Boot3,cf(0,0,0))
491
--------------------------------------------Boot
492
local Boot4 = EffectPack.Part:Clone()
493
Boot4.Parent = Character
494
Boot4.Name = "LeftBackBoot"
495
LB2=weld(LeftLeg,LeftLeg,Boot4,cf(0,0,0))
496
--------------------------------------------LeftHand
497
local LHP = EffectPack.Part:Clone()
498
LHP.Parent = Character
499
LHP.Name = "LeftHand"
500
LHP2=weld(LeftArm,LeftArm,LHP,cf(0,0,0))
501
--------------------------------------------end
502
503
504
for _,v in pairs(script.Armor:children()) do
505
		if v:IsA("Model")  then
506
			
507
			if  Character:FindFirstChild(""..v.Name) then
508
				local Part1=Character:FindFirstChild(""..v.Name)
509
				local Part2=v.Handle
510
511
WeldAllTo(Part1,Part2,v,CFrame.new(0,0,0))
512
513
			end
514
			
515
			
516
		end
517
end	
518
519
rayCast = function(Pos, Dir, Max, Ignore)
520
  
521
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
522
end
523
524
function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
525
local MoveStyle = Enum.EasingStyle[MoveStyle2]
526
local outorin = Enum.EasingDirection[outorin2]
527
528
529
local dahspeed=1
530
if attack == true and mememode == true then
531
	dahspeed=5
532
end
533
534
if SPart.Name=="Bullet" then
535
dahspeed=1	
536
end
537
538
local tweeningInformation = TweenInfo.new(
539
	AnimTime/dahspeed,	
540
	MoveStyle,
541
	outorin,
542
	0,
543
	false,
544
	0
545
)
546
local MoveCF = CFr
547
local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
548
tweenanim:Play()
549
end
550
551
function GatherAllInstances(Parent,ig)
552
	local Instances = {}
553
	local Ignore=nil
554
if	ig ~= nil then
555
Ignore = ig	
556
end
557
	
558
	local function GatherInstances(Parent,Ignore)
559
		for i, v in pairs(Parent:GetChildren()) do
560
			
561
			if v ~= Ignore then
562
				GatherInstances(v,Ignore)
563
			table.insert(Instances, v) end
564
		end
565
	end
566
	GatherInstances(Parent,Ignore)
567
	return Instances
568
end
569
570
571
572
573
574
575
576
577
578
function WeldAllTo(Part1,Part2,Extra)
579
	
580
local EXCF = Part2.CFrame * Extra	
581
	
582
for i, v3 in pairs(GatherAllInstances(Part2)) do
583
	if v3:isA("BasePart") then
584
		
585
		
586
local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
587
588
	
589
					v3.Anchored=false
590
					--v3.Transparency=0
591
					v3.CanCollide=false	
592
					
593
v3.Parent = Part1					
594
					
595
					end
596
end
597
598
599
Part2:Destroy()
600
601
end
602
local SToneTexture = Create("Texture")({
603
	
604
	
605
	Texture = "http://www.roblox.com/asset/?id=1693385655",
606
    Color3 = Color3.new(17/255, 17/255, 17/255),
607
	
608
})
609
610
function AddStoneTexture(part)
611
	coroutine.resume(coroutine.create(function()
612
	for i = 0,6,1 do
613
local Tx = SToneTexture:Clone()
614
Tx.Face = i
615
Tx.Parent=part
616
end
617
	end))
618
end
619
620
New = function(Object, Parent, Name, Data)
621
	local Object = Instance.new(Object)
622
	for Index, Value in pairs(Data or {}) do
623
		Object[Index] = Value
624
	end
625
	Object.Parent = Parent
626
	Object.Name = Name
627
	return Object
628
end
629
630
631
632
function Tran(Num)
633
local GivenLeter = ""
634
if Num == "1" then
635
GivenLeter = "a"	
636
elseif Num == "2" then
637
GivenLeter = "b"
638
elseif Num == "3" then
639
GivenLeter = "c"
640
elseif Num == "4" then
641
GivenLeter = "d"
642
elseif Num == "5" then
643
GivenLeter = "e"
644
elseif Num == "6" then
645
GivenLeter = "f"
646
elseif Num == "7" then
647
GivenLeter = "g"
648
elseif Num == "8" then
649
GivenLeter = "h"
650
elseif Num == "9" then
651
GivenLeter = "i"
652
elseif Num == "10" then
653
GivenLeter = "j"
654
elseif Num == "11" then
655
GivenLeter = "k"
656
elseif Num == "12" then
657
GivenLeter = "l"
658
elseif Num == "13" then
659
GivenLeter = "m"
660
elseif Num == "14" then
661
GivenLeter = "n"
662
elseif Num == "15" then
663
GivenLeter = "o"
664
elseif Num == "16" then
665
GivenLeter = "p"
666
elseif Num == "17" then
667
GivenLeter = "q"
668
elseif Num == "18" then
669
GivenLeter = "r"
670
elseif Num == "19" then
671
GivenLeter = "s"
672
elseif Num == "20" then
673
GivenLeter = "t"
674
elseif Num == "21" then
675
GivenLeter = "u"
676
elseif Num == "22" then
677
GivenLeter = "v"
678
elseif Num == "23" then
679
GivenLeter = "w"
680
elseif Num == "24" then
681
GivenLeter = "x"
682
elseif Num == "25" then
683
GivenLeter = "y"
684
elseif Num == "26" then
685
GivenLeter = "z"
686
elseif Num == "27" then
687
GivenLeter = "_"
688
elseif Num == "28" then
689
GivenLeter = "0"
690
elseif Num == "29" then
691
GivenLeter = "1"
692
elseif Num == "30" then
693
GivenLeter = "2"	
694
elseif Num == "31" then
695
GivenLeter = "3"
696
elseif Num == "32" then
697
GivenLeter = "4"
698
elseif Num == "33" then
699
GivenLeter = "5"
700
elseif Num == "34" then
701
GivenLeter = "6"
702
elseif Num == "35" then
703
GivenLeter = "7"
704
elseif Num == "36" then
705
GivenLeter = "8"
706
elseif Num == "37" then
707
GivenLeter = "9"
708
end
709
return GivenLeter
710
	
711
end
712
713
function MaybeOk(Mode,Extra)
714
local ReturningValue = ""
715
if Mode == 1 then
716
	
717
	
718
719
	--	v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
720
		
721
		--print(v.C0)
722
local GivenText	= ""	
723
local	msg = 	Extra
724
local Txt = ""
725
local FoundTime=0
726
local LastFound = 0
727
        delay(wait(0),function()
728
                for v3 = 1, #msg do
729
                    
730
if string.sub(msg,0+v3,v3) == ","	then
731
732
local TheN = string.sub(msg,LastFound,v3-1)
733
734
735
local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
736
737
738
739
FoundTime = FoundTime + 1
740
741
742
GivenText = GivenText..NumTranslate
743
744
LastFound=v3+1
745
Txt=""
746
end
747
    Txt=string.sub(msg,1,v3)		
748
749
750
       --    Gui.ExtentsOffset = Vector3.new(0,3,0)
751
752
753
      --  Gui.ExtentsOffset = Vector3.new(0,3,0)                    
754
wait()
755
 -- Gui.ExtentsOffset = Vector3.new(0,3,0)   
756
                end;		
757
758
	 	ReturningValue=GivenText
759
	      for v3 = 1, #Txt do
760
                        Txt=string.sub(msg,-1,v3)
761
762
763
             
764
765
766
767
768
   end;
769
             --   Gui:remove()
770
        end)	
771
	
772
773
elseif Mode == 2 then
774
	
775
print("fat")
776
end
777
778
779
780
while ReturningValue == "" do wait() end
781
return ReturningValue
782
	
783
end
784
785
function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
786
	local NEWMESH = IT(MESH)
787
	if MESH == "SpecialMesh" then
788
		NEWMESH.MeshType = MESHTYPE
789
		if MESHID ~= "nil" and MESHID ~= "" then
790
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
791
		end
792
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
793
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
794
		end
795
	end
796
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
797
	NEWMESH.Scale = SCALE
798
	NEWMESH.Parent = PARENT
799
	return NEWMESH
800
end
801
802
function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
803
	local NEWPART = IT("Part")
804
	NEWPART.formFactor = FORMFACTOR
805
	NEWPART.Reflectance = REFLECTANCE
806
	NEWPART.Transparency = TRANSPARENCY
807
	NEWPART.CanCollide = false
808
	NEWPART.Locked = true
809
	NEWPART.Anchored = true
810
	if ANCHOR == false then
811
		NEWPART.Anchored = false
812
	end
813
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
814
	NEWPART.Name = NAME
815
	NEWPART.Size = SIZE
816
	NEWPART.Position = Torso.Position
817
	NEWPART.Material = MATERIAL
818
	NEWPART:BreakJoints()
819
	NEWPART.Parent = PARENT
820
	return NEWPART
821
end
822
823
local S = IT("Sound")
824
function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
825
	local NEWSOUND = nil
826
	coroutine.resume(coroutine.create(function()
827
		NEWSOUND = S:Clone()
828
		NEWSOUND.Parent = PARENT
829
		NEWSOUND.Volume = VOLUME
830
		NEWSOUND.Pitch = PITCH
831
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
832
		NEWSOUND:play()
833
		if DOESLOOP == true then
834
			NEWSOUND.Looped = true
835
		else
836
			repeat wait(1) until NEWSOUND.Playing == false
837
			NEWSOUND:remove()
838
		end
839
	end))
840
	return NEWSOUND
841
end
842
843
844
	function WACKYEFFECT(Table)
845
	local TYPE = (Table.EffectType or "Sphere")
846
	local SIZE = (Table.Size or VT(1,1,1))
847
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
848
	local TRANSPARENCY = (Table.Transparency or 0)
849
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
850
	local CFRAME = (Table.CFrame or Torso.CFrame)
851
	local MOVEDIRECTION = (Table.MoveToPos or nil)
852
	local ROTATION1 = (Table.RotationX or 0)
853
	local ROTATION2 = (Table.RotationY or 0)
854
	local ROTATION3 = (Table.RotationZ or 0)
855
	local MATERIAL = (Table.Material or "Neon")
856
	local COLOR = (Table.Color or C3(1,1,1))
857
	local TIME = (Table.Time or 45)
858
	local SOUNDID = (Table.SoundID or nil)
859
	local SOUNDPITCH = (Table.SoundPitch or nil)
860
	local SOUNDVOLUME = (Table.SoundVolume or nil)
861
	coroutine.resume(coroutine.create(function()
862
		local PLAYSSOUND = false
863
		local SOUND = nil
864
		local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
865
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
866
			PLAYSSOUND = true
867
			SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
868
		end
869
		EFFECT.Color = COLOR
870
		local MSH = nil
871
		if TYPE == "Sphere" then
872
			MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
873
				elseif TYPE == "Cylinder" then
874
			MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))	
875
		elseif TYPE == "Block" then
876
			MSH = IT("BlockMesh",EFFECT)
877
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
878
				elseif TYPE == "Cube" then
879
			MSH = IT("BlockMesh",EFFECT)
880
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)	
881
			
882
		elseif TYPE == "Wave" then
883
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
884
		elseif TYPE == "Ring" then
885
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
886
		elseif TYPE == "Slash" then
887
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
888
		elseif TYPE == "Round Slash" then
889
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
890
		elseif TYPE == "Swirl" then
891
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
892
		elseif TYPE == "Skull" then
893
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
894
		elseif TYPE == "Crystal" then
895
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
896
		elseif TYPE == "Crown" then
897
			MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
898
		end
899
		if MSH ~= nil then
900
			local MOVESPEED = nil
901
			if MOVEDIRECTION ~= nil then
902
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
903
			end
904
			local GROWTH = SIZE - ENDSIZE
905
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
906
			if TYPE == "Block" then
907
			
908
				SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
909
			else
910
		
911
			SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
912
				
913
			end
914
			
915
			
916
			
917
			wait()
918
			
919
			SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
920
			
921
							if TYPE == "Block" then
922
	
923
					SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
924
				else
925
926
					SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
927
					
928
				end
929
							if MOVEDIRECTION ~= nil then
930
					local ORI = EFFECT.Orientation
931
932
					SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
933
						SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
934
				
935
					
936
							end
937
							MSH.Scale = MSH.Scale - GROWTH/TIME
938
									SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
939
										if TYPE == "Wave" then
940
				
941
						SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
942
				end
943
			for LOOP = 1, TIME+1 do
944
				wait(.05)
945
946
				--SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
947
				
948
				
949
				if TYPE == "Block" then
950
	
951
	--				SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
952
				else
953
954
	--				SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
955
					
956
				end
957
				if MOVEDIRECTION ~= nil then
958
					local ORI = EFFECT.Orientation
959
960
--					SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
961
--						SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
962
				
963
					
964
				end
965
			end
966
				game:GetService("Debris"):AddItem(EFFECT, 15)
967
			if PLAYSSOUND == false then
968
				EFFECT:remove()
969
			else
970
				SOUND.Stopped:Connect(function()
971
					EFFECT:remove()
972
				end)
973
			end
974
		else
975
			if PLAYSSOUND == false then
976
				EFFECT:remove()
977
			else
978
				repeat wait() until SOUND.Playing == false
979
				EFFECT:remove()
980
			end
981
		end
982
	end))
983
end	
984
----------------------
985
--[End Of Functions]--
986
----------------------
987
988
989
990
991
992
993
------------------
994
--[Gun]--
995
------------------
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1009
	local Part = Create("Part"){
1010
		
1011
		Parent = Parent,
1012
		Reflectance = Reflectance,
1013
		Transparency = Transparency,
1014
		CanCollide = false,
1015
		Locked = true,
1016
		BrickColor = BrickColor.new(tostring(BColor)),
1017
		Name = Name,
1018
		Size = Size,
1019
		Material = Material,
1020
	}
1021
	RemoveOutlines(Part)
1022
	return Part
1023
end
1024
1025
------------------
1026
--[End of Gun]--
1027
------------------
1028
1029
---------------
1030
--[Particles]--
1031
---------------
1032
1033
1034
local Particle2_1 = Create("ParticleEmitter"){
1035
Color = ColorSequence.new(Color3.new (1,1,1),  Color3.new (170/255, 255/255, 255/255)),
1036
Transparency =  NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
1037
Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
1038
Texture = "rbxassetid://241922778",
1039
Lifetime = NumberRange.new(0.55,0.95),
1040
Rate = 100,
1041
VelocitySpread = 180,
1042
Rotation = NumberRange.new(0),
1043
RotSpeed = NumberRange.new(-200,200),
1044
Speed = NumberRange.new(8.0),
1045
LightEmission = 1,
1046
LockedToPart = false,
1047
Acceleration = Vector3.new(0, 0, 0),
1048
EmissionDirection = "Top",
1049
Drag = 4,
1050
Enabled = false
1051
}
1052
1053
1054
local BEGONE_Particle = Create("ParticleEmitter"){
1055
Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
1056
Transparency =  NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
1057
Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
1058
Texture = "rbxassetid://936193661",
1059
Lifetime = NumberRange.new(1.5),
1060
Rate = 100,
1061
VelocitySpread = 0,
1062
Rotation = NumberRange.new(0),
1063
RotSpeed = NumberRange.new(-10,10),
1064
Speed = NumberRange.new(0),
1065
LightEmission = .25,
1066
LockedToPart = true,
1067
Acceleration = Vector3.new(0, -0, 0),
1068
EmissionDirection = "Top",
1069
Drag = 4,
1070
ZOffset = 1,
1071
Enabled = false
1072
}
1073
1074
1075
----------------------
1076
--[End Of Particles]--
1077
----------------------
1078
1079
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans,SizeAdd,Time,Dely) -- Lightning module
1080
    --[[Part0 = Vector3 (Start pos)
1081
		Part1 = Vector3 (End pos)
1082
		Times = number (Amount of lightning parts)
1083
		Offset = number (Offset)
1084
		Color = color (brickcolor value)
1085
		Thickness = number (thickness)
1086
		Trans = number (transparency)
1087
    ]]--
1088
coroutine.resume(coroutine.create(function()
1089
    local magz = (Part0 - Part1).magnitude
1090
    local curpos = Part0
1091
    local trz = {-Offset,Offset}
1092
local Time2 = 0.07
1093
if Time ~= nil then
1094
Time2 = Time	
1095
end
1096
    for i=1,Times do
1097
        local li = Instance.new("Part", Torso)
1098
		li.Name = "Lightning"
1099
		li.TopSurface =0
1100
		li.Material = "Neon"
1101
		li.BottomSurface = 0
1102
		li.Anchored = true
1103
		li.Locked = true
1104
		li.Transparency = Trans or 0
1105
		li.BrickColor = Color
1106
		li.formFactor = "Custom"
1107
		li.CanCollide = false
1108
	--	MakeForm(li,"Ball")
1109
		li.Size = Vector3.new(0,0,magz/Times)
1110
local Offzet = Vector3.new(trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100])
1111
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
1112
        if Times == i then
1113
        local magz2 = (curpos - Part1).magnitude
1114
        li.Size = Vector3.new(0,0,magz2)
1115
		SetTween(li,{Size = VT(Thickness*(1-(i/Times+.1)),Thickness*(1-(i/Times+.1)),magz2),Transparency=1},"Back","Out",Time)
1116
        
1117
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
1118
        else
1119
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)		
1120
SetTween(li,{Size = VT(Thickness*(1-(i/Times)),Thickness*(1-(i/Times)),magz/Times),Transparency=1},"Back","Out",Time)
1121
        
1122
        end
1123
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
1124
coroutine.resume(coroutine.create(function()
1125
	wait(Time)
1126
	li:Destroy()
1127
end))
1128
        --game.Debris:AddItem(li,Time)
1129
1130
if Dely ~= nil then
1131
	Swait(Dely)
1132
end
1133
1134
1135
--BlockEffect(Color, li.CFrame, li.Size.X*20, li.Size.Y*20, li.Size.Z*20, SizeAdd, SizeAdd, 0, Time2,2)
1136
    end
1137
end))
1138
end
1139
1140
1141
function MakeForm(PART,TYPE)
1142
	if TYPE == "Cyl" then
1143
		local MSH = IT("CylinderMesh",PART)
1144
	elseif TYPE == "Ball" then
1145
		local MSH = IT("SpecialMesh",PART)
1146
		MSH.MeshType = "Sphere"
1147
	elseif TYPE == "Wedge" then
1148
		local MSH = IT("SpecialMesh",PART)
1149
		MSH.MeshType = "Wedge"
1150
	end
1151
end
1152
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1153
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1154
end
1155
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1156
	local DIRECTION = CF(StartPos,EndPos).lookVector
1157
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
1158
end
1159
Debris = game:GetService("Debris")
1160
1161
-----------------
1162
1163
1164
1165
	Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1166
	
1167
		if hit.Parent == nil then
1168
		return 
1169
	end
1170
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1171
	for _,v in pairs(hit.Parent:children()) do
1172
		if v:IsA("Humanoid") then
1173
		if	h.Health > 0.0001 then
1174
				h = v else   end
1175
		end
1176
	end
1177
	
1178
	if h == nil then
1179
		return 
1180
		elseif h ~= nil and h.Health < 0.001 then
1181
		return 
1182
	elseif  h ~= nil and h.Parent:FindFirstChild("Fly away") then
1183
		return
1184
	end
1185
	
1186
	
1187
	--gg
1188
	
1189
--local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")	
1190
		coroutine.resume(coroutine.create(function()	
1191
if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
1192
	
1193
	
1194
	local FATag = Instance.new("Model",h.Parent)
1195
1196
	FATag.Name = "Fly away"
1197
game:GetService("Debris"):AddItem(FATag, 2.5)	
1198
	
1199
	
1200
	for _,v in pairs(h.Parent:children()) do
1201
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1202
			v.Anchored=true
1203
		end
1204
	end	
1205
1206
wait(.25)
1207
	
1208
if 	h.Parent:FindFirstChildOfClass("Body Colors")then
1209
h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
1210
end
1211
1212
1213
	local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
1214
	
1215
	coroutine.resume(coroutine.create(function()	
1216
		
1217
		
1218
local YourGone = Instance.new("Part")
1219
		YourGone.Reflectance = 0
1220
		YourGone.Transparency = 1
1221
		YourGone.CanCollide = false
1222
		YourGone.Locked = true
1223
		YourGone.Anchored=true
1224
		YourGone.BrickColor = BrickColor.new("Really blue")
1225
		YourGone.Name = "YourGone"
1226
		YourGone.Size = Vector3.new()
1227
		YourGone.Material = "SmoothPlastic"
1228
		YourGone:BreakJoints()
1229
		YourGone.Parent = FoundTorso		
1230
		YourGone.CFrame = FoundTorso.CFrame
1231
				
1232
	local NewParticle = Instance.new("ParticleEmitter")
1233
NewParticle.Parent = YourGone
1234
NewParticle.Acceleration =  Vector3.new(0,0,0)
1235
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
1236
NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
1237
NewParticle.Lifetime = NumberRange.new(0.55,0.95)
1238
NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
1239
NewParticle.Speed = NumberRange.new(0,0.0)
1240
NewParticle.ZOffset = 2
1241
NewParticle.Texture = "rbxassetid://243660364"
1242
NewParticle.RotSpeed = NumberRange.new(-0,0)
1243
NewParticle.Rotation = NumberRange.new(-180,180)
1244
NewParticle.Enabled = false
1245
game:GetService("Debris"):AddItem(YourGone, 3)	
1246
for i = 0,2,1 do
1247
NewParticle:Emit(1)
1248
so("1448044156", FoundTorso,2, 1)
1249
h.Parent:BreakJoints()
1250
YourGone.CFrame = FoundTorso.CFrame
1251
	for _,v in pairs(h.Parent:children()) do
1252
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1253
			v.Anchored=false
1254
--			v.Material = "Neon"
1255
			--v.BrickColor = BrickColor.new("Really red")
1256
			if v:FindFirstChildOfClass("SpecialMesh")then
1257
	--v:Destroy()
1258
			end	
1259
						if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
1260
--	v:Destroy()
1261
end		
1262
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
1263
										
1264
				vp.Parent = v		
1265
						game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)				
1266
			
1267
			
1268
		end
1269
		
1270
		
1271
		
1272
	end	
1273
1274
	
1275
	
1276
wait(.2)	
1277
end
1278
wait(.1)	
1279
NewParticle:Emit(3)
1280
so("1448044156", FoundTorso,2, .8)
1281
h.Parent:BreakJoints()
1282
YourGone.CFrame = FoundTorso.CFrame
1283
	for _,v in pairs(h.Parent:children()) do
1284
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1285
			v.Anchored=false
1286
--			v.Material = "Neon"
1287
			--v.BrickColor = BrickColor.new("Really red")
1288
			if v:FindFirstChildOfClass("SpecialMesh")then
1289
	--v:Destroy()
1290
			end	
1291
						if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
1292
--	v:Destroy()
1293
end		
1294
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
1295
										
1296
				vp.Parent = v		
1297
						game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)				
1298
			
1299
			
1300
		end
1301
		
1302
		
1303
		
1304
	end	
1305
1306
	
1307
	
1308
	
1309
	end))
1310
	
1311
1312
1313
1314
wait(.1)
1315
1316
1317
1318
	
1319
	
1320
	
1321
	
1322
	end
1323
	
1324
	
1325
	end))
1326
	if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
1327
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1328
			return 
1329
		end
1330
		local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
1331
		game:GetService("Debris"):AddItem(c, 0.5)
1332
		if HitSound ~= nil and HitPitch ~= nil then
1333
			so(HitSound, hit, 1, HitPitch)
1334
		end
1335
		local Damage = math.random(minim, maxim)
1336
		local blocked = false
1337
		local block = hit.Parent:findFirstChild("Block")
1338
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1339
			blocked = true
1340
			block.Value = block.Value - 1
1341
			print(block.Value)
1342
		end
1343
	if blocked == false then
1344
			h.Health = h.Health - Damage
1345
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0))
1346
		else
1347
			h.Health = h.Health - Damage / 2
1348
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0))
1349
			
1350
		end
1351
1352
		if Type == "Knockdown" then
1353
					local hum = h
1354
		
1355
			hum.PlatformStand = true
1356
			coroutine.resume(coroutine.create(function(HHumanoid)
1357
		
1358
		wait(.2)
1359
		HHumanoid.PlatformStand = false
1360
	end
1361
			), hum)
1362
			
1363
			
1364
			
1365
			local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
1366
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1367
			local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
1368
			local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
1369
			game:GetService("Debris"):AddItem(bodvol, .2)
1370
			game:GetService("Debris"):AddItem(rl, 0.2)
1371
1372
1373
1374
		elseif Type == "Knockdown2" then
1375
					local hum = h
1376
		
1377
			hum.PlatformStand = true
1378
			coroutine.resume(coroutine.create(function(HHumanoid)
1379
		
1380
						
1381
 Combo = 1			wait(.2)
1382
		HHumanoid.PlatformStand = false
1383
	end
1384
), hum)
1385
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1386
			local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
1387
			local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
1388
			game:GetService("Debris"):AddItem(bodvol, 0.2)
1389
			game:GetService("Debris"):AddItem(rl, 0.2)
1390
1391
1392
1393
1394
1395
1396
							local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
1397
							game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
1398
1399
		elseif Type == "Normal" then
1400
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
1401
					if knockback > 0 then
1402
						
1403
				local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1404
						vp.Parent = HTorso
1405
					end
1406
					game:GetService("Debris"):AddItem(vp, 0.25)
1407
					
1408
					
1409
					
1410
					
1411
					
1412
					
1413
	
1414
		elseif Type== "Fire" 	then
1415
			local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1416
1417
							local tags = 0
1418
						for _,v2 in next, HTorso:GetChildren() do 
1419
							if v2:IsA("Folder") and v2.Name == "OnFire" then
1420
								tags=tags+1
1421
							end
1422
						end	
1423
						
1424
if tags < 2 then
1425
											
1426
					local fireef = EffectPack.FireEffect:Clone()
1427
					
1428
					local tag = Instance.new("Folder",HTorso)
1429
					tag.Name = "OnFire"					
1430
					 game:GetService("Debris"):AddItem(tag, 4.5) 
1431
			for _,v in next, fireef:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight")  then    game:GetService("Debris"):AddItem(v, 5) 	 v.Parent = HTorso
1432
			coroutine.resume(coroutine.create(function()	
1433
				for i = 1,35 do 
1434
								coroutine.resume(coroutine.create(function()	
1435
					v:Emit(2) end))
1436
						coroutine.resume(coroutine.create(function()	
1437
							Damagefunc(HTorso, HTorso, 4/2, 6/2, 0, "Normal", RootPart, 0.1, "1273118342", math.random(10,30)/10)
1438
						end))
1439
						if HTorso.Parent:FindFirstChildOfClass("Humanoid")  and HTorso.Parent:FindFirstChildOfClass("Humanoid").Health > .01 then
1440
							else 	for _,v2 in next, HTorso.Parent:GetDescendants() do  if v2:isA("BasePart") then SetTween(v2,{Color=C3(0,0,0)},"Quad","Out",.5) end end break
1441
						end
1442
					wait(.1)
1443
					end
1444
			end))	
1445
				
1446
				  end  end
1447
		
1448
					
1449
		fireef:Destroy()		
1450
			else-- print("Hit Max")		
1451
		end			
1452
		elseif Type== "Instakill" 	then
1453
					coroutine.resume(coroutine.create(function()	
1454
if  (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
1455
	
1456
	
1457
	local FATag = Instance.new("Model",h.Parent)
1458
1459
	FATag.Name = "Fly away"
1460
game:GetService("Debris"):AddItem(FATag, 2.5)	
1461
	
1462
	
1463
	for _,v in pairs(h.Parent:children()) do
1464
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1465
			v.Anchored=true
1466
		end
1467
	end	
1468
1469
wait(.25)
1470
	
1471
if 	h.Parent:FindFirstChildOfClass("Body Colors")then
1472
h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
1473
end
1474
1475
1476
	local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
1477
	
1478
	coroutine.resume(coroutine.create(function()	
1479
		
1480
		
1481
local YourGone = Instance.new("Part")
1482
		YourGone.Reflectance = 0
1483
		YourGone.Transparency = 1
1484
		YourGone.CanCollide = false
1485
		YourGone.Locked = true
1486
		YourGone.Anchored=true
1487
		YourGone.BrickColor = BrickColor.new("Really blue")
1488
		YourGone.Name = "YourGone"
1489
		YourGone.Size = Vector3.new()
1490
		YourGone.Material = "SmoothPlastic"
1491
		YourGone:BreakJoints()
1492
		YourGone.Parent = FoundTorso		
1493
		YourGone.CFrame = FoundTorso.CFrame
1494
				
1495
	local NewParticle = Instance.new("ParticleEmitter")
1496
NewParticle.Parent = YourGone
1497
NewParticle.Acceleration =  Vector3.new(0,0,0)
1498
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
1499
NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
1500
NewParticle.Lifetime = NumberRange.new(0.55,0.95)
1501
NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
1502
NewParticle.Speed = NumberRange.new(0,0.0)
1503
NewParticle.ZOffset = 2
1504
NewParticle.Texture = "rbxassetid://243660364"
1505
NewParticle.RotSpeed = NumberRange.new(-0,0)
1506
NewParticle.Rotation = NumberRange.new(-180,180)
1507
NewParticle.Enabled = false
1508
game:GetService("Debris"):AddItem(YourGone, 3)	
1509
for i = 0,2,1 do
1510
NewParticle:Emit(1)
1511
so("1448044156", FoundTorso,2, 1)
1512
h.Parent:BreakJoints()
1513
YourGone.CFrame = FoundTorso.CFrame
1514
	for _,v in pairs(h.Parent:children()) do
1515
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1516
			v.Anchored=false
1517
--			v.Material = "Neon"
1518
			--v.BrickColor = BrickColor.new("Really red")
1519
			if v:FindFirstChildOfClass("SpecialMesh")then
1520
	--v:Destroy()
1521
			end	
1522
						if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
1523
--	v:Destroy()
1524
end		
1525
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
1526
										
1527
				vp.Parent = v		
1528
						game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)				
1529
			
1530
			
1531
		end
1532
		
1533
		
1534
		
1535
	end	
1536
1537
	
1538
	
1539
wait(.2)	
1540
end
1541
wait(.1)	
1542
NewParticle:Emit(3)
1543
so("1448044156", FoundTorso,2, .8)
1544
h.Parent:BreakJoints()
1545
YourGone.CFrame = FoundTorso.CFrame
1546
	for _,v in pairs(h.Parent:children()) do
1547
		if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
1548
			v.Anchored=false
1549
--			v.Material = "Neon"
1550
			--v.BrickColor = BrickColor.new("Really red")
1551
			if v:FindFirstChildOfClass("SpecialMesh")then
1552
	--v:Destroy()
1553
			end	
1554
						if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
1555
--	v:Destroy()
1556
end		
1557
					local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
1558
										
1559
				vp.Parent = v		
1560
						game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)				
1561
			
1562
			
1563
		end
1564
		
1565
		
1566
		
1567
	end	
1568
1569
	
1570
	
1571
	
1572
	end))
1573
	
1574
1575
1576
1577
wait(.1)
1578
1579
1580
1581
	
1582
	
1583
	
1584
	
1585
	end
1586
	
1587
	
1588
	end))
1589
	
1590
1591
		elseif Type == "HPSteal" then
1592
					Humanoid.Health = Humanoid.Health + Damage
1593
								local hum = h
1594
		
1595
			hum.PlatformStand = true
1596
			coroutine.resume(coroutine.create(function(HHumanoid)
1597
		
1598
						
1599
 Combo = 1			wait(.2)
1600
		HHumanoid.PlatformStand = false
1601
	end
1602
), hum)
1603
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1604
			local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
1605
			local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
1606
			game:GetService("Debris"):AddItem(bodvol, 0.2)
1607
			game:GetService("Debris"):AddItem(rl, 0.2)
1608
1609
1610
1611
1612
1613
1614
							local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
1615
							game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
1616
1617
			
1618
					elseif Type == "Impale" then
1619
1620
1621
1622
1623
1624
1625
	
1626
1627
CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)	
1628
			hit.Parent.Humanoid.PlatformStand = true
1629
			
1630
		
1631
		wait(1)
1632
		hit.Parent.Humanoid.PlatformStand = false
1633
		elseif Type == "IgnoreType" then
1634
			
1635
1636
			
1637
			
1638
			
1639
				elseif Type == "Up" then
1640
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1641
							game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
1642
							local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
1643
							game:GetService("Debris"):AddItem(bodyVelocity, .1)
1644
				
1645
				
1646
1647
		
1648
			
1649
			
1650
			
1651
						elseif Type == "Snare" then
1652
									local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso"))})
1653
									game:GetService("Debris"):AddItem(bp, 1)
1654
			
1655
						
1656
1657
							elseif Type == "Freeze2" then
1658
											local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
1659
											local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
1660
											hit.Parent.Torso.Anchored = true
1661
											coroutine.resume(coroutine.create(function(Part)
1662
		
1663
		wait(1.5)
1664
		Part.Anchored = false
1665
	end
1666
), hit.Parent.Torso)
1667
											game:GetService("Debris"):AddItem(BodPos, 3)
1668
											game:GetService("Debris"):AddItem(BodGy, 3)
1669
										end
1670
											local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
1671
											game:GetService("Debris"):AddItem(debounce, Delay)
1672
											c = Instance.new("ObjectValue")
1673
											c.Name = "creator"
1674
											c.Value = Player
1675
											c.Parent = h
1676
											game:GetService("Debris"):AddItem(c, 0.5)
1677
										end
1678
									end
1679
1680
1681
1682
	ShowDamage = function(Pos, Text, Time, Color)
1683
	
1684
	local Rate = 0.033333333333333
1685
	if not Pos then
1686
		local Pos = Vector3.new(0, 0, 0)
1687
	end
1688
	local Text = Text or ""
1689
	local Time = Time or 2
1690
	if not Color then
1691
		local Color = Color3.new(1, 0, 1)
1692
	end
1693
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1694
	EffectPart.Anchored = true
1695
	local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
1696
	local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
1697
	TextLabel.TextTransparency=1
1698
	game.Debris:AddItem(EffectPart, Time + 0.1)
1699
	EffectPart.Parent = game:GetService("Workspace")
1700
	delay(0, function()
1701
		
1702
		local Frames = Time / Rate
1703
		
1704
		
1705
		
1706
--print(Frames)
1707
	
1708
		EffectPart.CFrame=CFrame.new(Pos)
1709
		wait()	TextLabel.TextTransparency=0
1710
		SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
1711
		SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
1712
		SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
1713
1714
SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
1715
1716
1717
		wait(Frames/60)
1718
		
1719
		if EffectPart and EffectPart.Parent then
1720
			EffectPart:Destroy()
1721
		end
1722
	end
1723
)
1724
end
1725
1726
	MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
1727
		
1728
		
1729
		
1730
		
1731
local Type=""
1732
1733
1734
1735
1736
if  mememode == true then
1737
 
1738
Type=	"Instakill"
1739
1740
else
1741
Type=Type2
1742
end 
1743
if Type2 == "NormalKnockdown" then
1744
	Type= "Knockdown"
1745
end
1746
		
1747
	for _,c in pairs(workspace:children()) do
1748
		
1749
		
1750
		
1751
		
1752
		
1753
		local hum = c:FindFirstChild("Humanoid")
1754
	for _,v in pairs(c:children()) do
1755
		if v:IsA("Humanoid") then
1756
			hum = v
1757
		end
1758
	end	
1759
		
1760
		
1761
		
1762
		
1763
		if hum ~= nil then
1764
			local head = c:findFirstChild("Head")
1765
			if head ~= nil then
1766
				local targ = head.Position - Part.Position
1767
				local mag = targ.magnitude
1768
				if mag <= magni and c.Name ~= Player.Name then
1769
					Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
1770
				end
1771
			end
1772
		end
1773
	end
1774
end
1775
1776
1777
function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
1778
local DGP = Instance.new("Part")
1779
1780
DGP.Parent = Character
1781
DGP.Size = Vector3.new(0.05, 0.05, 0.05)
1782
DGP.Transparency = 1
1783
DGP.CanCollide = false
1784
DGP.Anchored = true
1785
RemoveOutlines(DGP)
1786
DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
1787
DGP.CFrame = HTCF
1788
1789
coroutine.resume(coroutine.create(function()
1790
MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
1791
end))
1792
game:GetService("Debris"):AddItem(DGP, .05)
1793
1794
1795
DGP.Archivable = false
1796
end
1797
1798
		
1799
1800
1801
1802
-----------------
1803
function findNearestTorso(pos,dist1)
1804
	local list = game.Workspace:children()
1805
	local torso = nil
1806
	local dist = dist1 or 1000
1807
	local temp = nil
1808
	local human = nil
1809
	local temp2 = nil
1810
	for x = 1, #list do
1811
		temp2 = list[x]
1812
		if (temp2.className == "Model") and (temp2 ~= Character) then
1813
			temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
1814
			human = temp2:findFirstChildOfClass("Humanoid")
1815
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
1816
				if (temp.Position - pos).magnitude < dist then
1817
					torso = temp
1818
					dist = (temp.Position - pos).magnitude
1819
				end
1820
			end
1821
		end
1822
	end
1823
	return torso
1824
end
1825
function BulletHitEffectSpawn(EffectCF,EffectName)
1826
local MainEffectHolder=Instance.new("Part",Effects)	
1827
		MainEffectHolder.Reflectance = 0
1828
		MainEffectHolder.Transparency = 1
1829
		MainEffectHolder.CanCollide = false
1830
		MainEffectHolder.Locked = true
1831
		MainEffectHolder.Anchored=true
1832
		MainEffectHolder.BrickColor = BrickColor.new("Bright green")
1833
		MainEffectHolder.Name = "Bullet"
1834
		MainEffectHolder.Size = Vector3.new(.05,.05,.05)	
1835
		MainEffectHolder.Material = "Neon"
1836
		MainEffectHolder:BreakJoints()
1837
		MainEffectHolder.CFrame = EffectCF
1838
		local EffectAttach=Instance.new("Attachment",MainEffectHolder)	
1839
			game:GetService("Debris"):AddItem(MainEffectHolder, 15)
1840
1841
				if EffectName == "Explode" then
1842
			EffectAttach.Orientation = Vector3.new(90,0,0)
1843
1844
1845
1846
1847
	local	SpawnedParticle1 =  EffectPack.Explode_Fire_Effect:Clone()
1848
            SpawnedParticle1.Parent = MainEffectHolder
1849
          SpawnedParticle1:Emit(150)
1850
1851
		
1852
	
1853
	local	SpawnedParticle2 =  EffectPack.Explode_Smoke2_Effect:Clone()
1854
            SpawnedParticle2.Parent = MainEffectHolder
1855
          SpawnedParticle2:Emit(25)
1856
	
1857
		
1858
1859
	local	SpawnedParticle3 =  EffectPack.Explode_Smoke_Effect:Clone()
1860
            SpawnedParticle3.Parent = MainEffectHolder
1861
          SpawnedParticle3:Emit(185)
1862
		game:GetService("Debris"):AddItem(MainEffectHolder, 2)				
1863
		
1864
			
1865
		end	
1866
1867
1868
1869
1870
1871
1872
				if EffectName == "Spark" then
1873
1874
			EffectAttach.Orientation = Vector3.new(90,0,0)
1875
1876
1877
1878
1879
	local	SpawnedParticle1 =  EffectPack.Spark:Clone()
1880
            SpawnedParticle1.Parent = MainEffectHolder
1881
          SpawnedParticle1:Emit(math.random(2,5))
1882
1883
		
1884
	
1885
1886
		game:GetService("Debris"):AddItem(MainEffectHolder, 2)				
1887
		
1888
			
1889
		end	
1890
1891
1892
1893
1894
1895
				if EffectName == "Nuke" then
1896
					so(923073285,MainEffectHolder,8,2)
1897
			EffectAttach.Orientation = Vector3.new(0,0,0)
1898
					local EffectAttach2=Instance.new("Attachment",MainEffectHolder)	
1899
			EffectAttach2.Orientation = Vector3.new(0,0,0)
1900
1901
1902
1903
1904
	local	SpawnedParticle1 =  EffectPack.Nuke_Flash:Clone()
1905
            SpawnedParticle1.Parent = EffectAttach
1906
          SpawnedParticle1:Emit(20)
1907
1908
		
1909
	
1910
	local	SpawnedParticle2 =  EffectPack.Nuke_Smoke:Clone()
1911
            SpawnedParticle2.Parent = EffectAttach2
1912
          SpawnedParticle2.Enabled = true
1913
		coroutine.resume(coroutine.create(function()
1914
			
1915
	for i = 0,2,.025/1.5 do
1916
1917
1918
SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.15,.5+(i/4)),NumberSequenceKeypoint.new(.95,.5+(i/4)),NumberSequenceKeypoint.new(1,1)})
1919
Swait()		
1920
	end
1921
	SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)})
1922
	
1923
		      SpawnedParticle2.Enabled = false	
1924
		end))
1925
		
1926
1927
	local	SpawnedParticle3 =  EffectPack.Nuke_Wave:Clone()
1928
            SpawnedParticle3.Parent = EffectAttach
1929
          SpawnedParticle3:Emit(185)
1930
		game:GetService("Debris"):AddItem(EffectAttach, 10)				
1931
		
1932
			
1933
		end	
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
		
1946
end
1947
1948
function ProjectileDmg(MinDmg1,MaxDmg1,Lookpos1,Lookray1,Aura1,Type,Partf)
1949
	
1950
if Lookray1 ~= nil and Lookray1.Parent:FindFirstChildOfClass("Humanoid") then
1951
	coroutine.resume(coroutine.create(function()
1952
	Damagefunc(Partf, Lookray1, MinDmg1, MaxDmg1, MinDmg1, Type, RootPart, 0.1, "851453784", 1.2) end))
1953
else	
1954
	CFMagniDamage(CF(Lookpos1),Aura1, MinDmg1, MaxDmg1, MinDmg1, Type)
1955
end	
1956
	
1957
	
1958
	
1959
	
1960
	
1961
end
1962
1963
1964
function FireSoul(SpawnCF)
1965
	
1966
1967
		local GhostHolder = EffectPack.Missile:Clone()
1968
		GhostHolder.Parent = Effects		
1969
		GhostHolder.CFrame = SpawnCF
1970
		
1971
		
1972
		local Missile = GhostHolder
1973
for i, v3 in pairs(GatherAllInstances(Missile)) do
1974
	if v3:IsA("ParticleEmitter") then
1975
		v3.Enabled = true		
1976
	end
1977
end
1978
		
1979
1980
	
1981
		
1982
coroutine.resume(coroutine.create(function()	
1983
	Missile["Rocket Thrust Loop"]:Play()
1984
end))	
1985
1986
	
1987
so(771710614,Missile,1,1)
1988
	
1989
wait()		
1990
	
1991
		
1992
game:GetService("Debris"):AddItem(GhostHolder, 60)		
1993
			
1994
	coroutine.resume(coroutine.create(function()
1995
1996
1997
1998
1999
2000
2001
GhostHolder.Transparency = 0
2002
2003
2004
2005
2006
end))
2007
2008
2009
2010
	--GhostHolder.Touched:connect(onTouch)	
2011
2012
--GhostHolder:BreakJoints()
2013
--GhostHolder.Anchored = false	
2014
2015
2016
--Acthing(GhostHolder,"1698327723",Vector3.new(1.41,1.42,1.41),BrickColor.new("Really black"),"Glass",0.0,cn(0,.0325,0)*angles(math.rad(0), math.rad(180), math.rad(0)),Color3.new(0,0,0),GhostHolder,2)
2017
local GhostTarget=nil
2018
2019
	coroutine.resume(coroutine.create(function()
2020
	
2021
		
2022
		local lookdir=RootPart.CFrame.lookVector *15 
2023
		
2024
			while GhostHolder.Parent == Effects do 
2025
	
2026
2027
	GhostTarget = findNearestTorso(GhostHolder.Position)
2028
	
2029
				
2030
	if GhostTarget ~=nil then		
2031
2032
2033
2034
		
2035
2036
2037
if OverClocking ==false then
2038
SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*30 )-VT(math.random(-10,10),math.random(-15,15),math.random(-10,10)))},"Linear","Out",.2)
2039
--GhostForce.velocity =GhostHolder.CFrame.lookVector *80
2040
else
2041
SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*21 ))},"Linear","Out",.1)
2042
2043
end
2044
2045
else
2046
if OverClocking ==false then
2047
SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
2048
2049
else
2050
SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2)
2051
2052
2053
2054
end
2055
	end
2056
		local Lookray,Lookpos,test1 = rayCast(GhostHolder.Position, GhostHolder.CFrame.lookVector, 10, Character)
2057
	if Lookray ~= nil then
2058
		--onTouch(Lookray)
2059
		
2060
		
2061
		
2062
2063
2064
so(2814355743,GhostHolder,3,2)
2065
	BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Explode")
2066
	
2067
ProjectileDmg(30,45,Lookpos,nil,15,"Knockdown",GhostHolder)
2068
2069
2070
2071
2072
2073
2074
coroutine.resume(coroutine.create(function()	
2075
	GhostHolder["Rocket Thrust Loop"]:Stop()
2076
end))
2077
2078
2079
2080
2081
for i, v3 in pairs(GatherAllInstances(GhostHolder)) do
2082
	if v3:IsA("ParticleEmitter") then
2083
		v3.Enabled = false		
2084
	end
2085
end
2086
		
2087
		
2088
	SetTween(GhostHolder,{Transparency=1},"Quad","Out",1)	
2089
game:GetService("Debris"):AddItem(GhostHolder, 2)
2090
	
2091
		
2092
break		
2093
		
2094
		
2095
		
2096
	end
2097
	--wait(1.35)
2098
 Swait()	end
2099
--GhostHolder:Destroy()
2100
end))
2101
2102
2103
end
2104
2105
2106
2107
2108
2109
	
2110
2111
2112
	
2113
2114
2115
--[[
2116
		for i, v in pairs(C:GetChildren()) do
2117
if v:IsA("Accessory")then
2118
v:Destroy()	
2119
end
2120
if v:IsA("BasePart")then
2121
v.Transparency =1
2122
if v.Name == "Head" then
2123
	v:FindFirstChildOfClass("Decal"):Destroy()
2124
end
2125
end
2126
		end--]]
2127
--[[
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
local tweeningInformation = TweenInfo.new(
2142
	0.5,	
2143
	Enum.EasingStyle.Back,
2144
	Enum.EasingDirection.Out,
2145
	0,
2146
	false,
2147
	0
2148
)
2149
--]]
2150
2151
2152
local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
2153
RJW.C1 = RJ.C1
2154
RJW.Name = RJ.Name
2155
2156
local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
2157
NeckW.C1 = Neck.C1
2158
NeckW.Name = Neck.Name
2159
2160
2161
--print(WRJ.Parent.Name)
2162
2163
local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
2164
2165
local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
2166
2167
local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
2168
2169
local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
2170
2171
2172
2173
RW.C1 = cn(0, 0.5, 0)
2174
LW.C1 = cn(0, 0.5, 0)
2175
RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
2176
LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
2177
2178
2179
2180
2181
2182
2183
--------
2184
--(#Torso)
2185
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
2186
--------
2187
--(#Head)
2188
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
2189
--------
2190
--(#Right Arm)
2191
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
2192
--------
2193
--(#Left Arm)
2194
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
2195
--------
2196
--(#Right Leg)
2197
SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
2198
--------
2199
--(#Left Leg)
2200
SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
2201
2202
2203
2204
--[[
2205
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2206
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2207
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
2208
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
2209
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2210
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2211
--]]
2212
2213
2214
2215
Humanoid.MaxHealth = 99999
2216
2217
Humanoid.Health = 99999
2218
GainCharge = function()
2219
	Humanoid.MaxHealth = 99999
2220
Humanoid.Health = 99999
2221
end
2222
2223
 Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) 				
2224
				
2225
2226
function SpawnDrone(SPCF)
2227
			coroutine.resume(coroutine.create(function()	
2228
local DroneModel =  nil --EffectPack.Drone:Clone()
2229
if math.random(1,30) == 1 then
2230
	DroneModel = EffectPack.Toaster:Clone()
2231
	else
2232
	DroneModel = EffectPack.Drone:Clone()
2233
	
2234
end
2235
local Drone = EffectPack.Part:Clone()
2236
Drone.Parent = Effects
2237
Drone.Name = "Drone"
2238
Drone.Anchored = true
2239
2240
				local Part1=Drone
2241
				local Part2=DroneModel.Handle
2242
--game:GetService("Debris"):AddItem(Drone, 60)
2243
coroutine.resume(coroutine.create(function()
2244
	wait(60)
2245
	Drone:Destroy()
2246
end))
2247
Drone.CFrame = SPCF*CF(0,10,600)
2248
JointAllTo(Part1,Part2,DroneModel,CFrame.new(0,0,0))
2249
SetTween(Drone,{CFrame=SPCF*CF(math.random(-100,100)/10,math.random(5,20),math.random(-10,10)/10)},"Quad","Out",1)
2250
wait(1)
2251
	local v2 = findNearestTorso(Drone.Position,70)
2252
if v2 ~= nil then
2253
SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","InOut",.5)	
2254
end
2255
Swait(0.15*30)
2256
for i2 =1,16 do 
2257
for i = 1,2,1 do 
2258
	local v = findNearestTorso(Drone.Position,70)
2259
if v~=nil then
2260
2261
SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","Out",.25)	
2262
2263
		  local  lighth,lightp,test1 = rayCast(Drone["gun"..i].CFrame.p, CFrame.new(Drone["gun"..i].CFrame.p, v.CFrame.p).lookVector, 70, Character)
2264
if DroneModel.Name ~= "Toaster" then
2265
Lightning(Drone["gun"..i].CFrame.p,lightp , 5, .2, BrickColor.new("Persimmon"), .15, .5,-.25*2,.5,nil)
2266
		BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")
2267
		coroutine.resume(coroutine.create(function()	
2268
	so("168586621", Drone,1.6, math.random(120,220)/100)
2269
2270
	so("1225795839", Drone,2, math.random(120,220)/100)
2271
CFMagniDamage(CF(lightp),10,5,10,10,"Knockdown")
2272
2273
		end))Swait(0.15*30)
2274
		else
2275
		
2276
Lightning(Drone["gun"..i].CFrame.p,lightp , 15, 1, BrickColor.new("Persimmon"), 2, 0,-.25*2,1,nil)
2277
		BulletHitEffectSpawn(CF(lightp,lightp+test1),"Explode")
2278
		coroutine.resume(coroutine.create(function()	
2279
--	so("168586621", Drone,1.0, math.random(120,220)/100)
2280
2281
	so("1578823908", Drone,4, math.random(100,150)/100)
2282
CFMagniDamage(CF(lightp),20,25,40,-50,"Knockdown")
2283
2284
		end))	
2285
		SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)*CF(0,5,-2.5)},"Quad","InOut",.45)	
2286
		Swait(0.45*30)		
2287
end
2288
	
2289
end	
2290
	
2291
	end
2292
2293
	v2 = findNearestTorso(Drone.Position,70)
2294
if v2~=nil then
2295
2296
SetTween(Drone,{CFrame=CF((Drone.CFrame).p,v2.CFrame.p)},"Quad","InOut",.1)	
2297
2298
2299
	--Swait(0.2*30)
2300
end	
2301
	
2302
2303
end
2304
SetTween(Drone,{CFrame=Drone.CFrame*CF(0,1000,100)},"Quad","InOut",6)
2305
	wait(6)
2306
	Drone:Destroy()
2307
	end))
2308
	end
2309
	
2310
2311
function Attack1()
2312
	attack = true 
2313
	Humanoid.JumpPower = 0
2314
	Humanoid.WalkSpeed = 0
2315
				so("418302853", Torso,4, 2)
2316
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.3)
2317
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.3)
2318
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.3)
2319
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.3)
2320
SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.3)
2321
SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.3)	
2322
wait(.3)
2323
		for i2 = 1,2 do
2324
	for i = 1,3 do
2325
FireSoul(CF(MissileBox["MissileSlot"..i].CFrame.p,MissileBox["MissileSlot"..i].CFrame.p+MissileBox["MissileSlot"..i].CFrame.RightVector))
2326
SetTween(MissileBox["MissileSlot"..i],{Color=C3(0,0,0)},"Quad","InOut",.05)
2327
SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(40),0,0)},"Quad","Out",.1)	
2328
2329
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",0.1)
2330
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.1)
2331
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(35),math.rad(0),math.rad(20))},"Back","Out",0.1)
2332
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(10),math.rad(0),math.rad(-20))},"Back","Out",0.1)
2333
SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.1)
2334
SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-60),math.rad(0),math.rad(0))},"Back","Out",0.1)	
2335
2336
Swait(2)
2337
SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","Out",.1)	
2338
SetTween(MissileBox["MissileSlot"..i],{Color=C3(255/255, 89/255, 89/255)},"Quad","InOut",.25)
2339
SetTween(RJW,{C0=RootCF*CFrame.new(0,-.25,-.55)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.2)
2340
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.2)
2341
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.2)
2342
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.2)
2343
SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.2)
2344
SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.2)
2345
Swait(2)	end
2346
2347
2348
 Swait(4) 
2349
		end
2350
		
2351
attack = false		
2352
		
2353
end
2354
2355
eyehold=false
2356
function Attack2()
2357
	
2358
	
2359
	
2360
	attack = true
2361
		Humanoid.JumpPower = 0	
2362
	Humanoid.WalkSpeed=0	
2363
	
2364
		
2365
local eyeffect1 = EffectPack.Light:Clone()
2366
2367
eyeffect1.Parent = Torso.TorsoLaser.Attachment
2368
2369
2370
	eyeffect1.Enabled = true	
2371
so("1841310110",Torso,3,1)
2372
2373
	for i = 1,3.5,.1 do 
2374
	SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.3)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2375
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2376
SetTween(RW,{C0=CFrame.new(1.2 , 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(-40+math.random(-5,5)))},"Quad","Out",0.1)
2377
SetTween(LW,{C0=CFrame.new(-1.2, 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(40+math.random(-5,5)))},"Quad","Out",0.1)
2378
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2379
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2380
	Swait() end 	
2381
	local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 10, 0)+RootPart.CFrame.lookVector*30, P = 5000, maxForce = Vector3.new(800000, 800000 , 800000), Parent = RootPart})
2382
	so("341301373",Torso,4,0.6)	
2383
	
2384
	--wait(.5)
2385
	eyehold= true
2386
	
2387
	
2388
local Beam1 = Instance.new("Beam",Torso.TorsoLaser)	
2389
2390
local WalkPart = Instance.new("Part",Effects)	
2391
WalkPart.Transparency = 1
2392
WalkPart.CanCollide = false
2393
WalkPart.Anchored = true
2394
WalkPart.CFrame = CFrame.new(0,0,0)
2395
WalkPart.Size = Vector3.new(.1,.1,.1)
2396
local Attach2 = Instance.new("Attachment",WalkPart)	
2397
2398
2399
2400
2401
2402
2403
2404
	local NewParticle = Particle2_1:Clone()
2405
NewParticle.Parent = Attach2
2406
NewParticle.Acceleration =  Vector3.new(0,0,0)
2407
if OverClocking ==false then
2408
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,0)})
2409
2410
else
2411
2412
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50),NumberSequenceKeypoint.new(1,0)})
2413
2414
2415
end
2416
NewParticle.Color = ColorSequence.new(Color3.new (151/255, 0/255, 0/255), Color3.new (1, .2, .2))
2417
NewParticle.Lifetime = NumberRange.new(.2,.3)
2418
NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,0),NumberSequenceKeypoint.new(1,1)})
2419
NewParticle.Speed = NumberRange.new(0)
2420
NewParticle.ZOffset = 6
2421
NewParticle.RotSpeed = NumberRange.new(-40,40)
2422
NewParticle.Rotation = NumberRange.new(-180,180)
2423
NewParticle.Texture = "rbxassetid://217245118"
2424
NewParticle.Rate = 50
2425
--NewParticle.Enabled = true
2426
2427
local NewParticle2 = NewParticle:Clone()
2428
NewParticle2.LockedToPart = true
2429
NewParticle2.Parent = Attach2
2430
2431
NewParticle.Speed = NumberRange.new(10)
2432
NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.5),NumberSequenceKeypoint.new(1,1)})
2433
2434
NewParticle.Texture = "rbxassetid://445231898"
2435
if OverClocking ==false then
2436
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,2)})
2437
else
2438
NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,28)})
2439
2440
end
2441
NewParticle.Lifetime = NumberRange.new(.3,.5)
2442
NewParticle.ZOffset = 4
2443
NewParticle.Speed = NumberRange.new(1)
2444
--NewParticle:Emit(2)
2445
2446
2447
2448
2449
2450
		coroutine.resume(coroutine.create(function()	
2451
if eyehold==true then
2452
	
2453
	
2454
	
2455
	
2456
2457
coroutine.resume(coroutine.create(function()	
2458
	
2459
	while eyehold==true do
2460
 wait(.5)
2461
2462
so("2162238374",Torso.TorsoLaser,4,2.0)
2463
	
2464
2465
	end	
2466
	for i = 1,10 do
2467
		for _,v in pairs(Torso.TorsoLaser:children()) do
2468
			if v:isA("Sound") then
2469
				v.Volume = v.Volume - .4
2470
			end
2471
		end
2472
	Swait()
2473
	end
2474
	end))
2475
	
2476
2477
while eyehold == true do
2478
 Swait()
2479
2480
					
2481
										
2482
								Humanoid.JumpPower = 0	
2483
			change = .6
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
	Humanoid.WalkSpeed=2	
2497
2498
2499
2500
		coroutine.resume(coroutine.create(function()
2501
local GunPart = Torso.TorsoLaser
2502
2503
2504
--so("610359515",Head,1.5,.8,4)
2505
for i = 1,1 do
2506
2507
	
2508
	
2509
	
2510
2511
2512
	coroutine.resume(coroutine.create(function()	
2513
2514
local Glow1 =  Color3.new (255/255, 0/255, 0/255)
2515
local Glow2 =  Color3.new (255/255, 0/255, 0/255)
2516
   local hitray,pos,test1 = rayCast(GunPart.Position, GunPart.CFrame.lookVector, 500, Character)
2517
2518
2519
2520
2521
2522
local mag=(Torso.TorsoLaser.Position-pos).magnitude 
2523
2524
2525
2526
Attach2.Position = pos
2527
--Attach1.Position = Vector3.new(0,0,0)
2528
NewParticle.Enabled = true
2529
NewParticle2.Enabled = true
2530
eyeffect1.Enabled = true
2531
2532
2533
Beam1.Texture = "rbxassetid://1134824633"
2534
2535
Beam1.FaceCamera = true	
2536
Beam1.Color = ColorSequence.new(Glow1,Glow2)
2537
Beam1.Transparency = NumberSequence.new(0,0)
2538
Beam1.TextureLength = .1*(mag)
2539
Beam1.Attachment0 =  Torso.TorsoLaser.Attachment
2540
Beam1.Attachment1 = Attach2
2541
Beam1.TextureSpeed = 15
2542
Beam1.LightEmission = 1
2543
Beam1.Width0 = 2
2544
2545
if OverClocking ==false then
2546
Beam1.Width1 = 3
2547
else
2548
Beam1.Width1 = 20
2549
end
2550
2551
2552
2553
2554
2555
if OverClocking ==false then
2556
CFMagniDamage(CFrame.new(pos),5, 350, 500, 0, "Normal")
2557
else
2558
CFMagniDamage(CFrame.new(pos),30, 350, 500, 0, "Normal")
2559
2560
end
2561
	coroutine.resume(coroutine.create(function()	
2562
if hitray~=nil then
2563
    for i = 1, 1 do
2564
      local Color = hitray.BrickColor
2565
      local Materials = hitray.Material
2566
      local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 200) / 200, math.random(50, 200) / 200, math.random(50, 200) / 200))
2567
      groundpart.Anchored = false
2568
      groundpart.Material = Materials
2569
      groundpart.CanCollide = true
2570
      groundpart.Friction = 2
2571
      groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
2572
      groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
2573
groundpart:SetNetworkOwner(Player)     
2574
  game:GetService("Debris"):AddItem(groundpart, 1.0)
2575
SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
2576
2577
    end
2578
    for i = 1, 0 do
2579
      local Color = hitray.BrickColor
2580
      local Materials = hitray.Material
2581
      local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(25, 150) / 200, math.random(25, 150) / 200, math.random(25, 150) / 200))
2582
      groundpart.Anchored = false
2583
      groundpart.Material = Materials
2584
      groundpart.CanCollide = true
2585
      groundpart.Friction = 2
2586
      groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
2587
      groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)),math.rad( math.random(-50, 50)))
2588
groundpart:SetNetworkOwner(Player)      
2589
game:GetService("Debris"):AddItem(groundpart, 1.0)
2590
SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1)
2591
2592
2593
--game:GetService("Debris"):AddItem(WalkPart2, .4)	
2594
2595
	end		
2596
2597
end
2598
2599
end))
2600
	coroutine.resume(coroutine.create(function()	
2601
if hitray ~= nil then
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
--		MakeBeamWaveEffect(Effects,Color3.new(1, 0, 0),HitEffectPart.Position- Vector3.new(0, 0, 0),2.0,0,0.06,15,0,10,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
2614
2615
2616
else	
2617
--Beam1.Transparency = NumberSequence.new(0,1)
2618
end
2619
2620
2621
2622
--GunPart.Transparency = i*1.5
2623
--GunPart.Size = Vector3.new(0.85-i,.85-i,.05)
2624
2625
2626
2627
2628
2629
2630
2631
--game:GetService("Debris"):AddItem(WalkPart2, .4)	
2632
--game:GetService("Debris"):AddItem(WalkPart, .4)	
2633
--game:GetService("Debris"):AddItem(Attach1, .4)	
2634
--game:GetService("Debris"):AddItem(Attach2, .4)	
2635
2636
	end))
2637
	
2638
	
2639
	
2640
	
2641
2642
	
2643
	
2644
2645
	end))
2646
	
2647
	
2648
	
2649
2650
	end
2651
2652
2653
2654
end))
2655
2656
2657
2658
end
2659
end
2660
2661
2662
2663
2664
	coroutine.resume(coroutine.create(function()	
2665
2666
		for i = 0,4,0.3 do Swait()
2667
Beam1.Transparency = NumberSequence.new(i,(i)/2)	
2668
		
2669
		end
2670
	end))
2671
	
2672
NewParticle.Enabled = false
2673
NewParticle2.Enabled = false	
2674
eyeffect1.Enabled = false
2675
2676
game:GetService("Debris"):AddItem(WalkPart, 1)	
2677
--game:GetService("Debris"):AddItem(Attach1, .4)	
2678
game:GetService("Debris"):AddItem(Attach2, 1)		
2679
game:GetService("Debris"):AddItem(Beam1, 1)	
2680
2681
game:GetService("Debris"):AddItem(NewParticle, 1)	
2682
game:GetService("Debris"):AddItem(NewParticle2, 1)	
2683
game:GetService("Debris"):AddItem(eyeffect1, 1)	
2684
2685
so("1229184354",Torso,5,2)
2686
	end))
2687
	
2688
	for i = 1,4,.075 do 
2689
	SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(40-10*i),math.rad(0),math.rad(0))},"Linear","InOut",0.1)
2690
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2691
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)+(45/2)*i ))},"Quad","Out",0.1)
2692
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)-(45/2)*i))},"Quad","Out",0.1)
2693
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2694
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2695
bodyVelocity.velocity = Vector3.new(0, 1, 0)+Torso.CFrame.lookVector*-40	Swait() end 	
2696
	eyehold = false
2697
	Swait() 
2698
	bodyVelocity.velocity = Vector3.new(0, 0, 0)
2699
	bodyVelocity.maxForce = Vector3.new(8000000, 0 , 8000000)
2700
game:GetService("Debris"):AddItem(bodyVelocity, 1)	
2701
		for i = 1,11,.7 do 
2702
	SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-36*i),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2703
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2704
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(90))},"Quad","Out",0.1)
2705
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(-90))},"Quad","Out",0.1)
2706
SetTween(RH,{C0=CFrame.new(.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2707
SetTween(LH,{C0=CFrame.new(-.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
2708
	
2709
	
2710
	Swait() end 	
2711
	
2712
	
2713
	
2714
	
2715
	
2716
	attack = false
2717
end
2718
dancing = false
2719
2720
function Tuant2()
2721
	attack = true 
2722
	
2723
dancing = true
2724
	while dancing == true  do 
2725
local	dahspeed=.5+visn/100
2726
		change = (0.60*1)*dahspeed
2727
			Humanoid.JumpPower = 0	
2728
	Humanoid.WalkSpeed=2
2729
			local speed = 1 + visn/1000
2730
SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.1/speed)
2731
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.1/speed)
2732
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.1/speed)
2733
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.1/speed)
2734
SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed)
2735
SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed)
2736
	
2737
	Swait()			
2738
	end
2739
		Humanoid.JumpPower = 60	
2740
	Humanoid.WalkSpeed=16	
2741
	attack = false 	
2742
end
2743
	
2744
function UpdateJets()
2745
	if  Jets == true  then
2746
--	Jets=true
2747
SetTween(RB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
2748
SetTween(RB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
2749
SetTween(LB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5)
2750
SetTween(LB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5)
2751
for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter")  then    v.Enabled = true  end  end
2752
2753
for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter")  then    v.Enabled = true  end  end
2754
2755
else
2756
--	Jets=false
2757
SetTween(RB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
2758
SetTween(RB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
2759
SetTween(LB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)
2760
SetTween(LB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5)	
2761
for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter")  then    v.Enabled = false  end  end
2762
2763
for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter")  then    v.Enabled = false  end  end
2764
2765
end
2766
end
2767
2768
2769
2770
function DroneSwarm()
2771
		attack = true
2772
--[
2773
local randomtuant = math.random(1,4)
2774
if randomtuant == 1 then
2775
so("159972582", Head,2, 1)
2776
elseif randomtuant == 2 then
2777
	so("159882410", Head,2, 1)
2778
elseif randomtuant == 3 then
2779
	so("159882578", Head,2, 1)
2780
elseif randomtuant == 4 then
2781
	so("159882417", Head,2, 1)
2782
end
2783
		for _,v in pairs(Head:children()) do
2784
			if v:isA("Sound") then
2785
				EffectPack.Echo2:Clone().Parent = v
2786
				EffectPack.PT:Clone().Parent = v
2787
			end
2788
		end
2789
local fatsavecf = MHIT
2790
coroutine.resume(coroutine.create(function()
2791
	for i = 1,math.random(2,4) do Swait(math.random(1,10)) SpawnDrone(fatsavecf)
2792
end end))
2793
--]]
2794
2795
for i = 0,1,0.1 do 
2796
2797
2798
				change = (0.60*5)
2799
	Humanoid.JumpPower = 10	
2800
	Humanoid.WalkSpeed=0	
2801
	
2802
	local speed = 1
2803
		
2804
2805
if weps == false then
2806
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
2807
SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
2808
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
2809
else
2810
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
2811
SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
2812
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
2813
	
2814
	
2815
end
2816
SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
2817
SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
2818
SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
2819
	 
2820
	
2821
	Swait()
2822
end
2823
	
2824
for i = 0,3,0.1 do 
2825
2826
2827
				change = (0.60*5)
2828
	Humanoid.JumpPower = 10	
2829
	Humanoid.WalkSpeed=0	
2830
	
2831
	local speed = 1
2832
		
2833
2834
if weps == false then
2835
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed)
2836
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
2837
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
2838
else
2839
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed)
2840
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
2841
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
2842
	
2843
	
2844
end
2845
SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
2846
SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
2847
SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
2848
	 
2849
	
2850
	Swait()
2851
end
2852
attack = false	
2853
end
2854
2855
2856
----------------------------------------------------------------------------------------------------
2857
flying = false
2858
2859
function FlyMove()
2860
	attack = true
2861
	local NextAnimSpeed=0.1
2862
local	dahspeed=1
2863
flying = true
2864
so(2157448269,Torso,2,1)
2865
Jets = true
2866
UpdateJets()
2867
local bg2 = Instance.new("BodyGyro", RootPart)
2868
		for i = 0,1,NextAnimSpeed do Swait()
2869
		local inairvel2 = 0
2870
2871
Humanoid.PlatformStand = false
2872
				change = (0.60*2)*dahspeed
2873
	Humanoid.JumpPower = 0	
2874
	Humanoid.WalkSpeed=0	
2875
	
2876
		coroutine.resume(coroutine.create(function()
2877
2878
				bg2.D = 300
2879
		bg2.P = 9999
2880
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
2881
bg2.CFrame  = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
2882
2883
end))
2884
	
2885
	
2886
local ADNum = 0	
2887
SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(45 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1)
2888
SetTween(NeckW,{C0=NeckCF*angles(math.rad(23.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
2889
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 + 4 * math.sin(sine / 8)))},"Quad","Out",0.1)
2890
SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.1)
2891
SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(45.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2892
SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2893
2894
2895
2896
	--CGPT:Emit(1)
2897
		end			
2898
	if flying==true then
2899
	
2900
	
2901
	
2902
	
2903
2904
	
2905
	coroutine.resume(coroutine.create(function()
2906
	while true do
2907
2908
so("169572883",Torso,3,1.0)
2909
 wait(.5)
2910
	if flying == false then 
2911
		break
2912
	end
2913
2914
	end	
2915
	end)) end
2916
if flying == true  then
2917
	
2918
	
2919
		local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*60, P = 5000, maxForce = Vector3.new(80000, 80000, 80000), Parent = RootPart})
2920
	
2921
	
2922
	
2923
for i = 1,40,.25 do  if flying == true then Swait() end
2924
		local inairvel2 = 0
2925
2926
Humanoid.PlatformStand = true
2927
				change = (0.60*3)*dahspeed
2928
	Humanoid.JumpPower = 0	
2929
	Humanoid.WalkSpeed=0	
2930
	coroutine.resume(coroutine.create(function()
2931
2932
				bg2.D = 300
2933
		bg2.P = 9999
2934
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
2935
bg2.CFrame  = CFrame.new(RootPart.Position,MHIT.p)
2936
2937
	end))
2938
	if OverClocking == false  then
2939
	bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*100
2940
	else
2941
	bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*200
2942
	end
2943
if OverClocking == true and flying == true then
2944
	Lightning((RootPart.CFrame*CF(math.random(-2,2),math.random(-1,1),-0)).p,(RootPart.CFrame*CF(math.random(-36,36),math.random(-36,36),70)).p, 10, 0.6, BrickColor.new("Persimmon"), 1.5, .9,-.25*2,.55,1)	
2945
end
2946
local ADNum = 0	
2947
SetTween(RJW,{C0=RootCF*cn(0, 1, 0) * angles(math.rad(60 - 6.5 * math.cos(sine / 8)), math.rad(0), math.rad(0))},"Quad","InOut",0.08)
2948
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-13.5 - 5.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(0 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
2949
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(-5), math.rad(28 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
2950
SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
2951
SetTween(RH,{C0=CFrame.new(.5, -0.85+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.1) * CFrame.Angles(math.rad(-11.5+ 5 * math.sin(sine / 8)),math.rad(-15),math.rad(12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2952
SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(15),math.rad(-12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2953
2954
2955
2956
	--CGPT:Emit(1)
2957
	
2958
	
2959
		end coroutine.resume(coroutine.create(function()
2960
game:GetService("Debris"):AddItem(bodyVelocity, 0.1)	end))
2961
end	
2962
			so(1053625322,LeftLeg,2,0.5)
2963
	so(1053625322,RightLeg,2,0.5)
2964
for i = 0,1.0,.15 do Swait()
2965
	Humanoid.PlatformStand = false
2966
2967
			local inairvel2 = 0
2968
2969
2970
				change = (0.60*2)*dahspeed
2971
	Humanoid.JumpPower = 0	
2972
	Humanoid.WalkSpeed=0	
2973
	
2974
	
2975
	
2976
local ADNum = 0	
2977
SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.12)
2978
SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.2)
2979
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
2980
SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
2981
SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2982
SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1)
2983
2984
2985
2986
		coroutine.resume(coroutine.create(function()
2987
2988
				bg2.D = 300
2989
		bg2.P = 9999
2990
		bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
2991
bg2.CFrame  = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z))
2992
2993
		end))
2994
		end
2995
		wait(.1)
2996
			coroutine.resume(coroutine.create(function()
2997
2998
				bg2:Destroy()
2999
3000
			end))	
3001
	
3002
						coroutine.resume(coroutine.create(function()
3003
3004
				for i = 1,10 do
3005
		for _,v in pairs(Torso:children()) do
3006
			if v:isA("Sound") then
3007
				v.Volume = v.Volume - .2
3008
			end
3009
		end
3010
	Swait()
3011
	end
3012
end))
3013
			flying = false
3014
			Jets = false
3015
UpdateJets()
3016
for i = 0,0.75,.10 do Swait()
3017
	Humanoid.PlatformStand = false
3018
3019
			local inairvel2 = 0
3020
3021
3022
				change = (0.60*2)*dahspeed
3023
	Humanoid.JumpPower = 0	
3024
	Humanoid.WalkSpeed=0	
3025
	
3026
	
3027
	
3028
local ADNum = 0	
3029
SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), -0.2 + .1 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.08)
3030
SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.08)
3031
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2)
3032
SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2)
3033
SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(-21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08)
3034
SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08)
3035
3036
3037
3038
3039
		end
3040
3041
				Humanoid.JumpPower = 20	
3042
	Humanoid.WalkSpeed=10	
3043
	attack = false
3044
end
3045
3046
3047
function Tesla()
3048
attack=true	
3049
local dahspeed=1
3050
if attack == true and mememode == true then
3051
	dahspeed=3 --speedstuff --5
3052
end --/dahspeed
3053
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
3054
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
3055
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
3056
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
3057
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
3058
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
3059
3060
--SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
3061
SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)	
3062
if OverClocking ==true then
3063
3064
SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)	
3065
	
3066
end
3067
3068
wait(.3/dahspeed)
3069
--DGT()
3070
3071
3072
coroutine.resume(coroutine.create(function()	
3073
	so("348663022", RightArm,4, 1.2)
3074
	wait(.1/dahspeed)	
3075
3076
3077
CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
3078
3079
	
3080
end))	
3081
3082
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-0),math.rad(-20))},"Back","Out",.3/dahspeed)
3083
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(-0),math.rad(20))},"Back","Out",.3/dahspeed)
3084
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-10),math.rad(0),math.rad(10))},"Back","Out",.3/dahspeed)
3085
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(150),math.rad(-0),math.rad(-20))},"Back","Out",.4/dahspeed)
3086
SetTween(RH,{C0=CFrame.new(.5, -.8, -.1)*angles(math.rad(-20),math.rad(0),math.rad(20))},"Back","Out",.3/dahspeed)
3087
SetTween(LH,{C0=CFrame.new(-.5, -.8, -.1)*angles(math.rad(30),math.rad(40),math.rad(-20))},"Back","Out",.3/dahspeed)
3088
3089
--SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
3090
3091
SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)	
3092
3093
if OverClocking ==true then
3094
3095
SetTween(LHP.Glow,{Transparency = .15},"Quad","InOut",0.05)	
3096
	
3097
end
3098
for i = 1,50 do Swait(1)
3099
	for i = 1,math.random(1,3) do
3100
		  local  lighth,lightp,test1 = rayCast(LHP.Glow.CFrame.p, CF(VT(0,0,0),VT(math.random(-100,100),math.random(-100,100),math.random(-100,100))).lookVector, 50, Character)
3101
3102
	if lighth~=nil then
3103
	BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark")		
3104
Lightning(LHP.Glow.CFrame.p,lightp , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil) end
3105
end
3106
3107
	local v = findNearestTorso(LHP.Glow.Position,50)
3108
	
3109
if v ~= nil then
3110
			  local  lighth2,lightp2,test12 = rayCast(LHP.Glow.CFrame.p, CF(LHP.Glow.CFrame.p,v.Position).lookVector, 50, Character)
3111
3112
	Lightning(LHP.Glow.CFrame.p,lightp2 , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil)
3113
		BulletHitEffectSpawn(CF(lightp2,lightp2+test12),"Spark")
3114
		
3115
		CFMagniDamage(CF(lightp2),10,45,80,20,"Knockdown")
3116
		
3117
end	
3118
	
3119
end
3120
3121
3122
3123
3124
3125
3126
3127
SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)	
3128
SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)	
3129
attack = false	
3130
end
3131
3132
3133
3134
3135
function AT1()
3136
attack=true	
3137
local dahspeed=1
3138
if attack == true and mememode == true then
3139
	dahspeed=3 --speedstuff --5
3140
end --/dahspeed
3141
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed)
3142
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed)
3143
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed)
3144
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(60),math.rad(0),math.rad(-0))},"Quad","InOut",.3/dahspeed)
3145
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
3146
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed)
3147
3148
--SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
3149
SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1)	
3150
if OverClocking ==true then
3151
3152
SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1)	
3153
	
3154
end
3155
3156
wait(.3/dahspeed)
3157
--DGT()
3158
3159
3160
coroutine.resume(coroutine.create(function()	
3161
	so("1428541279", RightArm,1.6, math.random(120,220)/100)
3162
	wait(.1/dahspeed)	
3163
3164
if OverClocking ==false then
3165
CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown")
3166
3167
else
3168
3169
	local v = findNearestTorso(LHP.Glow.Position,20)
3170
	
3171
if v ~= nil then
3172
3173
	Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil)
3174
	Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil)
3175
3176
		CFMagniDamage(LHP.Glow.CFrame,20,45,80,math.random(320,520)/10,"Knockdown")
3177
		
3178
end	
3179
3180
	end
3181
end))	
3182
3183
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-40),math.rad(-60))},"Back","Out",.1/dahspeed)
3184
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(60))},"Back","Out",.1/dahspeed)
3185
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-40))},"Back","Out",.1/dahspeed)
3186
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(-45),math.rad(-30))},"Back","Out",.1/dahspeed)
3187
SetTween(RH,{C0=CFrame.new(.5, -.8, -.6)*angles(math.rad(-20),math.rad(0),math.rad(40))},"Back","Out",.1/dahspeed)
3188
SetTween(LH,{C0=CFrame.new(-.5, -.8, -.5)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.1/dahspeed)
3189
3190
--SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15)
3191
3192
SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05)	
3193
3194
if OverClocking ==true then
3195
3196
SetTween(LHP.Glow,{Transparency = .75},"Quad","InOut",0.05)	
3197
	
3198
end
3199
3200
3201
wait(.15/dahspeed)	
3202
3203
SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25)	
3204
SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25)	
3205
attack = false	
3206
end
3207
3208
	gui = Instance.new("ScreenGui",Player.PlayerGui)
3209
	gui.Name = "Xgui"
3210
	guifat = Instance.new("Frame",gui)
3211
	guifat.Size =  UDim2.new(1, 0, 1, 0)
3212
	guifat.Name = "FAT"
3213
	guifat.BackgroundTransparency = 1
3214
	viewport = Instance.new("ViewportFrame",guifat)
3215
	viewport.Size =  UDim2.new(1, 0, 1, 0)
3216
		viewport.BackgroundTransparency = 1
3217
		viewport.BackgroundColor3 = C3(1,1,1)
3218
function Attack6()
3219
	SetTween(viewport,{BackgroundTransparency=.15,BackgroundColor3 = C3(0,0,0)},"Bounce","InOut",.25)	
3220
IsXray = true
3221
3222
3223
print("ran")
3224
for _,v in next, workspace:GetDescendants() do if v:IsA("Humanoid")and  v~=Humanoid  then    
3225
	print(""..v.Parent.Name)
3226
for _,v2 in next, v.Parent:GetDescendants() do 
3227
	if v2:IsA("BasePart")  then  
3228
	--	print(""..v2.Name)
3229
	local Xpart = EffectPack.Part:Clone()
3230
Xpart.Parent = viewport
3231
Xpart.Name = "Xray"
3232
Xpart.Size = v2.Size+VT(0.05,0.05,0.05)
3233
Xpart.Material = "ForceField"
3234
Xpart.Transparency = 0
3235
Xpart.CFrame = v2.CFrame
3236
if v2:FindFirstChildOfClass("SpecialMesh") then
3237
	coroutine.resume(coroutine.create(function()
3238
	v2:FindFirstChildOfClass("SpecialMesh").Archivable = false
3239
	
3240
		local clone = v2:FindFirstChildOfClass("SpecialMesh").Clone()
3241
	clone.Parent = Xpart end))
3242
end
3243
3244
local value = Instance.new("ObjectValue",Xpart)
3245
value.Value = v2
3246
value.Name = "val"
3247
Xpart.BrickColor = BrickColor.new("Really red")
3248
--local Xweld=weld(Xpart,v2,Xpart,cf(0,0,0))
3249
	end
3250
	
3251
	 end	
3252
	
3253
	
3254
	  end  end
3255
3256
while IsXray == true do Swait(5) end
3257
3258
3259
	SetTween(viewport,{BackgroundTransparency=1,BackgroundColor3 = C3(1,1,1)},"Bounce","InOut",.5)	
3260
for _,v in next, viewport:GetDescendants() do
3261
	v:Destroy()
3262
end
3263
3264
3265
end
3266
3267
function ClickCombo()
3268
if Anim == "Fall" or Anim == "Jump" then
3269
if Combo == 0 then		
3270
--DownAT()	
3271
end
3272
else				
3273
if Combo == 0 then
3274
AT1()	
3275
Combo = 0
3276
elseif Combo == 1 then
3277
AT2()	
3278
Combo = 0	
3279
elseif Combo == 2 then
3280
AT3()
3281
Combo = 0		
3282
end
3283
end
3284
end
3285
3286
3287
3288
local Hold = false
3289
local weps = false
3290
3291
Button1DownF=function()
3292
Hold = true
3293
if weps and attack == false then
3294
for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight")  then    v.Enabled = true  end  end
3295
while Hold == true do coroutine.resume(coroutine.create(function() for i = 1,6 do CFMagniDamage(RightArm.CFrame*CF(0,2-2*i,0),2.5*(i/2.5), 10/2, 25/2, 0, "Fire") end	end)) so("1273118342", RightArm,2, math.random(10,20)/10) Swait(2) end
3296
3297
end
3298
3299
if weps == false and attack == false then 
3300
3301
	ClickCombo() 
3302
end
3303
3304
3305
end
3306
3307
3308
3309
Button1UpF=function()
3310
3311
if Hold==true then
3312
3313
Hold = false
3314
for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight")  then    v.Enabled = false  end  end
3315
3316
end	
3317
	
3318
end
3319
3320
so("420194643", Head,1, 1)
3321
3322
3323
KeyUpF=function(key)
3324
3325
if key == "e" then 
3326
if flying == true  then
3327
	flying=false
3328
end	
3329
	
3330
	end
3331
	
3332
end
3333
3334
KeyDownF=function(key)
3335
if  key == "f"   and attack == false and (weps == false or Hold == false) then
3336
3337
	if weps == false then
3338
		weps = true else weps = false
3339
	end
3340
		if weps == true  then
3341
			so("420194643", Head.Handle,1, .8)
3342
			so("420997245", Head.Handle,5, 0.7)
3343
					for _,v in pairs(Head.Handle:children()) do
3344
			if v:isA("Sound") then
3345
				EffectPack.Echo:Clone().Parent = v
3346
			end
3347
					end
3348
					coroutine.resume(coroutine.create(function()
3349
	FlameThrower.Lighter.Fire.Enabled = true	 end))
3350
SetTween(FlameW,{C0=CF(0,-.5,0)},"Back","Out",1)
3351
SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","In",1)
3352
3353
--SetTween(RightArm.Lower,{Transparency = 1},"Quad","Out",0.8)	
3354
3355
SetTween(Fg1,{C0=CF(-.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(-15))},"Back","Out",.5)
3356
SetTween(Fg2,{C0=CF(.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(15))},"Back","Out",.5)
3357
SetTween(Fg3,{C0=CF(.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(15))},"Back","Out",.5)
3358
SetTween(Fg4,{C0=CF(-.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(-15))},"Back","Out",.5)
3359
3360
3361
SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)	
3362
3363
wait(.25)
3364
3365
SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Back","Out",.25)	
3366
		else
3367
			so("420194643", Head.Handle,1, 1)
3368
			so("332757260", Head.Handle,3, 1.75)
3369
			
3370
					for _,v in pairs(Head.Handle:children()) do
3371
			if v:isA("Sound") then
3372
				EffectPack.Echo:Clone().Parent = v
3373
			end
3374
		end			
3375
					coroutine.resume(coroutine.create(function()
3376
	FlameThrower.Lighter.Fire.Enabled = false	 end))			
3377
SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(0,0,0)},"Quad","Out",.5)
3378
SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",.5)
3379
3380
--SetTween(RightArm.Lower,{Transparency = 0},"Quad","In",1)
3381
3382
SetTween(Fg1,{C0=CF(0,-0,0)},"Quad","In",.5)
3383
SetTween(Fg2,{C0=CF(0,-0,0)},"Quad","In",.5)
3384
SetTween(Fg3,{C0=CF(0,-0,0)},"Quad","In",.5)
3385
SetTween(Fg4,{C0=CF(0,-0,0)},"Quad","In",.5)
3386
3387
SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2)	
3388
3389
wait(.25)
3390
SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",.25)				
3391
		end			
3392
3393
end
3394
if  key == "z"   and attack == false and weps == true then
3395
Attack1()
3396
end
3397
if  key == "x"   and attack == false and weps == false and OverClocking == true then
3398
Tesla()
3399
end
3400
3401
if  key == "x"   and attack == false and weps == true  then
3402
Attack2()
3403
end
3404
if  key == "e" and attack == false then   
3405
FlyMove()
3406
end
3407
if  key == "y"    then
3408
	if dancing == false and attack == false then
3409
Tuant2()
3410
elseif dancing == true and attack == true  then
3411
dancing = false
3412
	end
3413
	
3414
3415
end
3416
if  key == "v"   and attack == false and weps == true then
3417
3418
DroneSwarm()
3419
3420
end
3421
3422
3423
3424
if  key == "q"   and attack == false then
3425
if OverClocking == false then
3426
CurId=CurId-1
3427
OverClocking = true
3428
for i = 1,4 do 
3429
for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and  v.Name == "OverClock"..i then    v.Enabled = true  end  end
3430
end
3431
		lastid= "http://www.roblox.com/asset/?id=1534958855"
3432
3433
lastsongpos = 0
3434
s2.TimePosition = lastsongpos
3435
3436
so(254873067,Torso,2,1)
3437
so(1567217295,Torso,3,.8)
3438
so(147060085,Torso,5,1)
3439
3440
else	
3441
OverClocking = false
3442
for i = 1,4 do 
3443
for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and  v.Name == "OverClock"..i then    v.Enabled = false  end  end
3444
end
3445
	
3446
end
3447
3448
3449
	
3450
	KeyDownF("n")
3451
3452
end
3453
3454
3455
3456
3457
3458
if  key == "k"   and attack == false then
3459
--Attack5()
3460
end
3461
if  key == "g"   and attack == false then
3462
if IsXray == false then
3463
Attack6()
3464
else
3465
	IsXray = false
3466
	end
3467
end
3468
if  key == "t"   and attack == false then
3469
--Tuant()
3470
attack = true
3471
so("137473066", Head,2, 1.2)
3472
		for _,v in pairs(Head:children()) do
3473
			if v:isA("Sound") then
3474
				EffectPack.Echo2:Clone().Parent = v
3475
				EffectPack.PT:Clone().Parent = v
3476
			end
3477
		end
3478
		
3479
for i = 0,2,0.1 do 
3480
3481
3482
				change = (0.60*5)
3483
	Humanoid.JumpPower = 10	
3484
	Humanoid.WalkSpeed=0	
3485
	
3486
	local speed = 1
3487
		
3488
3489
if weps == false then
3490
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
3491
SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
3492
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3493
else
3494
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed)
3495
SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
3496
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3497
	
3498
	
3499
end
3500
SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
3501
SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3502
SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3503
	 
3504
	
3505
	Swait()
3506
end
3507
	
3508
for i = 0,4,0.1 do 
3509
3510
3511
				change = (0.60*5)
3512
	Humanoid.JumpPower = 10	
3513
	Humanoid.WalkSpeed=0	
3514
	
3515
	local speed = 1
3516
		
3517
3518
if weps == false then
3519
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed)
3520
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
3521
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3522
else
3523
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed)
3524
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
3525
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3526
	
3527
	
3528
end
3529
SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
3530
SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3531
SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3532
	 
3533
	
3534
	Swait()
3535
end
3536
attack = false	
3537
end
3538
if  key == "p"   and attack == false  and Player.Name=="123jl123" then
3539
if mememode == false then
3540
	mememode=true
3541
	
3542
	--so("1499015636", Character,3, 1)
3543
	lastid= "http://www.roblox.com/asset/?id=319658286"
3544
3545
3546
3547
3548
3549
3550
3551
3552
 
3553
3554
3555
lastsongpos = 0
3556
s2.TimePosition = lastsongpos
3557
	
3558
	
3559
else
3560
	mememode=false
3561
	CurId=CurId-1
3562
	KeyDownF("n")
3563
	
3564
end
3565
end
3566
3567
3568
if  key == "0"  then
3569
if isruning == false then
3570
isruning=true	
3571
end
3572
end
3573
3574
3575
3576
3577
3578
3579
	if key == "m" then	
3580
	
3581
	if playsong == true then
3582
playsong = false	
3583
	s2:stop()	
3584
	elseif playsong == false then
3585
playsong = true	
3586
3587
	
3588
	s2:play()				
3589
	end
3590
					
3591
	end
3592
3593
3594
3595
	if key == "n" and not (mememode == true or OverClocking == true) then	
3596
3597
3598
3599
3600
3601
3602
CurId = CurId + 1
3603
		
3604
if CurId > 18 then
3605
CurId = 1	
3606
3607
end
3608
warn("now playing song Nr"..CurId)
3609
if CurId == 1 then
3610
lastid= "http://www.roblox.com/asset/?id=146364977"
3611
elseif CurId == 2 then
3612
lastid= "http://www.roblox.com/asset/?id=340902917"
3613
elseif CurId == 3 then
3614
lastid= "http://www.roblox.com/asset/?id=287794839"
3615
elseif CurId == 4 then
3616
lastid= "http://www.roblox.com/asset/?id=628579255"
3617
elseif CurId == 5 then
3618
lastid= "http://www.roblox.com/asset/?id=273857798"
3619
elseif CurId == 6 then
3620
lastid= "http://www.roblox.com/asset/?id=273837018"
3621
elseif CurId == 7 then
3622
lastid= "http://www.roblox.com/asset/?id=571227431"
3623
elseif CurId == 8 then
3624
lastid= "http://www.roblox.com/asset/?id=172576479"
3625
elseif CurId == 9 then
3626
lastid= "http://www.roblox.com/asset/?id=2808524036"
3627
elseif CurId == 10 then
3628
lastid= "http://www.roblox.com/asset/?id=1646375621"
3629
3630
elseif CurId == 11 then
3631
lastid= "http://www.roblox.com/asset/?id=1349958157"
3632
elseif CurId == 12 then
3633
lastid= "http://www.roblox.com/asset/?id=1755770760"
3634
elseif CurId == 13 then
3635
lastid= "http://www.roblox.com/asset/?id=2577867501"
3636
elseif CurId == 14 then
3637
lastid= "http://www.roblox.com/asset/?id=340265439"
3638
elseif CurId == 15 then
3639
lastid= "http://www.roblox.com/asset/?id=2441582257"
3640
elseif CurId == 16 then
3641
lastid= "http://www.roblox.com/asset/?id=2496523226"
3642
elseif CurId == 17 then
3643
lastid= "http://www.roblox.com/asset/?id=283208073"
3644
elseif CurId == 18 then
3645
lastid= "http://www.roblox.com/asset/?id=2279798034"
3646
3647
end 
3648
3649
3650
lastsongpos = 0
3651
s2.TimePosition = lastsongpos
3652
	
3653
					
3654
	end
3655
3656
3657
end
3658
3659
	local OverClockEffect1 = EffectPack.OverClock1:Clone()
3660
OverClockEffect1.Parent = Torso
3661
OverClockEffect1.Enabled = false
3662
	local OverClockEffect2 = EffectPack.OverClock2:Clone()
3663
OverClockEffect2.Parent = Torso
3664
OverClockEffect2.Enabled = false
3665
	local OverClockEffect3 = EffectPack.OverClock3:Clone()
3666
OverClockEffect3.Parent = Torso
3667
OverClockEffect3.Enabled = false
3668
3669
coroutine.resume(coroutine.create(function()
3670
	local OverClockEffect4 = EffectPack.OverClock4:Clone()
3671
OverClockEffect4.Enabled = false
3672
OverClockEffect4.Parent = Torso
3673
OverClockEffect4:Clone().Parent = Head
3674
OverClockEffect4:Clone().Parent = RightArm
3675
OverClockEffect4:Clone().Parent = LeftArm
3676
OverClockEffect4:Clone().Parent = RightLeg
3677
OverClockEffect4:Clone().Parent = LeftLeg
3678
3679
end))
3680
coroutine.resume(coroutine.create(function()
3681
while Humanoid.Health>0.001 do 
3682
	sine = sine + change
3683
    hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
3684
3685
  local torvel = (Humanoid.MoveDirection * Vector3.new(1, 0, 1)).magnitude
3686
    local velderp = RootPart.Velocity.y
3687
if RootPart.Velocity.y > 1 and hitfloor == nil then
3688
Anim = "Jump"
3689
3690
elseif RootPart.Velocity.y < -1 and hitfloor == nil then
3691
Anim = "Fall"
3692
elseif Humanoid.Sit == true then
3693
Anim = "Sit"	
3694
elseif torvel < .5 and hitfloor ~= nil  then
3695
Anim = "Idle"
3696
elseif torvel > .5 and  hitfloor ~= nil  then
3697
3698
Anim = "Walk"
3699
3700
3701
3702
3703
else
3704
Anim = ""
3705
	
3706
end 
3707
3708
3709
local Ccf=Torso.CFrame
3710
--warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
3711
local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
3712
local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
3713
--warn(Walktest1.Z.."/"..Walktest1.X)
3714
--warn(Walktest2.Z.."/"..Walktest2.X)
3715
forWFB = Walktest1.X+Walktest1.Z
3716
forWRL = Walktest2.X+Walktest2.Z
3717
3718
3719
3720
3721
3722
--print(Humanoid.MoveDirection)
3723
--warn(Torso.CFrame.lookVector)
3724
3725
3726
3727
coroutine.resume(coroutine.create(function()
3728
	
3729
3730
	if s2.Parent == nil or s2 == nil  then
3731
3732
s2 = s2c:Clone()
3733
s2.Parent = Torso
3734
	s2.Name = "BGMusic"
3735
--	s2.SoundId = lastid
3736
	s2.Pitch = 1
3737
	s2.Volume = 1.5
3738
	s2.Looped = true
3739
	s2.archivable = false
3740
	s2.TimePosition = lastsongpos
3741
	if playsong == true then
3742
	s2:play()		
3743
	elseif playsong == false then
3744
	s2:stop()			
3745
	end
3746
	
3747
	
3748
	else
3749
lastsongpos=s2.TimePosition		
3750
	s2.Pitch = 1
3751
	
3752
	s2.Volume = 1.5
3753
s2.Name = "BGMusic"
3754
s2.Looped = true
3755
s2.SoundId = lastid
3756
s2.EmitterSize = 30
3757
	end
3758
	
3759
	
3760
	
3761
end))
3762
3763
3764
3765
3766
inairvel=torvel*1
3767
3768
--forWRL
3769
if inairvel > 30 then
3770
inairvel=30	
3771
end
3772
inairvel=inairvel/50*2
3773
3774
3775
3776
if attack == false then
3777
if Anim == "Jump" then
3778
		change = 0.60*2
3779
SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+(inairvel*forWFB)/2, math.rad(0)-(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.25)
3780
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
3781
SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(8 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
3782
SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-8 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
3783
SetTween(RH,{C0=CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
3784
SetTween(LH,{C0=CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
3785
3786
3787
				
3788
elseif Anim == "Fall" then 
3789
		change = 0.60*2
3790
SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.5 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-(inairvel*forWFB)/2, math.rad(0)+(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.35)
3791
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
3792
SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(-15), math.rad(80 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
3793
SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(15), math.rad(-80 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
3794
SetTween(RH,{C0=CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3795
SetTween(LH,{C0=CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3796
	
3797
3798
	
3799
elseif Anim == "Idle" then
3800
	
3801
local	dahspeed=0+visn/100
3802
3803
3804
				change = (0.60*1)*dahspeed
3805
	Humanoid.JumpPower = 60	
3806
	Humanoid.WalkSpeed=16	
3807
	
3808
	local speed = .5 + visn/1000
3809
		
3810
local ADNum = 1	
3811
if weps == false then
3812
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-30))},"Quad","InOut",0.1/speed)
3813
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - -30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed)
3814
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3815
else
3816
SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(30))},"Quad","InOut",0.1/speed)
3817
SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - 30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.075/speed)
3818
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed)
3819
	
3820
	
3821
end
3822
SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,15)*(visn/1000)) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed)
3823
SetTween(RH,{C0=CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(-20),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3824
SetTween(LH,{C0=CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed)
3825
	 
3826
	
3827
		--SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
3828
	--SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",0.1)
3829
--	SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",0.1)
3830
--SetTween(FlameW,{C0=CF(0,-.5,0)},"Quad","InOut",0.1)
3831
--SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","InOut",0.1)
3832
--SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1)
3833
	
3834
				
3835
	
3836
elseif Anim == "Walk" then
3837
local speed=0.7
3838
3839
if OverClocking ==false then
3840
speed = speed+0.75*(visn/1000)
3841
else
3842
speed = speed+1.75*(visn/1000)	
3843
end
3844
if mememode == true then
3845
	speed=4
3846
end
3847
3848
3849
	change = 2.6*speed
3850
	Humanoid.JumpPower = 60*speed
3851
	Humanoid.WalkSpeed=16*speed
3852
3853
3854
	local RH2 = cf(-forWRL/7 * math.cos(sine / 8 ),0,forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(-forWFB) * math.cos(sine / 8 ),0,math.sin(-forWRL) * math.cos(sine / 8 ))
3855
	local LH2 = cf(forWRL/7 * math.cos(sine / 8 ),0,-forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(forWFB) * math.cos(sine / 8 ),0,math.sin(forWRL) * math.cos(sine / 8 ))
3856
3857
if weps == false then
3858
SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2  - forWFB  * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL  * math.cos(sine / 4))*5) , math.rad(8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3859
SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB  * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL  * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad((0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3860
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0)   * angles(math.rad(0 + forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(8 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",WalkAnimMove/speed)
3861
else
3862
	
3863
	
3864
SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2  - forWFB  * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL  * math.cos(sine / 4))*5) , math.rad(10+8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3865
SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB  * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL  * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad(-0+(0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3866
	
3867
SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0)   * angles(math.rad((75 + forWFB*20)+ forWFB*5 * math.sin(sine / 8 ) ), math.rad(0), math.rad(10 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",.1)
3868
3869
end
3870
SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + forWRL/50  * math.cos(sine / 8), 0)  * angles(math.rad(0 - forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(-8 - forWRL*5 * math.cos(sine / 8 )))},"Quad","Out",WalkAnimMove/speed)
3871
SetTween(RH,{C0=CFrame.new(.5, -0.75+ .35 * math.sin(sine / 8 ), -.25+.15* math.cos(sine / 8 ))*RH2 * CFrame.Angles(math.rad(0 - 5 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3872
SetTween(LH,{C0=CFrame.new(-.5, -0.75- .35 * math.sin(sine / 8 ), -.25-.15* math.cos(sine / 8 ))*LH2 * CFrame.Angles(math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
3873
3874
3875
	
3876
elseif Anim == "Sit" then	
3877
SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3878
SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3879
SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
3880
SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
3881
SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3882
SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
3883
		Humanoid.JumpPower = 60	
3884
end
3885
end
3886
3887
Swait(Animstep)
3888
end
3889
end))
3890
coroutine.resume(coroutine.create(function()			
3891
			local	remote = Instance.new 'RemoteFunction';
3892
remote.Parent = Character;
3893
remote.OnServerInvoke = function (player, request, ...)
3894
	if (player ~= Player) then
3895
		return error ('You cannot invoke this remote', 0);
3896
	end;
3897
3898
3899
	
3900
			if (request == 1) then
3901
		local k = ...;
3902
	
3903
KeyDownF(k)
3904
3905
3906
3907
	end;
3908
	if (request == 2) then
3909
		local k = ...;
3910
	
3911
KeyUpF(k)
3912
3913
3914
3915
	end;
3916
	if (request == 3) then
3917
		local k = ...;
3918
	if k == "Down" then
3919
Button1DownF(k)
3920
elseif k == "Up" then
3921
Button1UpF(k)
3922
end
3923
	end;
3924
	
3925
	
3926
		if (request == 4) then
3927
		local k=...;
3928
		--MTARGET=k
3929
	end
3930
	if (request == 5) then
3931
			local 	k=...;
3932
		MHIT=k
3933
		
3934
	end	
3935
	if (request == 6) then
3936
			local 	k=...;
3937
		visn=k
3938
--		print(visn)
3939
		
3940
	end	
3941
3942
3943
3944
3945
3946
end;
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
remote.Name = 'ServerRemote';
3961
--local remote = NLS ([=[
3962
local localscript = script.Keys
3963
localscript.Name = Player.Name
3964
localscript.Parent = Character
3965
3966
--]=], Player.Character)
3967
end))