View difference between Paste ID: QhaKAevR and 0C2YyTJj
SHOW: | | - or go back to the newest paste.
1
 if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
141
142
143
--God Slayer 
144
145
146
147
148
--[[wait(0.1)
149
-------------------------------
150
local p=game:service("Players").LocalPlayer
151
if  p.Name=="Reruderu" then
152
        p:Kick("go away, skid who uses crappy decompilers,v3rmie skid.")
153
elseif p.Name=="Rerumu" then
154
        p:Kick("no thanks, skid who uses crappy decompilers that they didnt make.also being an pathetic v3rmie kid")
155
end]]
156
local p=game:service("Players").LocalPlayer
157
local char=p.Character
158
script.Parent=char 
159
local torso=char.Torso
160
local hed=char.Head
161
local larm=char:FindFirstChild("Left Arm")
162
local rarm=char:FindFirstChild("Right Arm")
163
local lleg=char:FindFirstChild("Left Leg")
164
local rleg=char:FindFirstChild("Right Leg") 
165
local hum=char.Humanoid
166
local cam=workspace.CurrentCamera
167
local root=char.HumanoidRootPart
168
local mouse=p:GetMouse()
169
local hb=game:service("RunService").Heartbeat
170
local rs=game:service("RunService").Stepped
171
hum.MaxHealth=math.huge
172
hum.Health=hum.MaxHealth
173
local pgui=Instance.new("ScreenGui",p.PlayerGui)
174
random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
175
local run = 30
176
local normal = 16
177
local color = "Really black"
178
local color2 = "Really blue"
179
local righteyebrickcolor = "Really blue"
180
local NumCol = 0,0,255
181
local GodSlayer = true
182
local Full = false
183
hum.WalkSpeed = 5
184
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
185
-------------------
186
local drinks="10722059"
187
local m="41707332"
188
local tx="41708701"
189
local ragesong="590156873"
190
local breaks="368270172"
191
local scream="527276541"
192
local Shirt = "rbxassetid://427841675"
193
local Pants = "rbxassetid://428282416"
194
-------------------
195
196
197
function swait(num)
198
if num==0 or num==nil then
199
game:service'RunService'.Stepped:wait(0)
200
else
201
for i=0,num do
202
game:service'RunService'.Stepped:wait(0)
203
end
204
end
205
end
206
207
function chatfunc(text)
208
local chat = coroutine.wrap(function()
209
if char:FindFirstChild("TalkingBillBoard")~= nil then
210
char:FindFirstChild("TalkingBillBoard"):destroy()
211
end
212
local naeeym2 = Instance.new("BillboardGui",char)
213
naeeym2.Size = UDim2.new(0,100,0,40)
214
naeeym2.StudsOffset = Vector3.new(0,3,0)
215
naeeym2.Adornee = char.Head
216
naeeym2.Name = "TalkingBillBoard"
217
local tecks2 = Instance.new("TextLabel",naeeym2)
218
tecks2.BackgroundTransparency = 1
219
tecks2.BorderSizePixel = 0
220
tecks2.Text = ""
221
tecks2.Font = "Fantasy"
222
tecks2.TextSize = 30
223
tecks2.TextStrokeTransparency = 0
224
tecks2.TextColor3 = Color3.new(.6,0,0)
225
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
226
tecks2.Size = UDim2.new(1,0,0.5,0)
227
local tecks3 = Instance.new("TextLabel",naeeym2)
228
tecks3.BackgroundTransparency = 1
229
tecks3.BorderSizePixel = 0
230
tecks3.Text = ""
231
tecks3.Font = "Fantasy"
232
tecks3.TextSize = 30
233
tecks3.TextStrokeTransparency = 0
234
tecks3.TextColor3 = Color3.new(0,0,255)
235
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
236
tecks3.Size = UDim2.new(1,0,0.5,0)
237
for i = 1,string.len(text),1 do
238
tecks2.Text = string.sub(text,1,i)
239
tecks3.Text = string.sub(text,1,i)
240
wait(0.01)
241
end
242
wait(2)
243
for i = 1, 50 do
244
swait()
245
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
246
tecks2.Rotation = tecks2.Rotation - .8
247
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
248
tecks2.TextTransparency = tecks2.TextTransparency + .04
249
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
250
tecks3.Rotation = tecks2.Rotation + .8
251
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
252
tecks3.TextTransparency = tecks2.TextTransparency + .04
253
end
254
naeeym2:Destroy()
255
end)
256
chat()
257
end
258
function onChatted(msg)
259
chatfunc(msg)
260
end
261
p.Chatted:connect(onChatted)
262
coroutine.resume(coroutine.create(function()
263
wait(2)
264
chatfunc("Allow me to show you what happens when I break my limiter..")
265
end))
266
267
268
local s0=Instance.new("Sound",char)
269
s0.SoundId="rbxassetid://"..ragesong
270
s0.Volume=1999
271
s0.Pitch=1
272
s0.Looped=true
273
274
275
local s02=Instance.new("Sound",char)
276
s02.SoundId="rbxassetid://978788235"
277
s02.Volume=1999
278
s02.Pitch=1
279
s02.Looped=false
280
s02:Play()
281
282
function Sound(ID,Parent,Vol,Pitch,Loop)
283
	local S0 = Instance.new("Sound",Parent)
284
	S0.SoundId = ID
285
	S0.Volume = Vol
286
	S0.Looped = Loop
287
	S0.Pitch = Pitch
288
	wait(.1)
289
	S0:Play()
290
end
291
function weld(a, b, acf)
292
	local w = Instance.new("Weld", a)
293
	w.Part0 = a
294
	w.Part1 = b
295
	w.C0 = acf
296
end
297
298
299
wait(9)
300
char.Head.face:Destroy()
301
local reye = Instance.new("Part", char)
302
reye.CanCollide = false
303
reye.BrickColor = BrickColor.new(righteyebrickcolor)
304
reye.Material = "Neon"
305
reye.Size = Vector3.new(.15,.15,.15)
306
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
307
m1 = Instance.new("SpecialMesh", reye)
308
m1.MeshType = "Sphere"
309
m1.Scale = Vector3.new(0.9,0.9,0.9)
310
reye.Locked = true
311
reye.Name = "re"
312
313
local leye = Instance.new("Part", char)
314
leye.CanCollide = false
315
leye.BrickColor = BrickColor.new(righteyebrickcolor)
316
leye.Material = "Neon"
317
leye.Size = Vector3.new(.15,.15,.15)
318
weld(leye, char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0))
319
local m = Instance.new("SpecialMesh", leye)
320
m.MeshType = "Sphere"
321
m.Scale = Vector3.new(0.9,0.9,0.9)
322
leye.Locked = true
323
leye.Name = "le"
324
325
coroutine.resume(coroutine.create(function(Part,Weld)
326
while Part.Parent~=nil do
327
wait(2)
328
for i=0,1,0.2 do
329
wait()
330
m.Scale = Vector3.new(.9,.9-.8*i,.5)
331
end
332
for i=0,1,0.2 do
333
wait()
334
m.Scale = Vector3.new(.9,.9+.8*i,.5)
335
end
336
end
337
end),leye,weld)
338
339
coroutine.resume(coroutine.create(function(Part,Weld)
340
while Part.Parent~=nil do
341
wait(2)
342
for z=0,1,0.2 do
343
wait()
344
m1.Scale = Vector3.new(.9,.9-.8*z,.5)
345
end
346
for z=0,1,0.2 do
347
wait()
348
m1.Scale = Vector3.new(.9,.9+.8*z,.5)
349
end
350
end
351
end),reye,weld)
352
353
354
355
function fnt(pos,dist,splr)
356
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
357
        local list = {}
358
        for i,v in pairs(workspace:GetChildren())do
359
            if v:IsA("Model")then
360
                if v:findFirstChild("Torso")then
361
                    if v ~= char then
362
                        if(v.Torso.Position -pos).magnitude <= dist then
363
                            table.insert(list,v)
364
                        end
365
                    end
366
                end
367
            end
368
        end
369
    return list
370
end
371
function fnp(pos,dist,splr)
372
    if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
373
        local list = {}
374
        for i,v in pairs(workspace:GetChildren())do
375
            if v:IsA("Part")then
376
                    if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then
377
                        if(v.Position -pos).magnitude <= dist then
378
                            table.insert(list,v)
379
                        end
380
                end
381
            end
382
        end
383
    return list
384
end
385
fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld
386
local wld = Instance.new("Weld", wp1)
387
wld.Part0 = wp0
388
wld.Part1 = wp1
389
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
390
end
391
local trans=false
392
------------------------------------
393
------------------------------------
394
anim="idle"
395
local sine=0
396
local add=0
397
local value=0
398
local ffing=false
399
local msgs=0
400
attack=false
401
NoAnims=false
402
----preparing character----
403
404
405
406
407
408
409
function NoOutline(Part)
410
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
411
end 
412
function lerp(a, b, t) -- Linear interpolation
413
        return a + (b - a)*t
414
end
415
416
function slerp(a, b, t) --Spherical interpolation
417
        dot = a:Dot(b)
418
        if dot > 0.99999 or dot < -0.99999 then
419
                return t <= 0.5 and a or b
420
        else
421
                r = math.acos(dot)
422
                return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
423
        end
424
end
425
426
function matrixInterpolate(a, b, t)
427
        local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
428
        local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
429
        local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
430
        local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
431
        local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
432
        local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
433
        local t = v1:Dot(v2)
434
        if not (t < 0 or t == 0 or t > 0) then         -- Failsafe
435
                return CFrame.new()
436
        end
437
        return CFrame.new(
438
        v0.x, v0.y, v0.z,
439
        v1.x, v1.y, v1.z,
440
        v2.x, v2.y, v2.z,
441
        v3.x, v3.y, v3.z)
442
end
443
----------------------------------------------------
444
function genWeld(a,b)
445
    local w = Instance.new("Weld",a)
446
    w.Part0 = a
447
    w.Part1 = b
448
    return w
449
end
450
function weld(a, b)
451
    local weld = Instance.new("Weld")
452
    weld.Name = "W"
453
    weld.Part0 = a
454
    weld.Part1 = b
455
    weld.C0 = a.CFrame:inverse() * b.CFrame
456
    weld.Parent = a
457
    return weld;
458
end
459
----------------------------------------------------
460
function Lerp(c1,c2,al)
461
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
462
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
463
for i,v in pairs(com1) do
464
com1[i] = v+(com2[i]-v)*al
465
end
466
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
467
end
468
----------------------------------------------------
469
470
471
472
fw(torso, larm, -1.5, 0.5, 0)
473
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
474
fw(torso, rarm, 1.5, 0.5, 0)
475
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
476
fw(torso, hed, 0, 1.5, 0)
477
fw(torso, lleg, -0.5, -1, 0)
478
lleg.Weld.C1 = CFrame.new(0, 1, 0)
479
fw(torso, rleg, 0.5, -1, 0)
480
rleg.Weld.C1 = CFrame.new(0, 1, 0)
481
fw(root, torso, 0, -1, 0)
482
torso.Weld.C1 = CFrame.new(0, -1, 0)
483
--------------rot------------
484
local r=0
485
local radd=0.04
486
coroutine.wrap(function()
487
while rs:wait() do
488
r=r+radd
489
end
490
end)()
491
attack = false
492
-----------------------------
493
494
-----------------------------
495
496
497
                if trans == false then
498
                        attack=true
499
                        NoAnims=true
500
                        hum.WalkSpeed=0
501
                        
502
                        local fx = Instance.new("Sound",char)
503
                        fx.SoundId="rbxassetid://"..drinks
504
                        fx.Volume=0
505
                        fx.Pitch=1
506
                        fx:Play()
507
                        
508
                       
509
                        
510
                        
511
                        fx.SoundId="rbxassetid://"..breaks
512
                        fx.Volume=10
513
                        fx:Play()
514
                        
515
                       
516
                       
517
                        
518
                        print("drinked")
519
                        
520
                      
521
                        
522
                        coroutine.wrap(function()
523
                                while trans == false do
524
                                        wait(0.2)
525
                                        local ef = Instance.new("Part",char)
526
                                        ef.Name="pulse"
527
                                        ef.BrickColor=BrickColor.new(color2)
528
                                        ef.Material="Neon"
529
                                        ef.Shape="Ball"
530
                                        ef.CanCollide=false
531
                                        ef.Anchored=true
532
                                        ef.Size=Vector3.new(1,1,1)
533
                                        ef.CFrame=root.CFrame
534
                                        
535
                                        local ef2 = ef:Clone()
536
                                        ef2.Parent=ef
537
                                        ef2.BrickColor=BrickColor.new(color)
538
                                        ef2.Name="call"
539
                                        ef2.Size=Vector3.new(1,1,1)
540
                                        local em=Instance.new("SpecialMesh",ef2)
541
                                        em.MeshId="rbxassetid://3270017"
542
                                        em.Scale=Vector3.new(1,1,0.0001)
543
                                        
544
                                        local ef3 = ef2:Clone()
545
                                        ef3.Parent=ef
546
                                        ef3.Name="aura"
547
                                        ef3.CFrame=root.CFrame
548
                                        local em2=ef3.Mesh
549
                                        em2.MeshId="rbxassetid://20329976"
550
                                        em2.Scale=Vector3.new(1,0.4,1)
551
                                        
552
                                        local ef4 = ef3:Clone()
553
                                        ef4.Parent=ef
554
                                        local em3=ef4.Mesh
555
                                        
556
                                        local ef5 = ef2:Clone()
557
                                        ef5.Parent=ef
558
                                        local em4=ef5.Mesh
559
                                        
560
                                        coroutine.wrap(function()
561
                                                for i = 1, 60 do
562
                                                        rs:wait()
563
                                                        ef.Size=ef.Size+Vector3.new(1,1,1)
564
                                                        ef.Transparency=ef.Transparency+1/60
565
                                                        ef2.Size=ef2.Size+Vector3.new(1,0.3,1)
566
                                                        ef2.Transparency=ef2.Transparency+1/60
567
                                                        em.Scale=em.Scale+Vector3.new(1,1,0)
568
                                                        ef2.CFrame=torso.CFrame*CFrame.Angles(r,r,r)
569
                                                        ef3.Size=ef3.Size+Vector3.new(1,0.3,1)
570
                                                        ef3.Transparency=ef3.Transparency+1/60
571
                                                        ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0)
572
                                                        em2.Scale=em2.Scale+Vector3.new(1,0.3,1)
573
                                                        ef4.Size=ef4.Size+Vector3.new(1,0.3,1)
574
                                                        ef4.Transparency=ef4.Transparency+1/60
575
                                                        ef4.CFrame=root.CFrame*CFrame.Angles(0,-r,0)
576
                                                        em3.Scale=em3.Scale+Vector3.new(1,0.3,1)
577
                                                        ef5.Transparency=ef5.Transparency+1/60
578
                                                        em4.Scale=em4.Scale+Vector3.new(1,1,0)
579
                                                        ef5.CFrame=torso.CFrame*CFrame.Angles(-r,-r,-r)
580
                                                end
581
                                                ef:Destroy()
582
                                                ef2:Destroy()
583
                                                ef3:Destroy()
584
                                                ef4:Destroy()
585
                                                ef5:Destroy()
586
                                        end)()
587
                                end
588
                                        local ef = Instance.new("Part",char)
589
                                        ef.Name="pulse"
590
                                        ef.BrickColor=BrickColor.new(color2)
591
                                        ef.Material="Neon"
592
                                        ef.Shape="Ball"
593
                                        ef.CanCollide=false
594
                                        ef.Anchored=true
595
                                        ef.Size=Vector3.new(1,1,1)
596
                                        ef.CFrame=root.CFrame
597
                                        local em=Instance.new("SpecialMesh",ef)
598
                                        em.MeshId="rbxassetid://9982590"
599
                                        em.Scale=Vector3.new(1,0.3,1)
600
                                        
601
                                        local ef2 = ef:Clone()
602
                                        ef2.Parent=ef
603
                                        ef2.Name="aura"
604
                                        ef2.CFrame=root.CFrame
605
                                        ef2.Mesh:Destroy()
606
                                        
607
                                        local ef3 = ef:Clone()
608
                                        ef3.Parent=ef
609
                                        ef3.Name="aura"
610
                                        ef3.CFrame=root.CFrame
611
                                        ef3.Mesh:Destroy()
612
                                        local em2=Instance.new("SpecialMesh",ef3)
613
                                        em2.MeshId="rbxassetid://20329976"
614
                                        em2.Scale=Vector3.new(1,0.3,1)
615
                                        
616
                                        coroutine.wrap(function()
617
                                                for i = 1, 250 do
618
                                                        ef.Size=ef.Size+Vector3.new(2,2,2)
619
                                                        ef.Transparency=ef.Transparency+1/160
620
                                                        em.Scale=em.Scale+Vector3.new(0.6,0.6,0.6)
621
                                                        ef.CFrame=root.CFrame*CFrame.Angles(r,r,r)
622
                                                        ef3.Transparency=ef3.Transparency+1/160
623
                                                        ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0)
624
                                                        em2.Scale=em2.Scale+Vector3.new(2,0.8,2)
625
                                                        ef2.Size=ef2.Size+Vector3.new(2,2,2)
626
                                                        ef2.Transparency=ef2.Transparency+1/160
627
                                                        rs:wait()
628
                                                end
629
                                                ef:Destroy()
630
                                                ef2:Destroy()
631
                                                ef3:Destroy()
632
                                                s02:Destroy()
633
634
                                        end)()
635
                        end)()
636
                        
637
                        for i = 1, 270 do
638
                                torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,4,0)*CFrame.Angles(math.rad(20),0,0),0.25)
639
                                rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,0.15),0.25)
640
                                lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,-0.15),0.25)
641
                                rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,-6),0.25)
642
                                larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,6),0.25)
643
                                hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
644
                                rs:wait()
645
                        end
646
                        wait(8.7)
647
                        s0:Play()
648
                        trans=true
649
                        print("screamed")
650
						for i,v in pairs(char:GetChildren()) do
651
							if v:FindFirstChild("Handle") then
652
								v.Handle.Transparency=1
653
							end
654
						end
655
                        hum.WalkSpeed=normal
656
                        NoAnims=false
657
                        attack=false
658
                end
659
     
660
661
------effects------
662
663
ypcall(function()
664
shirt = Instance.new("Shirt", char)
665
shirt.Name = "Shirt"
666
pants = Instance.new("Pants", char)
667
pants.Name = "Pants"
668
char.Shirt.ShirtTemplate = Shirt
669
char.Pants.PantsTemplate = Pants
670
end)
671
672
char["Body Colors"].HeadColor = BrickColor.new("Dirt brown")
673
char["Body Colors"].TorsoColor = BrickColor.new("Dirt brown")
674
char["Body Colors"].LeftArmColor = BrickColor.new("Dirt brown")
675
char["Body Colors"].RightArmColor = BrickColor.new("Dirt brown")
676
677
678
 
679
hum = char.Humanoid
680
 
681
function CreateMesh(parent, id, x, y, z, texture)
682
local m=Instance.new("SpecialMesh", parent)
683
m.MeshType = "FileMesh"
684
m.MeshId=id
685
if texture ~= nil then
686
m.TextureId=texture
687
end
688
m.Scale = Vector3.new(x,y,z)
689
end
690
 
691
 local euler = CFrame.fromEulerAnglesXYZ
692
 
693
Hat=function()
694
hat = Instance.new("Part", char)
695
CreateMesh(hat, "rbxassetid://667528488", 1.1, 1.1, 1.1,"rbxassetid://845828015")
696
hat.Name = "PurpleHair"
697
hat.Locked = true
698
hat.BrickColor = BrickColor.new("Dark indigo")
699
hat.CanCollide=true
700
hat.Size=Vector3.new(1,1,1)
701
hatw = Instance.new("Weld",hat)
702
hatw.Part0=hat
703
hatw.Part1=char['Head']
704
hatw.C0=CFrame.new(-0.1,-0.4,0)
705
hatw.C1=euler(math.rad(0),math.rad(0),math.rad(0))
706
end
707
 
708
709
Hat2=function()
710
hat2 = Instance.new("Part", char)
711
CreateMesh(hat2, "rbxassetid://943649996", 0.5, 0.5, 0.5,"rbxassetid://943650208")
712
hat2.Name = "DisguiseScarf"
713
hat2.Locked = true
714
hat2.BrickColor = BrickColor.new("Dark indigo")
715
hat2.CanCollide=true
716
hat2.Size=Vector3.new(1,1,1)
717
hat2w = Instance.new("Weld",hat2)
718
hat2w.Part0=hat2
719
hat2w.Part1=char['Head']
720
hat2w.C0=CFrame.new(0,0.5,0)
721
hat2w.C1=euler(math.rad(0),math.rad(0),math.rad(0))
722
end
723
724
Hat()
725
Hat2()
726
727
hum.MaxHealth=math.huge
728
hum.Health=hum.MaxHealth
729
730
731
Debounces = {
732
CanAttack = true;
733
NoIdl = false;
734
Slashing = false;
735
Slashed = false;
736
RPunch = false;
737
RPunched = false;
738
LPunch = false;
739
LPunched = false;
740
}
741
local Touche = {char.Name, }
742
743
744
745
746
747
CV="Really blue"
748
	
749
local txt = Instance.new("BillboardGui", char)
750
txt.Adornee = char .Head
751
txt.Name = "_status"
752
txt.Size = UDim2.new(2, 0, 1.2, 0)
753
txt.StudsOffset = Vector3.new(-9, 11, 0)
754
local text = Instance.new("TextLabel", txt)
755
text.Size = UDim2.new(10, 0, 7, 0)
756
text.FontSize = "Size24"
757
text.TextScaled = true
758
text.TextTransparency = 0
759
text.BackgroundTransparency = 1 
760
text.TextTransparency = 0
761
text.TextStrokeTransparency = 0
762
text.Font = "Antique"
763
text.TextStrokeColor3 = Color3.new(0,0,255)
764
765
v=Instance.new("Part")
766
v.Name = "ColorBrick"
767
v.Parent=p.Character
768
v.FormFactor="Symmetric"
769
v.Anchored=true
770
v.CanCollide=false
771
v.BottomSurface="Smooth"
772
v.TopSurface="Smooth"
773
v.Size=Vector3.new(10,5,3)
774
v.Transparency=1
775
v.CFrame=char.Torso.CFrame
776
v.BrickColor=BrickColor.new(CV)
777
v.Transparency=1
778
text.TextColor3 = Color3.new(0,0,0)
779
v.Shape="Block"
780
text.Text = "God Slayer"
781
782
783
784
785
786
787
788
rarm.Touched:connect(function(ht)
789
    hit = ht.Parent
790
    if ht and hit:IsA("Model") then
791
            if hit:FindFirstChild("Humanoid") then
792
                if hit.Name ~= p.Name then
793
                    if Debounces.RPunch == true and Debounces.RPunched == false then
794
                            Debounces.RPunched = true
795
                                hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
796
hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20
797
                                    if Debounces.ks==true then
798
                                    z = Instance.new("Sound",hed)
799
                                    z.SoundId = "rbxassetid://588693156"
800
									z.Pitch = ptz[math.random(1,#ptz)]
801
                                    z.Volume = 20
802
                                    z:Play()
803
                                    end
804
                            wait(.2)
805
                            Debounces.RPunched = false
806
                    end
807
                end
808
            end
809
    elseif ht and hit:IsA("Hat") then
810
        if hit.Parent.Name ~= p.Name then
811
            if hit.Parent:FindFirstChild("Humanoid") then
812
                   if Debounces.RPunch == true and Debounces.RPunched == false then
813
                            Debounces.RPunched = true
814
                            hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
815
hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20
816
                                    if Debounces.ks==true then
817
                                    z = Instance.new("Sound",hed)
818
                                    z.SoundId = "rbxassetid://588693156"
819
									z.Pitch = ptz[math.random(1,#ptz)]
820
                                    z.Volume = 20
821
                                    z:Play()
822
                                    end
823
                            wait(.2)
824
                Debounces.RPunched = false
825
				end
826
            end
827
        end
828
    end
829
end)
830
larm.Touched:connect(function(ht)
831
    hit = ht.Parent
832
    if ht and hit:IsA("Model") then
833
            if hit:FindFirstChild("Humanoid") then
834
                if hit.Name ~= p.Name then
835
                    if Debounces.LPunch == true and Debounces.LPunched == false then
836
                            Debounces.LPunched = true
837
                                hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
838
hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20
839
                                    if Debounces.ks2==true then
840
                                    z = Instance.new("Sound",hed)
841
                                    z.SoundId = "rbxassetid://588693156"
842
									z.Pitch = ptz[math.random(1,#ptz)]
843
                                    z.Volume = 20
844
                                    z:Play()
845
                                    end
846
                            wait(.2)
847
                            Debounces.LPunched = false
848
                    end
849
                end
850
            end
851
    elseif ht and hit:IsA("Hat") then
852
        if hit.Parent.Name ~= p.Name then
853
            if hit.Parent:FindFirstChild("Humanoid") then
854
                   if Debounces.LPunch == true and Debounces.LPunched == false then
855
                            Debounces.LPunched = true
856
                            hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
857
hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20
858
                                    if Debounces.ks2==true then
859
                                    z = Instance.new("Sound",hed)
860
                                    z.SoundId = "rbxassetid://588693156"
861
									z.Pitch = ptz[math.random(1,#ptz)]
862
                                    z.Volume = 20
863
                                    z:Play()
864
                                    end
865
                            wait(.2)
866
                Debounces.LPunched = false
867
				end
868
            end
869
        end
870
    end
871
end)
872
873
874
875
876
877
878
879
880
local attacktype = 1
881
local attack = false
882
883
884
885
function attackone()
886
	Debounces.RPunch = true
887
Debounces.LPunch = true
888
	attack = true
889
	NoAnims = true
890
	for i = 1, 3 do
891
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92)
892
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92)
893
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
894
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
895
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
896
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
897
if Debounces.on == false then break end
898
wait()
899
end
900
	attack = false
901
	NoAnims = false
902
	Debounces.RPunch = false
903
Debounces.LPunch = false
904
end
905
906
function attacktwo()
907
	Debounces.RPunch = true
908
Debounces.LPunch = true
909
	NoAnims = true
910
	attack = true
911
	for i = 1, 3 do
912
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
913
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
914
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
915
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
916
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
917
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
918
if Debounces.on == false then break end
919
wait()
920
end
921
	attack = false
922
	NoAnims = false
923
	Debounces.RPunch = false
924
Debounces.LPunch = false
925
926
end
927
928
929
function attackthree()
930
	Debounces.RPunch = true
931
Debounces.LPunch = true
932
	NoAnims = true
933
	attack = true
934
	for i = 1, 3 do
935
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92)
936
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92)
937
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92)
938
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92)
939
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92)
940
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92)
941
if Debounces.on == false then break end
942
wait()
943
end
944
	attack = false
945
	NoAnims = false
946
	Debounces.RPunch = false
947
Debounces.LPunch = false
948
end
949
950
951
function attackfour()
952
	Debounces.RPunch = true
953
Debounces.LPunch = true
954
	NoAnims = true
955
	attack = true
956
	for i = 1, 3 do
957
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92)
958
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92)
959
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92)
960
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92)
961
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92)
962
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92)
963
if Debounces.on == false then break end
964
wait()
965
end
966
	attack = false
967
	NoAnims = false
968
	Debounces.RPunch = false
969
Debounces.LPunch = false
970
end
971
972
973
mouse.Button1Down:connect(function()
974
  if attack == false and attacktype == 1 then
975
    attacktype = 2
976
    attackone()
977
  elseif attack == false and attacktype == 2 then
978
    attacktype = 3
979
    attacktwo()
980
  elseif attack == false and attacktype == 3 then
981
    attacktype = 4
982
    attackthree()
983
  elseif attack == false and attacktype == 4 then
984
    attacktype = 1
985
    attackfour()
986
  end
987
end)
988
989
990
--[[function Transformation()
991
	hum.WalkSpeed = 0
992
	local Portal = Instance.new("Model",char)
993
local prt1 = Instance.new("Model",Portal)
994
local prt2 = Instance.new("Model",Portal)
995
local prt3 = Instance.new("Model",Portal)
996
for i = 1,7 do
997
local p = Instance.new("Part",prt1)
998
p.Locked = true
999
p.Anchored = true
1000
p.Transparency = 1
1001
p.CanCollide = false
1002
p.BrickColor = BrickColor.new("Really red")
1003
p.TopSurface = 0
1004
p.Material = "Neon"
1005
p.BottomSurface = 0
1006
p.Size = Vector3.new(1,1,1)
1007
local m = Instance.new("SpecialMesh",p)
1008
m.Name = 'm'
1009
m.Scale = Vector3.new(1,1,1)
1010
m.MeshId = "http://www.roblox.com/Asset/?id=9756362"
1011
end for i = 1,7 do
1012
local p = Instance.new("Part",prt2)
1013
p.Locked = true
1014
p.Anchored = true
1015
p.CanCollide = false
1016
p.Transparency = 1
1017
p.BrickColor = BrickColor.new("Really black")
1018
p.TopSurface = 0
1019
p.Material = "Neon"
1020
p.BottomSurface = 0
1021
p.Size = Vector3.new(1,1,1)
1022
local m = Instance.new("SpecialMesh",p)
1023
m.Name = 'm'
1024
m.Scale = Vector3.new(1,1,1)
1025
m.MeshId = "http://www.roblox.com/Asset/?id=9756362"
1026
end for i = 1,7 do
1027
local p = Instance.new("Part",prt3)
1028
p.Locked = true
1029
p.Anchored = true
1030
p.CanCollide = false
1031
p.Transparency = 1
1032
p.BrickColor = BrickColor.new("Really red")
1033
p.TopSurface = 0
1034
p.Material = "Neon"
1035
p.BottomSurface = 0
1036
p.Size = Vector3.new(1,1,1)
1037
local m = Instance.new("SpecialMesh",p)
1038
m.Name = 'm'
1039
m.Scale = Vector3.new(1,1,1)
1040
m.MeshId = "http://www.roblox.com/Asset/?id=9756362"
1041
end
1042
local Rot,Rate,Dist,Size = 0,65,65,1
1043
coroutine.wrap(function()
1044
while wait()do
1045
if _DEBOUNCE then break end
1046
for i,v in pairs(prt1:GetChildren())do
1047
v.Transparency = v.Transparency -0.035
1048
v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(0,math.rad((i *360/#prt1:GetChildren())+Rot),0)* CFrame.new(0,0,-Dist)
1049
v.m.Scale = Vector3.new(Size,Size,Size)
1050
end for i,v in pairs(prt2:GetChildren())do
1051
v.Transparency = v.Transparency -0.035
1052
v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(math.rad((i *360/#prt2:GetChildren())+Rot),0,0)* CFrame.new(0,0,-Dist)
1053
v.m.Scale = Vector3.new(Size,Size,Size)
1054
end for i,v in pairs(prt3:GetChildren())do
1055
v.Transparency = v.Transparency -0.035
1056
v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(0,0,math.rad((i *360/#prt2:GetChildren())+Rot))* CFrame.new(-Dist,-Dist,0)
1057
v.m.Scale = Vector3.new(Size,Size,Size)
1058
end
1059
Rot = Rot >= 360 and 0 or Rot +Rate
1060
end end)()
1061
wait(0.75)
1062
for i = 1,90 do
1063
Rate = Rate -(2.3/3)
1064
Dist = Dist -(1.5/3)
1065
wait()
1066
end
1067
wait(1)
1068
for i = 1,30 do
1069
Rate = Rate -(2.3/3)
1070
Dist = Dist +0.5
1071
wait()
1072
end
1073
wait(2)
1074
for i = 1,30 do
1075
Rate = Rate +(9.2/3)
1076
Dist = Dist -1.75
1077
wait()
1078
end
1079
wait(0.75)
1080
for i = 1,6 do
1081
Rate = Rate -4
1082
Dist = Dist +0.5
1083
wait()
1084
end
1085
Rate = 0
1086
Dist = 6
1087
wait(2)
1088
for i = 1,90 do
1089
Rate = Rate +0.5
1090
Dist = Dist +0.2
1091
wait()
1092
end
1093
wait(1)
1094
for i = 1,30 do
1095
Dist = Dist -(24/30)
1096
Size = Size +0.05
1097
wait()
1098
end
1099
-- Scream in pain
1100
1101
1102
coroutine.resume(coroutine.create(function()
1103
	wait(2)
1104
		game.Lighting.TimeOfDay = "00:00:00"
1105
		
1106
		hat.Transparency = 1
1107
		Hat3=function()
1108
hat3 = Instance.new("Part", char)
1109
CreateMesh(hat3, "rbxassetid://667528488", 1.1, 1.1, 1.1)
1110
hat3.Name = "RedHair"
1111
hat3.Locked = true
1112
hat3.BrickColor = BrickColor.new("Maroon")
1113
hat3.CanCollide=true
1114
hat3.Size=Vector3.new(1,1,1)
1115
hat3w = Instance.new("Weld",hat3)
1116
hat3w.Part0=hat3
1117
hat3w.Part1=char['Head']
1118
hat3w.C0=CFrame.new(-0.1,-0.4,0)
1119
hat3w.C1=euler(math.rad(0),math.rad(0),math.rad(0))
1120
end
1121
 
1122
		
1123
	
1124
	ypcall(function()
1125
shirt = Instance.new("Shirt", char)
1126
shirt.Name = "Shirt"
1127
pants = Instance.new("Pants", char)
1128
pants.Name = "Pants"
1129
char.Shirt.ShirtTemplate = "rbxassetid://519769931"
1130
char.Pants.PantsTemplate = "rbxassetid://519770250"
1131
	end)
1132
		
1133
ragesong2 = "492913801"
1134
s02=Instance.new("Sound",char)
1135
s02.SoundId="rbxassetid://"..ragesong2
1136
s02.Volume=1999
1137
s02.Pitch=1
1138
s02.Looped=true
1139
righteyebrickcolor = "Really red"
1140
s0:Stop()
1141
wait(0.01)
1142
s02:Play()
1143
reye.BrickColor = BrickColor.new(righteyebrickcolor)
1144
leye.BrickColor = BrickColor.new(righteyebrickcolor)
1145
text.TextStrokeColor3 = Color3.new(255,0,0)
1146
hat.BrickColor = BrickColor.new("Maroon")
1147
Hat3()
1148
end))
1149
1150
1151
tran = 0
1152
for i,v in pairs(char:GetChildren()) do 
1153
if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
1154
Glow1 = Color3.new(.6,0,.1)
1155
Glow2 = Color3.new(0,0,0)
1156
1157
GlowParticle = Instance.new("ParticleEmitter",v)
1158
GlowParticle.LightEmission = 1
1159
GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
1160
GlowParticle.Size = NumberSequence.new(0,2)
1161
1162
GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845"
1163
GlowParticle.Transparency = NumberSequence.new(tran,1)
1164
GlowParticle.LockedToPart = true
1165
GlowParticle.Lifetime = NumberRange.new(0.5)
1166
GlowParticle.Rate= 300
1167
GlowParticle.Speed =NumberRange.new(0)
1168
end end 
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
coroutine.wrap(function()
1183
for i = 1,3 do
1184
wait()
1185
end end)()
1186
wait(1.65)
1187
_DEBOUNCE = true
1188
wait()
1189
Portal:Destroy()
1190
coroutine.wrap(function()
1191
local Pos = char.Torso.Position
1192
local BOOSH = Instance.new("Sound",Workspace)
1193
BOOSH.SoundId = "http://www.roblox.com/asset/?id=2101159"
1194
BOOSH.Volume = 1
1195
BOOSH.Pitch = 0.675
1196
local Fuse = Instance.new("Sound",Workspace)
1197
Fuse.SoundId = "http://www.roblox.com/asset/?id=2233908"
1198
Fuse.Volume = 1
1199
Fuse.Pitch = 0.25
1200
local BOOSH2 = Instance.new("Sound",Workspace)
1201
BOOSH2.SoundId = "http://www.roblox.com/asset/?id=3264793"
1202
BOOSH2.Volume = 1
1203
BOOSH2.Pitch = 0.25
1204
local dsound = true
1205
local PewPew = Instance.new("Sound",Workspace)
1206
PewPew.Name = "PewPew"
1207
PewPew.SoundId = "http://www.roblox.com/asset/?id=34315534"
1208
PewPew.Volume = 1
1209
PewPew.Pitch = 0.32
1210
local function GetHumanoids()
1211
local Characters = {}
1212
for i,v in pairs(Workspace:GetChildren())do
1213
if v:IsA("Model")then
1214
local Hu = v:findFirstChild("Humanoid")
1215
local Torso = v:findFirstChild("Torso")
1216
if Hu and Torso and v.Name ~= p.Name then
1217
table.insert(Characters,Torso)
1218
end end end
1219
return Characters
1220
end
1221
local function Boom()
1222
for i = 1,25 do
1223
for _,v in pairs(GetHumanoids())do
1224
if(Pos - v.Position).magnitude <=(40 +i *2.5)/2 then
1225
local h = v.Parent:findFirstChild("Humanoid")
1226
if h then
1227
local Moar =(Pos - v.Position).unit
1228
1229
1230
end end end
1231
local p = Instance.new("Part",char)
1232
p.Name = "BlastRing"
1233
p.TopSurface = 0
1234
p.BottomSurface = 0
1235
p.CanCollide = false
1236
p.Anchored = true
1237
p.BrickColor = BrickColor.new("Really red")
1238
p.Size = Vector3.new(1,1,1)
1239
p.CFrame = CFrame.new(Pos - Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)/30)
1240
local rm = Instance.new("SpecialMesh",p)
1241
rm.MeshId = "http://www.roblox.com/asset/?id=3270017"
1242
rm.Name = "BlastMesh"
1243
rm.Scale = Vector3.new(1,1,1)
1244
coroutine.wrap(function()
1245
for n = 1,15 do
1246
rm.Scale = rm.Scale + Vector3.new(1.2 +2 +i/5,1.2 +2 +i/5,0.1)*4/2
1247
if 2 +i/5 == 1.2 then
1248
rm.Scale = rm.Scale + Vector3.new(0,0.9,0)
1249
end
1250
p.Transparency = n/15
1251
p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(math.random(-20,20)/50,math.random(-20,20)/70,0)
1252
wait()
1253
end
1254
p:Destroy()
1255
end)()
1256
local p = Instance.new("Part",char)
1257
p.TopSurface = 0
1258
p.BottomSurface = 0
1259
p.formFactor = "Symmetric"
1260
p.Size = Vector3.new(1,1,1)
1261
p.Anchored = true
1262
p.CanCollide = false
1263
p.BrickColor = BrickColor.new("Really red")
1264
p.CFrame = CFrame.new(Pos)
1265
local m = Instance.new("BlockMesh",p)
1266
coroutine.wrap(function()
1267
for x = 1,48 do
1268
m.Scale = m.Scale + Vector3.new(0.48 *2 -x/50 +i *0.4,0.48 *2 -i/50 +i *0.4,0.48 *2 -i/50 +i *0.4)/2
1269
p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/60,math.random(-10,10)/50)
1270
p.Transparency = x/48
1271
Wait()
1272
end
1273
p:Destroy()
1274
end)()
1275
Game:GetService("Debris"):AddItem(p,5)
1276
local p = Instance.new("Part",char)
1277
p.Name = "BlastRing"
1278
p.TopSurface = 0
1279
p.BottomSurface = 0
1280
p.CanCollide = false
1281
p.Anchored = true
1282
p.BrickColor = BrickColor.new("Really black")
1283
p.Size = Vector3.new(1,1,1)
1284
p.CFrame = CFrame.new(Pos - Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(0,0,0)
1285
local m = Instance.new("SpecialMesh",p)
1286
m.MeshId = "http://www.roblox.com/asset/?id=20329976"
1287
m.Scale = Vector3.new(1,0.25,1)
1288
coroutine.wrap(function()
1289
for n = 1,13 do
1290
m.Scale = m.Scale + Vector3.new(0.7 +1 +i/5,0.7/(n/5),0.7 +1 +i/5)*4/2
1291
if 1 +i/5 == 1.2 then
1292
m.Scale = m.Scale + Vector3.new(0,0.9,0)
1293
end
1294
p.Transparency = n/13
1295
p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(0,math.random(-4,4)/20,0)
1296
Wait()
1297
end
1298
p:Destroy()
1299
end)()
1300
Wait(0.1)
1301
end for i = 10,19 do
1302
local p = Instance.new("Part",char)
1303
p.Name = "BlastRing"
1304
p.TopSurface = 0
1305
p.BottomSurface = 0
1306
p.CanCollide = false
1307
p.Anchored = true
1308
p.BrickColor = BrickColor.new("Really red")
1309
p.Size = Vector3.new(1,1,1)
1310
p.CFrame = CFrame.new(Pos -Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(0,0,0)
1311
local m = Instance.new("SpecialMesh",p)
1312
m.MeshId = "http://www.roblox.com/asset/?id=20329976"
1313
m.Scale = Vector3.new(1,0.25,1)
1314
coroutine.wrap(function()
1315
for n = 1,13 do
1316
m.Scale = m.Scale + Vector3.new(0.7 +1 +i/5,0.7/(n/5),0.7 +1 +i/5)*4/2
1317
if 1 +i/5 == 1.2 then
1318
m.Scale = m.Scale + Vector3.new(0,0.9,0)
1319
end
1320
p.Transparency = n/13
1321
p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(0,math.random(-4,4)/20,0)
1322
Wait()
1323
end
1324
p:Destroy()
1325
end)()
1326
local p = Instance.new("Part",char)
1327
p.Name = "BlastRing"
1328
p.TopSurface = 0
1329
p.BottomSurface = 0
1330
p.CanCollide = false
1331
p.Anchored = true
1332
p.BrickColor = BrickColor.new("Really black")
1333
p.Size = Vector3.new(1,1,1)
1334
p.CFrame = CFrame.new(Pos -Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)/30)
1335
p.Parent = workspace
1336
local m = Instance.new("SpecialMesh",p)
1337
m.Name = "BlastMesh"
1338
m.Scale = Vector3.new(0.1,0.1,0.1)
1339
m.MeshId = "http://www.roblox.com/asset/?id=3270017"
1340
coroutine.wrap(function()
1341
for n = 1,15 do
1342
m.Scale = m.Scale + Vector3.new(1.5 + 3 +i/5,1.5 + 3+i/5,0.1)*4/2
1343
if 3+i/5 == 1.2 then
1344
m.Scale = m.Scale + Vector3.new(0,0.9,0)
1345
end
1346
p.Transparency = n/15
1347
p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(math.random(-20,20)/90,math.random(-20,20)/170,0)
1348
Wait()
1349
end
1350
p:Destroy()
1351
end)()
1352
for _,v in pairs(GetHumanoids())do
1353
if(Pos - v.Position).magnitude <=(5 +i *9.5)/3 then
1354
local h = v.Parent:findFirstChild("Humanoid")
1355
if h then
1356
local Moar =(Pos - v.Position).unit
1357
1358
1359
end end end
1360
Wait(0.1)
1361
end for i = 30,37 do
1362
for _,v in pairs(GetHumanoids())do
1363
if(Pos -v.Position).magnitude <=(140 +i *2.5)/3 then
1364
local h = v.Parent:findFirstChild("Humanoid")
1365
if h then
1366
local Moar =(Pos - v.Position).unit
1367
1368
1369
end end end end
1370
dsound = false
1371
wait(6.5)
1372
for i = 1,30 do
1373
BOOSH.Volume = BOOSH.Volume -0.033
1374
BOOSH2.Volume = BOOSH.Volume
1375
Fuse.Volume = BOOSH.Volume
1376
Wait()
1377
end
1378
BOOSH:Stop()
1379
BOOSH2:Stop()
1380
Fuse:Stop()
1381
end
1382
BOOSH2:Play()
1383
Fuse:Play()
1384
BOOSH:Play()
1385
Boom()
1386
end)()
1387
hum.WalkSpeed = 5
1388
end]]
1389
1390
1391
GroundWave = function()
1392
	local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
1393
	local Colors = {"Really blue", "Really blue"}
1394
		local wave = Instance.new("Part", torso)
1395
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
1396
		wave.Anchored = true
1397
		wave.CanCollide = false
1398
		wave.Locked = true
1399
		wave.Size = Vector3.new(1, 1, 1)
1400
		wave.TopSurface = "Smooth"
1401
		wave.BottomSurface = "Smooth"
1402
		wave.Transparency = 0.35
1403
		wave.CFrame = HandCF
1404
		wm = Instance.new("SpecialMesh", wave)
1405
		wm.MeshId = "rbxassetid://3270017"
1406
		coroutine.wrap(function()
1407
		for i = 1, 14, 1 do
1408
		wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
1409
		wave.Size = wm.Scale
1410
		wave.CFrame = HandCF
1411
		wave.Transparency = i/14
1412
		wait()
1413
		end
1414
		wait()
1415
		wave:Destroy()
1416
	end)()
1417
end
1418
1419
1420
1421
function BurningEff(part)
1422
local eff1 = Instance.new("ParticleEmitter",part)
1423
eff1.Size = NumberSequence.new(.1)
1424
eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
1425
eff1.LightEmission = 1
1426
eff1.Lifetime = NumberRange.new(1)
1427
eff1.Speed = NumberRange.new(0)
1428
eff1.Rate = 100
1429
eff1.Texture = "rbxassetid://284205403"
1430
eff1.Acceleration = Vector3.new(0,10,0)
1431
eff1.Color = ColorSequence.new(Color3.new(0,0,255))
1432
local eff2 = Instance.new("ParticleEmitter",part)
1433
eff2.Size = NumberSequence.new(.1)
1434
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
1435
eff2.LightEmission = 1
1436
eff2.Lifetime = NumberRange.new(0.2)
1437
eff2.Speed = NumberRange.new(0)
1438
eff2.Rate = 100
1439
eff2.Texture = "rbxassetid://347504259"
1440
eff2.Acceleration = Vector3.new(0,10,0)
1441
eff2.Color = ColorSequence.new(Color3.new(0,0,255))
1442
local eff3 = Instance.new("ParticleEmitter",part)
1443
eff3.Size = NumberSequence.new(0.2)
1444
eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
1445
eff3.LightEmission = 1
1446
eff3.Lifetime = NumberRange.new(1)
1447
eff3.Speed = NumberRange.new(0)
1448
eff3.Rate = 100
1449
eff3.Texture = "rbxassetid://284205403"
1450
eff3.Acceleration = Vector3.new(0,10,0)
1451
eff3.Color = ColorSequence.new(Color3.new(0,0,255))
1452
end
1453
1454
1455
function FullPower()
1456
	NoAnims = true
1457
	attack = true
1458
	
1459
	
1460
	
1461
	Full = true
1462
	
1463
	
1464
	for i = 1, 40 do
1465
		wait()
1466
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.10)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.4)--head
1467
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)--torso
1468
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.2,-.70)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(10)), 0.2)--rarm
1469
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.2,-.70)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-10)), 0.2)--larm
1470
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.6, -.40) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-20)), 0.4)--lleg
1471
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6, -.40) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.4)--rleg
1472
	end
1473
	
1474
	
1475
	
1476
	
1477
	
1478
	
1479
	
1480
	
1481
	
1482
	for i = 1, 20 do
1483
	wait()
1484
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)--head
1485
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)--torso
1486
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-30)), 0.2)--arm
1487
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(30)), 0.2)--arm
1488
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)--leg
1489
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.4)--leg
1490
			end
1491
	
1492
	s0:Destroy()
1493
	ragesong = "397952612"
1494
	wait(0.001)
1495
	s02 = Instance.new("Sound",char)
1496
	s02.Volume = 90
1497
	s02.SoundId = "rbxassetid://"..ragesong
1498
	s02.Looped = true
1499
	s02.Pitch = 1
1500
	wait(0.001)
1501
	s02:Play()
1502
	
1503
	
1504
local selectionBoxOfTorso = Instance.new("SelectionBox",torso)
1505
selectionBoxOfTorso.Adornee = torso
1506
selectionBoxOfTorso.Color = BrickColor.new("Really blue")
1507
selectionBoxOfTorso.LineThickness = 0.01
1508
selectionBoxOfTorso.Transparency = 0
1509
	
1510
local selectionBoxOfRightArm = Instance.new("SelectionBox",char["Right Arm"])
1511
selectionBoxOfRightArm.Adornee = char["Right Arm"]
1512
selectionBoxOfRightArm.Color = BrickColor.new("Really blue")
1513
selectionBoxOfRightArm.LineThickness = 0.01
1514
selectionBoxOfRightArm.Transparency = 0
1515
	
1516
local selectionBoxOfRightLeg = Instance.new("SelectionBox",char["Right Leg"])
1517
selectionBoxOfRightLeg.Adornee = char["Right Leg"]
1518
selectionBoxOfRightLeg.Color = BrickColor.new("Really blue")
1519
selectionBoxOfRightLeg.LineThickness = 0.01
1520
selectionBoxOfRightLeg.Transparency = 0
1521
1522
local selectionBoxOfLeftArm = Instance.new("SelectionBox",char["Left Arm"])
1523
selectionBoxOfLeftArm.Adornee = char["Left Arm"]
1524
selectionBoxOfLeftArm.Color = BrickColor.new("Really blue")
1525
selectionBoxOfLeftArm.LineThickness = 0.01
1526
selectionBoxOfLeftArm.Transparency = 0
1527
1528
local selectionBoxOfLeftLeg = Instance.new("SelectionBox",char["Left Leg"])
1529
selectionBoxOfLeftLeg.Adornee = char["Left Leg"]
1530
selectionBoxOfLeftLeg.Color = BrickColor.new("Really blue")
1531
selectionBoxOfLeftLeg.LineThickness = 0.01
1532
selectionBoxOfLeftLeg.Transparency = 0
1533
1534
BurningEff(reye)
1535
1536
LightOnBody = Instance.new("PointLight", hed)
1537
LightOnBody.Brightness = 3000
1538
LightOnBody.Range = 20
1539
LightOnBody.Color = Color3.new(0, 0, 255)
1540
1541
r = game:GetService("RunService").RenderStepped
1542
Activated = true
1543
custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
1544
	Debri = coroutine.wrap(function()
1545
	repeat	
1546
    local p = Instance.new('Part',torso)
1547
    p.formFactor = 'Custom'
1548
    p.Size = Vector3.new(1,1,1)
1549
    p.BrickColor = workspace.Base.BrickColor
1550
    p.CanCollide = false
1551
    p.Transparency = 0
1552
    p.Anchored = true
1553
    p.Locked=true
1554
    p.Material = workspace.Base.Material
1555
    s = math.random(1,40)/10
1556
    local m = Instance.new("BlockMesh",p)
1557
    m.Scale = Vector3.new(s,s,s)
1558
    p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random())
1559
	--[[coroutine.wrap(function()
1560
		wait(2)
1561
		while Charging == true do
1562
		wait(2)
1563
		GroundWave1()
1564
		wait(2)
1565
		end
1566
	end)()]]--
1567
	
1568
	spawn(function()
1569
        while r:wait() do
1570
            if p.Transparency >= 1 then p:Destroy() break end
1571
            p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
1572
            p.Transparency = p.Transparency+0.01
1573
        end
1574
    end)
1575
    wait(.3)
1576
	until Activated == false
1577
	end)
1578
	Debri()
1579
	
1580
	l = game.Lighting
1581
l.TimeOfDay = 1
1582
game.Lighting.Ambient = Color3.new(0,0,0)
1583
l.Brightness = 0.1
1584
1585
	
1586
	spawn(function()
1587
	while wait(2)
1588
		 do
1589
		GroundWave()	
1590
	end
1591
	end)	
1592
	
1593
	
1594
	local eColors = {"Really blue", "Really blue"}
1595
	coroutine.resume(coroutine.create(function()
1596
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
1597
    local magz = (Part0 - Part1).magnitude
1598
    local curpos = Part0
1599
    local trz = {-Offset,Offset}
1600
    for i=1,Times do
1601
        local li = Instance.new("Part", torso)
1602
		li.Name = "Lightning"
1603
		li.TopSurface =0
1604
		li.Material = "Neon"
1605
		li.BottomSurface = 0
1606
		li.Anchored = true
1607
		li.Locked = true
1608
		li.Transparency = Trans or 0.4
1609
		li.BrickColor = BrickColor.new(Color)
1610
		li.formFactor = "Custom"
1611
		li.CanCollide = false
1612
		li.Size = Vector3.new(Thickness,Thickness,magz/Times)
1613
        local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1614
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
1615
        if Times == i then
1616
        local magz2 = (curpos - Part1).magnitude
1617
        li.Size = Vector3.new(Thickness,Thickness,magz2)
1618
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
1619
        else
1620
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
1621
        end
1622
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
1623
        game.Debris:AddItem(li,.1)
1624
    end
1625
end
1626
1627
BodyParts = {} 
1628
for _, v in pairs(char:GetChildren()) do
1629
    if v:IsA("Part")  then
1630
        table.insert(BodyParts, v)
1631
    end
1632
end
1633
1634
Bounding = {} -- Calculate the bounding boxes
1635
for _, v in pairs(BodyParts) do
1636
	local temp = {X=nil, Y=nil, Z=nil}
1637
	temp.X = v.Size.X/2 * 10
1638
	temp.Y = v.Size.Y/2 * 10
1639
	temp.Z = v.Size.Z/2 * 10
1640
	Bounding[v.Name] = temp
1641
end
1642
1643
while wait(lightspeed) do 
1644
			lightspeed = math.random(0.1,0.2)
1645
	local Body1 = BodyParts[math.random(#BodyParts)]
1646
	local Body2 = BodyParts[math.random(#BodyParts)]
1647
	local Pos1 = Vector3.new(
1648
		math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
1649
		math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
1650
		math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
1651
)
1652
	local Pos2 = Vector3.new(
1653
		math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
1654
		math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
1655
		math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
1656
)
1657
	local SPos1 = Body1.Position + Pos1
1658
	local SPos2 = Body2.Position + Pos2	
1659
	Lightning(SPos1, SPos2, 4, 3, eColors[math.random(1,#eColors)], .2, .56) 
1660
end
1661
end))
1662
	for i = 1, 20 do
1663
		wait()
1664
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.3,.2)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.4)--head
1665
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)--torso
1666
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.5,0)*CFrame.Angles(math.rad(-120),math.rad(0),math.rad(60)), 0.2)--arm
1667
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.5,0)*CFrame.Angles(math.rad(-120),math.rad(0),math.rad(-60)), 0.2)--arm
1668
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.4)--leg
1669
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.4)--leg
1670
end
1671
	
1672
	
1673
	attack = false
1674
	NoAnims = false
1675
end
1676
1677
function weld5(part0, part1, c0, c1)
1678
    weeld=Instance.new("Weld", part0)
1679
    weeld.Part0=part0
1680
    weeld.Part1=part1
1681
    weeld.C0=c0
1682
    weeld.C1=c1
1683
    return weeld
1684
end
1685
1686
1687
1688
Grab = false
1689
1690
1691
1692
1693
1694
fat = Instance.new("BindableEvent",script)
1695
fat.Name = "Heartbeat"
1696
1697
script:WaitForChild("Heartbeat")
1698
1699
frame = 1/30
1700
tf = 0
1701
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
1702
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
1703
lastframe = tick()
1704
script.Heartbeat:Fire() --ayy lmao
1705
1706
game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
1707
	tf = tf + s
1708
	if tf >= frame then
1709
		if allowframeloss then
1710
			script.Heartbeat:Fire()
1711
			lastframe=tick()
1712
		else
1713
			--print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
1714
			for i=1, math.floor(tf/frame) do
1715
				script.Heartbeat:Fire()
1716
			end
1717
			lastframe=tick()
1718
		end
1719
		if tossremainder then
1720
			tf = 0
1721
		else
1722
			tf = tf - frame * math.floor(tf/frame)
1723
		end
1724
	end
1725
end)
1726
1727
function Swait(NUMBER)
1728
	if NUMBER == 0 or NUMBER == nil then
1729
		fat.Event:wait()
1730
	else
1731
		for i = 1, NUMBER do
1732
			fat.Event:wait()
1733
		end
1734
	end
1735
end
1736
1737
1738
1739
1740
1741
function GrabAndDrag()
1742
	NoAnims = true
1743
	attack = true
1744
	
1745
	if Grab == false then
1746
	
1747
	for i = 1, 20 do
1748
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1749
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
1750
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
1751
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
1752
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
1753
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
1754
            if Debounces.on == false then break end
1755
            rs:wait(2)
1756
        end
1757
        con1=larm.Touched:connect(function(hit) -- this is grab
1758
            ht = hit.Parent
1759
            hum1=ht:FindFirstChild('Humanoid')
1760
            if hum1 ~= nil then
1761
			   
1762
			
1763
			
1764
				
1765
			z = Instance.new("Sound",char)
1766
z.SoundId = "rbxassetid://227194112"
1767
z.Volume = 90
1768
wait(.1)
1769
z:Play()
1770
                hum1.PlatformStand=true
1771
                gp = ht
1772
                Grab = true
1773
                asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
1774
                asd.Parent = larm
1775
                asd.Name = "asd"
1776
                asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
1777
			
1778
1779
           --[[ elseif hum1 == nil then
1780
                con1:disconnect()
1781
                wait() return]]
1782
            end
1783
        end)
1784
1785
1786
        for i = 1, 20 do
1787
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1788
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
1789
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
1790
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
1791
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1792
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
1793
            if Debounces.on == false then break end
1794
            rs:wait(2)
1795
        end
1796
    con1:disconnect()
1797
1798
if gp == nil then 
1799
	attack = false
1800
	NoAnims = false
1801
	return end
1802
1803
    
1804
    
1805
			--[[for i = 1, 16 do
1806
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
1807
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
1808
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
1809
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1810
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1811
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1812
			cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
1813
			if Debounces.on == false then end
1814
			rs:wait()
1815
		end]]--
1816
			for i = 1, 16 do
1817
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
1818
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-73)), 0.3)
1819
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
1820
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
1821
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1822
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1823
			if Debounces.on == false then end
1824
			rs:wait()
1825
			end
1826
			
1827
			
1828
			coroutine.resume(coroutine.create(function()
1829
	local BF = Instance.new("BodyVelocity",hed)
1830
	BF.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1831
	BF.velocity = root.CFrame.lookVector*120
1832
	wait(2.5)
1833
	BF:remove()
1834
			end))
1835
			
1836
			
1837
			
1838
			z = Instance.new("Sound",char)
1839
z.SoundId = "rbxassetid://138223085"
1840
z.Volume = 90
1841
wait(.1)
1842
z:Play()
1843
1844
coroutine.resume(coroutine.create(function()
1845
	for i=1,78 do
1846
wait()
1847
MagicBlock(BrickColor.new("Really blue"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025)
1848
wait(0.01)
1849
MagicBlock(BrickColor.new("Really black"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025)
1850
end
1851
end))
1852
1853
			coroutine.resume(coroutine.create(function()
1854
				Grabee = gp:FindFirstChild("Torso")
1855
		par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
1856
				wait(0.01)
1857
				for i = 1,78 do
1858
					wait(0.01)
1859
				for i=1, 5 do
1860
			p=Instance.new("Part")
1861
			p.FrontSurface=par.TopSurface
1862
			p.Material=par.Material
1863
			p.BottomSurface=0
1864
			p.Anchored=true p.CanCollide=false
1865
			p.BrickColor=par.BrickColor
1866
			p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
1867
			p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
1868
			p.Parent=char
1869
			game:GetService("Debris"):AddItem(p,2+i*.1)
1870
			if math.random(1,5)==5 then
1871
				coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
1872
			end
1873
				end
1874
				end
1875
				
1876
			end))
1877
			
1878
			coroutine.resume(coroutine.create(function()
1879
				Grabee = gp:FindFirstChild("Torso")
1880
		par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
1881
				wait(0.01)
1882
				
1883
		for i=1, 78 do
1884
			wait(0.01)
1885
			for i=1, 1 do
1886
			p=Instance.new("Part")
1887
			p.TopSurface=par.TopSurface
1888
			p.BottomSurface=par.BottomSurface
1889
			p.Material=par.Material
1890
			p.BottomSurface=0
1891
			p.Anchored=false p.CanCollide=false
1892
			p.BrickColor=par.BrickColor
1893
			p.formFactor="Custom"
1894
			p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12)
1895
			p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20)
1896
			p.Parent=char
1897
			game:GetService("Debris"):AddItem(p,3+i*.1)
1898
			p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4)
1899
			p.RotVelocity=p.Velocity
1900
			if math.random(1,5)==5 then
1901
				coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
1902
			end
1903
			end
1904
			Swait(.025)
1905
		end	
1906
				
1907
			end))
1908
	for i = 1, 100 do
1909
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
1910
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-13)), 0.3)
1911
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
1912
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
1913
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3)
1914
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3)
1915
			if Debounces.on == false then end
1916
			rs:wait()
1917
		end
1918
	asd:Destroy()
1919
	gp = nil
1920
	hum1.Health = 0
1921
	attack = false
1922
	ht = nil
1923
	NoAnims = false
1924
	Grab = false
1925
end
1926
end
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
function FindNearestTorso(Position,Distance,SinglePlayer)
1939
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
1940
        local List = {}
1941
        for i,v in pairs(workspace:GetChildren())do
1942
            if v:IsA("Model")then
1943
                if v:findFirstChild("Torso")then
1944
                    if v ~= char then
1945
                        if(v.Torso.Position -Position).magnitude <= Distance then
1946
                            table.insert(List,v)
1947
                        end 
1948
                    end 
1949
                end 
1950
            end 
1951
        end
1952
    return List
1953
end
1954
1955
1956
1957
function Ring()
1958
	
1959
	
1960
	local effspwn = Instance.new("Part")      
1961
    local model = Instance.new("Model")
1962
    game.Debris:AddItem(model, 20)
1963
    model.Name = "smasheffects"
1964
    model.Parent = workspace
1965
    effspwn.Name = "spwnr"
1966
    effspwn.Size = Vector3.new(1, 1, 1)
1967
    effspwn.Anchored = true
1968
    effspwn.CanCollide = false
1969
    effspwn.Transparency = 1
1970
    effspwn.CFrame = root.CFrame * CFrame.Angles(math.rad(180), 0, 0)
1971
    effspwn.Parent = model
1972
1973
 for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do
1974
        if v:FindFirstChild('Humanoid') then
1975
            v.Humanoid:TakeDamage(math.random(10000020,10000030))
1976
            v.Humanoid.PlatformStand = true
1977
            v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 200
1978
        end
1979
    end 
1980
	coroutine.resume(coroutine.create(function()
1981
      local shok = Instance.new("Part")
1982
      shok.Name = "wring1"
1983
      shok.BrickColor = BrickColor.new("Really blue")
1984
      shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
1985
      shok.Size = Vector3.new(1, 1, 1)
1986
      shok.Anchored = true
1987
      shok.Material = "Neon"
1988
      shok.Transparency = 0.25
1989
      shok.CanCollide = false
1990
      shok.Parent = model
1991
      game.Debris:AddItem(shok, 12)
1992
      local mesh = Instance.new("SpecialMesh")
1993
      mesh.MeshType = "FileMesh"
1994
      mesh.MeshId = "rbxassetid://3270017"
1995
      mesh.Scale = Vector3.new(0.1, 0.1, 0.05)
1996
      mesh.Parent = shok
1997
      for e = 1, 30 do
1998
        wait()
1999
        mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3)
2000
        shok.Transparency = shok.Transparency + 0.002
2001
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
2002
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
2003
      end
2004
      for e = 1, 38 do
2005
        wait()
2006
        mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
2007
        shok.Transparency = shok.Transparency + 0.002
2008
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
2009
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
2010
      end
2011
      for e = 1, 24 do
2012
        wait()
2013
        mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
2014
        shok.Transparency = shok.Transparency + 0.03
2015
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
2016
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
2017
      end
2018
    end))
2019
    coroutine.resume(coroutine.create(function()
2020
      local shok = Instance.new("Part")
2021
      shok.Name = "wring2"
2022
      shok.BrickColor = BrickColor.new("Really blue")
2023
      shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
2024
      shok.Size = Vector3.new(1, 1, 1)
2025
      shok.Anchored = true
2026
      shok.Material = "Neon"
2027
      shok.Transparency = 0.25
2028
      shok.CanCollide = false
2029
      shok.Parent = model
2030
      game.Debris:AddItem(shok, 12)
2031
      local mesh = Instance.new("SpecialMesh")
2032
      mesh.MeshType = "FileMesh"
2033
      mesh.MeshId = "rbxassetid://3270017"
2034
      mesh.Scale = Vector3.new(12, 12, 0.05)
2035
      mesh.Parent = shok
2036
      for e = 1, 30 do
2037
        wait()
2038
        mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3)
2039
        shok.Transparency = shok.Transparency + 0.002
2040
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
2041
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
2042
      end
2043
      for e = 1, 38 do
2044
        wait()
2045
        mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
2046
        shok.Transparency = shok.Transparency + 0.002
2047
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
2048
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
2049
      end
2050
      for e = 1, 24 do
2051
        wait()
2052
        mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
2053
        shok.Transparency = shok.Transparency + 0.03
2054
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
2055
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
2056
      end
2057
    end))
2058
2059
coroutine.resume(coroutine.create(function()
2060
      local shok = Instance.new("Part")
2061
      shok.Name = "shokwve"
2062
      shok.BrickColor = BrickColor.new("Really black")
2063
      shok.Position = effspwn.Position + Vector3.new(0, 5, 0)
2064
      shok.Size = Vector3.new(1, 1, 1)
2065
      shok.Anchored = true
2066
      shok.Material = "Neon"
2067
      shok.Transparency = 0.6
2068
      shok.CanCollide = false
2069
      shok.Parent = model
2070
      game.Debris:AddItem(shok, 12)
2071
      local mesh = Instance.new("SpecialMesh")
2072
      mesh.MeshType = "FileMesh"
2073
      mesh.MeshId = "rbxassetid://489415447"
2074
      mesh.Scale = Vector3.new(1, 1, 1)
2075
      mesh.Parent = shok
2076
      for e = 1, 12 do
2077
        wait()
2078
        mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2)
2079
        shok.Transparency = shok.Transparency + 0.002
2080
      end
2081
      for e = 1, 32 do
2082
        wait()
2083
        mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
2084
        shok.Transparency = shok.Transparency + 0.002
2085
      end
2086
      for e = 1, 24 do
2087
        wait()
2088
        mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
2089
        shok.Transparency = shok.Transparency + 0.03
2090
      end
2091
    end))
2092
    coroutine.resume(coroutine.create(function()
2093
      local shok = Instance.new("Part")
2094
      shok.Name = "shock2"
2095
      shok.BrickColor = BrickColor.new("Really black")
2096
      shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
2097
      shok.Size = Vector3.new(1, 1, 1)
2098
      shok.Anchored = true
2099
      shok.Material = "Neon"
2100
      shok.Transparency = 0.35
2101
      shok.CanCollide = false
2102
      shok.Parent = model
2103
      game.Debris:AddItem(shok, 12)
2104
      local mesh = Instance.new("SpecialMesh")
2105
      mesh.MeshType = "FileMesh"
2106
      mesh.MeshId = "rbxassetid://489415447"
2107
      mesh.Scale = Vector3.new(12, 12, 12)
2108
      mesh.Parent = shok
2109
      for e = 1, 15 do
2110
        wait()
2111
        mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
2112
        shok.Transparency = shok.Transparency + 0.004
2113
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
2114
      end
2115
      for e = 1, 16 do
2116
        wait()
2117
        mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
2118
        shok.Transparency = shok.Transparency + 0.004
2119
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
2120
      end
2121
      for e = 1, 12 do
2122
        wait()
2123
        mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
2124
        shok.Transparency = shok.Transparency + 0.06
2125
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
2126
      end
2127
    end))
2128
    coroutine.resume(coroutine.create(function()
2129
      local shok = Instance.new("Part")
2130
      shok.Name = "shock3"
2131
      shok.BrickColor = BrickColor.new("Really blue")
2132
      shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
2133
      shok.Size = Vector3.new(1, 1, 1)
2134
      shok.Anchored = true
2135
      shok.Material = "Neon"
2136
      shok.Transparency = 0.35
2137
      shok.CanCollide = false
2138
      shok.Parent = model
2139
      game.Debris:AddItem(shok, 12)
2140
      local mesh = Instance.new("SpecialMesh")
2141
      mesh.MeshType = "FileMesh"
2142
      mesh.MeshId = "rbxassetid://489415447"
2143
      mesh.Scale = Vector3.new(12, 12, 12)
2144
      mesh.Parent = shok
2145
      for e = 1, 15 do
2146
        wait()
2147
        mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
2148
        shok.Transparency = shok.Transparency + 0.004
2149
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
2150
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
2151
      end
2152
      for e = 1, 16 do
2153
        wait()
2154
        mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
2155
        shok.Transparency = shok.Transparency + 0.004
2156
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
2157
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
2158
      end
2159
      for e = 1, 12 do
2160
        wait()
2161
        mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
2162
        shok.Transparency = shok.Transparency + 0.06
2163
        shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
2164
        shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
2165
      end
2166
    end))
2167
    
2168
end
2169
2170
2171
2172
2173
2174
2175
2176
it=Instance.new
2177
vt=Vector3.new
2178
cf=CFrame.new
2179
2180
function NoOutline(Part)
2181
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
2182
end
2183
2184
2185
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
2186
local fp=it("Part")
2187
fp.formFactor=formfactor 
2188
fp.Parent=parent
2189
fp.Reflectance=reflectance
2190
fp.Transparency=transparency
2191
fp.CanCollide=false 
2192
fp.Locked=true
2193
fp.BrickColor=brickcolor
2194
fp.Name=name
2195
fp.Size=size
2196
fp.Position=torso.Position 
2197
NoOutline(fp)
2198
fp.Material="SmoothPlastic"
2199
fp:BreakJoints()
2200
return fp 
2201
end 
2202
 
2203
2204
2205
function mesh(Mesh,part,meshtype,meshid,offset,scale)
2206
local mesh=it(Mesh) 
2207
mesh.Parent=part
2208
if Mesh=="SpecialMesh" then
2209
mesh.MeshType=meshtype
2210
if meshid~="nil" then
2211
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
2212
end
2213
end
2214
mesh.Offset=offset
2215
mesh.Scale=scale
2216
return mesh
2217
end
2218
 
2219
function weld(parent,part0,part1,c0)
2220
local weld=it("Weld") 
2221
weld.Parent=parent
2222
weld.Part0=part0 
2223
weld.Part1=part1 
2224
weld.C0=c0
2225
return weld
2226
end
2227
2228
2229
function swait(num)
2230
if num==0 or num==nil then
2231
game:service'RunService'.Stepped:wait(0)
2232
else
2233
for i=0,num do
2234
game:service'RunService'.Stepped:wait(0)
2235
end
2236
end
2237
end
2238
 
2239
2240
2241
2242
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2243
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2244
end 
2245
2246
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
2247
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2248
prt.Anchored=true
2249
prt.CFrame=cframe
2250
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
2251
--http://www.roblox.com/asset/?id=4770560
2252
game:GetService("Debris"):AddItem(prt,2)
2253
CF=prt.CFrame
2254
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
2255
for i=0,1,0.2 do
2256
wait()
2257
Part.CFrame=CF*cf(0,0,-0.4)
2258
end
2259
for i=0,1,delay do
2260
wait()
2261
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
2262
Mesh.Scale=Mesh.Scale
2263
end
2264
for i=0,1,0.1 do
2265
wait()
2266
Part.Transparency=i
2267
end
2268
Part.Parent=nil
2269
end),prt,msh,CF)
2270
end
2271
 
2272
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2273
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2274
prt.Anchored=true
2275
prt.Material = "SmoothPlastic"
2276
prt.CFrame=cframe
2277
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2278
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2279
game:GetService("Debris"):AddItem(prt,5)
2280
coroutine.resume(coroutine.create(function(Part,Mesh) 
2281
for i=0,1,delay do
2282
swait()
2283
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2284
Part.Transparency=i
2285
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2286
end
2287
Part.Parent=nil
2288
end),prt,msh)
2289
end
2290
2291
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2292
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2293
prt.Anchored=true
2294
prt.Material = "Neon"
2295
prt.CFrame=cframe
2296
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2297
game:GetService("Debris"):AddItem(prt,5)
2298
coroutine.resume(coroutine.create(function(Part,Mesh) 
2299
	local rtype = rottype
2300
for i=0,1,delay do
2301
swait()
2302
if rtype == 1 then
2303
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2304
elseif rtype == 2 then
2305
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2306
end
2307
Part.Transparency=i
2308
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2309
end
2310
Part.Parent=nil
2311
end),prt,msh)
2312
end
2313
2314
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2315
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2316
prt.Anchored=true
2317
prt.CFrame=cframe
2318
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2319
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2320
game:GetService("Debris"):AddItem(prt,5)
2321
coroutine.resume(coroutine.create(function(Part,Mesh) 
2322
for i=0,1,delay do
2323
wait()
2324
Part.Transparency=i
2325
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2326
end
2327
Part.Parent=nil
2328
end),prt,msh)
2329
end
2330
 
2331
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2332
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2333
prt.Anchored=false
2334
prt.CFrame=cframe
2335
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2336
local wld=weld(prt,prt,Parent,cframe)
2337
game:GetService("Debris"):AddItem(prt,5)
2338
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2339
for i=0,1,delay do
2340
wait()
2341
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2342
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2343
Part.Transparency=i
2344
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2345
end
2346
Part.Parent=nil
2347
end),prt,msh,wld)
2348
end
2349
 
2350
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2351
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2352
prt.Anchored=false
2353
prt.CFrame=cframe
2354
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2355
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2356
game:GetService("Debris"):AddItem(prt,5)
2357
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2358
for i=0,1,delay do
2359
wait()
2360
Weld.C0=euler(i*20,0,0)
2361
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2362
Part.Transparency=i
2363
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2364
end
2365
Part.Parent=nil
2366
end),prt,msh,wld)
2367
end
2368
 
2369
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2370
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2371
prt.Anchored=true
2372
prt.CFrame=cframe
2373
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2374
game:GetService("Debris"):AddItem(prt,2)
2375
coroutine.resume(coroutine.create(function(Part,Mesh) 
2376
for i=0,1,delay do
2377
wait()
2378
Part.CFrame=Part.CFrame
2379
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2380
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2381
prt2.Anchored=true
2382
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2383
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2384
game:GetService("Debris"):AddItem(prt2,2)
2385
coroutine.resume(coroutine.create(function(Part,Mesh) 
2386
for i=0,1,0.1 do
2387
wait()
2388
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2389
end
2390
Part.Parent=nil
2391
end),prt2,msh2)
2392
end
2393
for i=0,1,delay*2 do
2394
wait()
2395
Part.CFrame=Part.CFrame
2396
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2397
end
2398
Part.Parent=nil
2399
end),prt,msh)
2400
end
2401
 
2402
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2403
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2404
prt.Anchored=true
2405
prt.CFrame=cframe
2406
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2407
game:GetService("Debris"):AddItem(prt,2)
2408
coroutine.resume(coroutine.create(function(Part,Mesh) 
2409
for i=0,1,delay do
2410
wait()
2411
Part.CFrame=Part.CFrame
2412
Part.Transparency=i
2413
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2414
end
2415
Part.Parent=nil
2416
end),prt,msh)
2417
end
2418
 
2419
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2420
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2421
prt.Anchored=true
2422
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2423
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2424
game:GetService("Debris"):AddItem(prt,2)
2425
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2426
CF=Part.CFrame
2427
Numbb=0
2428
randnumb=math.random()/10
2429
rand1=math.random()/10
2430
for i=0,1,rand1 do
2431
wait()
2432
CF=CF*cf(0,math.random()/2,0)
2433
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2434
Part.CFrame=CF*euler(Numbb,0,0)
2435
Part.Transparency=i
2436
Numbb=Numbb+randnumb
2437
end
2438
Part.Parent=nil
2439
end),prt,CF,Numbb,randnumb)
2440
end
2441
 
2442
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2443
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2444
prt.Anchored=true
2445
prt.CFrame=cframe
2446
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2447
game:GetService("Debris"):AddItem(prt,5)
2448
coroutine.resume(coroutine.create(function(Part,Mesh) 
2449
for i=0,1,delay do
2450
wait()
2451
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2452
Part.Transparency=i
2453
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2454
end
2455
Part.Parent=nil
2456
end),prt,msh)
2457
end
2458
 
2459
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2460
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2461
prt.Anchored=true
2462
prt.CFrame=cframe
2463
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2464
game:GetService("Debris"):AddItem(prt,2)
2465
coroutine.resume(coroutine.create(function(Part,Mesh) 
2466
for i=0,1,delay do
2467
wait()
2468
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2469
Part.Transparency=i
2470
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2471
end
2472
Part.Parent=nil
2473
end),prt,msh)
2474
end
2475
 
2476
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2477
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2478
prt.Anchored=true
2479
prt.CFrame=cframe*cf(x,y,z)
2480
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2481
game:GetService("Debris"):AddItem(prt,5)
2482
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2483
local num=math.random()
2484
local num2=math.random(-3,2)+math.random()
2485
local numm=0
2486
for i=0,1,delay*2 do
2487
swait()
2488
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2489
Part.Transparency=i
2490
numm=numm+0.01
2491
end
2492
Part.Parent=nil
2493
Mesh.Parent=nil
2494
end),prt,msh,x,y,z)
2495
end
2496
2497
2498
2499
function newRay(start,face,range,wat)
2500
	local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
2501
	hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat)
2502
	return rey,hit,pos
2503
end
2504
2505
function Landing()
2506
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2507
	MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) 
2508
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2509
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2510
	MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) 
2511
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2512
	
2513
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2514
	MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) 
2515
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2516
end
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
    function nooutline(part)
2528
        part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
2529
    end
2530
2531
2532
2533
2534
function debris(cfremz, thepart, amt)
2535
    for j = 1, amt do
2536
      do
2537
        local pr = Instance.new("Part")
2538
        nooutline(pr)
2539
        pr.Name = "debrisobeb"
2540
        pr.Anchored = true
2541
        pr.BrickColor = thepart.BrickColor
2542
        pr.CanCollide = true
2543
        pr.Material = thepart.Material
2544
        pr.Transparency = thepart.Transparency
2545
        pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24))
2546
        pr.CFrame = cfremz * CFrame.Angles(0, math.rad(amt * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
2547
        pr.Parent = workspace
2548
        game.Debris:AddItem(pr, 25)
2549
        delay(15, function()
2550
          if pr then
2551
            pr.CanCollide = false
2552
            pr.Anchored = false
2553
          end
2554
        end)
2555
      end
2556
    end
2557
    for c = 1, amt do
2558
      do
2559
        local pr2 = Instance.new("Part")
2560
        nooutline(pr2)
2561
        pr2.Name = "moredebr"
2562
        pr2.Anchored = false
2563
        pr2.BrickColor = thepart.BrickColor
2564
        pr2.CanCollide = false
2565
        pr2.Material = thepart.Material
2566
        pr2.Transparency = thepart.Transparency
2567
        pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18))
2568
        pr2.CFrame = cfremz * CFrame.Angles(0, math.rad(30 * c), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
2569
        pr2.Parent = workspace
2570
        pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75))
2571
        pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35))
2572
        game.Debris:AddItem(pr2, 45)
2573
        delay(2, function()
2574
          pr2.CanCollide = true
2575
          wait(10)
2576
          if pr2 then
2577
            pr2.CanCollide = false
2578
          end
2579
        end)
2580
      end
2581
    end
2582
  end
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
function AirSlam()
2594
	NoAnims = true
2595
	attack = true
2596
	for i = 1, 20 do
2597
            rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.6,-.2) *CFrame.Angles (math.rad    (45),math.rad(0),math.rad(32)), 0.2)
2598
            larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,1,0)*CFrame.Angles(math.rad     (0),math.rad(0),math.rad(-20)), 0.2)
2599
            hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (-    8),math.rad(-40), math.rad(-8)),0.2)
2600
            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles  (math.rad    (-50), math.rad(40), math.rad(0)), 0.2)
2601
            lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -.6) * CFrame.Angles  (math.rad    (30), 0, math.rad(20)), 0.2)
2602
            rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles  (math.rad(-    10), math.rad(-40), math.rad(0)), 0.2)
2603
            if Debounces.on == false then break end
2604
                wait()
2605
            end
2606
            wait(0.5)
2607
        
2608
2609
coroutine.resume(coroutine.create(function()
2610
       MagicBlock(BrickColor.new("Really blue"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2611
	MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) 
2612
	MagicBlock(BrickColor.new("Really blue"),root.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15)
2613
	end))
2614
	
2615
           Sound("http://www.roblox.com/asset?id = 180199750",char,90,1,false)
2616
                
2617
            hum.WalkSpeed = 50
2618
        BV = Instance.new("BodyVelocity", torso)
2619
        BV.maxForce = Vector3.new(0,200000,0)
2620
        BV.P = 100000
2621
        BV.velocity = Vector3.new(0,150,0)
2622
    for i = 1, 20 do
2623
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0),     math.rad(0)),0.7)
2624
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16),     math.rad(0), math.rad(0)), 0.7)
2625
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), 0,     math.rad(-20)), 0.7)
2626
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-40),     math.rad(0), math.rad(20)), 0.7)
2627
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
2628
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
2629
        if Debounces.on == false then break end
2630
        wait()
2631
    end
2632
BV:Destroy()
2633
2634
		coroutine.resume(coroutine.create(function()
2635
					for i = 1, 2880, 48 do 
2636
            			torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(i), math.rad(0), math.rad(0))
2637
						rs:wait(4)
2638
					end
2639
					torso.Weld.C1 = CFrame.new(0, -1, 0)
2640
		end))
2641
		
2642
    for i = 1, 30 do
2643
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0),     math.rad(0)),0.3)
2644
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad    (0), math.rad(0)), 0.3)
2645
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),     math.rad(0), math.rad(-10)), 0.3)
2646
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0),     math.rad(0), math.rad(10)), 0.3)
2647
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
2648
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0),     0.3)
2649
        if Debounces.on == false then break end
2650
        wait()
2651
    end
2652
2653
if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
2654
    for i = 1, 20 do
2655
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-18),math.rad(0),     math.rad(0)),0.3)
2656
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-13), math.rad    (0), math.rad(0)), 0.3)
2657
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),     math.rad(0), math.rad(-60)), 0.3)
2658
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0),     math.rad(0), math.rad(60)), 0.3)
2659
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -0.6) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
2660
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.4) * CFrame.Angles(math.rad(-20), 0, 0),     0.3)
2661
        if Debounces.on == false then break end
2662
        wait()
2663
    end
2664
end
2665
local ry,ht,ps=nil,nil,nil
2666
while ht==nil do
2667
	ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
2668
	wait()
2669
end
2670
par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
2671
		if par then
2672
      local cfremz = CFrame.new(loc)
2673
      debris(cfremz, par, 50)
2674
		    end
2675
coroutine.resume(coroutine.create(function()
2676
	Ring()
2677
end))
2678
Landing()
2679
Sound("rbxassetid://514867425",char,90,1,false)
2680
hum.WalkSpeed = 5
2681
for i = 1, 25 do
2682
            rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.3) *CFrame.Angles (math.rad(120),math.rad(10),math.rad(32)), 0.2)
2683
            larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-20)), 0.2)
2684
            hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (-8),math.rad(-40), math.rad(-8)),0.2)
2685
            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-50), math.rad(40), math.rad(0)), 0.2)
2686
            lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, 0, -.6) * CFrame.Angles(math.rad(30), 0, math.rad(20)), 0.2)
2687
            rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(0)), 0.2)
2688
            if Debounces.on == false then break end
2689
                wait()
2690
            end
2691
            wait(0.2)
2692
	attack = false
2693
	NoAnims = false
2694
end
2695
2696
2697
2698
function CreatePart(parent,transparency,reflectance,material,brickcolor)
2699
local p = Instance.new("Part")
2700
p.Parent = parent
2701
p.Size = Vector3.new(1,1,1)
2702
p.Transparency = transparency
2703
p.Reflectance = reflectance
2704
p.CanCollide = false
2705
p.BrickColor = brickcolor
2706
p.Material = material
2707
return p
2708
end
2709
2710
2711
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
2712
local weld = Instance.new("Weld")
2713
weld.Parent = parent
2714
weld.Part0 = part0
2715
weld.Part1 = part1
2716
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
2717
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
2718
return weld
2719
end
2720
2721
2722
2723
--[[HandleR = Instance.new("Part")
2724
	HandleR.BrickColor = BrickColor.new("Really blue")
2725
	HandleR.Material = "Neon"
2726
	HandleR.Transparency = 0.3
2727
	HandleR.Size = Vector3.new(1,0.8,4)
2728
	HandleR.CFrame = sorb.CFrame
2729
	HandleRM = Instance.new("SpecialMesh",HandleR)
2730
	HandleRM.MeshId = "rbxasset://fonts/sword.mesh"
2731
	HandleRM.Scale = Vector3.new(1,1,1)
2732
	
2733
	HandleL = Instance.new("Part")
2734
	HandleL.BrickColor = BrickColor.new("Really blue")
2735
	HandleL.Material = "Neon"
2736
	HandleL.Transparency = 0.3
2737
	HandleL.Size = Vector3.new(1,0.8,4)
2738
	HandleL.CFrame = sorb2.CFrame
2739
	HandleLM = Instance.new("SpecialMesh",HandleL)
2740
	HandleLM.MeshId = "rbxasset://fonts/sword.mesh"
2741
	HandleLM.Scale = Vector3.new(1,1,1)]]
2742
	
2743
2744
local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Really blue"))
2745
CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
2746
local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Really blue"))
2747
CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
2748
2749
2750
v3 = Vector3.new
2751
rad=math.rad
2752
2753
kiblade = Instance.new("Part",char)
2754
kiblade.Name = "Blade"
2755
kiblade.Size = v3(1,5,1)
2756
kiblade.Transparency = 1
2757
kiblade.BrickColor = BrickColor.new("Really blue")
2758
kiblade.Position = v3(999,999,999)
2759
kiblade.CanCollide = false
2760
kiblademesh = Instance.new("SpecialMesh",kiblade)
2761
kiblademesh.MeshType = "FileMesh"
2762
kiblademesh.MeshId = "rbxassetid://898849476"
2763
kiblademesh.Scale = v3(0.01,0.008,0.01)
2764
kiweld7 = Instance.new("Weld",kiblade)
2765
kiweld7.Part0 = rarm
2766
kiweld7.Part1 = kiblade
2767
kiweld7.C0 = CFrame.new(0,-2.1,0) * CFrame.Angles(rad(180),rad(0),rad(0))
2768
kiblade1 = Instance.new("Part",char)
2769
kiblade1.Name = "Blade"
2770
kiblade1.Transparency = 1
2771
kiblade1.Size = v3(0.1,0.1,0.1)
2772
kiblade1.Position = v3(999,999,999)
2773
kiblade1.CanCollide = false
2774
kiblademesh = Instance.new("SpecialMesh",kiblade1)
2775
kiblademesh.MeshType = "Sphere"
2776
kiblademesh.Scale = v3(1,1,1)
2777
kiweld = Instance.new("Weld",kiblade1)
2778
kiweld.Part0 = rarm
2779
kiweld.Part1 = kiblade1
2780
kiweld.C0 = CFrame.new(0,-1,0)
2781
kiblade2 = Instance.new("Part",char)
2782
kiblade2.Name = "Blade"
2783
kiblade2.Size = v3(0.1,0.1,0.1)
2784
kiblade2.Transparency = 1
2785
kiblade2.Position = v3(999,999,999)
2786
kiblade2.CanCollide = false
2787
kiblademesh = Instance.new("SpecialMesh",kiblade2)
2788
kiblademesh.MeshType = "Sphere"
2789
kiblademesh.Scale = v3(1,1,1)
2790
kiweld = Instance.new("Weld",kiblade2)
2791
kiweld.Part0 = rarm
2792
kiweld.Part1 = kiblade2
2793
kiweld.C0 = CFrame.new(0,-4.5,0)
2794
torso = game.Players.LocalPlayer.Character.Torso
2795
head = game.Players.LocalPlayer.Character.Head
2796
torso1 = Instance.new("Attachment",kiblade1)
2797
head1 = Instance.new("Attachment",kiblade2)
2798
trail = Instance.new("Trail",torso)
2799
trail.Color = ColorSequence.new(Color3.fromRGB(0,0,255))
2800
trail.Attachment0 = torso1
2801
trail.Attachment1 = head1
2802
trail.Lifetime = 0.5
2803
trail.Enabled = false
2804
2805
2806
2807
2808
kiblade2 = Instance.new("Part",char)
2809
kiblade2.Name = "Blade"
2810
kiblade2.Size = v3(1,5,1)
2811
kiblade2.Transparency = 1
2812
kiblade2.BrickColor = BrickColor.new("Really blue")
2813
kiblade2.Position = v3(999,999,999)
2814
kiblade2.CanCollide = false
2815
kiblademesh2 = Instance.new("SpecialMesh",kiblade2)
2816
kiblademesh2.MeshType = "FileMesh"
2817
kiblademesh2.MeshId = "rbxassetid://898849476"
2818
kiblademesh2.Scale = v3(0.01,0.008,0.01)
2819
kiweld72 = Instance.new("Weld",kiblade2)
2820
kiweld72.Part0 = larm
2821
kiweld72.Part1 = kiblade2
2822
kiweld72.C0 = CFrame.new(0,-2.1,0) * CFrame.Angles(rad(180),rad(0),rad(0))
2823
kiblade12 = Instance.new("Part",char)
2824
kiblade12.Name = "Blade"
2825
kiblade12.Transparency = 1
2826
kiblade12.Size = v3(0.1,0.1,0.1)
2827
kiblade12.Position = v3(999,999,999)
2828
kiblade12.CanCollide = false
2829
kiblademesh2 = Instance.new("SpecialMesh",kiblade12)
2830
kiblademesh2.MeshType = "Sphere"
2831
kiblademesh2.Scale = v3(1,1,1)
2832
kiweld2 = Instance.new("Weld",kiblade12)
2833
kiweld2.Part0 = larm
2834
kiweld2.Part1 = kiblade12
2835
kiweld2.C0 = CFrame.new(0,-1,0)
2836
kiblade22 = Instance.new("Part",char)
2837
kiblade22.Name = "Blade"
2838
kiblade22.Size = v3(0.1,0.1,0.1)
2839
kiblade22.Transparency = 1
2840
kiblade22.Position = v3(999,999,999)
2841
kiblade22.CanCollide = false
2842
kiblademesh2 = Instance.new("SpecialMesh",kiblade22)
2843
kiblademesh2.MeshType = "Sphere"
2844
kiblademesh2.Scale = v3(1,1,1)
2845
kiweld2 = Instance.new("Weld",kiblade22)
2846
kiweld2.Part0 = larm
2847
kiweld2.Part1 = kiblade22
2848
kiweld2.C0 = CFrame.new(0,-4.5,0)
2849
torso2 = game.Players.LocalPlayer.Character.Torso
2850
head2 = game.Players.LocalPlayer.Character.Head
2851
torso12 = Instance.new("Attachment",kiblade12)
2852
head12 = Instance.new("Attachment",kiblade22)
2853
trail2 = Instance.new("Trail",torso2)
2854
trail2.Color = ColorSequence.new(Color3.fromRGB(0,0,255))
2855
trail2.Attachment0 = torso12
2856
trail2.Attachment1 = head12
2857
trail2.Lifetime = 0.5
2858
trail2.Enabled = false
2859
2860
2861
2862
local Gibs = game.Workspace
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
function Kill(Character)
2876
	Character.Humanoid.Health = 0
2877
	local poo = Instance.new("IntValue",Character)
2878
	poo.Name = "haha nope"
2879
	local svch = Character
2880
	local hum = Character:findFirstChild("Humanoid")
2881
	Character.Archivable = true
2882
	local chrclone = Character:clone()
2883
	Character.Archivable = false
2884
2885
	local ch = chrclone:GetChildren()
2886
	local i
2887
	for i = 1,#ch do
2888
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
2889
			ch[i]:remove()
2890
		end
2891
	end
2892
	local function Scan(ch)
2893
		local e
2894
		for e = 1,#ch do
2895
			Scan(ch[e]:GetChildren())
2896
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
2897
				ch[e]:remove()
2898
			end
2899
		end
2900
	end
2901
	Scan(chrclone:GetChildren())
2902
2903
	local hum2 = chrclone:findFirstChild("Humanoid")
2904
2905
2906
	if hum2 ~= nil then
2907
		hum2.Name = "Humanoid2"
2908
		hum2.PlatformStand = true
2909
		hum2.Sit = true 
2910
		hum2.MaxHealth = 0
2911
		hum2.Health = 0
2912
	end
2913
2914
	local ch = Character:GetChildren()
2915
	local i
2916
	for i = 1,#ch do
2917
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
2918
			ch[i]:remove()
2919
		end
2920
	end
2921
2922
	wait(0.2)
2923
2924
	local ch = Character:GetChildren()
2925
	local i
2926
	for i = 1,#ch do
2927
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
2928
			ch[i]:remove()
2929
		end
2930
	end
2931
	Character = chrclone
2932
	local Torso = Character.Torso
2933
	local movevector = Vector3.new()
2934
2935
	if Torso then
2936
		local Head = Character:FindFirstChild("Head")
2937
		local Limb = Character:FindFirstChild("Right Arm")
2938
		if Limb then
2939
2940
			Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
2941
			local Joint = Instance.new("Glue")
2942
			Joint.Name = "RightShoulder"
2943
			Joint.Part0 = Torso
2944
			Joint.Part1 = Limb
2945
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2946
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2947
			Joint.Parent = Torso
2948
2949
			local B = Instance.new("Part")
2950
			B.TopSurface = 0
2951
			B.BottomSurface = 0
2952
			B.formFactor = "Symmetric"
2953
			B.Size = Vector3.new(1, 1, 1)
2954
			B.Transparency = 1
2955
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2956
			B.Parent = Character
2957
			local W = Instance.new("Weld")
2958
			W.Part0 = Limb
2959
			W.Part1 = B
2960
			W.C0 = CFrame.new(0, -0.5, 0)
2961
			W.Parent = Limb
2962
2963
		end
2964
		local Limb = Character:FindFirstChild("Left Arm")
2965
		if Limb then
2966
2967
			Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
2968
			local Joint = Instance.new("Glue")
2969
			Joint.Name = "LeftShoulder"
2970
			Joint.Part0 = Torso
2971
			Joint.Part1 = Limb
2972
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2973
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2974
			Joint.Parent = Torso
2975
2976
			local B = Instance.new("Part")
2977
			B.TopSurface = 0
2978
			B.BottomSurface = 0
2979
			B.formFactor = "Symmetric"
2980
			B.Size = Vector3.new(1, 1, 1)
2981
			B.Transparency = 1
2982
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2983
			B.Parent = Character
2984
			local W = Instance.new("Weld")
2985
			W.Part0 = Limb
2986
			W.Part1 = B
2987
			W.C0 = CFrame.new(0, -0.5, 0)
2988
			W.Parent = Limb
2989
2990
		end
2991
		local Limb = Character:FindFirstChild("Right Leg")
2992
		if Limb then
2993
2994
			Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
2995
			local Joint = Instance.new("Glue")
2996
			Joint.Name = "RightHip"
2997
			Joint.Part0 = Torso
2998
			Joint.Part1 = Limb
2999
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
3000
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
3001
			Joint.Parent = Torso
3002
3003
			local B = Instance.new("Part")
3004
			B.TopSurface = 0
3005
			B.BottomSurface = 0
3006
			B.formFactor = "Symmetric"
3007
			B.Size = Vector3.new(1, 1, 1)
3008
			B.Transparency = 1
3009
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
3010
			B.Parent = Character
3011
			local W = Instance.new("Weld")
3012
			W.Part0 = Limb
3013
			W.Part1 = B
3014
			W.C0 = CFrame.new(0, -0.5, 0)
3015
			W.Parent = Limb
3016
3017
		end
3018
		local Limb = Character:FindFirstChild("Left Leg")
3019
		if Limb then
3020
3021
			Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
3022
			local Joint = Instance.new("Glue")
3023
			Joint.Name = "LeftHip"
3024
			Joint.Part0 = Torso
3025
			Joint.Part1 = Limb
3026
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
3027
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
3028
			Joint.Parent = Torso
3029
3030
			local B = Instance.new("Part")
3031
			B.TopSurface = 0
3032
			B.BottomSurface = 0
3033
			B.formFactor = "Symmetric"
3034
			B.Size = Vector3.new(1, 1, 1)
3035
			B.Transparency = 1
3036
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
3037
			B.Parent = Character
3038
			local W = Instance.new("Weld")
3039
			W.Part0 = Limb
3040
			W.Part1 = B
3041
			W.C0 = CFrame.new(0, -0.5, 0)
3042
			W.Parent = Limb
3043
3044
		end
3045
		--[
3046
		local Bar = Instance.new("Part")
3047
		Bar.TopSurface = 0
3048
		Bar.BottomSurface = 0
3049
		Bar.formFactor = "Symmetric"
3050
		Bar.Size = Vector3.new(1, 1, 1)
3051
		Bar.Transparency = 1
3052
		Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
3053
		Bar.Parent = Character
3054
		local Weld = Instance.new("Weld")
3055
		Weld.Part0 = Torso
3056
		Weld.Part1 = Bar
3057
		Weld.C0 = CFrame.new(0, 0.5, 0)
3058
		Weld.Parent = Torso
3059
		--]]
3060
	end
3061
	Character.Parent = Gibs
3062
	game.Debris:AddItem(Character, 12)
3063
	if movevector ~= Vector3.new() then
3064
		for i = 1,10 do
3065
			wait()
3066
			Torso.Velocity = Vector3.new(0,0,-100)
3067
			Head.Velocity = movevector * 200
3068
		end
3069
	end
3070
	end
3071
	
3072
	
3073
3074
function SpinSlice()
3075
	NoAnims = true
3076
	attack = true
3077
	
3078
	
3079
	Sound("rbxassetid://588738949",char,90,1,false)
3080
	kiblade.Transparency = 0
3081
	kiblade2.Transparency = 0
3082
    trail.Enabled = true
3083
    trail2.Enabled = true
3084
3085
	hum.WalkSpeed = 0
3086
	for i = 1,40 do
3087
		torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
3088
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
3089
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
3090
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(90)), 0.5)--arm
3091
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-90)), 0.5)--arm
3092
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
3093
if Debounces.on == false then break end
3094
                wait()
3095
	end
3096
	
3097
	
3098
	coroutine.resume(coroutine.create(function()
3099
	local BF = Instance.new("BodyVelocity",hed)
3100
	BF.maxForce = Vector3.new(math.huge,math.huge,math.huge)
3101
	BF.velocity = root.CFrame.lookVector*120
3102
	wait(2.0)
3103
	BF:remove()
3104
	end))
3105
	
3106
	coroutine.resume(coroutine.create(function()
3107
	Sound("rbxassetid://588734356",char,90,1,false)
3108
	wait(.1)
3109
	Sound("rbxassetid://588734356",char,90,1,false)
3110
	wait(.1)
3111
	Sound("rbxassetid://588734356",char,90,1,false)
3112
	wait(.1)
3113
	Sound("rbxassetid://588734356",char,90,1,false)
3114
	wait(.1)
3115
	Sound("rbxassetid://588734356",char,90,1,false)
3116
	wait(.1)
3117
	Sound("rbxassetid://588734356",char,90,1,false)
3118
	wait(.1)
3119
	Sound("rbxassetid://588734356",char,90,1,false)
3120
	wait(.1)
3121
	Sound("rbxassetid://588734356",char,90,1,false)
3122
end))
3123
	local HitBox = Instance.new("Part",rarm)
3124
	HitBox.Size = Vector3.new(1,5,1)
3125
	HitBox.CanCollide = false
3126
	HitBox.Transparency = 1
3127
	local HitBox2 = Instance.new("Weld",HitBox)
3128
	HitBox2.Part0 = rarm
3129
	HitBox2.Part1 = HitBox
3130
	HitBox2.C0 = CFrame.new(0,-1.8,0)
3131
	HitBox.Touched:connect(function(hit)
3132
		if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then
3133
			Kill(hit.Parent)
3134
			hit.Parent.Humanoid.PlatformStand = true
3135
		end
3136
	end)
3137
	
3138
	local HitBox2 = Instance.new("Part",larm)
3139
	HitBox2.Size = Vector3.new(1,5,1)
3140
	HitBox2.CanCollide = false
3141
	HitBox2.Transparency = 1
3142
	local HitBox22 = Instance.new("Weld",HitBox2)
3143
	HitBox22.Part0 = larm
3144
	HitBox22.Part1 = HitBox2
3145
	HitBox22.C0 = CFrame.new(0,-1.8,0)
3146
	HitBox2.Touched:connect(function(hit)
3147
		if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then
3148
			Kill(hit.Parent)
3149
			hit.Parent.Humanoid.PlatformStand = true
3150
		end
3151
		end)
3152
3153
	for i = 1,40 do
3154
		torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
3155
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
3156
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
3157
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(90)), 0.5)--arm
3158
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-90)), 0.5)--arm
3159
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
3160
	root.CFrame = root.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
3161
	 if Debounces.on == false then break end
3162
                wait()
3163
	end
3164
	kiblade.Transparency = 1
3165
	kiblade2.Transparency = 1
3166
	trail.Enabled = false
3167
    trail2.Enabled = false
3168
HitBox:Destroy()
3169
HitBox2:Destroy()
3170
    hum.WalkSpeed = 5
3171
	attack = false
3172
	NoAnims = false
3173
end
3174
	
3175
	
3176
	
3177
	
3178
function hito(partoz, magn, dmg, debtim)
3179
    for _, guy in pairs(workspace:GetChildren()) do
3180
      if guy:FindFirstChildOfClass("Humanoid") and guy:FindFirstChild("Head") and guy ~= char and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then
3181
        do
3182
          local humz = guy:FindFirstChildOfClass("Humanoid")
3183
          local hed = guy:FindFirstChild("Head")
3184
          humz:TakeDamage(math.random(15,30)) if Full == true then guy:BreakJoints()
3185
          local db = Instance.new("StringValue")
3186
          db.Name = "alabo"
3187
          db.Parent = hed
3188
          delay(debtim, function()
3189
            db:Destroy()
3190
          end)
3191
        end
3192
      end
3193
    end
3194
  end
3195
end
3196
	
3197
	
3198
	
3199
	ang = CFrame.Angles
3200
rd = math.rad
3201
rd2 = math.random
3202
ov = false
3203
3204
3205
3206
nooutline = function(i)	
3207
	i.TopSurface = 10
3208
end
3209
makepart = function(l, m, n, o, p, q, r)	
3210
	local s = Instance.new("Part")
3211
	s.BrickColor = BrickColor.new(l)
3212
	s.Name = m
3213
	s.Transparency = o
3214
	nooutline(s)
3215
	s.Reflectance = n
3216
	s.Material = p
3217
	s.Anchored = true
3218
	s.CanCollide = false
3219
	s.Locked = true
3220
	s.CFrame = r
3221
	s.Size = Vector3.new(0.2, 0.2, 0.2)
3222
	s.Parent = q
3223
	return s
3224
end
3225
3226
makemesh = function(t, u, v, w)	
3227
	local x = Instance.new("SpecialMesh")
3228
	x.MeshType = t
3229
	x.Scale = u
3230
	if t == "FileMesh" then
3231
		x.MeshId = v
3232
	end
3233
	x.Parent = w
3234
	return x
3235
end
3236
3237
local H = {}
3238
3239
3240
	Barrage = function()
3241
	modz = Instance.new("Model")
3242
	modz.Name = "efx"
3243
	modz.Parent = char	
3244
	ov = true
3245
	hum.AutoRotate = false
3246
	local aN = nil
3247
	local a9 = true
3248
	local aa = {}
3249
	local ab = {}
3250
	local b7 = {}
3251
	for j = 1, 16 do
3252
		local ac = Instance.new("Part")
3253
		nooutline(ac)
3254
		ac.Anchored = true
3255
		ac.Locked = true
3256
		ac.CanCollide = false
3257
		ac.Material = "Neon"
3258
		ac.Size = Vector3.new(1, 1, 1)
3259
		ac.Transparency = 1
3260
		ac.CFrame = CFrame.new(0, 1000, 0)
3261
		ac.Parent = modz
3262
		ac.BrickColor = BrickColor.new("Really blue")
3263
		makemesh("Sphere", (Vector3.new(0, 0, 0)), nil, ac)
3264
		table.insert(aa, ac)
3265
	end
3266
	for j = 1, 40 do
3267
		local a3 = makepart("Really blue", "nah", 0, 1, "Neon", modz, cf(0, 1000, 0))
3268
		makemesh("FileMesh", Vector3.new(0, 0, 0), "rbxassetid://489415447", a3)
3269
		table.insert(ab, a3)
3270
	end
3271
	for j = 1, 30 do
3272
		local a3 = makepart("Really blue", "nah", 0, 1, "Neon", modz, cf(0, 1000, 0))
3273
		makemesh("FileMesh", Vector3.new(0, 0, 0), "rbxassetid://3270017", a3)
3274
		table.insert(b7, a3)
3275
	end
3276
	local b8 = makemesh("FileMesh", Vector3.new(0, 0, 0), "", rarm)
3277
	local b9 = makemesh("FileMesh", Vector3.new(0, 0, 0), "", larm)
3278
	for I,aO in pairs(H) do
3279
		if aO.Parent == rarm or aO.Parent == larm then
3280
			aN = aO.Transparency
3281
			aO.Transparency = 1
3282
		end
3283
	end
3284
	local a8 = Instance.new("BodyGyro")
3285
	a8.MaxTorque = Vector3.new(1050, 3000, 750)
3286
	a8.CFrame = CFrame.new(root.Position, mouse.Hit.p)
3287
	a8.P = 580000
3288
	a8.D = 250
3289
	a8.Parent = root
3290
	coroutine.resume(coroutine.create(function()		
3291
		while a8 do
3292
			swait()
3293
			a8.CFrame = CFrame.new(root.Position, mouse.Hit.p)
3294
		end
3295
	end))
3296
	local af = 0
3297
	local ag = 0
3298
	repeat
3299
			ag = ag + 1
3300
			if af == 0 then
3301
				af = 1
3302
			else
3303
				af = af % 14 + 1
3304
			end
3305
		coroutine.resume(coroutine.create(function()		
3306
		local ah = aa[af]
3307
		local ai = ab[af]
3308
		local aj = ab[af + 14]
3309
		local ba = b7[af]
3310
		ah.Size = Vector3.new(1, 1, 2)
3311
		ah.CFrame = cf(root.CFrame * cf(rd2(-600, 600) / 100, rd2(-150, 350) / 100, rd2(-200, -50) / 100).p, mouse.Hit * cf(rd2(-4, 4), rd2(-2, 2), 0).p)
3312
		ah.Transparency = 0.25
3313
		ah:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0, 0, 0)
3314
		ai.Transparency = 0.35
3315
		ai:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.6, 0.6, 0.6)
3316
		aj.Transparency = 0.45
3317
		aj:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.7, 0.7, 0.7)
3318
		aj.CFrame = ah.CFrame * ang(0, rd(90), rd(90))
3319
		if af % 2 == 1 then
3320
			ai.CFrame = cf(rarm.CFrame * cf(rd2(-6, 6) / 10, rd2(4, 12) / 10, rd2(-12, -1) / 10).p, mouse.Hit.p) * ang(0, rd(90), rd(90))
3321
		else
3322
			if af % 2 == 0 then
3323
				ai.CFrame = cf(larm.CFrame * cf(rd2(-6, 6) / 10, rd2(3, 8) / 10, rd2(-12, -1) / 10).p, mouse.Hit.p) * ang(0, rd(90), rd(90))
3324
			end
3325
		end
3326
		ba.CFrame = ah.CFrame * cf(0, 0, -8)
3327
		ba.Transparency = 0.4
3328
		ba:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.7, 0.7, 0.7)
3329
		local bb = ah.CFrame * cf(0, 0, -5)
3330
		local bc = aj.CFrame * cf(0, -0.1, 0)
3331
		local bd = ba.CFrame * cf(0, 0, rd2(-300, 50) / 100)
3332
		local ak = false
3333
		for j = 1, 12 do
3334
			swait()
3335
			local a0 = Ray.new(ah.Position, ah.CFrame.lookVector * (12.5 - j))
3336
			local a1, a2 = workspace:FindPartOnRayWithIgnoreList(a0, {char}, true, true)
3337
			if a1 and ak == false then
3338
				ak = true
3339
				local a3 = makepart("Really blue", "nah", 0, 0.2, "SmoothPlastic", modz, cf(a2, ah.CFrame.p) * ang(0, 0, 0) * ang(0, rd(270), rd(90)))
3340
				do
3341
					local a4 = makemesh("FileMesh", Vector3.new(0.4, 0.4, 0.4), "rbxassetid://489415447", a3)
3342
					game.Debris:AddItem(a3, 0.5)
3343
					local a5 = rd2(1, 12)
3344
					if a5 == 6 then
3345
						hito(a3, 3.25, 6, 0.06, ah.CFrame.lookVector * 10, Vector3.new(0, 0, rd2(-8, 8)))
3346
					else
3347
						hito(a3, 3.25, 6, 0.06, ah.CFrame.lookVector * 10)
3348
					end
3349
					coroutine.resume(coroutine.create(function()			
3350
			for I = 1, 4 do
3351
				swait()
3352
				a4.Scale = a4.Scale + Vector3.new(0.8, 0.8, 0.8)
3353
				a3.Transparency = a3.Transparency + 0.2
3354
			end
3355
			a3:Destroy()
3356
		end))
3357
				end
3358
			end
3359
					ah.Size = ah.Size:lerp(Vector3.new(2, 2, 12), 0.5)
3360
					ah.CFrame = ah.CFrame:lerp(bb, 1)
3361
					ah:FindFirstChildOfClass("SpecialMesh").Scale = ah:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1, 1, 1), 0.45)
3362
					ah.Transparency = ah.Transparency + 0.0725
3363
					ai:FindFirstChildOfClass("SpecialMesh").Scale = ai:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1.25, 1.2, 1.25), 0.4)
3364
					ai.Transparency = ai.Transparency + 0.06
3365
					aj:FindFirstChildOfClass("SpecialMesh").Scale = aj:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1.6, 1.6, 1.6), 0.4)
3366
					aj.CFrame = aj.CFrame:lerp(bc, 0.3)
3367
					aj.Transparency = aj.Transparency + 0.05
3368
					ba:FindFirstChildOfClass("SpecialMesh").Scale = ba:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(4.5, 4.5, 4.5), 0.4)
3369
					ba.CFrame = ba.CFrame:lerp(bd, 0.3)
3370
					ba.Transparency = ba.Transparency + 0.06
3371
		end
3372
	end))
3373
			swait()
3374
		until ov == false
3375
	for I,aO in pairs(H) do
3376
		if aO.Parent == rarm or aO.Parent == larm then
3377
			aO.Transparency = aN
3378
		end
3379
	end
3380
	b8:Destroy()
3381
	b9:Destroy()
3382
	a8:Destroy()
3383
	hum.AutoRotate = true
3384
	ov = false
3385
	wait(1)
3386
	for I,al in pairs(aa) do
3387
		al:Destroy()
3388
	end
3389
	for I,am in pairs(ab) do
3390
		am:Destroy()
3391
	end
3392
	for I,be in pairs(b7) do
3393
		be:Destroy()
3394
	end
3395
	end
3396
	
3397
	
3398
	
3399
	
3400
	
3401
	
3402
	function Kneel()
3403
		
3404
 for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do
3405
        if v:FindFirstChild('Humanoid') then
3406
	
3407
	hum2 = v:FindFirstChild('Humanoid')
3408
    hum2.PlatformStand=true
3409
   
3410
end
3411
end
3412
	end
3413
	
3414
--[[mouse.KeyDown:connect(function(key)
3415
	if key == "l" and Trans == false and Strength then
3416
		Transformation()
3417
		Trans = true
3418
	end
3419
end)]]
3420
3421
3422
3423
mouse.KeyDown:connect(function(key)
3424
	if key == "z" then
3425
		GrabAndDrag()
3426
	end
3427
end)
3428
3429
3430
mouse.KeyDown:connect(function(key)
3431
	if key == "x"  then
3432
		AirSlam()
3433
	end
3434
end)
3435
3436
3437
3438
mouse.KeyDown:connect(function(key)
3439
	if key == "c"  then
3440
		SpinSlice()
3441
	end
3442
end)
3443
3444
3445
mouse.KeyDown:connect(function(key)
3446
	if key == "p"  and Full == false then
3447
		FullPower()
3448
	end
3449
end)
3450
3451
mouse.KeyDown:connect(function(key)
3452
	if key == "1"  then
3453
		Sound("rbxassetid://966268002",char,90,1,false)
3454
		Kneel()
3455
	end
3456
end)
3457
3458
mouse.KeyDown:connect(function(key)
3459
	if key == "v" then
3460
		if ov == false then
3461
		hed.Weld.C0 = hed.Weld.C0 * CFrame.Angles(0,0,0)
3462
        wait()
3463
        local ChatService = game:GetService("Chat")
3464
	    wait()
3465
        local ChatService = game:GetService("Chat")
3466
coroutine.resume(coroutine.create(function()
3467
s = 0
3468
repeat
3469
s = s + 1
3470
Barrage()
3471
wait()
3472
until not ov
3473
end))
3474
if Full == true then
3475
coroutine.resume(coroutine.create(function()
3476
s = 0
3477
repeat
3478
s = s + 1
3479
Barrage()
3480
wait()
3481
until not ov
3482
end))	
3483
end
3484
mouse.KeyUp:connect(function(key)
3485
	if key == "v" then
3486
		wait(0.4)
3487
		ov = false
3488
		wait(0.1)
3489
end
3490
end)
3491
end
3492
end
3493
end)
3494
3495
3496
3497
3498
3499
-----animations-----
3500
3501
game:GetService("RunService").RenderStepped:connect(function()
3502
char.Humanoid.FreeFalling:connect(function(f)
3503
if f then
3504
ffing = true
3505
else
3506
ffing = false
3507
end
3508
end)
3509
sine = sine + add
3510
if ffing==true then
3511
anim="jump"
3512
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
3513
anim="idle"
3514
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
3515
anim = "walk"
3516
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
3517
anim = "run"
3518
end
3519
3520
if NoAnims==false then
3521
if anim=="idle" then
3522
add=0.5
3523
if trans == false then
3524
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.05)
3525
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
3526
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
3527
rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
3528
larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1)
3529
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
3530
else
3531
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
3532
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
3533
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
3534
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.8,0.6,-0.6)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-90)), 0.5)--arm
3535
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.8,0.6,-.6)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.5)--arm
3536
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
3537
end
3538
3539
elseif anim=="walk" then
3540
add=0.5
3541
if trans == false then
3542
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/3.5)/3,0)*CFrame.Angles(math.rad(-10),0,0),0.25)
3543
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/7)/2,-0.15+-math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/7)/2,0,0.05),0.25)
3544
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/7)/2,-0.15+math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/7)/2,0,-0.05),0.25)
3545
rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/7)/7,0+math.sin(sine/14)/7)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/2,0,-6+-math.sin(sine/14)/7),0.1)
3546
larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/10)/14,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1)
3547
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),0.25)
3548
else
3549
change = 0.5
3550
          larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 3), -math.sin(sine / 6) / 4) * CFrame.Angles(math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(-10 - 2 * math.cos(sine / 3))), 0.2)
3551
          rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 - 0.05 * math.cos(sine / 3), math.sin(sine / 6) / 4) * CFrame.Angles(-math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(10 + 2 * math.cos(sine / 3))), 0.2)
3552
          hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8 + 2 * math.cos(sine / 3)), math.rad(0), math.rad(0)), 0.2)
3553
          lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.15 * math.cos(sine / 6) / 5, -0.15 + math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + -math.sin(sine / 6) / 2.7, 0, 0), 0.4)
3554
          rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 + 0.15 * math.cos(sine / 6) / 5, -0.15 + -math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + math.sin(sine / 6) / 2.7, 0, 0), 0.4)
3555
          torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.07 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-4 + 1 * math.cos(sine / 3)), 0, math.rad(0)), 0.2)
3556
end
3557
3558
elseif anim=="run" then
3559
add=0.5
3560
if trans == false then
3561
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/2)/3,0)*CFrame.Angles(math.rad(-37),0,0),0.025)
3562
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/4)/2,-0.15+-math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/4)/2,0,0.05),0.25)
3563
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/4)/2,-0.15+math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/4)/2,0,-0.05),0.25)
3564
rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,-6),0.25)
3565
larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,6),0.25)
3566
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),0,0),0.25)
3567
else
3568
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,1+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
3569
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
3570
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
3571
rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,-6),0.25)
3572
larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,6),0.25)
3573
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0.3)*CFrame.Angles(math.rad(70),0,0),0.25)
3574
end
3575
3576
elseif anim=="jump" then
3577
add=0.5
3578
torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0+-math.cos(sine/14)/7,.5+-math.cos(sine/14)/7,0+-math.cos(sine/14)/7)*CFrame.Angles(math.rad(0),0,0),0.05)
3579
rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25)
3580
lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25)
3581
rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25)
3582
larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25)
3583
hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25)
3584
3585
end
3586
end
3587
                 
3588
end)
3589
3590
3591
--[[l = game.Lighting
3592
l.TimeOfDay = 1
3593
game.Lighting.Ambient = Color3.new(0,0,0)
3594
l.Brightness = 0.1]]--