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