View difference between Paste ID: ZTMzut6q and G2yHrrYK
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
    Event.Name = "UserInput_Event"
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
            self._btrs[name] = self.Heartbeat:Connect(fun)
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
146
147
--      [[[
148
--000000[[====================================================================================\\
149
--000000[[                    DEIVIS97 creation, ravenring edit    
150
--000000[[====================================================================================//
151
--      [[[
152
153
local Player = game:GetService("Players").LocalPlayer
154
repeat
155
	wait()
156
until Player.Character
157
local Character = Player.Character
158
TrailSettings = {
159
	Lifetime = 1,
160
	Texture = "http://www.roblox.com/asset/?id=1097260739",
161
	Color1 = ColorSequence.new(BrickColor.new("Cyan").Color),
162
	Color2 = ColorSequence.new(BrickColor.new("Cyan").Color),
163
	AllBody = true,
164
	UpperBodyOnly = false,
165
	LowerBodyOnly = false,
166
	Accessories = false,
167
	Extras = true,
168
	R15 = false,
169
	R15Parts = {"UpperTorso", "LowerTorso"}
170
}
171
local Trail
172
function UpperBody()
173
	if TrailSettings.R15 == false then
174
		A0 = Instance.new("Attachment", Character.Torso)
175
		A1 = Instance.new("Attachment", Character.Head)
176
		A2 = Instance.new("Attachment", Character["Right Arm"])
177
		A3 = Instance.new("Attachment", Character["Left Arm"])
178
		Trail = Instance.new("Trail", Character)
179
		Trail.Attachment0 = A0
180
		Trail.Attachment1 = A1
181
		Trail.Texture = TrailSettings.Texture
182
		Trail.Color = TrailSettings.Color1
183
		Trail.Lifetime = TrailSettings.Lifetime
184
		local Trail2 = Trail:Clone()
185
		Trail2.Parent = Character
186
		Trail2.Attachment1 = A2
187
		local Trail3 = Trail:Clone()
188
		Trail3.Parent = Character
189
		Trail3.Attachment1 = A3
190
		local Trail6 = Trail:Clone()
191
		Trail6.Parent = Character
192
		Trail6.Attachment0 = A1
193
		Trail6.Attachment1 = A2
194
		local Trail7 = Trail:Clone()
195
		Trail7.Parent = Character
196
		Trail7.Attachment0 = A1
197
		Trail7.Attachment1 = A3
198
	else
199
		A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
200
		A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
201
		A1 = Instance.new("Attachment", Character.Head)
202
		A2 = Instance.new("Attachment", Character.RightUpperArm)
203
		A2R = Instance.new("Attachment", Character.RightLowerArm)
204
		A3 = Instance.new("Attachment", Character.LeftUpperArm)
205
		A3R = Instance.new("Attachment", Character.LeftLowerArm)
206
		Trail = Instance.new("Trail", Character)
207
		Trail.Attachment0 = A0
208
		Trail.Attachment1 = A1
209
		Trail.Texture = TrailSettings.Texture
210
		Trail.Color = TrailSettings.Color1
211
		Trail.Lifetime = TrailSettings.Lifetime
212
		local Trail2 = Trail:Clone()
213
		Trail2.Parent = Character
214
		Trail2.Attachment1 = A2
215
		local Trail3 = Trail:Clone()
216
		Trail3.Parent = Character
217
		Trail3.Attachment1 = A3
218
		local Trail6 = Trail:Clone()
219
		Trail6.Parent = Character
220
		Trail6.Attachment0 = A1
221
		Trail6.Attachment1 = A2
222
		local Trail7 = Trail:Clone()
223
		Trail7.Parent = Character
224
		Trail7.Attachment0 = A1
225
		Trail7.Attachment1 = A3
226
		local Trail1R = Trail:Clone()
227
		Trail1R.Parent = Character
228
		Trail1R.Attachment1 = A2R
229
		local Trail2R = Trail:Clone()
230
		Trail2R.Parent = Character
231
		Trail2R.Attachment1 = A3R
232
		local Trail6R = Trail:Clone()
233
		Trail6.Parent = Character
234
		Trail6.Attachment0 = A1
235
		Trail6.Attachment1 = A2R
236
		local Trail7R = Trail:Clone()
237
		Trail7.Parent = Character
238
		Trail7.Attachment0 = A1
239
		Trail7.Attachment1 = A3R
240
	end
241
end
242
function LowerBody()
243
	if TrailSettings.R15 == false then
244
		A4 = Instance.new("Attachment", Character["Right Leg"])
245
		A5 = Instance.new("Attachment", Character["Left Leg"])
246
		local Trail4 = Trail:Clone()
247
		Trail4.Parent = Character
248
		Trail4.Attachment1 = A4
249
		local Trail5 = Trail:Clone()
250
		Trail5.Parent = Character
251
		Trail5.Attachment1 = A5
252
		local Trail8 = Trail:Clone()
253
		Trail8.Parent = Character
254
		Trail8.Attachment0 = A2
255
		Trail8.Attachment1 = A4
256
		Trail8.Color = TrailSettings.Color2
257
		local Trail9 = Trail:Clone()
258
		Trail9.Parent = Character
259
		Trail9.Attachment0 = A3
260
		Trail9.Attachment1 = A5
261
		Trail9.Color = TrailSettings.Color2
262
		local FT = Trail:Clone()
263
		FT.Parent = Character
264
		FT.Attachment0 = A4
265
		FT.Attachment1 = A5
266
		FT.Color = TrailSettings.Color2
267
	else
268
		A4 = Instance.new("Attachment", Character.RightLowerLeg)
269
		A4R = Instance.new("Attachment", Character.RightUpperLeg)
270
		A5 = Instance.new("Attachment", Character.LeftLowerLeg)
271
		A5R = Instance.new("Attachment", Character.LeftUpperLeg)
272
		local Trail4 = Trail:Clone()
273
		Trail4.Parent = Character
274
		Trail4.Attachment1 = A4
275
		local Trail5 = Trail:Clone()
276
		Trail5.Parent = Character
277
		Trail5.Attachment1 = A5
278
		local Trail8 = Trail:Clone()
279
		Trail8.Parent = Character
280
		Trail8.Attachment0 = A2
281
		Trail8.Attachment1 = A4
282
		Trail8.Color = TrailSettings.Color2
283
		local Trail9 = Trail:Clone()
284
		Trail9.Parent = Character
285
		Trail9.Attachment0 = A3
286
		Trail9.Attachment1 = A5
287
		Trail9.Color = TrailSettings.Color2
288
		local FT = Trail:Clone()
289
		FT.Parent = Character
290
		FT.Attachment0 = A4
291
		FT.Attachment1 = A5
292
		FT.Color = TrailSettings.Color2
293
		local Trail3R = Trail:Clone()
294
		Trail3R.Parent = Character
295
		Trail3R.Attachment1 = A4R
296
		local Trail4R = Trail:Clone()
297
		Trail4R.Parent = Character
298
		Trail4R.Attachment1 = A5R
299
		local Trail8 = Trail:Clone()
300
		Trail8.Parent = Character
301
		Trail8.Attachment0 = A2R
302
		Trail8.Attachment1 = A4R
303
		Trail8.Color = TrailSettings.Color2
304
		local Trail9 = Trail:Clone()
305
		Trail9.Parent = Character
306
		Trail9.Attachment0 = A3R
307
		Trail9.Attachment1 = A5R
308
		Trail9.Color = TrailSettings.Color2
309
		local FT2R = Trail:Clone()
310
		FT2R.Parent = Character
311
		FT2R.Attachment0 = A4R
312
		FT2R.Attachment1 = A5R
313
		FT2R.Color = TrailSettings.Color2
314
	end
315
end
316
function AllBody()
317
	UpperBody()
318
	LowerBody()
319
end
320
if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
321
	TrailSettings.UpperBodyOnly = false
322
	TrailSettings.LowerBodyOnly = false
323
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
324
	TrailSettings.UpperBodyOnly = false
325
	TrailSettings.LowerBodyOnly = false
326
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
327
	TrailSettings.UpperBodyOnly = false
328
	TrailSettings.LowerBodyOnly = false
329
elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
330
	TrailSettings.AllBody = true
331
	TrailSettings.UpperBodyOnly = false
332
	TrailSettings.LowerBodyOnly = false
333
end
334
if TrailSettings.UpperBodyOnly == true then
335
	UpperBody()
336
	print("Called Upper Body Trail")
337
elseif TrailSettings.LowerBodyOnly == true then
338
	LowerBody()
339
	print("Called Lower Body Trail")
340
elseif TrailSettings.AllBody == true then
341
	AllBody()
342
	print("Called Full Body Trail")
343
end
344
if TrailSettings.Accessories == true then
345
	for Index, Item in pairs(Character:GetChildren()) do
346
		if Item:IsA("Accessory") then
347
			local AA = Instance.new("Attachment", Item.Handle)
348
			local ATrail = Trail:Clone()
349
			ATrail.Parent = Character
350
			ATrail.Attachment1 = AA
351
		end
352
	end
353
end
354
if TrailSettings.Extras == true then
355
	spawn(function()
356
		repeat
357
			wait()
358
		until Trail
359
		local AB = Instance.new("Attachment", a)
360
		local ABT = Trail:Clone()
361
		ABT.Parent = Character
362
		ABT.Attachment0 = A4
363
		ABT.Attachment1 = AB
364
		ABT.Color = TrailSettings.Color2
365
		local ABT2 = Trail:Clone()
366
		ABT2.Parent = Character
367
		ABT2.Attachment0 = A5
368
		ABT2.Attachment1 = AB
369
		ABT2.Color = TrailSettings.Color2
370
	end)
371
end
372
wait(0.1)
373
--//====================================================\\--
374
--||			   CREATED BY SHACKLUSTER, thanos
375
--\\====================================================//--
376
377
local Player = game.Players.localPlayer
378
local Character = Player.Character
379
local Humanoid = Character.Humanoid
380
local Mouse = Player:GetMouse()
381
local LeftArm = Character["Left Arm"]
382
local RightArm = Character["Right Arm"]
383
local LeftLeg = Character["Left Leg"]
384
local RightLeg = Character["Right Leg"]
385
local Head = Character.Head
386
local Torso = Character.Torso
387
local Camera = game.Workspace.CurrentCamera
388
local RootPart = Character.HumanoidRootPart
389
local RootJoint = RootPart.RootJoint
390
local attack = false
391
local Anim = 'Idle'
392
local Lighty = game:GetService"Lighting"
393
local attacktype = 1
394
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
395
local velocity = RootPart.Velocity.y
396
local sine = 0
397
local change = 1
398
local bored = {492070484,1232162751,1534958855,303535614,1117396305,0}
399
local Create = LoadLibrary("RbxUtility").Create
400
function swait(num)
401
	if num == 0 or num == nil then
402
		ArtificialHB.Event:wait()
403
	else
404
		for i = 0, num do
405
			ArtificialHB.Event:wait()
406
		end
407
	end
408
end
409
410
local chara = Character
411
local m = Create("Model"){
412
	Parent = Character,
413
	Name = "WeaponModel",
414
}
415
function chatfunc(text)
416
	local chat = coroutine.wrap(function()
417
	if Character:FindFirstChild("TalkingBillBoard")~= nil then
418
		Character:FindFirstChild("TalkingBillBoard"):destroy()
419
	end
420
	local Bill = Instance.new("BillboardGui",Character)
421
	Bill.Size = UDim2.new(0,100,0,40)
422
	Bill.StudsOffset = Vector3.new(0,3,0)
423
	Bill.Adornee = Character.Head
424
	Bill.Name = "TalkingBillBoard"
425
	local Hehe = Instance.new("TextLabel",Bill)
426
	Hehe.BackgroundTransparency = 1
427
	Hehe.BorderSizePixel = 0
428
	Hehe.Text = ""
429
	Hehe.Font = "Garamond"
430
	Hehe.TextSize = 40
431
	Hehe.TextStrokeTransparency = 0
432
	Hehe.Size = UDim2.new(1,0,0.5,0)
433
	coroutine.resume(coroutine.create(function()
434
		while Hehe ~= nil do
435
			swait()	
436
			Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))	
437
			Hehe.Rotation = math.random(-5,5)
438
			Hehe.TextColor3 = Color3.new(255,255,0)
439
			Hehe.TextStrokeColor3 = Color3.new(0,0,0)
440
		end
441
	end))
442
	for i = 1,string.len(text),1 do
443
		swait()
444
		Hehe.Text = string.sub(text,1,i)
445
	end
446
	swait(90)--Re[math.random(1, 93)]
447
	for i = 0, 1, .025 do
448
		swait()
449
		Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
450
		Hehe.TextStrokeTransparency = i
451
		Hehe.TextTransparency = i
452
	end
453
	Bill:Destroy()
454
	end)
455
chat()
456
end
457
458
function onChatted(msg)
459
	chatfunc(msg)
460
end
461
462
Player.Chatted:connect(onChatted)
463
wait(0.2)
464
465
Player = game:GetService("Players").LocalPlayer
466
PlayerGui = Player.PlayerGui
467
Cam = workspace.CurrentCamera
468
Backpack = Player.Backpack
469
Character = Player.Character
470
Humanoid = Character.Humanoid
471
Mouse = Player:GetMouse()
472
RootPart = Character["HumanoidRootPart"]
473
Torso = Character["Torso"]
474
Head = Character["Head"]
475
RightArm = Character["Right Arm"]
476
LeftArm = Character["Left Arm"]
477
RightLeg = Character["Right Leg"]
478
LeftLeg = Character["Left Leg"]
479
RootJoint = RootPart["RootJoint"]
480
Neck = Torso["Neck"]
481
RightShoulder = Torso["Right Shoulder"]
482
LeftShoulder = Torso["Left Shoulder"]
483
RightHip = Torso["Right Hip"]
484
LeftHip = Torso["Left Hip"]
485
Character.Archivable = true
486
Player:ClearCharacterAppearance()
487
488
IT = Instance.new
489
CF = CFrame.new
490
VT = Vector3.new
491
RAD = math.rad
492
C3 = Color3.new
493
UD2 = UDim2.new
494
BRICKC = BrickColor.new
495
ANGLES = CFrame.Angles
496
EULER = CFrame.fromEulerAnglesXYZ
497
COS = math.cos
498
ACOS = math.acos
499
SIN = math.sin
500
ASIN = math.asin
501
ABS = math.abs
502
MRANDOM = math.random
503
FLOOR = math.floor
504
local CHOICE = MRANDOM(1,5)
505
--//=================================\\
506
--|| 	      USEFUL VALUES
507
--\\=================================//
508
509
Animation_Speed = 3
510
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
511
local Speed = 20
512
local SIZE = 1.4
513
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
514
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
515
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
516
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
517
local DAMAGEMULTIPLIER = "inf"
518
local ANIM = "Idle"
519
local ATTACK = false
520
local EQUIPPED = false
521
local HOLD = false
522
local COMBO = 1
523
local Rooted = false
524
local SINE = 0
525
local KEYHOLD = false
526
local CHANGE = 2 / Animation_Speed
527
local WALKINGANIM = false
528
local VALUE1 = false
529
local VALUE2 = false
530
local ROBLOXIDLEANIMATION = IT("Animation")
531
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
532
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
533
local ATANIM = IT("Animation")
534
ATANIM.Name = "Attack Animation"
535
ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
536
--ROBLOXIDLEANIMATION.Parent = Humanoid
537
local WEAPONGUI = IT("ScreenGui", PlayerGui)
538
WEAPONGUI.Name = "Weapon GUI"
539
local Weapon = IT("Model")
540
Weapon.Name = "Adds"
541
local Effects = IT("Folder", Weapon)
542
Effects.Name = "Effects"
543
local ANIMATOR = Humanoid.Animator
544
local ANIMATE = Character.Animate
545
local UNANCHOR = true
546
local CLOCKLOOP = 0
547
local SONG = 492070484
548
local CLOCKTARGET = nil
549
local CLOCKSPEED = 4
550
script.Parent = WEAPONGUI
551
local CLONE = Character:Clone()
552
CLONE.Parent = nil
553
Character.Archivable = false
554
local sick = Instance.new("Sound",Torso)
555
sick.Volume = 50999
556
557
--//=================================\\
558
--\\=================================//
559
560
561
--//=================================\\
562
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
563
--\\=================================//
564
565
ArtificialHB = Instance.new("BindableEvent", script)
566
ArtificialHB.Name = "ArtificialHB"
567
568
script:WaitForChild("ArtificialHB")
569
570
frame = Frame_Speed
571
tf = 0
572
allowframeloss = false
573
tossremainder = false
574
lastframe = tick()
575
script.ArtificialHB:Fire()
576
577
game:GetService("RunService").Heartbeat:connect(function(s, p)
578
	tf = tf + s
579
	if tf >= frame then
580
		if allowframeloss then
581
			script.ArtificialHB:Fire()
582
			lastframe = tick()
583
		else
584
			for i = 1, math.floor(tf / frame) do
585
				script.ArtificialHB:Fire()
586
			end
587
		lastframe = tick()
588
		end
589
		if tossremainder then
590
			tf = 0
591
		else
592
			tf = tf - frame * math.floor(tf / frame)
593
		end
594
	end
595
end)
596
597
--//=================================\\
598
--\\=================================//
599
600
--//=================================\\
601
--|| 	      SOME FUNCTIONS
602
--\\=================================//
603
604
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
605
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
606
end
607
608
function PositiveAngle(NUMBER)
609
	if NUMBER >= 0 then
610
		NUMBER = 0
611
	end
612
	return NUMBER
613
end
614
615
function NegativeAngle(NUMBER)
616
	if NUMBER <= 0 then
617
		NUMBER = 0
618
	end
619
	return NUMBER
620
end
621
622
function Swait(NUMBER)
623
	if NUMBER == 0 or NUMBER == nil then
624
		ArtificialHB.Event:wait()
625
	else
626
		for i = 1, NUMBER do
627
			ArtificialHB.Event:wait()
628
		end
629
	end
630
end
631
632
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
633
	local NEWMESH = IT(MESH)
634
	if MESH == "SpecialMesh" then
635
		NEWMESH.MeshType = MESHTYPE
636
		if MESHID ~= "nil" and MESHID ~= "" then
637
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
638
		end
639
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
640
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
641
		end
642
	end
643
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
644
	NEWMESH.Scale = SCALE
645
	NEWMESH.Parent = PARENT
646
	return NEWMESH
647
end
648
649
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
650
	local NEWPART = IT("Part")
651
	NEWPART.formFactor = FORMFACTOR
652
	NEWPART.Reflectance = REFLECTANCE
653
	NEWPART.Transparency = TRANSPARENCY
654
	NEWPART.CanCollide = false
655
	NEWPART.Locked = true
656
	NEWPART.Anchored = true
657
	if ANCHOR == false then
658
		NEWPART.Anchored = false
659
	end
660
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
661
	NEWPART.Name = NAME
662
	NEWPART.Size = SIZE
663
	NEWPART.Position = Torso.Position
664
	NEWPART.Material = MATERIAL
665
	NEWPART:BreakJoints()
666
	NEWPART.Parent = PARENT
667
	return NEWPART
668
end
669
670
	local function weldBetween(a, b)
671
	    local weldd = Instance.new("ManualWeld")
672
	    weldd.Part0 = a
673
	    weldd.Part1 = b
674
	    weldd.C0 = CFrame.new()
675
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
676
	    weldd.Parent = a
677
	    return weldd
678
	end
679
680
681
function QuaternionFromCFrame(cf)
682
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
683
	local trace = m00 + m11 + m22
684
	if trace > 0 then 
685
		local s = math.sqrt(1 + trace)
686
		local recip = 0.5 / s
687
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
688
	else
689
		local i = 0
690
		if m11 > m00 then
691
			i = 1
692
		end
693
		if m22 > (i == 0 and m00 or m11) then
694
			i = 2
695
		end
696
		if i == 0 then
697
			local s = math.sqrt(m00 - m11 - m22 + 1)
698
			local recip = 0.5 / s
699
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
700
		elseif i == 1 then
701
			local s = math.sqrt(m11 - m22 - m00 + 1)
702
			local recip = 0.5 / s
703
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
704
		elseif i == 2 then
705
			local s = math.sqrt(m22 - m00 - m11 + 1)
706
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
707
		end
708
	end
709
end
710
 
711
function QuaternionToCFrame(px, py, pz, x, y, z, w)
712
	local xs, ys, zs = x + x, y + y, z + z
713
	local wx, wy, wz = w * xs, w * ys, w * zs
714
	local xx = x * xs
715
	local xy = x * ys
716
	local xz = x * zs
717
	local yy = y * ys
718
	local yz = y * zs
719
	local zz = z * zs
720
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
721
end
722
 
723
function QuaternionSlerp(a, b, t)
724
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
725
	local startInterp, finishInterp;
726
	if cosTheta >= 0.0001 then
727
		if (1 - cosTheta) > 0.0001 then
728
			local theta = ACOS(cosTheta)
729
			local invSinTheta = 1 / SIN(theta)
730
			startInterp = SIN((1 - t) * theta) * invSinTheta
731
			finishInterp = SIN(t * theta) * invSinTheta
732
		else
733
			startInterp = 1 - t
734
			finishInterp = t
735
		end
736
	else
737
		if (1 + cosTheta) > 0.0001 then
738
			local theta = ACOS(-cosTheta)
739
			local invSinTheta = 1 / SIN(theta)
740
			startInterp = SIN((t - 1) * theta) * invSinTheta
741
			finishInterp = SIN(t * theta) * invSinTheta
742
		else
743
			startInterp = t - 1
744
			finishInterp = t
745
		end
746
	end
747
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
748
end
749
750
function Clerp(a, b, t)
751
	local qa = {QuaternionFromCFrame(a)}
752
	local qb = {QuaternionFromCFrame(b)}
753
	local ax, ay, az = a.x, a.y, a.z
754
	local bx, by, bz = b.x, b.y, b.z
755
	local _t = 1 - t
756
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
757
end
758
759
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
760
	local frame = IT("Frame")
761
	frame.BackgroundTransparency = TRANSPARENCY
762
	frame.BorderSizePixel = BORDERSIZEPIXEL
763
	frame.Position = POSITION
764
	frame.Size = SIZE
765
	frame.BackgroundColor3 = COLOR
766
	frame.BorderColor3 = BORDERCOLOR
767
	frame.Name = NAME
768
	frame.Parent = PARENT
769
	return frame
770
end
771
772
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
773
	local label = IT("TextLabel")
774
	label.BackgroundTransparency = 1
775
	label.Size = UD2(1, 0, 1, 0)
776
	label.Position = UD2(0, 0, 0, 0)
777
	label.TextColor3 = TEXTCOLOR
778
	label.TextStrokeTransparency = STROKETRANSPARENCY
779
	label.TextTransparency = TRANSPARENCY
780
	label.FontSize = TEXTFONTSIZE
781
	label.Font = TEXTFONT
782
	label.BorderSizePixel = BORDERSIZEPIXEL
783
	label.TextStrokeColor3 = C3(1,1,1)
784
	label.TextScaled = false
785
	label.Text = TEXT
786
	label.Name = NAME
787
	label.Parent = PARENT
788
	return label
789
end
790
791
function NoOutlines(PART)
792
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
793
end
794
795
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
796
	local NEWWELD = IT(TYPE)
797
	NEWWELD.Part0 = PART0
798
	NEWWELD.Part1 = PART1
799
	NEWWELD.C0 = C0
800
	NEWWELD.C1 = C1
801
	NEWWELD.Parent = PARENT
802
	return NEWWELD
803
end
804
805
local S = IT("Sound")
806
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
807
	local NEWSOUND = nil
808
	coroutine.resume(coroutine.create(function()
809
		NEWSOUND = S:Clone()
810
		NEWSOUND.Parent = PARENT
811
		NEWSOUND.Volume = VOLUME
812
		NEWSOUND.Pitch = PITCH
813
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
814
		NEWSOUND:play()
815
		if DOESLOOP == true then
816
			NEWSOUND.Looped = true
817
		else
818
			repeat wait(1) until NEWSOUND.Playing == false
819
			NEWSOUND:remove()
820
		end
821
	end))
822
	return NEWSOUND
823
end
824
825
function CFrameFromTopBack(at, top, back)
826
	local right = top:Cross(back)
827
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
828
end
829
830
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
831
function WACKYEFFECT(Table)
832
	local TYPE = (Table.EffectType or "Sphere")
833
	local SIZE = (Table.Size or VT(1,1,1))
834
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
835
	local TRANSPARENCY = (Table.Transparency or 0)
836
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
837
	local CFRAME = (Table.CFrame or Torso.CFrame)
838
	local MOVEDIRECTION = (Table.MoveToPos or nil)
839
	local ROTATION1 = (Table.RotationX or 0)
840
	local ROTATION2 = (Table.RotationY or 0)
841
	local ROTATION3 = (Table.RotationZ or 0)
842
	local MATERIAL = (Table.Material or "Neon")
843
	local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551))
844
	local TIME = (Table.Time or 45)
845
	local SOUNDID = (Table.SoundID or nil)
846
	local SOUNDPITCH = (Table.SoundPitch or nil)
847
	local SOUNDVOLUME = (Table.SoundVolume or nil)
848
	coroutine.resume(coroutine.create(function()
849
		local PLAYSSOUND = false
850
		local SOUND = nil
851
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
852
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
853
			PLAYSSOUND = true
854
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
855
		end
856
		EFFECT.Color = COLOR
857
		local MSH = nil
858
		if TYPE == "Sphere" then
859
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
860
		elseif TYPE == "Block" then
861
			MSH = IT("BlockMesh",EFFECT)
862
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
863
		elseif TYPE == "Wave" then
864
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
865
		elseif TYPE == "Ring" then
866
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
867
		elseif TYPE == "Slash" then
868
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
869
		elseif TYPE == "Round Slash" then
870
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
871
		elseif TYPE == "Swirl" then
872
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
873
		elseif TYPE == "Skull" then
874
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
875
		elseif TYPE == "Crystal" then
876
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
877
		end
878
		if MSH ~= nil then
879
			local MOVESPEED = nil
880
			if MOVEDIRECTION ~= nil then
881
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
882
			end
883
			local GROWTH = SIZE - ENDSIZE
884
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
885
			if TYPE == "Block" then
886
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
887
			else
888
				EFFECT.CFrame = CFRAME
889
			end
890
			for LOOP = 1, TIME+1 do
891
				Swait()
892
				MSH.Scale = MSH.Scale - GROWTH/TIME
893
				if TYPE == "Wave" then
894
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
895
				end
896
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
897
				if TYPE == "Block" then
898
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
899
				else
900
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
901
				end
902
				if MOVEDIRECTION ~= nil then
903
					local ORI = EFFECT.Orientation
904
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
905
					EFFECT.Orientation = ORI
906
				end
907
			end
908
			if PLAYSSOUND == false then
909
				EFFECT:remove()
910
			else
911
				repeat Swait() until SOUND.Playing == false
912
				EFFECT:remove()
913
			end
914
		else
915
			if PLAYSSOUND == false then
916
				EFFECT:remove()
917
			else
918
				repeat Swait() until SOUND.Playing == false
919
				EFFECT:remove()
920
			end
921
		end
922
	end))
923
end
924
925
function MakeForm(PART,TYPE)
926
	if TYPE == "Cyl" then
927
		local MSH = IT("CylinderMesh",PART)
928
	elseif TYPE == "Ball" then
929
		local MSH = IT("SpecialMesh",PART)
930
		MSH.MeshType = "Sphere"
931
	elseif TYPE == "Wedge" then
932
		local MSH = IT("SpecialMesh",PART)
933
		MSH.MeshType = "Wedge"
934
	end
935
end
936
937
Debris = game:GetService("Debris")
938
939
function CastProperRay(StartPos, EndPos, Distance, Ignore)
940
	local DIRECTION = CF(StartPos,EndPos).lookVector
941
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
942
end
943
944
function turnto(position)
945
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
946
end
947
948
--//=================================\\
949
--||	     WEAPON CREATION
950
--\\=================================//
951
952
Humanoid.Parent = nil
953
RootPart.Size = RootPart.Size*SIZE
954
Torso.Size = Torso.Size*SIZE
955
RightArm.Size = RightArm.Size*SIZE
956
RightLeg.Size = RightLeg.Size*SIZE
957
LeftArm.Size = LeftArm.Size*SIZE
958
LeftLeg.Size = LeftLeg.Size*SIZE
959
RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
960
RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
961
Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
962
Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
963
RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
964
LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
965
RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
966
LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
967
RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
968
LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
969
Head.Size = Head.Size*SIZE
970
RootJoint.Parent = RootPart
971
Neck.Parent = Torso
972
RightShoulder.Parent = Torso
973
LeftShoulder.Parent = Torso
974
RightHip.Parent = Torso
975
LeftHip.Parent = Torso
976
977
Humanoid.DisplayDistanceType = "None"
978
local naeeym2 = IT("BillboardGui",Character)
979
naeeym2.AlwaysOnTop = true
980
naeeym2.Size = UDim2.new(5,35,2,15)
981
naeeym2.StudsOffset = Vector3.new(0,2,0)
982
naeeym2.MaxDistance = 75
983
naeeym2.Adornee = Character.Head
984
naeeym2.Name = "Name"
985
local tecks2 = IT("TextLabel",naeeym2)
986
tecks2.BackgroundTransparency = 1
987
tecks2.TextScaled = true
988
tecks2.BorderSizePixel = 0
989
tecks2.Text = "Master of Time"
990
tecks2.Font = "Fantasy"
991
tecks2.TextSize = 30
992
tecks2.TextStrokeTransparency = 0
993
tecks2.TextColor3 = C3(0,0,0)
994
tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255)
995
tecks2.Size = UDim2.new(1,0,0.5,0)
996
tecks2.Parent = naeeym2
997
local top = Instance.new("Shirt")
998
top.ShirtTemplate = "rbxassetid://45695443"
999
top.Parent = Character
1000
top.Name = "Cloth"
1001
local bottom = Instance.new("Pants")
1002
bottom.PantsTemplate = "rbxassetid://45696190"
1003
bottom.Parent = Character
1004
bottom.Name = "Cloth"
1005
local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
1006
PRT.Color = C3(0,0,0)
1007
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
1008
CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "82907376", VT(1,1,1)*SIZE, VT(0,0,0))
1009
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
1010
PRT.Color = C3(0,0,0)
1011
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
1012
CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
1013
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
1014
PRT.Color = C3(255/255, 0/255, 0/255)
1015
MakeForm(PRT,"Ball")
1016
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
1017
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
1018
PRT.Color = C3(255/255, 255/255, 0/255)
1019
MakeForm(PRT,"Ball")
1020
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
1021
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
1022
PRT.Color = C3(255/255, 255/255, 0/255)
1023
MakeForm(PRT,"Ball")
1024
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
1025
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
1026
PRT.Color = C3(255/255, 255/255, 0/255)
1027
MakeForm(PRT,"Ball")
1028
local Aura = Instance.new('ParticleEmitter')
1029
Aura.Name = "Aura"
1030
Aura.Texture = "rbxassetid://131765579"
1031
Aura.Parent = PRT
1032
Aura.LightEmission = 0.3
1033
Aura.Transparency = NumberSequence.new(0,0.6,1)
1034
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(255/255, 0/255, 0/255))
1035
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1036
Aura.LockedToPart = false
1037
Aura.Lifetime = NumberRange.new(2)
1038
Aura.Rate = 30
1039
Aura.Speed = NumberRange.new(1)
1040
Aura.EmissionDirection = "Top"
1041
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
1042
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
1043
PRT.Color = C3(255/255, 255/255, 0/255)
1044
MakeForm(PRT,"Ball")
1045
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
1046
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
1047
PRT.Color = C3(255/255, 255/255, 0/255)
1048
MakeForm(PRT,"Ball")
1049
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
1050
1051
local LASTPART = Head
1052
for i = 1, 24 do
1053
	local MATH = (1-(i/30))
1054
	if LASTPART == Head then
1055
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1056
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
1057
		LASTPART = Horn
1058
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1059
		local Aura = Instance.new('ParticleEmitter')
1060
Aura.Name = "Aura"
1061
Aura.Texture = "rbxassetid://242997264"
1062
Aura.Parent = Horn
1063
Aura.LightEmission = 0.8
1064
Aura.Transparency = NumberSequence.new(0,0.6,1)
1065
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1066
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1067
Aura.LockedToPart = true
1068
Aura.Lifetime = NumberRange.new(2)
1069
Aura.Rate = 25
1070
Aura.Speed = NumberRange.new(0.1)
1071
Aura.EmissionDirection = "Top"
1072
	else
1073
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1074
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
1075
		LASTPART = Horn
1076
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1077
				local Aura = Instance.new('ParticleEmitter')
1078
Aura.Name = "Aura"
1079
Aura.Texture = "rbxassetid://242997264"
1080
Aura.Parent = Horn
1081
Aura.LightEmission = 0.8
1082
Aura.Transparency = NumberSequence.new(0,0.6,1)
1083
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1084
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1085
Aura.LockedToPart = true
1086
Aura.Lifetime = NumberRange.new(2)
1087
Aura.Rate = 25
1088
Aura.Speed = NumberRange.new(0.1)
1089
Aura.EmissionDirection = "Top"
1090
	end
1091
end
1092
local LASTPART = Head
1093
for i = 1, 24 do
1094
	local MATH = (1-(i/30))
1095
	if LASTPART == Head then
1096
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1097
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
1098
		LASTPART = Horn
1099
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1100
				local Aura = Instance.new('ParticleEmitter')
1101
Aura.Name = "Aura"
1102
Aura.Texture = "rbxassetid://242997264"
1103
Aura.Parent = Horn
1104
Aura.LightEmission = 0.8
1105
Aura.Transparency = NumberSequence.new(0,0.6,1)
1106
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1107
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1108
Aura.LockedToPart = true
1109
Aura.Lifetime = NumberRange.new(2)
1110
Aura.Rate = 25
1111
Aura.Speed = NumberRange.new(0.1)
1112
Aura.EmissionDirection = "Top"
1113
	else
1114
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1115
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
1116
		LASTPART = Horn
1117
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1118
				local Aura = Instance.new('ParticleEmitter')
1119
Aura.Name = "Aura"
1120
Aura.Texture = "rbxassetid://242997264"
1121
Aura.Parent = Horn
1122
Aura.LightEmission = 0.8
1123
Aura.Transparency = NumberSequence.new(0,0.6,1)
1124
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1125
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1126
Aura.LockedToPart = true
1127
Aura.Lifetime = NumberRange.new(2)
1128
Aura.Rate = 25
1129
Aura.Speed = NumberRange.new(0.1)
1130
Aura.EmissionDirection = "Top"
1131
	end
1132
end
1133
local LASTPART = Head
1134
for i = 1, 8 do
1135
	local MATH = (1-(i/14))
1136
	if LASTPART == Head then
1137
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1138
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
1139
		LASTPART = Horn
1140
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1141
				local Aura = Instance.new('ParticleEmitter')
1142
Aura.Name = "Aura"
1143
Aura.Texture = "rbxassetid://242997264"
1144
Aura.Parent = Horn
1145
Aura.LightEmission = 0.8
1146
Aura.Transparency = NumberSequence.new(0,0.6,1)
1147
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1148
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1149
Aura.LockedToPart = true
1150
Aura.Lifetime = NumberRange.new(2)
1151
Aura.Rate = 25
1152
Aura.Speed = NumberRange.new(0.1)
1153
Aura.EmissionDirection = "Top"
1154
	else
1155
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1156
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
1157
		LASTPART = Horn
1158
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1159
				local Aura = Instance.new('ParticleEmitter')
1160
Aura.Name = "Aura"
1161
Aura.Texture = "rbxassetid://242997264"
1162
Aura.Parent = Horn
1163
Aura.LightEmission = 0.8
1164
Aura.Transparency = NumberSequence.new(0,0.6,1)
1165
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1166
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1167
Aura.LockedToPart = true
1168
Aura.Lifetime = NumberRange.new(2)
1169
Aura.Rate = 25
1170
Aura.Speed = NumberRange.new(0.1)
1171
Aura.EmissionDirection = "Top"
1172
	end
1173
end
1174
local LASTPART = Head
1175
for i = 1, 8 do
1176
	local MATH = (1-(i/14))
1177
	if LASTPART == Head then
1178
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1179
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
1180
		LASTPART = Horn
1181
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1182
				local Aura = Instance.new('ParticleEmitter')
1183
Aura.Name = "Aura"
1184
Aura.Texture = "rbxassetid://242997264"
1185
Aura.Parent = Horn
1186
Aura.LightEmission = 0.8
1187
Aura.Transparency = NumberSequence.new(0,0.6,1)
1188
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1189
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1190
Aura.LockedToPart = true
1191
Aura.Lifetime = NumberRange.new(2)
1192
Aura.Rate = 25
1193
Aura.Speed = NumberRange.new(0.1)
1194
Aura.EmissionDirection = "Top"
1195
	else
1196
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
1197
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
1198
		LASTPART = Horn
1199
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
1200
				local Aura = Instance.new('ParticleEmitter')
1201
Aura.Name = "Aura"
1202
Aura.Texture = "rbxassetid://242997264"
1203
Aura.Parent = Horn
1204
Aura.LightEmission = 0.8
1205
Aura.Transparency = NumberSequence.new(0,0.6,1)
1206
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
1207
Aura.Size = NumberSequence.new(0.3,0.2,0.1)
1208
Aura.LockedToPart = true
1209
Aura.Lifetime = NumberRange.new(2)
1210
Aura.Rate = 25
1211
Aura.Speed = NumberRange.new(0.1)
1212
Aura.EmissionDirection = "Top"
1213
	end
1214
end
1215
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
1216
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1217
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
1218
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
1219
MakeForm(PRT,"Cyl")
1220
local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
1221
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
1222
MakeForm(PRT,"Cyl")
1223
PRT.Color = C3(255/255, 255/255, 0/255)
1224
local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
1225
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
1226
MakeForm(RING,"Cyl")
1227
RING.Color = C3(0,0,0)
1228
for i = 1, 12 do
1229
	local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
1230
	PRT.Color = C3(0,0,0)
1231
	local MSH = IT("BlockMesh",PRT)
1232
	MSH.Scale = VT(0.6,1,1)
1233
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
1234
end
1235
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
1236
PRT.Color = C3(0,0,0)
1237
local MSH = IT("BlockMesh",PRT)
1238
MSH.Scale = VT(0.4,1,1)
1239
local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
1240
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
1241
PRT.Color = C3(0,0,0)
1242
local MSH = IT("BlockMesh",PRT)
1243
MSH.Scale = VT(0.4,1,1)
1244
local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
1245
coroutine.resume(coroutine.create(function()
1246
	while true do
1247
		Swait()
1248
		CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
1249
		WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
1250
		WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
1251
		if CLOCKLOOP <= -150 then
1252
			if VALUE1 == false then
1253
				CLOCKLOOP = 0
1254
				WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 2})
1255
				local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1256
				ApplyAoE(HITPOS,10,15,45,75,true)
1257
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
1258
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
1259
				if CLOCKTARGET ~= nil then
1260
					CLOCKTARGET.Health = CLOCKTARGET.Health - 20
1261
					if CLOCKTARGET.Torso ~= nil then
1262
						CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
1263
					end
1264
					if CLOCKTARGET.Health == 0 then
1265
						CLOCKTARGET = nil
1266
					end
1267
				end
1268
			end
1269
		end
1270
	end
1271
end))
1272
1273
for _, c in pairs(Weapon:GetChildren()) do
1274
	if c.ClassName == "Part" then
1275
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1276
	end
1277
end
1278
1279
Neck.Name = "Weld"
1280
RootJoint.Name = "Weld"
1281
RightShoulder.Name = "Weld"
1282
LeftShoulder.Name = "Weld"
1283
RightHip.Name = "Weld"
1284
LeftHip.Name = "Weld"
1285
1286
local BODY = {}
1287
for _, c in pairs(Character:GetDescendants()) do
1288
	if c:IsA("BasePart") and c.Name ~= "Handle" then
1289
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
1290
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1291
		end
1292
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
1293
	elseif c:IsA("JointInstance") then
1294
		table.insert(BODY,{c,c.Parent,nil,nil,nil})
1295
	end
1296
end
1297
for e = 1, #BODY do
1298
	if BODY[e] ~= nil then
1299
		local STUFF = BODY[e]
1300
		local PART = STUFF[1]
1301
		local PARENT = STUFF[2]
1302
		local MATERIAL = STUFF[3]
1303
		local COLOR = STUFF[4]
1304
		local TRANSPARENCY = STUFF[5]
1305
		if PART.ClassName == "Part" and PART ~= RootPart then
1306
			PART.Material = MATERIAL
1307
			PART.Color = COLOR
1308
			PART.Transparency = TRANSPARENCY
1309
		end
1310
		PART.AncestryChanged:Connect(function()
1311
			PART.Parent = PARENT
1312
		end)
1313
	end
1314
end
1315
1316
function refit()
1317
	Character.Parent = workspace
1318
	for e = 1, #BODY do
1319
		if BODY[e] ~= nil then
1320
			local STUFF = BODY[e]
1321
			local PART = STUFF[1]
1322
			local PARENT = STUFF[2]
1323
			local MATERIAL = STUFF[3]
1324
			local COLOR = STUFF[4]
1325
			local TRANSPARENCY = STUFF[5]
1326
			if PART.ClassName == "Part" and PART ~= RootPart then
1327
				PART.Material = MATERIAL
1328
				PART.Color = COLOR
1329
				PART.Transparency = TRANSPARENCY
1330
			end
1331
			if PART.Parent ~= PARENT then
1332
				Humanoid:remove()
1333
				PART.Parent = PARENT
1334
				Humanoid = IT("Humanoid",Character)
1335
chatfunc ("I dont have time to die...")
1336
			end
1337
		end
1338
	end
1339
end
1340
local SKILLTEXTCOLOR = C3(255/255, 255/255, 0/255)
1341
local SKILLFONT = "Fantasy"
1342
local SKILLTEXTSIZE = 7
1343
1344
Weapon.Parent = Character
1345
Humanoid.Parent = Character
1346
1347
Humanoid.Died:connect(function()
1348
	refit()
1349
end)
1350
chatfunc("Gentlemen, you just annoyed me")
1351
warn("deivis97 edit")
1352
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1353
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1354
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1355
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1356
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1357
local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
1358
local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.10, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
1359
1360
1361
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Nuke Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
1362
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
1363
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
1364
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
1365
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
1366
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
1367
local SKILL6TEXT = CreateLabel(SKILL7FRAME, "[{1-5}] Musics [{6}] off", Color3.new(0/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
1368
1369
--//=================================\\
1370
--||			DAMAGING
1371
--\\=================================//
1372
1373
function ApplyDamage(Humanoid,Damage,TorsoPart)
1374
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1375
	defence.Name = ("HitBy"..Player.Name)
1376
	game:GetService("Debris"):AddItem(defence, 0.001)
1377
	Damage = Damage * DAMAGEMULTIPLIER
1378
	if Humanoid.Health ~= 0 then
1379
		local CritChance = MRANDOM(1,100)
1380
		if Damage > Humanoid.Health then
1381
			Damage = math.ceil(Humanoid.Health)
1382
			if Damage == 0 then
1383
				Damage = 0.1
1384
			end
1385
		end
1386
		Humanoid.Health = Humanoid.Health - Damage
1387
	end
1388
end
1389
1390
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1391
	local CHILDREN = workspace:GetDescendants()
1392
	for index, CHILD in pairs(CHILDREN) do
1393
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1394
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1395
			if HUM then
1396
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1397
				if TORSO then
1398
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1399
						if INSTAKILL == false then
1400
							CHILD:BreakJoints()
1401
						else
1402
							local DMG = MRANDOM(MINDMG,MAXDMG)
1403
							ApplyDamage(HUM,DMG,TORSO)
1404
						end
1405
						if FLING > 0 then
1406
							for _, c in pairs(CHILD:GetChildren()) do
1407
								if c:IsA("BasePart") then
1408
									local bv = Instance.new("BodyVelocity") 
1409
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1410
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1411
									bv.Parent = c
1412
									Debris:AddItem(bv,0.05)
1413
								end
1414
							end
1415
						end
1416
					end
1417
				end
1418
			end
1419
		end
1420
	end
1421
end
1422
1423
--//=================================\\
1424
--||	ATTACK FUNCTIONS AND STUFF
1425
--\\=================================//
1426
1427
Circle = nil
1428
CircleParts = {}
1429
Equipped = false
1430
1431
function RayCast(Position, Direction, MaxDistance, IgnoreList)
1432
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
1433
end
1434
	Equipped = true
1435
	Circle = Instance.new("Model")
1436
	Circle.Name = "Circle"
1437
	Angle = 0
1438
	for i = 1, 1 do
1439
		local CirclePart = Instance.new("Part")
1440
		CirclePart.Name = "CirclePart"
1441
		CirclePart.Transparency = 1
1442
		CirclePart.BrickColor = BrickColor.new("Really black")
1443
		CirclePart.Material = Enum.Material.Plastic
1444
		CirclePart.Shape = Enum.PartType.Block
1445
		CirclePart.FormFactor = Enum.FormFactor.Custom
1446
		CirclePart.TopSurface = Enum.SurfaceType.Smooth
1447
		CirclePart.BottomSurface = Enum.SurfaceType.Smooth
1448
		CirclePart.Anchored = true
1449
		CirclePart.CanCollide = false
1450
		CirclePart.Locked = true
1451
		CirclePart.Size = Vector3.new(10, 0.2, 10)
1452
		local Aura = Instance.new('ParticleEmitter')
1453
Aura.Name = "Aura"
1454
Aura.Texture = "rbxassetid://641078192"
1455
Aura.Parent = CirclePart
1456
Aura.LightEmission = 0
1457
Aura.Transparency = NumberSequence.new(0.2,0.4,1)
1458
Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200))
1459
Aura.Size = NumberSequence.new(0.9,0.5,0.3)
1460
Aura.LockedToPart = false
1461
Aura.Lifetime = NumberRange.new(1)
1462
Aura.Rate = 50
1463
Aura.Speed = NumberRange.new(2.5)
1464
Aura.SpreadAngle = Vector2.new(80,80)
1465
		local BlockMesh = Instance.new("BlockMesh")
1466
		BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
1467
		BlockMesh.Parent = CirclePart
1468
		CirclePart.Parent = Circle
1469
		local Star = Instance.new("Decal", CirclePart)
1470
		Star.Texture = "http://www.roblox.com/asset/?id=253215684"
1471
		Star.Face = "Top"
1472
		local Light = Instance.new("PointLight", CirclePart)
1473
		Light.Color = Color3.new(.20,0,0)
1474
		Light.Brightness = 100
1475
		Light.Range = 15
1476
		table.insert(CircleParts, CirclePart)
1477
	end
1478
	Spawn(function()
1479
		while Equipped and Humanoid.Parent and Torso.Parent do
1480
			if Angle == 360 then
1481
				Angle = 0
1482
			end
1483
			Angle = Angle + 0.05
1484
			local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
1485
			if Hit then
1486
				if not Circle.Parent then
1487
					Circle.Parent = Character
1488
				end
1489
				for i, v in pairs(CircleParts) do
1490
					v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
1491
				end
1492
			else
1493
				Circle.Parent = nil
1494
			end
1495
			wait()
1496
		end
1497
	end)
1498
1499
1500
1501
function MagicMissiles()
1502
	ATTACK = true
1503
	Rooted = false
1504
	local SELECTING = true
1505
	local SPOTS = {}
1506
	coroutine.resume(coroutine.create(function()
1507
		local LOOP = 0
1508
		repeat
1509
			LOOP = LOOP + 1
1510
			Swait()
1511
			if LOOP >= 15 then
1512
				LOOP = 0
1513
				for i = 1, #SPOTS do
1514
					if SPOTS[i] ~= nil then
1515
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1516
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1517
					end
1518
				end
1519
			end
1520
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1521
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1522
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1523
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1524
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1525
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1526
		until SELECTING == false
1527
		Rooted = false
1528
		repeat
1529
			LOOP = LOOP + 1
1530
			Swait()
1531
			if LOOP >= 15 then
1532
				LOOP = 0
1533
				for i = 1, #SPOTS do
1534
					if SPOTS[i] ~= nil then
1535
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1536
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1537
					end
1538
				end
1539
			end
1540
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1541
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
1542
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1543
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1544
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1545
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1546
		until ATTACK == false
1547
	end))
1548
	repeat
1549
		repeat Swait() until HOLD == true
1550
			local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
1551
			if DIST > 9999 then
1552
				DIST = 9999
1553
			end
1554
			local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
1555
			local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)	
1556
			if HITFLOOR ~= nil then
1557
				table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
1558
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
1559
				WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1560
			end
1561
		repeat Swait() until HOLD == false
1562
	until #SPOTS == 5
1563
	SELECTING = false
1564
	for i = 1, #SPOTS do
1565
		if SPOTS[i] ~= nil then
1566
			local POS = SPOTS[i]
1567
			coroutine.resume(coroutine.create(function()
1568
				local MISSILE = IT("Model",Effects)
1569
				MISSILE.Name = "Missile"
1570
				local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,2,2))
1571
				MakeForm(BASEPART,"Cyl")
1572
				MISSILE.PrimaryPart = BASEPART
1573
				BASEPART.CFrame = POS*CF(0,-30*3,0)
1574
				local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,4,2))
1575
				MakeForm(HEAD,"Ball")
1576
				HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
1577
				local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2.5,0.1,2.5))
1578
				MakeForm(TAIL,"Cyl")
1579
				TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
1580
				chatfunc("you like nukes?")
1581
				for i = 1, 15 do
1582
					Swait()
1583
					for _, c in pairs(MISSILE:GetChildren()) do
1584
						if c.ClassName == "Part" then
1585
							c.Transparency = c.Transparency - 1/10
1586
						end
1587
					end
1588
				end
1589
				for i = 1, 15*1.5 do
1590
					Swait()
1591
					MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
1592
				end
1593
				ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true)
1594
				WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
1595
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
1596
				WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1597
				WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1598
				MISSILE:remove()
1599
			end))
1600
		end
1601
	end
1602
	wait(0.6)
1603
	ATTACK = false
1604
	Rooted = false
1605
end
1606
1607
function TimesUp()
1608
	CLOCKTARGET = nil
1609
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1610
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1611
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1612
		if TORSO then
1613
			ATTACK = true
1614
			Rooted = false
1615
			coroutine.resume(coroutine.create(function()
1616
				repeat
1617
					Swait()
1618
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1619
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1620
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1621
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1622
					RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1623
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1624
				until ATTACK == false
1625
			end))
1626
			if Effects:FindFirstChild("NeonDoll") then
1627
				repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
1628
			end
1629
			wait(0.5)
1630
			local FAKECHARACTER = IT("Model",Effects)
1631
			FAKECHARACTER.Name = "NeonDoll"
1632
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.3,0.3,0.15),false)
1633
			CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
1634
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.15,0.3,0.15),false)
1635
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
1636
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.15,0.3,0.15),false)
1637
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
1638
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.15,0.3,0.15),false)
1639
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
1640
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.15,0.3,0.15),false)
1641
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
1642
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cyan", "Part", VT(0.15,0.15,0.15),false)
1643
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
1644
			CreateSound(201858045, TORS, 5, 0.4, false)
1645
			for i = 1, 50 do
1646
				Swait()
1647
				CLOCKSPEED = 2.5
1648
				for _, c in pairs(FAKECHARACTER:GetChildren()) do
1649
					if c.ClassName == "Part" then
1650
						c.Transparency = c.Transparency - 0.5/150
1651
					end
1652
				end
1653
			end
1654
			CLOCKTARGET = HUM
1655
			coroutine.resume(coroutine.create(function()
1656
				repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil
1657
				for i = 1, 25 do
1658
					Swait()
1659
					for _, c in pairs(FAKECHARACTER:GetChildren()) do
1660
						if c.ClassName == "Part" then
1661
							c.Transparency = c.Transparency + 0.5/25
1662
						end
1663
					end
1664
				end
1665
				CLOCKSPEED = 4
1666
				FAKECHARACTER:remove()
1667
			end))
1668
			wait(0.5)
1669
			ATTACK = false
1670
			Rooted = false
1671
		end
1672
	end
1673
end
1674
1675
function ChainPunch()
1676
	ATTACK = true
1677
	Rooted = false
1678
	local GYRO = IT("BodyGyro",RootPart)
1679
	GYRO.D = 25
1680
	GYRO.P = 2000
1681
	GYRO.MaxTorque = VT(0,40000,0)
1682
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1683
	repeat
1684
		Swait()
1685
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1686
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1687
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
1688
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1689
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1690
		RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1691
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1692
	until HOLD == true
1693
	local POS = Mouse.Hit.p
1694
	local CHAINS = false
1695
	local CHAINLINKS = {}
1696
	local A = IT("Attachment",RightArm)
1697
	A.Position = VT(1,-1,0)*SIZE
1698
	A.Orientation = VT(-90, -89.982, 0)
1699
	local B = IT("Attachment",RightArm)
1700
	B.Position = VT(-1,-1,0)*SIZE
1701
	B.Orientation = VT(-90, 89.988, 0)
1702
	local C = IT("Attachment",RightArm)
1703
	C.Position = VT(0.5,-1.3,0)*SIZE
1704
	C.Orientation = VT(-90, -89.982, 0)
1705
	local D = IT("Attachment",RightArm)
1706
	D.Position = VT(-0.5,-1.3,0)*SIZE
1707
	D.Orientation = VT(-90, 89.988, 0)
1708
	local LIGHT = IT("Attachment",RightArm)
1709
	LIGHT.Position = VT(0,-1,0)*SIZE
1710
	local LIGHT2 = IT("PointLight",LIGHT)
1711
	LIGHT2.Range = 7
1712
	LIGHT2.Brightness = 5
1713
	LIGHT2.Color = SKILLTEXTCOLOR
1714
	chatfunc("Falcon...")
1715
	for i = 1, 2 do
1716
		local TWIST = -2
1717
		local START = A
1718
		local END = B
1719
		if i == 1 then
1720
			START = B
1721
			END = A
1722
		end
1723
		local ChainLink = IT("Beam",Torso)
1724
		ChainLink.Texture = "rbxassetid://73042633"
1725
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1726
		ChainLink.TextureSpeed = 1
1727
		ChainLink.Width0 = 1
1728
		ChainLink.Width1 = 1
1729
		ChainLink.TextureLength = 2.5
1730
		ChainLink.Attachment0 = START
1731
		ChainLink.Attachment1 = END
1732
		ChainLink.CurveSize0 = TWIST
1733
		ChainLink.CurveSize1 = TWIST
1734
		--ChainLink.FaceCamera = true
1735
		ChainLink.Segments = 45
1736
		ChainLink.Transparency = NumberSequence.new(1)
1737
		table.insert(CHAINLINKS,ChainLink)
1738
	end
1739
	for i = 1, 2 do
1740
		local TWIST = -1
1741
		local START = C
1742
		local END = D
1743
		if i == 1 then
1744
			START = D
1745
			END = C
1746
		end
1747
		local ChainLink = IT("Beam",Torso)
1748
		ChainLink.Texture = "rbxassetid://73042633"
1749
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1750
		ChainLink.TextureSpeed = 1
1751
		ChainLink.Width0 = 1
1752
		ChainLink.Width1 = 1
1753
		ChainLink.TextureLength = 5
1754
		ChainLink.Attachment0 = START
1755
		ChainLink.Attachment1 = END
1756
		ChainLink.CurveSize0 = TWIST
1757
		ChainLink.CurveSize1 = TWIST
1758
		--ChainLink.FaceCamera = true
1759
		ChainLink.Segments = 25
1760
		ChainLink.LightEmission = 0.5
1761
		ChainLink.Transparency = NumberSequence.new(1)
1762
		table.insert(CHAINLINKS,ChainLink)
1763
	end
1764
	coroutine.resume(coroutine.create(function()
1765
		repeat
1766
			Swait()
1767
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
1768
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
1769
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1770
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1771
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1772
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1773
		until CHAINS == true
1774
		repeat
1775
			Swait()
1776
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
1777
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
1778
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1779
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1780
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1781
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1782
		until ATTACK == false
1783
		for e = 1, 15 do
1784
			Swait()
1785
			chatfunc("PUNCH!!!")
1786
			for i = 1, #CHAINLINKS do
1787
				CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
1788
			end
1789
		end
1790
		A:remove()
1791
		B:remove()
1792
		C:remove()
1793
		D:remove()
1794
	end))
1795
	CreateSound(233856115, RightArm, 5, 1.2, false)
1796
	for e = 1, 15 do
1797
		Swait()
1798
		for i = 1, #CHAINLINKS do
1799
			CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
1800
		end
1801
	end
1802
	CHAINS = true
1803
	Rooted = true
1804
	wait(0.25)
1805
	local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Really Red", "Part", VT(2,2,2))
1806
	FIST.Color = C3(1, 215/255, 1)
1807
	FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) 
1808
	local LIGHT3 = IT("PointLight",FIST)
1809
	LIGHT3.Range = 7
1810
	LIGHT3.Brightness = 5
1811
	LIGHT3.Color = SKILLTEXTCOLOR
1812
	CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
1813
	local FISTA = IT("Attachment",FIST)
1814
	FISTA.Position = VT(0.062, 0.977, 0)
1815
	local ChainLink = IT("Beam",Torso)
1816
	ChainLink.Texture = "rbxassetid://73042633"
1817
	ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1818
	ChainLink.TextureSpeed = 2
1819
	ChainLink.Width0 = 3
1820
	ChainLink.Width1 = 3
1821
	ChainLink.TextureLength = 12
1822
	ChainLink.Attachment0 = LIGHT
1823
	ChainLink.Attachment1 = FISTA
1824
	ChainLink.FaceCamera = true
1825
	ChainLink.Segments = 45
1826
	ChainLink.LightEmission = 0.5
1827
	ChainLink.Transparency = NumberSequence.new(0.25)
1828
	local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
1829
	for i = 1, 85 do
1830
		Swait()
1831
		FIST.CFrame = FIST.CFrame*CF(0,-2,0)
1832
		ChainLink.TextureLength = 12+(i*2)
1833
		ApplyAoE(FIST.Position,10,15,25,100,true)
1834
		WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1835
		local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
1836
		if HITFLOOR ~= nil then
1837
			HITFLOOR:BreakJoints()
1838
			coroutine.resume(coroutine.create(function()
1839
				for i = 1, 15 do
1840
					Swait()
1841
					FISTSOUND.Volume = FISTSOUND.Volume - 0.15
1842
					ApplyAoE(FIST.Position,10+(i*2),5,15,5,true)
1843
					WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1844
				end
1845
			end))
1846
			break
1847
		end
1848
	end
1849
	coroutine.resume(coroutine.create(function()
1850
		for i = 1, 50 do
1851
			Swait()
1852
			FIST.Transparency = FIST.Transparency + 0.5/50
1853
			LIGHT3.Range = LIGHT3.Range - 7/50
1854
		end
1855
		FIST:remove()
1856
	end))
1857
	LIGHT:remove()
1858
	GYRO:remove()
1859
	ATTACK = false
1860
	Rooted = false
1861
end
1862
1863
function WarpMeteor()
1864
	local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
1865
	if DIST > 9999 then
1866
		DIST = 9999
1867
	end
1868
	local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
1869
	local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
1870
	if HITFLOOR then
1871
		local POS = HITPOS	
1872
		ATTACK = true
1873
		Rooted = false
1874
		local WARPED = false
1875
		local SMASHED = false
1876
		local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1877
		coroutine.resume(coroutine.create(function()
1878
			repeat
1879
				Swait()
1880
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1881
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1882
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1883
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1884
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1885
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1886
			until WARPED == true
1887
			repeat
1888
				Swait()
1889
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1890
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1891
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1892
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1893
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1894
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1895
			until SMASHED == true
1896
			repeat
1897
				Swait()
1898
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
1899
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
1900
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1901
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1902
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
1903
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1904
			until ATTACK == false
1905
		end))
1906
		VALUE1 = true
1907
		CreateSound(233856115, Torso, 5, 1.6, false)
1908
		chatfunc("This hurt more than you think")
1909
		for i = 1, 25 do
1910
			Swait()
1911
			for _, c in pairs(Character:GetChildren()) do
1912
				if c.ClassName == "Part" then
1913
					c.Transparency = c.Transparency + 1/25
1914
				end
1915
			end
1916
			for _, c in pairs(Weapon:GetChildren()) do
1917
				if c.ClassName == "Part" then
1918
					c.Transparency = c.Transparency + 1/25
1919
				end
1920
			end
1921
		end
1922
		UNANCHOR = false
1923
		RootPart.Anchored = true
1924
		RootPart.Velocity = VT(0,0,0)
1925
		local ROOTPOS = RootPart.Position
1926
		RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
1927
		WARPED = true
1928
		for i = 1, 25 do
1929
			Swait()
1930
			for _, c in pairs(Character:GetChildren()) do
1931
				if c.ClassName == "Part" then
1932
					c.Transparency = c.Transparency - 1/25
1933
				end
1934
			end
1935
			for _, c in pairs(Weapon:GetChildren()) do
1936
				if c.ClassName == "Part" then
1937
					c.Transparency = c.Transparency - 1/25
1938
				end
1939
			end
1940
		end
1941
		local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Really Red", "Part", VT(0,0,0))
1942
		SHELL.CFrame = RootPart.CFrame
1943
		MakeForm(SHELL,"Ball")
1944
		CreateSound(402981977, SHELL, 5, 1.6, false)
1945
		for i = 1, 10 do
1946
			Swait()
1947
			SHELL.Transparency = SHELL.Transparency - 1/10
1948
			SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
1949
		end
1950
		for i = 1, math.ceil(75/2) do
1951
			Swait()
1952
			RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
1953
			SHELL.CFrame = CF(RootPart.Position)
1954
			WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
1955
		end
1956
		RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
1957
		SHELL.CFrame = CF(RootPart.Position)
1958
		WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
1959
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
1960
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
1961
		for i = 1, 5 do
1962
			WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1963
		end
1964
		SHELL:remove()
1965
		ApplyAoE(RootPart.Position,75,35,75,175,true)
1966
		SMASHED = true
1967
		wait(1)
1968
		VALUE1 = false
1969
		UNANCHOR = true
1970
		ATTACK = false
1971
		Rooted = false
1972
	end
1973
end
1974
1975
function PandorasBox()
1976
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
1977
	if HITFLOOR ~= nil then
1978
		ATTACK = false
1979
		Rooted = false
1980
		local RINGSPIN = true
1981
		local CONSTRUCTING = true
1982
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Really Red", "Ring", VT(0,0,0))
1983
		RING.Color = C3(0,0,0)
1984
		MakeForm(RING,"Cyl")
1985
		RING.CFrame = CF(HITPOS)
1986
		CreateSound(402981977, RING, 5, 1.2, false)
1987
		coroutine.resume(coroutine.create(function()
1988
			repeat
1989
				Swait()
1990
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1991
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1992
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1993
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1994
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1995
				RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1996
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
1997
			until CONSTRUCTING == false
1998
			repeat 
1999
				Swait() 
2000
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2001
			until RINGSPIN == false
2002
			for i = 1, 25 do
2003
				Swait()
2004
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2005
				RING.Size = RING.Size - VT(0.15,0,0.15)
2006
				--DECAL.Transparency = DECAL.Transparency + 1/25
2007
				RING.Transparency = RING.Transparency + 1/25
2008
			end
2009
			RING:remove()
2010
		end))
2011
		for i = 1, 15 do
2012
			Swait()
2013
			RING.Size = RING.Size + VT(0.75,0,0.75)
2014
			RING.Transparency = RING.Transparency - 1/15
2015
		end
2016
		chatfunc("let's see your prize...")
2017
		local BOXSPIN = true
2018
		local PANDORASBOX = IT("Model",Effects)
2019
		PANDORASBOX.Name = "Pandora's Box"
2020
		local BOX = IT("Model",PANDORASBOX)
2021
		BOX.Name = "Body"
2022
		local LID = IT("Model",PANDORASBOX)
2023
		LID.Name = "Lid"
2024
		--BUILDING THE BOX--
2025
			local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Really Red", "Black", VT(2,1.8,2))
2026
			BASE.Color = C3(0,0,0)
2027
			PANDORASBOX.PrimaryPart = BASE
2028
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
2029
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
2030
			WOOD.CFrame = BASE.CFrame*CF(1,0,1)
2031
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
2032
			WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
2033
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
2034
			WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
2035
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
2036
			WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
2037
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2038
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
2039
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2040
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
2041
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2042
			WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
2043
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2044
			WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
2045
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2046
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
2047
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2048
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
2049
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2050
			WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
2051
			local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2052
			WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
2053
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
2054
			WOOD.CFrame = BASE.CFrame*CF(0,0,1)
2055
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
2056
			WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
2057
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
2058
			WOOD.CFrame = BASE.CFrame*CF(1,0,0)
2059
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
2060
			WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
2061
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
2062
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
2063
			-------------
2064
			local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
2065
			LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
2066
			LID.PrimaryPart = LIDPART
2067
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2068
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
2069
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
2070
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
2071
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2072
			WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
2073
			local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
2074
			WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
2075
			local DECAL = IT("Decal",LIDPART)
2076
			DECAL.Face = "Top"
2077
			DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
2078
			DECAL.Color3 = C3(0,0,0)
2079
		--BUILDING THE BOX--
2080
		coroutine.resume(coroutine.create(function()
2081
			repeat
2082
				Swait()
2083
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
2084
			until BOXSPIN == false
2085
		end))
2086
		for i = 1, 25 do
2087
			Swait()
2088
			PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
2089
		end
2090
		wait(0.5)
2091
		BOXSPIN = false
2092
		CONSTRUCTING = false	
2093
		coroutine.resume(coroutine.create(function()
2094
			WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
2095
			--[[for i = 1, 45 do
2096
				Swait()
2097
				LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
2098
			end-
2099
			LID:remove()]]--
2100
			for _, c in pairs(LID:GetChildren()) do
2101
				if c.ClassName == "Part" then
2102
					c.Anchored = false
2103
					c.CanCollide = true
2104
					if c ~= LIDPART then
2105
						weldBetween(LIDPART,c)
2106
					end
2107
				end
2108
			end
2109
			LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
2110
			Debris:AddItem(LID,15)
2111
			wait(0.5)
2112
			local RANDOMEFFECT = MRANDOM(1,4)
2113
			if RANDOMEFFECT == 1 then
2114
				for i = 1, 45 do
2115
					wait((2-(i/15))/15)
2116
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
2117
				end	
2118
				wait(1)
2119
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
2120
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
2121
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
2122
				for i = 1, 5 do
2123
					WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2124
				end
2125
				ApplyAoE(BASE.Position,50,1,200,375,true)
2126
				ApplyAoE(BASE.Position,250,35,75,175,true)
2127
			elseif RANDOMEFFECT == 2 then
2128
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really Red", "Field", VT(0.3,0.3,0.3))
2129
				FIELD.CFrame = BASE.CFrame
2130
				MakeForm(FIELD,"Ball")
2131
				for i = 1, 50 do
2132
					Swait()
2133
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
2134
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
2135
				end
2136
				wait(0.2)
2137
				local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
2138
				coroutine.resume(coroutine.create(function()
2139
					for i = 1, 75 do
2140
						Swait()
2141
						LOOP.Volume = LOOP.Volume + 10/75
2142
						LOOP.Parent = FIELD
2143
						local CHILDREN = workspace:GetDescendants()
2144
						for index, CHILD in pairs(CHILDREN) do
2145
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2146
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2147
								if HUM then
2148
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2149
									if TORSO then
2150
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2151
											HUM.Health = HUM.Health - 1.5
2152
											TORSO.Velocity = VT(0,5,0)
2153
											HUM.PlatformStand = true
2154
											if TORSO.RotVelocity.Magnitude < 15 then
2155
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
2156
											end
2157
										end
2158
									end
2159
								end
2160
							end
2161
						end
2162
						FIELD.Size = FIELD.Size + VT(9,9,9)
2163
						FIELD.Transparency = FIELD.Transparency + 0.8/75
2164
					end
2165
					for i = 1, 500 do
2166
						Swait()
2167
						LOOP.Parent = FIELD
2168
						local CHILDREN = workspace:GetDescendants()
2169
						for index, CHILD in pairs(CHILDREN) do
2170
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2171
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2172
								if HUM then
2173
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2174
									if TORSO then
2175
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2176
											TORSO.Velocity = VT(0,5,0)
2177
											HUM.Health = HUM.Health - 1.5
2178
											HUM.PlatformStand = true
2179
											if TORSO.RotVelocity.Magnitude < 15 then
2180
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
2181
											end
2182
										end
2183
									end
2184
								end
2185
							end
2186
						end
2187
					end
2188
					for i = 1, 25 do
2189
						Swait()
2190
						LOOP.Volume = LOOP.Volume + 10/25
2191
						LOOP.Parent = FIELD
2192
						local CHILDREN = workspace:GetDescendants()
2193
						for index, CHILD in pairs(CHILDREN) do
2194
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2195
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2196
								if HUM then
2197
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2198
									if TORSO then
2199
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
2200
											TORSO.Velocity = VT(0,5,0)
2201
											HUM.Health = HUM.Health - 1.5
2202
											HUM.PlatformStand = false
2203
											if TORSO.RotVelocity.Magnitude < 15 then
2204
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
2205
											end
2206
										end
2207
									end
2208
								end
2209
							end
2210
						end
2211
						FIELD.Size = FIELD.Size - VT(3,3,3)
2212
						FIELD.Transparency = FIELD.Transparency + 0.2/25
2213
					end	
2214
					FIELD:remove()
2215
				end))
2216
			elseif RANDOMEFFECT == 3 then
2217
				for i = 1, 10 do
2218
					wait(0.15)
2219
					WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
2220
					coroutine.resume(coroutine.create(function()
2221
						local MINION = CLONE:Clone()
2222
						MINION.Parent = Effects
2223
						MINION.Name = "Shadow"
2224
						MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
2225
						MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
2226
						for _, c in pairs(MINION:GetChildren()) do
2227
							if c.ClassName == "Part" then
2228
								c.Material = "Neon"
2229
								c.Color = C3(0,0,0)
2230
								c.Transparency = 0.25
2231
								if c.Name == "Head" then
2232
									c:ClearAllChildren()
2233
									local MSH = IT("BlockMesh",c)
2234
									MSH.Scale = VT(0.5,1,1)
2235
								end
2236
							end
2237
						end
2238
						local TORSO = MINION.Torso
2239
						local HUMAN = MINION.Humanoid
2240
						HUMAN.WalkSpeed = 20
2241
						HUMAN.MaxHealth = math.huge
2242
						HUMAN.Health = math.huge
2243
						HUMAN.DisplayDistanceType = "None"
2244
						HUMAN.Died:connect(function()
2245
							MINION:remove()
2246
							--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
2247
						end)
2248
						wait(1)
2249
						local findNearestTorso = function(POS)
2250
							local list = game.Workspace:GetDescendants()
2251
							local torso = nil
2252
							local dist = 500
2253
							local temp = nil
2254
							local human = nil
2255
							local temp2 = nil
2256
							for x = 1, #list do
2257
								temp2 = list[x]
2258
								if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
2259
									temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
2260
									human = temp2:findFirstChildOfClass("Humanoid")
2261
									if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
2262
										if (temp.Position - POS).magnitude < dist then
2263
											torso = temp
2264
											dist = (temp.Position - POS).magnitude
2265
										end
2266
									end
2267
								end
2268
							end
2269
							return torso, dist
2270
						end
2271
						for i = 1, 40 do
2272
							if HUMAN.Health == 0 then
2273
								break
2274
							end
2275
							wait(0.3)
2276
							local target,dist= findNearestTorso(TORSO.Position)
2277
							if target then
2278
								HUMAN:MoveTo(target.Position)
2279
								if dist < 25 then
2280
									CreateSound(348663022, TORSO, 10, 1, true)
2281
									wait(2)
2282
									--local ANIM = HUMAN:LoadAnimation(ATANIM)
2283
									--ANIM:Play()
2284
									--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
2285
									ApplyAoE(TORSO.Position,10,0,0,85,true)
2286
									WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
2287
									for i = 1, 5 do
2288
										WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2289
									end
2290
									break
2291
								end
2292
							end
2293
						end
2294
						MINION:remove()
2295
					end))
2296
				end
2297
			elseif RANDOMEFFECT == 4 then
2298
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really Red", "Field", VT(0.3,0.3,0.3))
2299
				FIELD.Color = C3(0,0,0)
2300
				FIELD.CFrame = BASE.CFrame
2301
				MakeForm(FIELD,"Ball")
2302
				FIELD.CanCollide = true
2303
				for i = 1, 50 do
2304
					Swait()
2305
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
2306
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
2307
				end
2308
				wait(0.2)
2309
				local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
2310
				coroutine.resume(coroutine.create(function()
2311
					local E = 0
2312
					for i = 1, 75 do
2313
						E = E + 1
2314
						Swait()
2315
						if E >= 35 then
2316
							E = 0
2317
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
2318
						end
2319
						LOOP.Volume = LOOP.Volume + 10/75
2320
						LOOP.Parent = FIELD
2321
						local CHILDREN = workspace:GetDescendants()
2322
						for index, CHILD in pairs(CHILDREN) do
2323
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2324
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2325
								if HUM then
2326
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2327
									if TORSO then
2328
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
2329
											for _, c in pairs(CHILD:GetChildren()) do
2330
												if c:IsA("BasePart") then
2331
													local bv = Instance.new("BodyVelocity") 
2332
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2333
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
2334
													bv.Parent = c
2335
													Debris:AddItem(bv,0.05)
2336
												end
2337
											end
2338
											HUM.Health = HUM.Health - 0.3
2339
										end
2340
									end
2341
								end
2342
							end
2343
						end
2344
						FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
2345
					end
2346
					for i = 1, 180 do
2347
						E = E + 1
2348
						Swait()
2349
						if E >= 35 then
2350
							E = 0
2351
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
2352
						end
2353
						LOOP.Parent = FIELD
2354
						local CHILDREN = workspace:GetDescendants()
2355
						for index, CHILD in pairs(CHILDREN) do
2356
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2357
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2358
								if HUM then
2359
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2360
									if TORSO then
2361
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
2362
											for _, c in pairs(CHILD:GetChildren()) do
2363
												if c:IsA("BasePart") then
2364
													local bv = Instance.new("BodyVelocity") 
2365
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2366
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
2367
													bv.Parent = c
2368
													Debris:AddItem(bv,0.05)
2369
												end
2370
											end
2371
											HUM.Health = HUM.Health - 0.3
2372
										end
2373
									end
2374
								end
2375
							end
2376
						end
2377
					end
2378
					ApplyAoE(FIELD.Position,40,15,20,375,true)
2379
					WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
2380
					for i = 1, 5 do
2381
						WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
2382
					end
2383
					FIELD:remove()
2384
				end))
2385
			elseif RANDOMEFFECT == 5 then
2386
			end
2387
			wait(0.5)
2388
			for i = 1, 25 do
2389
				Swait()
2390
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
2391
			end
2392
			PANDORASBOX:remove()
2393
			RINGSPIN = false
2394
		end))
2395
		ATTACK = false
2396
		Rooted = false
2397
	end
2398
end
2399
2400
function TimeStop ()
2401
	local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
2402
	CHOICE = 6
2403
	CreateSound(1193182658, Character, 5, 1, false)
2404
	chatfunc ("Za warudo...")
2405
     back = CreateSound(1841228386, Character, 9999, 1, false)
2406
	local killsky = Instance.new('Sky', game:GetService'Lighting')
2407
killsky.SkyboxBk = "rbxassetid://1013852"
2408
killsky.SkyboxDn = "rbxassetid://1013853"
2409
killsky.SkyboxFt = "rbxassetid://1013850"
2410
killsky.SkyboxLf = "rbxassetid://1013851"
2411
killsky.SkyboxRt = "rbxassetid://1013849"
2412
killsky.SkyboxUp = "rbxassetid://1013854"
2413
killsky.StarCount = 0
2414
killsky.SunAngularSize = 0
2415
killsky.MoonAngularSize = 0
2416
killsky.MoonTextureId = ""
2417
killsky.CelestialBodiesShown = false
2418
game.Lighting.FogColor = Color3.new(1,1,0)
2419
game.Lighting.FogEnd = 1400
2420
	if HITFLOOR ~= nil then
2421
		ATTACK = false
2422
		Rooted = false
2423
		local RINGSPIN = true
2424
		local CONSTRUCTING = true
2425
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Really Red", "Ring", VT(0,0,0))
2426
		RING.Color = C3(0,0,0)
2427
		MakeForm(RING,"Cyl")
2428
		RING.CFrame = CF(HITPOS)
2429
		coroutine.resume(coroutine.create(function()
2430
			repeat
2431
				Swait()
2432
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2433
			until CONSTRUCTING == false
2434
			repeat 
2435
				Swait() 
2436
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2437
			until RINGSPIN == false
2438
			for i = 1, 25 do
2439
				Swait()
2440
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
2441
				RING.Size = RING.Size - VT(0.15,0,0.15)
2442
				--DECAL.Transparency = DECAL.Transparency + 1/25
2443
				RING.Transparency = RING.Transparency + 1/25
2444
			end
2445
			RING:remove()
2446
		end))
2447
		for i = 1, 15 do
2448
			Swait()
2449
			RING.Size = RING.Size + VT(0,0,0)
2450
			RING.Transparency = RING.Transparency - 1/15
2451
		end
2452
		end
2453
	local RANDOMEFFECT = MRANDOM(1)
2454
	local BASE = CreatePart(3, Character, "Neon", 0, 0, "Really Red", "Black", VT(2,1.8,2))
2455
			BASE.Color = C3(0,0,0)
2456
			BASE.Transparency = 1
2457
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
2458
	if RANDOMEFFECT == 1 then
2459
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really Red", "Field", VT(0.3,0.3,0.3))
2460
				FIELD.CFrame = BASE.CFrame
2461
				MakeForm(FIELD,"Ball")
2462
				for i = 1, 50 do
2463
					Swait()
2464
					FIELD.Size = VT(0,0,0)
2465
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
2466
				end
2467
				end
2468
				wait(0.2)
2469
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really Red", "Field", VT(0.3,0.3,0.3))
2470
				FIELD.CFrame = BASE.CFrame
2471
				local LOOP = CreateSound(1393698948, Character, 0, 1, true)
2472
				coroutine.resume(coroutine.create(function()
2473
					for i = 1, 75 do
2474
						Swait()
2475
						LOOP.Volume = LOOP.Volume + 10/75
2476
						LOOP.Parent = FIELD
2477
						local CHILDREN = workspace:GetDescendants()
2478
						for index, CHILD in pairs(CHILDREN) do
2479
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2480
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2481
								if HUM then
2482
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2483
									if TORSO then
2484
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2485
											HUM.Health = HUM.Health - 0
2486
											TORSO.Velocity = VT(0,5,0)
2487
											HUM.PlatformStand = true
2488
											if TORSO.RotVelocity.Magnitude < 15 then
2489
										 		TORSO.Anchored = true
2490
											end
2491
										end
2492
									end
2493
								end
2494
							end
2495
						end
2496
						FIELD.Size = FIELD.Size + VT(90,90,90)
2497
						FIELD.Transparency = FIELD.Transparency + 0.8/75
2498
					end
2499
				for i = 1, 500 do
2500
						Swait()
2501
						LOOP.Parent = FIELD
2502
						local CHILDREN = workspace:GetDescendants()
2503
						for index, CHILD in pairs(CHILDREN) do
2504
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2505
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2506
								if HUM then
2507
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2508
									if TORSO then
2509
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
2510
											TORSO.Velocity = VT(0,5,0)
2511
											HUM.Health = HUM.Health - 0
2512
											HUM.PlatformStand = true
2513
											if TORSO.RotVelocity.Magnitude < 15 then
2514
										 		TORSO.Anchored = true
2515
											end
2516
										end
2517
									end
2518
								end
2519
							end
2520
						end
2521
					end
2522
 wait (20)
2523
back:Remove()
2524
		CreateSound(1538466750, Character, 99999, 1, false)
2525
		chatfunc ("the time rusume")
2526
		killsky:Remove()
2527
		game.Lighting.FogEnd = 90000000
2528
		wait (5)
2529
		CHOICE = MRANDOM (1,5)
2530
					for i = 1, 25 do
2531
						Swait()
2532
						LOOP.Volume = LOOP.Volume + 10/25
2533
						LOOP.Parent = FIELD
2534
						local CHILDREN = workspace:GetDescendants()
2535
						for index, CHILD in pairs(CHILDREN) do
2536
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2537
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2538
								if HUM then
2539
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2540
									if TORSO then
2541
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
2542
											TORSO.Velocity = VT(0,5,0)
2543
											HUM.Health = HUM.Health - 0
2544
											HUM.PlatformStand = false
2545
											if TORSO.RotVelocity.Magnitude < 15 then
2546
										 		TORSO.Anchored = false
2547
										end
2548
									end
2549
								end
2550
							end
2551
						end
2552
						FIELD.Size = FIELD.Size - VT(3,3,3)
2553
						FIELD.Transparency = FIELD.Transparency + 0.2/25
2554
						     end
2555
						end
2556
				end))	
2557
				FIELD:Remove()
2558
           ATTACK = false
2559
		Rooted = false
2560
	end
2561
2562
				
2563
function Taunt()
2564
	ATTACK = true
2565
	local LAUGH = nil
2566
	coroutine.resume(coroutine.create(function()
2567
		repeat
2568
			Swait()
2569
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2570
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
2571
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2572
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2573
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2574
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2575
		until LAUGH ~= nil
2576
		repeat
2577
			Swait()
2578
			LAUGH.Parent = Head
2579
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
2580
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
2581
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2582
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2583
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2584
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
2585
		until LAUGH.Playing == false
2586
	ATTACK = false
2587
	end))
2588
	wait(0.1)
2589
	CHOICE = 6
2590
	chatfunc("die starkiller")
2591
	LAUGH = CreateSound(212000587, Character, 8099999, 1, false)
2592
	wait(1.5)
2593
	CHOICE = MRANDOM (1,5)
2594
end
2595
2596
--//=================================\\
2597
--||	  ASSIGN THINGS TO KEYS
2598
--\\=================================//
2599
2600
function MouseDown(Mouse)
2601
	HOLD = true
2602
	if ATTACK == false then
2603
	end
2604
end
2605
2606
function MouseUp(Mouse)
2607
HOLD = false
2608
end
2609
2610
function KeyDown(Key)
2611
	KEYHOLD = true
2612
	if Key == "z" and ATTACK == false then
2613
		MagicMissiles()
2614
	end
2615
2616
	if Key == "b" and ATTACK == false then
2617
		TimesUp()
2618
	end
2619
2620
	if Key == "c" and ATTACK == false then
2621
		ChainPunch()
2622
	end
2623
2624
	if Key == "v" and ATTACK == false then
2625
		WarpMeteor()
2626
	end
2627
2628
	if Key == "x" and ATTACK == false then
2629
		PandorasBox()
2630
	end
2631
	
2632
	if Key == "g" and ATTACK == false then
2633
		TimeStop()
2634
	end
2635
2636
	if Key == "t" and ATTACK == false then
2637
		Taunt()
2638
		elseif Key == "1" and ATTACK == false then
2639
			if CHOICE ~= 1 then
2640
				CHOICE = 1
2641
				sick:Play()
2642
				chatfunc("original prequel")
2643
			end
2644
		elseif Key == "2" and ATTACK == false then
2645
			if CHOICE ~= 2 then
2646
				CHOICE = 2
2647
				sick:Play()
2648
				chatfunc("well ok")
2649
			end
2650
		elseif Key == "3" and ATTACK == false then
2651
			if CHOICE ~= 3 then
2652
				CHOICE = 3
2653
				sick:Play()
2654
				chatfunc("I have the high ground")
2655
				tecks2.Color = Color3.new (255,0,0)
2656
			end
2657
		elseif Key == "4" and ATTACK == false then
2658
			if CHOICE ~= 4 then
2659
				CHOICE = 4
2660
				sick:Play()
2661
				chatfunc("let me  do something")
2662
			end	
2663
				elseif Key == "5" and ATTACK == false then
2664
			if CHOICE ~= 5 then
2665
				CHOICE = 5
2666
				sick:Play()
2667
				chatfunc("why not this song i :okhand: it")
2668
			end
2669
		elseif Key == "6" and ATTACK == false then
2670
			if CHOICE ~= 6 then
2671
				CHOICE = 6
2672
				sick:Play()
2673
				chatfunc("no music my friends")
2674
			end
2675
	end
2676
end
2677
2678
function KeyUp(Key)
2679
	KEYHOLD = false
2680
end
2681
2682
	Mouse.Button1Down:connect(function(NEWKEY)
2683
		MouseDown(NEWKEY)
2684
	end)
2685
	Mouse.Button1Up:connect(function(NEWKEY)
2686
		MouseUp(NEWKEY)
2687
	end)
2688
	Mouse.KeyDown:connect(function(NEWKEY)
2689
		KeyDown(NEWKEY)
2690
	end)
2691
	Mouse.KeyUp:connect(function(NEWKEY)
2692
		KeyUp(NEWKEY)
2693
	end)
2694
2695
--//=================================\\
2696
--\\=================================//
2697
2698
2699
function unanchor()
2700
	if UNANCHOR == true then
2701
		RootPart.Anchored = false
2702
	end
2703
	g = Character:GetChildren()
2704
	for i = 1, #g do
2705
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
2706
			g[i].Anchored = false
2707
		end
2708
	end
2709
	g = Weapon:GetChildren()
2710
	for i = 1, #g do
2711
		if g[i].ClassName == "Part" then
2712
			g[i].Anchored = false
2713
		end
2714
	end
2715
end
2716
2717
2718
--//=================================\\
2719
--||	WRAP THE WHOLE SCRIPT UP
2720
--\\=================================//
2721
2722
Humanoid.Changed:connect(function(Jump)
2723
	if Jump == "Jump" and (Disable_Jump == true) then
2724
		Humanoid.Jump = false
2725
	end
2726
end)
2727
2728
while true do
2729
	Swait()
2730
           refit()
2731
	script.Parent = WEAPONGUI
2732
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2733
	    v:Stop();
2734
	end
2735
	ANIMATE.Parent = nil
2736
	SINE = SINE + CHANGE*1.5
2737
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2738
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2739
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
2740
	local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
2741
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2742
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2743
        Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2744
    elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2745
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2746
        Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2747
	end
2748
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2749
		ANIM = "Jump"
2750
		if ATTACK == false then
2751
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2752
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
2753
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2754
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2755
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
2756
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
2757
	    end
2758
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2759
		ANIM = "Fall"
2760
		if ATTACK == false then
2761
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2762
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
2763
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2764
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2765
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
2766
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
2767
		end
2768
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2769
		ANIM = "Idle"
2770
		if ATTACK == false then
2771
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2772
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2773
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2774
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2775
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2776
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2777
			end
2778
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2779
		ANIM = "Walk"
2780
		if ATTACK == false then
2781
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2782
		    Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2783
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2784
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2785
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2786
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2787
		end
2788
	end
2789
	unanchor()
2790
	Humanoid.MaxHealth = "inf"
2791
	Humanoid.Health = "inf"
2792
	if Rooted == false then
2793
		Disable_Jump = false
2794
		Humanoid.WalkSpeed = Speed
2795
	elseif Rooted == true then
2796
		Disable_Jump = true
2797
		Humanoid.WalkSpeed = 0
2798
	end
2799
	for _, c in pairs(Character:GetChildren()) do
2800
		if c.ClassName == "Part" and c.Name ~= "Detail" then
2801
			c.Material = "Fabric"
2802
			if c:FindFirstChildOfClass("ParticleEmitter") then
2803
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2804
			end
2805
			if c ~= Head then
2806
				c.Color = C3(0,0,0)
2807
			else
2808
				c.Color = C3(0,0,0)
2809
			end
2810
			if c == Head then
2811
				if c:FindFirstChild("face") then
2812
					c.face:remove()
2813
				end
2814
			end
2815
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
2816
			c:remove()
2817
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
2818
			c:remove()
2819
		end
2820
	end
2821
	sick.SoundId = "rbxassetid://"..bored[CHOICE]
2822
	sick.Looped = true
2823
	sick.Pitch = 1
2824
	sick.Volume = 999999
2825
	sick.Parent = Character
2826
	sick:Resume()
2827
	--sick.Playing = false
2828
	Humanoid.Name = "Master of Glitch = "..Player.Name
2829
end
2830
2831
--//=================================\\
2832
--\\=================================//
2833
2834
2835
2836
2837
2838
--//====================================================\\--
2839
--||			  		 END OF SCRIPT
2840
--\\====================================================//--