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