View difference between Paste ID: ASWyTQ4k and ZdeDamS4
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local Mouse = Player:GetMouse()
66
    local UIS = game:GetService("UserInputService")
67
    local input = function(io,a)
68
        if a then return end
69
        --Since InputObject is a client-side instance, we create and pass table instead
70
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
    end
72
    UIS.InputBegan:Connect(input)
73
    UIS.InputEnded:Connect(input)
74
 
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
 
85
    ----Sandboxed game object that allows the usage of client-side methods and services
86
    --Real game object
87
    local _rg = game
88
 
89
    --Metatable for fake service
90
    local fsmt = {
91
        __index = function(self,k)
92
            local s = rawget(self,"_RealService")
93
            if s then return s[k] end
94
        end,
95
        __newindex = function(self,k,v)
96
            local s = rawget(self,"_RealService")
97
            if s then s[k]=v end
98
        end,
99
        __call = function(self,...)
100
            local s = rawget(self,"_RealService")
101
            if s then return s(...) end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return self[s]
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
    }
120
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
    g.service = g.GetService
122
   
123
    g.RunService = FakeService({
124
        RenderStepped = _rg:GetService("RunService").Heartbeat,
125
        BindToRenderStep = function(self,name,_,fun)
126
            self._btrs[name] = self.Heartbeat:Connect(fun)
127
        end,
128
        UnbindFromRenderStep = function(self,name)
129
            self._btrs[name]:Disconnect()
130
        end,
131
    },"RunService")
132
 
133
    setmetatable(g,{
134
        __index=function(self,s)
135
            return _rg:GetService(s) or typeof(_rg[s])=="function"
136
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
        end,
138
        __newindex = fsmt.__newindex,
139
        __call = fsmt.__call
140
    })
141
    --Changing owner to fake player object to support owner:GetMouse()
142
    game,owner = g,g.Players.LocalPlayer
143
  end
144
145
146
local punched1 = true
147
local punched2 = false
148
local punched3 = false
149
local punched4 = false
150
local beamgo4 = 2.2
151
local beamgo3 = 1
152
local trans = 1
153
local ssj1 = false
154
local ssj2 = false
155
local transforming1 = false
156
local transforming2 = false
157
local transforming3 = false
158
local transforming4 = false
159
local onaura = true
160
local num = 0
161
local enabled = true
162
local beamgo = 2.2
163
local beamgo1 = 1
164
local p = game.Players.LocalPlayer
165
local char = p.Character
166
local mouse = p:GetMouse()
167
local larm = char["Left Arm"]
168
local rarm = char["Right Arm"]
169
local lleg = char["Left Leg"]
170
local rleg = char["Right Leg"]
171
local hed = char.Head
172
local torso = char.Torso
173
local hum = char.Humanoid
174
local root = char.HumanoidRootPart
175
local canattack = true
176
local canwalk = true
177
local canwalk1 = true
178
local canidle = true
179
local rs = game:GetService("RunService").RenderStepped
180
local new = Instance.new
181
local v3 = Vector3.new
182
local ns = NumberSequence.new
183
local nr = NumberRange.new
184
local bc = BrickColor.new
185
local cf = CFrame.new
186
local cfa = CFrame.Angles
187
local rad = math.rad
188
local startk = false
189
local beam1 = false
190
local beam2 = false
191
for i,v in pairs(char:GetChildren()) do
192
	if v.ClassName == "Accessory" then
193
		v:Destroy()
194
	end
195
end
196
-----------------------------------
197
--god/health
198
199
		Instance.new("ForceField",char).Visible = false
200
		hum.MaxHealth = math.huge
201
		hum.Health = math.huge
202
		hum.Name = "nohit"
203
		
204
-----------------------------------
205
function Lerp(c1,c2,al)
206
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
207
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
208
for i,v in pairs(com1) do
209
com1[i] = v+(com2[i]-v)*al
210
end
211
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
212
end
213
----------------------------------------------------------------------------------------------------
214
--GoundWaves
215
GroundWave1 = function()
216
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) + torso.CFrame.lookVector * 5
217
	Colors = {"Lime green", "Lime green"}
218
		local wave = Instance.new("Part", char)
219
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
220
		wave.Anchored = true
221
		wave.Name = "Wave"
222
		wave.CanCollide = false
223
		wave.Locked = true
224
		wave.Size = Vector3.new(1, 1, 1)
225
		wave.TopSurface = "Smooth"
226
		wave.BottomSurface = "Smooth"
227
		wave.Transparency = 0.35
228
		wave.CFrame = HandCF
229
		wm = Instance.new("SpecialMesh", wave)
230
		wm.MeshId = "rbxassetid://3270017"
231
		coroutine.wrap(function()
232
		for i = 1, 30, 1 do
233
		wm.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
234
		wave.Size = wm.Scale
235
		wave.CFrame = HandCF
236
		wave.Transparency = i/30
237
		wait()
238
		end
239
		wait()
240
		wave:Destroy()
241
	end)()
242
end
243
GroundWave2 = function()
244
	local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
245
	Colors = {"Lime green", "Lime green"}
246
		local wave3 = Instance.new("Part", char)
247
		wave3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
248
		wave3.Anchored = true
249
		wave3.Name = "Wave"
250
		wave3.CanCollide = false
251
		wave3.Locked = true
252
		wave3.Size = Vector3.new(1, 1, 1)
253
		wave3.TopSurface = "Smooth"
254
		wave3.BottomSurface = "Smooth"
255
		wave3.Transparency = 0.35
256
		wave3.CFrame = HandCF
257
		wm1 = Instance.new("SpecialMesh", wave3)
258
		wm1.MeshId = "rbxassetid://3270017"
259
		coroutine.wrap(function()
260
		for i = 1, 30, 1 do
261
		wm1.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
262
		wave3.Size = wm1.Scale
263
		wave3.CFrame = HandCF
264
		wave3.Transparency = i/30
265
		wait()
266
		end
267
		wait()
268
		wave3:Destroy()
269
	end)()
270
end
271
GroundWave3 = function()
272
	local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
273
	Colors = {"Lime green", "Lime green"}
274
		local wave2 = Instance.new("Part", char)
275
		wave2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
276
		wave2.Anchored = true
277
		wave2.Name = "Wave"
278
		wave2.CanCollide = false
279
		wave2.Locked = true
280
		wave2.Size = Vector3.new(1, 1, 1)
281
		wave2.TopSurface = "Smooth"
282
		wave2.BottomSurface = "Smooth"
283
		wave2.Transparency = 0.35
284
		wave2.CFrame = HandCF
285
		wm2 = Instance.new("SpecialMesh", wave2)
286
		wm2.MeshId = "rbxassetid://3270017"
287
		coroutine.wrap(function()
288
		for i = 1, 30, 1 do
289
		wm2.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
290
		wave2.Size = wm2.Scale
291
		wave2.CFrame = HandCF
292
		wave2.Transparency = i/30
293
		wait()
294
		end
295
		wait()
296
		wave2:Destroy()
297
	end)()
298
end
299
GroundWave4 = function()
300
	local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
301
	Colors = {"Lime green", "Lime green"}
302
		local wave1 = Instance.new("Part", char)
303
		wave1.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
304
		wave1.Anchored = true
305
		wave1.Name = "Wave"
306
		wave1.CanCollide = false
307
		wave1.Locked = true
308
		wave1.Size = Vector3.new(1, 1, 1)
309
		wave1.TopSurface = "Smooth"
310
		wave1.BottomSurface = "Smooth"
311
		wave1.Transparency = 0.35
312
		wave1.CFrame = HandCF
313
		wm3 = Instance.new("SpecialMesh", wave1)
314
		wm3.MeshId = "rbxassetid://3270017"
315
		coroutine.wrap(function()
316
		for i = 1, 30, 1 do
317
		wm3.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
318
		wave1.Size = wm3.Scale
319
		wave1.CFrame = HandCF
320
		wave1.Transparency = i/30
321
		wait()
322
		end
323
		wait()
324
		wave1:Destroy()
325
	end)()
326
end
327
--------------------------------------------------------------------------
328
--transform
329
GroundWave5 = function()
330
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
331
	Colors = {"Lime green", "Lime green"}
332
		local wave11 = Instance.new("Part", char)
333
		wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
334
		wave11.Anchored = true
335
		wave11.Name = "Wave"
336
		wave11.CanCollide = false
337
		wave11.Locked = true
338
		wave11.Size = Vector3.new(1, 1, 1)
339
		wave11.TopSurface = "Smooth"
340
		wave11.BottomSurface = "Smooth"
341
		wave11.Transparency = 0.35
342
		wave11.CFrame = HandCF
343
		wm31 = Instance.new("SpecialMesh", wave11)
344
		wm31.MeshId = "rbxassetid://3270017"
345
		coroutine.wrap(function()
346
		for i = 1, 30, 1 do
347
		wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
348
		wave11.Size = wm31.Scale
349
		wave11.CFrame = HandCF
350
		wave11.Transparency = i/30
351
		wait()
352
		end
353
		wait()
354
		wave11:Destroy()
355
	end)()
356
end
357
GroundWave6 = function()
358
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
359
	Colors = {"Lime green", "Lime green"}
360
		local wave111 = Instance.new("Part", char)
361
		wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
362
		wave111.Anchored = true
363
		wave111.Name = "Wave"
364
		wave111.CanCollide = false
365
		wave111.Locked = true
366
		wave111.Size = Vector3.new(1, 1, 1)
367
		wave111.TopSurface = "Smooth"
368
		wave111.BottomSurface = "Smooth"
369
		wave111.Transparency = 0.35
370
		wave111.CFrame = HandCF
371
		wm311 = Instance.new("SpecialMesh", wave111)
372
		wm311.MeshId = "rbxassetid://3270017"
373
		coroutine.wrap(function()
374
		for i = 1, 30, 1 do
375
		wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
376
		wave111.Size = wm311.Scale
377
		wave111.CFrame = HandCF
378
		wave111.Transparency = i/30
379
		wait()
380
		end
381
		wait()
382
		wave111:Destroy()
383
	end)()
384
end
385
GroundWave7 = function()
386
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90))
387
	Colors = {"Lime green", "Lime green"}
388
		local wave1111 = Instance.new("Part", char)
389
		wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
390
		wave1111.Anchored = true
391
		wave1111.Name = "Wave"
392
		wave1111.CanCollide = false
393
		wave1111.Locked = true
394
		wave1111.Size = Vector3.new(1, 1, 1)
395
		wave1111.TopSurface = "Smooth"
396
		wave1111.BottomSurface = "Smooth"
397
		wave1111.Transparency = 0.35
398
		wave1111.CFrame = HandCF
399
		wm3111 = Instance.new("SpecialMesh", wave1111)
400
		wm3111.MeshId = "rbxassetid://3270017"
401
		coroutine.wrap(function()
402
		for i = 1, 30, 1 do
403
		wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
404
		wave1111.Size = wm3111.Scale
405
		wave1111.CFrame = HandCF
406
		wave1111.Transparency = i/30
407
		wait()
408
		end
409
		wait()
410
		wave1111:Destroy()
411
	end)()
412
end
413
GroundWave8 = function()
414
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(40), math.rad(90), math.rad(0))
415
	Colors = {"Lime green", "Lime green"}
416
		local wave11111 = Instance.new("Part", char)
417
		wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
418
		wave11111.Anchored = true
419
		wave11111.Name = "Wave"
420
		wave11111.CanCollide = false
421
		wave11111.Locked = true
422
		wave11111.Size = Vector3.new(1, 1, 1)
423
		wave11111.TopSurface = "Smooth"
424
		wave11111.BottomSurface = "Smooth"
425
		wave11111.Transparency = 0.35
426
		wave11111.CFrame = HandCF
427
		wm31111 = Instance.new("SpecialMesh", wave11111)
428
		wm31111.MeshId = "rbxassetid://3270017"
429
		coroutine.wrap(function()
430
		for i = 1, 30, 1 do
431
		wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
432
		wave11111.Size = wm31111.Scale
433
		wave11111.CFrame = HandCF
434
		wave11111.Transparency = i/30
435
		wait()
436
		end
437
		wait()
438
		wave11111:Destroy()
439
	end)()
440
end
441
GroundWave9 = function()
442
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(40))
443
	Colors = {"Lime green", "Lime green"}
444
		local wave111111 = Instance.new("Part", char)
445
		wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
446
		wave111111.Anchored = true
447
		wave111111.Name = "Wave"
448
		wave111111.CanCollide = false
449
		wave111111.Locked = true
450
		wave111111.Size = Vector3.new(1, 1, 1)
451
		wave111111.TopSurface = "Smooth"
452
		wave111111.BottomSurface = "Smooth"
453
		wave111111.Transparency = 0.35
454
		wave111111.CFrame = HandCF
455
		wm311111 = Instance.new("SpecialMesh", wave111111)
456
		wm311111.MeshId = "rbxassetid://3270017"
457
		coroutine.wrap(function()
458
		for i = 1, 30, 1 do
459
		wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
460
		wave111111.Size = wm311111.Scale
461
		wave111111.CFrame = HandCF
462
		wave111111.Transparency = i/30
463
		wait()
464
		end
465
		wait()
466
		wave111111:Destroy()
467
	end)()
468
end
469
GroundWave10 = function()
470
	local HandCF = torso.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
471
	Colors = {"Lime green", "Lime green"}
472
		local wave1111111 = Instance.new("Part", char)
473
		wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
474
		wave1111111.Anchored = true
475
		wave1111111.Name = "Wave"
476
		wave1111111.CanCollide = false
477
		wave1111111.Locked = true
478
		wave1111111.Size = Vector3.new(1, 1, 1)
479
		wave1111111.TopSurface = "Smooth"
480
		wave1111111.BottomSurface = "Smooth"
481
		wave1111111.Transparency = 0.35
482
		wave1111111.CFrame = HandCF
483
		wm3111111 = Instance.new("SpecialMesh", wave1111111)
484
		wm3111111.MeshId = "rbxassetid://3270017"
485
		coroutine.wrap(function()
486
		for i = 1, 30, 1 do
487
		wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
488
		wave1111111.Size = wm3111111.Scale
489
		wave1111111.CFrame = HandCF
490
		wave1111111.Transparency = i/30
491
		wait()
492
		end
493
		wait()
494
		wave1111111:Destroy()
495
	end)()
496
end
497
----------------------------------------------------------------------------------------------------
498
--Hair
499
500
a8 = new("Part",char)
501
a8.Name = "Hair"
502
a8.Size = v3(2.92, 2.58, 2.72)
503
a8.BrickColor = bc("Really black")
504
a8.Material = "Neon"
505
a8.Transparency = 0
506
aa8 = new("SpecialMesh",a8)
507
aa8.MeshType = "FileMesh"
508
aa8.Scale = v3(7.3,7.3,7.3)
509
aa8.MeshId = "rbxassetid://455100513"
510
aaa8 =new("Weld",a8)
511
aaa8.Part0 = hed
512
aaa8.Part1 = a8
513
aaa8.C0 = cf(-0.15,.9,-0.1) * cfa(rad(0),rad(0),rad(0))
514
515
516
517
518
519
520
521
522
523
--Clothes
524
if char.Shirt == nil then
525
	Instance.new("Shirt",char)
526
end
527
if char.Pants == nil then
528
	Instance.new("Pants",char)
529
end
530
wait(0.5)
531
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=295880138"
532
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=295880753"
533
534
------------------------------------------------------------------------------
535
--Sounds
536
--Folder
537
soundfolder = Instance.new("Model",char)
538
soundfolder.Name = "Sound Folder"
539
--Sounds
540
kamecharge = Instance.new("Sound",soundfolder)
541
kamecharge.Volume = 10
542
kamecharge.Name = "kamecharge"
543
kamecharge.Looped = false
544
kamecharge.SoundId = "rbxassetid://908489666"
545
kamefire = Instance.new("Sound",soundfolder)
546
kamefire.Volume = 10
547
kamefire.Name = "kamefire"
548
kamefire.Looped = false
549
kamefire.SoundId = "rbxassetid://908474188"
550
kamehit = Instance.new("Sound",soundfolder)
551
kamehit.Volume = 30
552
kamehit.Name = "kamehit"
553
kamehit.Looped = false
554
kamehit.SoundId = "rbxassetid://908484148"
555
ssjaura = Instance.new("Sound",soundfolder)
556
ssjaura.Volume = 10
557
ssjaura.Name = "ssjaura"
558
ssjaura.Looped = true
559
ssjaura.SoundId = "rbxassetid://891397456"
560
ssjauraburst = Instance.new("Sound",soundfolder)
561
ssjauraburst.Volume = math.huge
562
ssjauraburst.Name = "ssjauraburst"
563
ssjauraburst.Looped =false
564
ssjauraburst.SoundId = "rbxassetid://437393965"
565
ssjmusic = Instance.new("Sound",soundfolder)
566
ssjmusic.Volume = 10
567
ssjmusic.Name = "ssjmusic"
568
ssjmusic.Looped = true
569
ssjmusic.SoundId = "rbxassetid://194135434"
570
ssj2music = Instance.new("Sound",soundfolder)
571
ssj2music.Volume = 10
572
ssj2music.Name = "ssj2music"
573
ssj2music.Looped = true
574
ssj2music.SoundId = "rbxassetid://144377132"
575
ssj2aura = Instance.new("Sound",soundfolder)
576
ssj2aura.Volume = 10
577
ssj2aura.Name = "ssj2aura"
578
ssj2aura.Looped = true
579
ssj2aura.SoundId = "rbxassetid://262498455"
580
Lightning = Instance.new("Sound",soundfolder)
581
Lightning.Volume = math.huge
582
Lightning.Name = "Lightning"
583
Lightning.Looped = false
584
Lightning.SoundId = "rbxasset://sounds/HalloweenThunder.wav"
585
fahersonstart = Instance.new("Sound",soundfolder)
586
fahersonstart.Volume = math.huge
587
fahersonstart.Name = "fahersonstart"
588
fahersonstart.Looped = false
589
fahersonstart.SoundId = "rbxassetid://958391048"
590
fahersonend = Instance.new("Sound",soundfolder)
591
fahersonend.Volume = math.huge
592
fahersonend.Name = "fahersonend"
593
fahersonend.Looped = false
594
fahersonend.SoundId = "rbxassetid://958391222"
595
punchsound = Instance.new("Sound",soundfolder)
596
punchsound.Volume = 10
597
punchsound.Name = "punchsound"
598
punchsound.Looped = false
599
punchsound.SoundId = "rbxassetid://896246498"
600
punchsound1 = Instance.new("Sound",soundfolder)
601
punchsound1.Volume = 10
602
punchsound1.Name = "punchsound1"
603
punchsound1.Looped = false
604
punchsound1.SoundId = "rbxassetid://137579113"
605
606
607
608
609
610
611
612
613
614
615
616
----------------------------------------------------
617
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
618
local wld = Instance.new("Weld", wp1)
619
wld.Part0 = wp0
620
wld.Part1 = wp1
621
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
622
end
623
newWeld(torso, larm, -1.5, 0.5, 0)
624
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
625
newWeld(torso, rarm, 1.5, 0.5, 0)
626
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
627
newWeld(torso, hed, 0, 1.5, 0)
628
newWeld(torso, lleg, -0.5, -1, 0)
629
lleg.Weld.C1 = CFrame.new(0, 1, 0)
630
newWeld(torso, rleg, 0.5, -1, 0)
631
rleg.Weld.C1 = CFrame.new(0, 1, 0)
632
newWeld(root, torso, 0, -1, 0)
633
torso.Weld.C1 = CFrame.new(0, -1, 0)
634
--Animations
635
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
636
	
637
	
638
	
639
	
640
	
641
	
642
	
643
	
644
	
645
	
646
	
647
	
648
	
649
	
650
	
651
	
652
	
653
	
654
	
655
	
656
657
658
659
function firsthit()
660
	punchsound:Play()
661
662
for i = 1,5 do
663
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
664
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-20), math.rad(0)), .5)--torso
665
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(20)), .5)--arm
666
		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)), .5)--arm
667
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg
668
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg
669
		wait()
670
end
671
672
673
ag = new("Part",char)
674
ag.Name = "NewPart"
675
ag.Size = v3(1,1,1)
676
ag.CanCollide = false
677
ag.Position = v3(999,999,999)
678
ag.BrickColor = bc("Color")
679
ag.Material = "Neon"
680
ag.Transparency = 1
681
aaag =new("Weld",ag)
682
aaag.Part0 = rarm
683
aaag.Part1 = ag
684
aaag.C0 = cf(0,-1.5,0) * cfa(rad(0),rad(0),rad(0))
685
686
687
ag.Touched:connect(function(hit)
688
	for i,v in pairs(hit.Parent:GetChildren()) do
689
		if v:IsA("Humanoid") then
690
			ag.TouchInterest:Destroy()
691
			if ssj1 == false and ssj2 == false then
692
			v.Health = v.Health - 10
693
			end
694
			if ssj1 == true and ssj2 == true then
695
			v.Health = v.Health - 20
696
			end
697
			if ssj1 == false and ssj2 == true then
698
			v.Health = v.Health - 30
699
			end
700
			punchsound1:Play()
701
			
702
			
703
			
704
			
705
		end
706
	end
707
end)
708
709
710
711
712
		for i= 1,5 do
713
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
714
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(50), math.rad(0)), .5)--torso
715
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,-.8)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), .5)--arm
716
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), .5)--arm
717
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .5)--leg
718
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg
719
	wait()
720
		end
721
		ag:Destroy()
722
end
723
function secondhit()
724
	punchsound:Play()
725
726
		for i = 1,5 do
727
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
728
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(20), math.rad(0)), .5)--torso
729
		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)), .5)--arm
730
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), .5)--arm
731
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg
732
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg
733
		wait()
734
		end
735
		
736
		
737
		
738
		ag = new("Part",char)
739
ag.Name = "NewPart"
740
ag.Size = v3(1,1,1)
741
ag.CanCollide = false
742
ag.Position = v3(999,999,999)
743
ag.BrickColor = bc("Color")
744
ag.Material = "Neon"
745
ag.Transparency = 1
746
aaag =new("Weld",ag)
747
aaag.Part0 = larm
748
aaag.Part1 = ag
749
aaag.C0 = cf(0,-1.5,0) * cfa(rad(0),rad(0),rad(0))
750
751
752
753
ag.Touched:connect(function(hit)
754
	for i,v in pairs(hit.Parent:GetChildren()) do
755
		if v:IsA("Humanoid") then
756
			ag.TouchInterest:Destroy()
757
			if ssj1 == false and ssj2 == false then
758
			v.Health = v.Health - 10
759
			end
760
			if ssj1 == true and ssj2 == false then
761
			v.Health = v.Health - 20
762
			end
763
			if ssj1 == false and ssj2 == true then
764
			v.Health = v.Health - 30
765
			end
766
			punchsound1:Play()
767
			
768
			
769
			
770
		end
771
	end
772
end)
773
774
		
775
		
776
		
777
		
778
		
779
		
780
		
781
		for i= 1,5 do
782
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
783
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(-70), math.rad(0)), .5)--torso
784
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), .5)--arm
785
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.0,0.5,-0.8)*CFrame.Angles(math.rad(160),math.rad(70),math.rad(10)), .5)--arm
786
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg
787
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg
788
	wait()
789
		end
790
		ag:Destroy()
791
end
792
function thirdhit()
793
	punchsound:Play()
794
795
for i = 1,5 do
796
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
797
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-60), math.rad(0)), .5)--torso
798
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), .5)--arm
799
		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)), .5)--arm
800
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg
801
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg
802
		wait()
803
end
804
805
806
ag = new("Part",char)
807
ag.Name = "NewPart"
808
ag.Size = v3(1,1,1)
809
ag.CanCollide = false
810
ag.Position = v3(999,999,999)
811
ag.BrickColor = bc("Color")
812
ag.Material = "Neon"
813
ag.Transparency = 1
814
aaag =new("Weld",ag)
815
aaag.Part0 = rleg
816
aaag.Part1 = ag
817
aaag.C0 = cf(0,-1.5,0) * cfa(rad(0),rad(0),rad(0))
818
819
820
821
ag.Touched:connect(function(hit)
822
	for i,v in pairs(hit.Parent:GetChildren()) do
823
		if v:IsA("Humanoid") then
824
			ag.TouchInterest:Destroy()
825
			if ssj1 == false and ssj2 == false then
826
			v.Health = v.Health - 10
827
			end
828
			if ssj1 == true and ssj2 == false then
829
			v.Health = v.Health - 20
830
			end
831
			if ssj1 == false and ssj2 == true then
832
			v.Health = v.Health - 30
833
			end
834
			
835
			punchsound1:Play()
836
			
837
			
838
			
839
		end
840
	end
841
end)
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
for i = 1,5 do
860
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head
861
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(50), math.rad(0)), .5)--torso
862
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), .5)--arm
863
		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)), .5)--arm
864
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg
865
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(math.rad(120), math.rad(20), math.rad(-30)),.5)--leg
866
		wait()
867
end
868
ag:Destroy()
869
end
870
function lasthit()
871
	punchsound:Play()
872
873
for i = 1,5 do
874
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), .5)--head
875
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(80), math.rad(0)), .5)--torso
876
		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)), .5)--arm
877
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), .5)--arm
878
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg
879
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg
880
		wait()
881
end
882
883
884
885
886
887
888
889
890
891
892
893
ag = new("Part",char)
894
ag.Name = "NewPart"
895
ag.Size = v3(1,1,1)
896
ag.CanCollide = false
897
ag.Position = v3(999,999,999)
898
ag.BrickColor = bc("Color")
899
ag.Material = "Neon"
900
ag.Transparency = 1
901
aaag =new("Weld",ag)
902
aaag.Part0 = lleg
903
aaag.Part1 = ag
904
aaag.C0 = cf(0,-1.5,0) * cfa(rad(0),rad(0),rad(0))
905
906
907
908
ag.Touched:connect(function(hit)
909
	for i,v in pairs(hit.Parent:GetChildren()) do
910
		if v:IsA("Humanoid") then
911
			ag.TouchInterest:Destroy()
912
			if ssj1 == false and ssj2 == false then
913
			v.Health = v.Health - 10
914
			end
915
			if ssj1 == true and ssj2 == false then
916
			v.Health = v.Health - 20
917
			end
918
			if ssj1 == false and ssj2 == true then
919
			v.Health = v.Health - 30
920
			end
921
			
922
			
923
			punchsound1:Play()
924
			
925
			
926
		end
927
	end
928
end)
929
930
931
932
933
934
935
936
937
for i = 1,5 do
938
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(0)), .5)--head
939
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(-60), math.rad(0)), .5)--torso
940
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), .5)--arm
941
		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)), .5)--arm
942
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -.6) * CFrame.Angles(math.rad(120), math.rad(-30), math.rad(20)), .5)--leg
943
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg
944
		wait()
945
end
946
ag:Destroy()
947
end
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
function startkamehameha()	
971
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 1)--head
972
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)--torso
973
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 1)--arm
974
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 1)--arm
975
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)--leg
976
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)--leg
977
		
978
for i = 1, 20 do
979
		wait()
980
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.1)--head
981
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)--torso
982
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(30)), 0.1)--arm
983
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(65),math.rad(0),math.rad(-30)), 0.1)--arm
984
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-3)), 0.1)--leg
985
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(3)), 0.1)--leg
986
		end
987
for i = 1, 20 do
988
		wait()
989
		
990
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.1)--head
991
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)--torso
992
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1,0.7,-0.5)*CFrame.Angles(math.rad(85),math.rad(-10),math.rad(-30)), 0.1)--arm
993
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1,0.3,-0.5)*CFrame.Angles(math.rad(85),math.rad(10),math.rad(30)), 0.1)--arm
994
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-3)), 0.1)--leg
995
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(3)), 0.1)--leg
996
end
997
kamecharge:Play()
998
startk = true
999
for i = 1, 100 do
1000
		wait()
1001
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.1)--head
1002
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), math.rad(5)), 0.1)--torso
1003
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1,0.7,-0.5)*CFrame.Angles(math.rad(50),math.rad(-10),math.rad(-30)), 0.1)--arm
1004
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1,0.3,-0.5)*CFrame.Angles(math.rad(65),math.rad(10),math.rad(30)), 0.1)--arm
1005
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.1)--leg
1006
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(10)), 0.1)--leg
1007
end
1008
	end
1009
	function endkamehameha()
1010
for i = 1, 10 do
1011
		wait()
1012
		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.5)--head
1013
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)--torso
1014
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1,0.7,-0.5)*CFrame.Angles(math.rad(95),math.rad(-10),math.rad(-30)), 0.5)--arm
1015
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1,0.3,-0.5)*CFrame.Angles(math.rad(75),math.rad(10),math.rad(30)), 0.5)--arm
1016
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.5)--leg
1017
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(10)), 0.5)--leg
1018
end
1019
	end
1020
function fatherson()
1021
for i = 1,50 do
1022
	wait()
1023
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .1)--head
1024
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .1)--torso
1025
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.3)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)), .1)--arm
1026
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)), .1)--arm
1027
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), .1)--leg
1028
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), .1)--leg
1029
end
1030
wait(2)
1031
for i = 1,50 do	
1032
	wait()
1033
	hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(40),math.rad(0)), .1)--head
1034
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(-60), math.rad(0)), .1)--torso
1035
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0.5)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(10)), .1)--arm
1036
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(-20)), .1)--arm
1037
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-20)), .1)--leg
1038
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(5)), .1)--leg
1039
end
1040
end
1041
function fathersonfire()
1042
for i = 1,10 do
1043
	wait()
1044
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .4)--head
1045
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)--torso
1046
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,-0.3)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)), .4)--arm
1047
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-10)), .4)--arm
1048
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), .4)--leg
1049
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), .4)--leg
1050
end
1051
end
1052
	----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1053
	a = new("Part",char)
1054
a.Name = "NewPart"
1055
a.Size = v3(0.1,0.1,0.1)
1056
a.Shape = "Ball"
1057
a.Position = v3(999,999,999)
1058
a.BrickColor = bc("Lime green")
1059
a.Material = "Neon"
1060
a.Transparency = 1
1061
aa = new("SpecialMesh",a)
1062
aa.Scale = v3(1,1,1)
1063
aaa =new("Weld",a)
1064
aaa.Part0 = torso
1065
aaa.Part1 = a
1066
aaa.C0 = cf(0,0,-1.6) * cfa(rad(0),rad(0),rad(0))
1067
aaaa = new("ParticleEmitter",a)
1068
aaaa.Size = ns(1)
1069
aaaa.Rate = 5
1070
aaaa.Texture = "rbxassetid://247707397"
1071
aaaa.ZOffset = 1
1072
aaaa.Lifetime = nr(5)
1073
aaaa.Transparency = ns(1)
1074
aaaa.LockedToPart = true
1075
aaaa.Speed = nr(0)
1076
aw = new("Part",char)
1077
aw.Name = "NewPart"
1078
aw.Size = v3(0.1,0.1,0.1)
1079
aw.Shape = "Ball"
1080
aw.Position = v3(999,999,999)
1081
aw.BrickColor = bc("Lime green")
1082
aw.Material = "Neon"
1083
aw.Transparency = 1
1084
aaw = new("SpecialMesh",aw)
1085
aaw.Scale = v3(1,1,1)
1086
aaaw =new("Weld",aw)
1087
aaaw.Part0 = torso
1088
aaaw.Part1 = aw
1089
aaaw.C0 = cf(0,0,-1.6) * cfa(rad(0),rad(0),rad(0))
1090
aaaaw = new("ParticleEmitter",aw)
1091
aaaaw.Size = ns(5)
1092
aaaaw.Rate = 5
1093
aaaaw.Color = ColorSequence.new(Color3.fromRGB(0,255,0))
1094
aaaaw.Texture = "rbxassetid://924710961"
1095
aaaaw.ZOffset = -1
1096
aaaaw.Lifetime = nr(5)
1097
aaaaw.RotSpeed = nr(50)
1098
aaaaw.Transparency = ns(1)
1099
aaaaw.LockedToPart = true
1100
aaaaw.Speed = nr(0)
1101
1102
1103
1104
ae = new("Part",char)
1105
ae.Name = "NewPart"
1106
ae.Size = v3(0.1,0.1,0.1)
1107
ae.Shape = "Ball"
1108
ae.Position = v3(999,999,999)
1109
ae.BrickColor = bc("Lime green")
1110
ae.Material = "Neon"
1111
ae.Transparency = 1
1112
aaae =new("Weld",ae)
1113
aaae.Part0 = torso
1114
aaae.Part1 = ae
1115
aaae.C0 = cf(0,7,0) * cfa(rad(0),rad(0),rad(0))
1116
aaaae = new("ParticleEmitter",ae)
1117
aaaae.Size = ns(15)
1118
aaaae.Rate = 5
1119
aaaae.Color = ColorSequence.new(Color3.fromRGB(0,255,0))
1120
aaaae.ZOffset = -2
1121
aaaae.Lifetime = nr(5)
1122
aaaae.Transparency = ns(1)
1123
aaaae.LockedToPart = true
1124
aaaae.Speed = nr(0)
1125
1126
1127
ad = new("Part",char)
1128
ad.Name = "NewPart"
1129
ad.Size = v3(10,0.1,10)
1130
ad.CanCollide = false
1131
ad.Anchored = true
1132
ad.Position = torso.Position - v3(0,3,0)
1133
ad.BrickColor = bc("bright Blue")
1134
ad.Material = "Neon"
1135
ad.Transparency = 1
1136
aad = new("Decal",ad)
1137
aad.Texture = "rbxassetid://110711859"
1138
aad.Face = "Top"
1139
aad.Transparency = 1
1140
	----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1141
	--Functions
1142
	function kamehameha()
1143
		enabled = true
1144
		
1145
		
1146
		kamefire.Volume = 5
1147
		startkamehameha()
1148
	wait(2)
1149
	
1150
	endkamehameha()
1151
	a1 = new("Part",char)
1152
a1.Name = "Beam"
1153
a1.Anchored = true
1154
a1.Size = v3(6,6,6)
1155
a1.CanCollide = false
1156
a1.Locked = true
1157
a1.Position = v3(999,999,999)
1158
a1.BrickColor = bc("Lime green")
1159
a1.Material = "Neon"
1160
a1.Transparency = 0
1161
aa1 = new("SpecialMesh",a1)
1162
aa1.MeshType = "Cylinder"
1163
aa1.Scale = v3(1,1,1)
1164
1165
a2 = new("Part",char)
1166
a2.Name = "Beam"
1167
a2.Anchored = true
1168
a2.Locked = true
1169
a2.Size = v3(0.1,0.1,0.1)
1170
a2.CanCollide = false
1171
a2.Position = v3(999,999,999)
1172
a2.BrickColor = bc("Lime green")
1173
a2.Material = "Neon"
1174
a2.Transparency = 0
1175
aa2 = new("SpecialMesh",a2)
1176
aa2.MeshType = "Sphere"
1177
aa2.Scale = v3(150,100,100)
1178
a3 = new("Part",char)
1179
a3.Name = "Beam"
1180
a3.Locked = true
1181
a3.Anchored = true
1182
a3.Size = v3(0.1,0.1,0.1)
1183
a3.CanCollide = false
1184
a3.Position = v3(999,999,999)
1185
a3.BrickColor = bc("Lime green")
1186
a3.Material = "Neon"
1187
a3.Transparency = 0
1188
aa3 = new("SpecialMesh",a3)
1189
aa3.MeshType = "Sphere"
1190
aa3.Scale = v3(200,100,100)
1191
	kamecharge:Stop()
1192
	kamefire:Play()
1193
	hed.Anchored = true
1194
	a8.Anchored = true
1195
	ae.Anchored = true
1196
	GroundWave1()
1197
	startk = false
1198
1199
1200
--Damages
1201
-----------------------------------------------------------------------------------------
1202
a1.Touched:connect(function(hit)
1203
 
1204
if hit.Parent:findFirstChild("NewPart") == nil and hit.Size.x < 500 and hit.Parent:findFirstChild("Wave") == nil and hit ~= a8 then
1205
	
1206
	
1207
1208
	if hit.Parent:IsA("Model") then
1209
		hit.Parent:BreakJoints()
1210
	end
1211
	hit:Destroy()	
1212
	if enabled  == true then
1213
	enabled = false	
1214
	num = num + 1
1215
	kamehit:Play()
1216
		a21 = new("Part",char)
1217
a21.Name = "Beam"..num
1218
a21.Locked = true
1219
a21.Size = v3(1,1,1)
1220
a21.CanCollide = false
1221
a21.Position = v3(999,999,999)
1222
a21.BrickColor = bc("Lime green")
1223
a21.Material = "Neon"
1224
a21.Transparency = 0
1225
aa21 = new("SpecialMesh",a21)
1226
a21.Anchored = true
1227
a21.Position = hit.Position
1228
aa21.MeshType = "Sphere"
1229
aa21.Scale = v3(1,1,1)
1230
GroundWave2()
1231
GroundWave3()
1232
GroundWave4()
1233
	for i = 1,50 do
1234
		wait()
1235
		char["Beam"..num].Mesh.Scale = char["Beam"..num].Mesh.Scale + v3(5,5,5)
1236
		char["Beam"..num].Transparency = char["Beam"..num].Transparency + 0.02
1237
	end
1238
	enabled = true
1239
	char["Beam"..num]:Destroy()
1240
	end
1241
	
1242
end
1243
1244
end)
1245
1246
1247
1248
1249
1250
1251
1252
beam2 = true
1253
beam1 = true
1254
wait(2)
1255
1256
beam1 = false
1257
1258
repeat
1259
	wait()
1260
	a1.Size = a1.Size - v3(0,0.2,0.2)
1261
	aa2.Scale = aa2.Scale - v3(3,3,3)
1262
	aa3.Scale = aa3.Scale - v3(3,3,3)
1263
until
1264
	a1.Size.y < 0.1
1265
	
1266
	beamgo = 2.2
1267
	beamgo1 = 1
1268
	a1:Destroy()
1269
		a2:Destroy()
1270
		a3:Destroy()
1271
		for i = 1,10 do
1272
			wait()
1273
	
1274
	kamefire.Volume = kamefire.Volume - 0.5
1275
		end
1276
		kamefire:Stop()
1277
		
1278
		hed.Anchored = false
1279
		a8.Anchored = false
1280
		ae.Anchored = false
1281
	end
1282
	
1283
	
1284
	
1285
	
1286
	
1287
	
1288
	
1289
	
1290
	
1291
	
1292
	
1293
	
1294
	
1295
	----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1296
	--RenderedStep
1297
	rs:connect(function()
1298
		--kamehameha
1299
		------------------------------------------------------------------
1300
		if startk == true then
1301
		aaaa.Transparency = ns(0)
1302
		aaaaw.Transparency = ns(0)
1303
		aaaa.Size = ns(math.random(1,2))
1304
		else
1305
			aaaa.Transparency = ns(1)
1306
			aaaaw.Transparency = ns(1)
1307
		end
1308
		
1309
		if beam1 == true then
1310
			beamgo = beamgo + 1
1311
			beamgo1 = beamgo1 + 0.016
1312
			a1.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo
1313
			aa1.Scale = v3(1,math.random(1,1.2),math.random(1,1.2))
1314
			a3.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo * 5
1315
			a1.Size = a1.Size + v3(beamgo1,0,0)
1316
			aa2.Scale = v3(150,math.random(100,120),math.random(100,120))
1317
			aa3.Scale = v3(200,math.random(100,120),math.random(100,120))
1318
			a2.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) - torso.CFrame.lookVector * 1
1319
		end
1320
		if beam2 == true then
1321
			a1.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo
1322
			a2.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * 8
1323
				a3.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo * 1.93
1324
		end
1325
		-----------------------------------------------------------------------
1326
		
1327
		
1328
1329
1330
1331
1332
1333
1334
1335
1336
if hum.MoveDirection.x == 0 then
1337
if canidle == true then
1338
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.1)--head
1339
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), .1)--torso
1340
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(105),math.rad(0),math.rad(0)), .1)--arm
1341
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.2,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-20)),.1)--arm
1342
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(-5)),.1)--leg
1343
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(10)),.1)--leg
1344
	end	
1345
end
1346
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1347
		
1348
		if canwalk1 == true then	
1349
		canwalk1 = false
1350
for i = 1,10 do
1351
	wait()
1352
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1353
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .1)--head
1354
	end
1355
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1356
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(5), math.rad(0)), .1)--torso
1357
	end
1358
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1359
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(5)), .1)--arm
1360
	end
1361
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1362
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-5)), .1)--arm
1363
	end
1364
if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1365
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), .1)--leg
1366
		end
1367
		if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1368
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), .1)--leg
1369
end
1370
end
1371
if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1372
for i = 1,10 do	
1373
	wait()
1374
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1375
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .1)--head
1376
	end
1377
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1378
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(0)), .1)--torso
1379
	end
1380
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1381
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(5)), .1)--arm
1382
	end
1383
	if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1384
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(-5)), .1)--arm
1385
	end
1386
if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1387
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), .1)--leg
1388
	end
1389
if hum.MoveDirection.x > 0 and canwalk == true or hum.MoveDirection.x < 0 and canwalk == true then
1390
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), .1)--leg
1391
end
1392
end
1393
end
1394
canwalk1 = true
1395
		end
1396
		
1397
	
1398
	end	
1399
	
1400
	if block == true then
1401
	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
1402
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)--torso
1403
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.8,0.5,-0.7)*CFrame.Angles(math.rad(175),math.rad(0),math.rad(-10)), 0.4)--arm
1404
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.8,0.5,-0.7)*CFrame.Angles(math.rad(175),math.rad(0),math.rad(10)), 0.4)--arm
1405
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)), 0.4)--leg
1406
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, -0.1, -0.7) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(2)), 0.4)--leg
1407
	
1408
	
1409
	end
1410
	--------------------------------------------------
1411
	--Aura
1412
	if onaura == true then
1413
		onaura =false
1414
		
1415
	wait(0.1)
1416
	aaaae.Texture = "rbxassetid://926705964"
1417
	wait(0.1)
1418
	aaaae.Texture = "rbxassetid://926709486"
1419
	wait(0.1)
1420
	aaaae.Texture = "rbxassetid://926711720"
1421
	wait(0.1)
1422
	aaaae.Texture = "rbxassetid://926712235"
1423
	onaura =true
1424
	end
1425
	
1426
	if transforming1 == true then
1427
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), 0.1)--head
1428
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)--torso
1429
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(10)), 0.1)--arm
1430
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(-10)), 0.1)--arm
1431
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-5)), 0.1)--leg
1432
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)--leg
1433
		
1434
	end
1435
	
1436
	if transforming2 == true then
1437
		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.1)--head
1438
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)--torso
1439
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(15)), 0.1)--arm
1440
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-15)), 0.1)--arm
1441
		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.1)--leg
1442
		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.1)--leg
1443
		
1444
	end
1445
	
1446
	
1447
	if transforming3 == true then
1448
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.1)--head
1449
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.1)--torso
1450
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(-20),math.rad(10)), 0.1)--arm
1451
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(-20),math.rad(-10)), 0.1)--arm
1452
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-5)), 0.1)--leg
1453
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(5)), 0.1)--leg
1454
		
1455
	end
1456
	
1457
	if beam3 == true then
1458
			beamgo4 = beamgo4 + 1
1459
			beamgo3 = beamgo3 + 0.018
1460
			a1s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo4
1461
			aa1s.Scale = v3(1,math.random(1,1.2),math.random(1,1.2))
1462
			a3s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo4 * 5
1463
			a1s.Size = a1s.Size + v3(beamgo3,0,0)
1464
			aa2s.Scale = v3(200,math.random(150,170),math.random(150,170))
1465
			aa3s.Scale = v3(250,math.random(150,170),math.random(150,170))
1466
			a2s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) - torso.CFrame.lookVector * 1
1467
		end
1468
		if beam4 == true then
1469
			a1s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo4
1470
			a2s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * 8
1471
				a3s.CFrame = torso.CFrame * CFrame.Angles(0,rad(90),0) + torso.CFrame.lookVector * beamgo4 * 1.93
1472
		end
1473
	
1474
	
1475
	end)
1476
	----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1477
	--Kamehameha
1478
	---------------------------------------------------------------------
1479
	mouse.KeyDown:connect(function(key)
1480
	if key == "q" then
1481
		if canattack == true then
1482
			canattack = false
1483
			canidle = false
1484
		canwalk = false
1485
		kamehameha()
1486
		canattack = true
1487
		canwalk = true
1488
		canidle = true
1489
		end
1490
		end
1491
	end)
1492
	------------------------------------------------------------------
1493
	--Blocking
1494
	----------------------------------------------------------------
1495
	mouse.KeyDown:connect(function(key)
1496
	if key == "r" then
1497
		if canattack == true then
1498
			canattack = false
1499
		canidle = false
1500
		canwalk = false
1501
		
1502
		block = true
1503
		
1504
		end
1505
		end
1506
	end)
1507
	mouse.KeyUp:connect(function(key)
1508
	if key == "r" then
1509
		if canattack == false then
1510
			canattack = true
1511
		canidle = true
1512
		block = false
1513
		canwalk = true
1514
		
1515
		
1516
		end
1517
		end
1518
	end)
1519
	--------------------------------------------------------------------
1520
	--Transformations
1521
	--------------------------------------------------------------------
1522
	mouse.KeyDown:connect(function(key)
1523
	if key == "t" then
1524
		if ssj1 == false then
1525
		if canattack == true then
1526
			canattack = false
1527
		canidle = false
1528
		canwalk = false
1529
		ssj1 = true
1530
		ssjmusic:Play()
1531
		
1532
		------------------------------------------------
1533
		transforming1 = true
1534
	
1535
		wait(5)
1536
		ssjauraburst:Play()
1537
		GroundWave5()
1538
		GroundWave6()
1539
		GroundWave7()
1540
		GroundWave8()
1541
		GroundWave9()
1542
		GroundWave10()
1543
		ad.Position = torso.Position - v3(0,3,0)
1544
		aad.Transparency = 0
1545
		transforming1 = false
1546
		transforming2 = true
1547
		
1548
		a8.Color = Color3.fromRGB(0,255,0)
1549
		aaaae.Transparency = ns(0)
1550
		ssjaura:Play()
1551
		wait(3)
1552
		transforming2 = false
1553
		
1554
		
1555
		
1556
		
1557
		-------------------------------------------------
1558
			canattack = true
1559
		canidle = true
1560
		canwalk = true
1561
		for i = 1,20 do
1562
					wait()
1563
					aad.Transparency = aad.Transparency + 0.05
1564
				end
1565
		end
1566
		else
1567
			if canattack == true then
1568
			
1569
			canattack = false
1570
		canidle = false
1571
		canwalk = false
1572
		ssj2 = true
1573
			ssjmusic:Stop()
1574
			ssj2music:Play()
1575
			transforming3 = true
1576
			wait(1)
1577
			g1q = Instance.new("Part",char)
1578
			g1q.Name = "Smoke"
1579
			g1q.CanCollide = false
1580
			g1q.Position = torso.Position - v3(-8,3,0)
1581
			g1q.Size = v3(0.1,0.1,0.1)
1582
			g1q.Anchored = true
1583
			g1a = Instance.new("Part",char)
1584
			g1a.Name = "Smoke"
1585
			g1a.CanCollide = false
1586
			g1a.Position = torso.Position + v3(8,80,0)
1587
			g1a.Size = v3(0.1,0.1,0.1)
1588
			g1a.Anchored = true
1589
				g1q1 = Instance.new("Part",char)
1590
			g1q1.Name = "Smoke"
1591
			g1q1.CanCollide = false
1592
			g1q1.Position = torso.Position - v3(-5,3,7)
1593
			g1q1.Size = v3(0.1,0.1,0.1)
1594
			g1q1.Anchored = true
1595
			g1a1 = Instance.new("Part",char)
1596
			g1a1.Name = "Smoke"
1597
			g1a1.CanCollide = false
1598
			g1a1.Position = torso.Position + v3(5,80,-7)
1599
			g1a1.Size = v3(0.1,0.1,0.1)
1600
			g1a1.Anchored = true
1601
			g1q2 = Instance.new("Part",char)
1602
			g1q2.Name = "Smoke"
1603
			g1q2.CanCollide = false
1604
			g1q2.Position = torso.Position - v3(12,3,-6)
1605
			g1q2.Size = v3(0.1,0.1,0.1)
1606
			g1q2.Anchored = true
1607
			g1a2 = Instance.new("Part",char)
1608
			g1a2.Name = "Smoke"
1609
			g1a2.CanCollide = false
1610
			g1a2.Position = torso.Position + v3(-12,80,6)
1611
			g1a2.Size = v3(0.1,0.1,0.1)
1612
			g1a2.Anchored = true
1613
			
1614
game.Lighting.Brightness = 0
1615
wait(0)
1616
game.Lighting.Brightness = 9999999
1617
wait(0)
1618
game.Lighting.Brightness = 0
1619
wait(0)
1620
Lightning:Play()
1621
Lightning1(g1a.Position,g1q.Position,0.2,10,workspace)
1622
game.Lighting.Brightness = 9999999
1623
wait(0)
1624
game.Lighting.Brightness = 0
1625
wait(0)
1626
game.Lighting.Brightness = 9999999
1627
wait(0)
1628
game.Lighting.Brightness = 0
1629
wait(2)
1630
game.Lighting.Brightness = 0
1631
wait(0)
1632
game.Lighting.Brightness = 9999999
1633
wait(0)
1634
game.Lighting.Brightness = 0
1635
wait(0)
1636
Lightning:Play()
1637
Lightning1(g1a1.Position,g1q1.Position,0.2,10,workspace)
1638
game.Lighting.Brightness = 9999999
1639
wait(0)
1640
game.Lighting.Brightness = 0
1641
wait(0)
1642
game.Lighting.Brightness = 9999999
1643
wait(0)
1644
game.Lighting.Brightness = 0
1645
wait(1)
1646
game.Lighting.Brightness = 0
1647
wait(0)
1648
game.Lighting.Brightness = 9999999
1649
wait(0)
1650
game.Lighting.Brightness = 0
1651
wait(0)
1652
Lightning:Play()
1653
Lightning1(g1a2.Position,g1q2.Position,0.2,10,workspace)
1654
game.Lighting.Brightness = 9999999
1655
wait(0)
1656
game.Lighting.Brightness = 0
1657
wait(0)
1658
game.Lighting.Brightness = 9999999
1659
wait(0)
1660
game.Lighting.Brightness = 0
1661
wait(1)
1662
1663
			
1664
			
1665
			
1666
			wait(1)
1667
			ad.Position = torso.Position - v3(0,3,0)
1668
			ad.Size = v3(30,0.1,30)	
1669
		aad.Transparency = 0
1670
		aad.Texture = "http://www.roblox.com/asset/?id=108186785"
1671
			ssjauraburst:Play()
1672
			
1673
			
1674
			aaa8.C0 = cf(0,.8,.3) * cfa(rad(0),rad(0),rad(0))
1675
aa8.Scale = v3(7,7,7)
1676
aa8.MeshId = "rbxassetid://560186510"
1677
ssjaura:Stop()
1678
ssj2aura:Play()
1679
ssj2ele = Instance.new("ParticleEmitter",torso)
1680
ssj2ele.LockedToPart = true
1681
	ssj2ele.Size = ns(2.4)
1682
	ssj2ele.Rate = 5
1683
	ssj2ele.Speed = nr(0)
1684
	ssj2ele.Lifetime = nr(0.5)
1685
	ssj2ele.ZOffset = 2
1686
	ssj2ele.Texture = "rbxassetid://247707397"		
1687
			
1688
			g1 = Instance.new("Part",char)
1689
			g1.Name = "Smoke"
1690
			g1.CanCollide = false
1691
			g1.Position = torso.Position - v3(0,2,0)
1692
			g1.Size = v3(0.1,0.1,0.1)
1693
			g1.Anchored = true
1694
			g11 = Instance.new("ParticleEmitter",g1)
1695
			g11.Size = ns(3)
1696
			g11.EmissionDirection = "Front"
1697
			g11.Texture = "rbxassetid://572153134"
1698
			g11.Rate = 40
1699
			g11.Speed = nr(20)
1700
			g112 = Instance.new("ParticleEmitter",g1)
1701
			g112.Size = ns(3)
1702
			g112.EmissionDirection = "Back"
1703
			g112.Texture = "rbxassetid://572153134"
1704
			g112.Rate = 40
1705
			g112.Speed = nr(20)
1706
			g113 = Instance.new("ParticleEmitter",g1)
1707
			g113.Size = ns(3)
1708
			g113.EmissionDirection = "Left"
1709
			g113.Texture = "rbxassetid://572153134"
1710
			g113.Rate = 40
1711
			g113.Speed = nr(20)
1712
			g114 = Instance.new("ParticleEmitter",g1)
1713
			g114.Size = ns(3)
1714
			g114.EmissionDirection = "Right"
1715
			g114.Texture = "rbxassetid://572153134"
1716
			g114.Rate = 40
1717
			g114.Speed = nr(20)
1718
			g2 = Instance.new("Part",char)
1719
			g2.Name = "Smoke"
1720
			g2.CanCollide = false
1721
			g2.CFrame = CFrame.new(torso.Position - v3(0,2,0))*CFrame.Angles(rad(0),rad(45),rad(0)) 
1722
			g2.Size = v3(0.1,0.1,0.1)
1723
			g2.Anchored = true
1724
			g11 = Instance.new("ParticleEmitter",g2)
1725
			g11.Size = ns(3)
1726
			g11.EmissionDirection = "Front"
1727
			g11.Texture = "rbxassetid://572153134"
1728
			g11.Rate = 40
1729
			g11.Speed = nr(20)
1730
			g112 = Instance.new("ParticleEmitter",g2)
1731
			g112.Size = ns(3)
1732
			g112.EmissionDirection = "Back"
1733
			g112.Texture = "rbxassetid://572153134"
1734
			g112.Rate = 40
1735
			g112.Speed = nr(20)
1736
			g113 = Instance.new("ParticleEmitter",g2)
1737
			g113.Size = ns(3)
1738
			g113.EmissionDirection = "Left"
1739
			g113.Texture = "rbxassetid://572153134"
1740
			g113.Rate = 40
1741
			g113.Speed = nr(20)
1742
			g114 = Instance.new("ParticleEmitter",g2)
1743
			g114.Size = ns(3)
1744
			g114.EmissionDirection = "Right"
1745
			g114.Texture = "rbxassetid://572153134"
1746
			g114.Rate = 40
1747
			g114.Speed = nr(20)
1748
			
1749
			
1750
			a21e = new("Part",char)
1751
a21e.Name = "Beam"..num
1752
a21e.Locked = true
1753
a21e.Size = v3(1,1,1)
1754
a21e.CanCollide = false
1755
a21e.Position = v3(999,999,999)
1756
a21e.BrickColor = bc("Lime green")
1757
a21e.Material = "Neon"
1758
a21e.Transparency = 0
1759
aa21e = new("SpecialMesh",a21e)
1760
a21e.Anchored = true
1761
a21e.Position = torso.Position
1762
aa21e.MeshType = "Sphere"
1763
aa21e.Scale = v3(1,1,1)
1764
GroundWave5()
1765
		GroundWave6()
1766
		GroundWave7()
1767
		GroundWave8()
1768
		GroundWave9()
1769
		GroundWave10()
1770
		for i = 1,50 do
1771
		wait()
1772
		aa21e.Scale = aa21e.Scale + v3(5,5,5)
1773
		a21e.Transparency = a21e.Transparency + 0.02
1774
	end	
1775
		
1776
			wait(2)
1777
			g1.Position = v3(999,999,999)
1778
			g2.Position = v3(999,999,999)
1779
			transforming3 = false
1780
			canattack = true
1781
		canidle = true
1782
		canwalk = true
1783
		
1784
				wait(5)
1785
				for i = 1,20 do
1786
					wait()
1787
					aad.Transparency = aad.Transparency + 0.05
1788
				end
1789
				g1:Destroy()
1790
		g2:Destroy()
1791
			
1792
			
1793
			
1794
			
1795
		end	
1796
		end
1797
		end
1798
	end)
1799
	--Lightning
1800
	
1801
	function Lightning1(pos,pos2,radius,numParts,model)
1802
        radius = radius or 0.2
1803
        numParts = numParts or 10
1804
        model = model or workspace
1805
        local lv = CFrame.new(pos,pos2).lookVector
1806
        local dist = (pos-pos2).magnitude
1807
        local dbp = dist/numParts
1808
        local last = pos
1809
        for i = 1,numParts do
1810
                local p = Instance.new("Part",model)
1811
                p.FormFactor = "Symmetric"
1812
                p.Size = Vector3.new(5,5,1)
1813
                p.Material = "Neon"
1814
                p.CanCollide = false
1815
                p.Anchored = true
1816
                p.BrickColor = BrickColor.new("Lime green")
1817
                local x = math.random(-100,100)/100*dbp/2
1818
                local y = math.random(-100,100)/100*dbp/2
1819
                local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
1820
                local dist2 = (p2.p-last).magnitude
1821
                local mid = (p2.p+last)/2
1822
                local m = Instance.new("BlockMesh",p)
1823
                m.Scale = Vector3.new(radius,radius,dist2)
1824
                p.CFrame = CFrame.new(mid,p2.p)
1825
                last = p2.p
1826
                game:GetService("Debris"):AddItem(p,math.random(40,100)/1000)
1827
        end
1828
end
1829
	----------------------------------------------------------------------------------------------
1830
	ac = new("Part",char)
1831
ac.Name = "NewPart"
1832
ac.Size = v3(0.1,0.1,0.1)
1833
ac.Position = v3(999,999,999)
1834
ac.BrickColor = bc("Lime green")
1835
ac.Material = "Neon"
1836
ac.Transparency = 1
1837
aaac =new("Weld",ac)
1838
aaac.Part0 = rarm
1839
aaac.Part1 = ac
1840
aaac.C0 = cf(0,-1.5,0) * cfa(rad(0),rad(0),rad(0))
1841
aaaac = new("ParticleEmitter",ac)
1842
aaaac.Size = ns(1)
1843
aaaac.Rate = 5
1844
aaaac.Texture = "rbxassetid://247707397"
1845
aaaac.ZOffset = 1
1846
aaaac.Lifetime = nr(5)
1847
aaaac.Transparency = ns(1)
1848
aaaac.LockedToPart = true
1849
aaaac.Speed = nr(0)
1850
aaaawc = new("ParticleEmitter",ac)
1851
aaaawc.Size = ns(5)
1852
aaaawc.Rate = 5
1853
aaaawc.Color = ColorSequence.new(Color3.fromRGB(0,255,0))
1854
aaaawc.Texture = "rbxassetid://924710961"
1855
aaaawc.ZOffset = -1
1856
aaaawc.Lifetime = nr(5)
1857
aaaawc.RotSpeed = nr(50)
1858
aaaawc.Transparency = ns(1)
1859
aaaawc.LockedToPart = true
1860
aaaawc.Speed = nr(0)
1861
	mouse.KeyDown:connect(function(key)
1862
	if key == "z" then
1863
		
1864
		if canattack == true then
1865
			canattack = false
1866
			canidle = false
1867
		canwalk = false
1868
		ssj2music.Volume = 0
1869
		fahersonstart:Play()
1870
		fatherson()
1871
		wait(1)
1872
		for i = 1,20 do
1873
			wait()
1874
			trans = trans - 0.05
1875
		aaaac.Transparency = ns(trans)
1876
		aaaawc.Transparency = ns(trans)
1877
		end
1878
		wait(3)
1879
		fahersonend:Play()
1880
		fathersonfire()
1881
		hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 1)--head
1882
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)--torso
1883
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1,0.7,-0.5)*CFrame.Angles(math.rad(95),math.rad(-10),math.rad(-30)), 1)--arm
1884
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1,0.3,-0.5)*CFrame.Angles(math.rad(75),math.rad(10),math.rad(30)), 1)--arm
1885
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-10)), 1)--leg
1886
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(10)), 1)--leg
1887
1888
char.Archivable = true
1889
c = char:Clone()
1890
	hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 1)--head
1891
		torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)--torso
1892
		rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,-0.3)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)), 1)--arm
1893
		larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-10)), 1)--arm
1894
		lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 1)--leg
1895
		rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 1)--leg
1896
c.Parent = char
1897
c.Name = "Goku"
1898
okko = Instance.new("Weld",c)
1899
	okko.Part0 = torso
1900
	okko.Part1 = c.Torso
1901
okko.C0 = CFrame.new(2.5,0,0)
1902
	Hair99 = Instance.new("Part")
1903
umok = Instance.new("Part",c)
1904
umok.Name = "canthurt"
1905
umok.Position = v3(999,999,999)
1906
Hair99.Parent = c
1907
Hair99.Name = "Hair"
1908
Hair99.formFactor = "Symmetric"
1909
Hair99.Size = Vector3.new(1, 1, 1)
1910
Hair99.CFrame = c.Head.CFrame
1911
Hair99:BreakJoints()
1912
Hair99.CanCollide = false
1913
Hair99.TopSurface = "Smooth"
1914
Hair99.BottomSurface = "Smooth"
1915
Hair99.BrickColor = BrickColor.new("Lime green")
1916
Hair99.Transparency = 1
1917
1918
Weld = Instance.new("Weld") 
1919
Weld.Part0 = c.Head 
1920
Weld.Part1 = Hair99
1921
Weld.Parent = c.Head 
1922
Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) 
1923
1924
Hair7 = Instance.new("Part")
1925
Hair7.Parent = c
1926
Hair7.Name = "Hair"
1927
Hair7.CanCollide = false
1928
Hair7.Locked = true
1929
Hair7.TopSurface = "Smooth"
1930
Hair7.BottomSurface = "Smooth"
1931
Hair7.formFactor = "Symmetric"
1932
Hair7.Material = "Neon"
1933
Hair7.BrickColor = BrickColor.new("Lime green")
1934
Hair7.CFrame = c.Torso.CFrame
1935
Hair7.Size = Vector3.new(1, 1, 1)
1936
Hair7.Transparency = 0
1937
1938
Mesh = Instance.new("SpecialMesh")
1939
Mesh.Parent = Hair99
1940
Mesh.MeshType = "Sphere"
1941
Mesh.Offset = Vector3.new(0, 0.1, 0.1)
1942
Mesh.Scale = Vector3.new(1.2, 1.2, 1.2)
1943
1944
1945
Weld1 = Instance.new("Weld")
1946
Weld1.Parent = c.Head
1947
Weld1.Part0 = c.Head
1948
Weld1.Part1 = Hair7
1949
Weld1.C0 = CFrame.new(0, 1, 0)
1950
1951
Mesh = Instance.new("SpecialMesh")
1952
Mesh.Offset = Vector3.new(0.2, -0.2, 0.2)
1953
Mesh.Parent = Hair7
1954
Mesh.Scale = Vector3.new(1, 1, 1)
1955
Mesh.MeshType = "FileMesh"
1956
Mesh.MeshId = "http://www.roblox.com/asset/?id=476757756"
1957
Mesh.TextureId = ""
1958
1959
wait(0.1)
1960
for i,v in pairs(c:GetChildren()) do
1961
	if v.Name == "NewPart" then
1962
		v:Destroy()
1963
	end
1964
	if v:IsA("Part") then
1965
		v.CanCollide = false
1966
		v.Anchored = true
1967
		v.BrickColor = BrickColor.new("Lime green")
1968
		v.Transparency = 0.5
1969
	end
1970
end
1971
c["Sound Folder"]:Destroy()
1972
c.Hair:Destroy()
1973
	c.Shirt:Destroy()
1974
	c.Pants:Destroy()
1975
		
1976
		
1977
		
1978
		
1979
		
1980
		
1981
		
1982
		
1983
		
1984
		hed.Anchored = true
1985
	a8.Anchored = true
1986
	ae.Anchored = true
1987
		
1988
		
1989
	
1990
	GroundWave1()
1991
	
1992
	
1993
	a1s = new("Part",char)
1994
a1s.Name = "Beam"
1995
a1s.Anchored = true
1996
a1s.Size = v3(6,15,15)
1997
a1s.CanCollide = false
1998
a1s.Locked = true
1999
a1s.Position = v3(999,999,999)
2000
a1s.BrickColor = bc("Lime green")
2001
a1s.Material = "Neon"
2002
a1s.Transparency = 0
2003
aa1s = new("SpecialMesh",a1s)
2004
aa1s.MeshType = "Cylinder"
2005
aa1s.Scale = v3(1,1,1)
2006
aaaac.Transparency = ns(1)
2007
		aaaawc.Transparency = ns(1)
2008
a2s = new("Part",char)
2009
a2s.Name = "Beam"
2010
a2s.Anchored = true
2011
a2s.Locked = true
2012
a2s.Size = v3(0.1,0.1,0.1)
2013
a2s.CanCollide = false
2014
a2s.Position = v3(999,999,999)
2015
a2s.BrickColor = bc("Lime green")
2016
a2s.Material = "Neon"
2017
a2s.Transparency = 0
2018
aa2s = new("SpecialMesh",a2s)
2019
aa2s.MeshType = "Sphere"
2020
aa2s.Scale = v3(200,150,150)
2021
a3s = new("Part",char)
2022
a3s.Name = "Beam"
2023
a3s.Locked = true
2024
a3s.Anchored = true
2025
a3s.Size = v3(0.1,0.1,0.1)
2026
a3s.CanCollide = false
2027
a3s.Position = v3(999,999,999)
2028
a3s.BrickColor = bc("Lime green")
2029
a3s.Material = "Neon"
2030
a3s.Transparency = 0
2031
aa3s = new("SpecialMesh",a3s)
2032
aa3s.MeshType = "Sphere"
2033
aa3s.Scale = v3(250,150,150)
2034
--Damages
2035
-----------------------------------------------------------------------------------------
2036
a1s.Touched:connect(function(hit)
2037
 
2038
if hit.Parent:findFirstChild("NewPart") == nil and hit.Size.x < 500 and hit.Parent:findFirstChild("Wave") == nil and hit ~= a8 and hit ~= Hair7 and hit ~= Hair99 and hit.Parent:findFirstChild("canthurt") == nil then
2039
	
2040
	
2041
2042
	if hit.Parent:IsA("Model") then
2043
		hit.Parent:BreakJoints()
2044
	end
2045
	hit:Destroy()	
2046
	if enabled  == true then
2047
	enabled = false	
2048
	num = num + 1
2049
	kamehit:Play()
2050
		a21 = new("Part",char)
2051
a21.Name = "Beam"..num
2052
a21.Locked = true
2053
a21.Size = v3(1,1,1)
2054
a21.CanCollide = false
2055
a21.Position = v3(999,999,999)
2056
a21.BrickColor = bc("Lime green")
2057
a21.Material = "Neon"
2058
a21.Transparency = 0
2059
aa21 = new("SpecialMesh",a21)
2060
a21.Anchored = true
2061
a21.Position = hit.Position
2062
aa21.MeshType = "Sphere"
2063
aa21.Scale = v3(1,1,1)
2064
GroundWave2()
2065
GroundWave3()
2066
GroundWave4()
2067
	for i = 1,50 do
2068
		wait()
2069
		char["Beam"..num].Mesh.Scale = char["Beam"..num].Mesh.Scale + v3(5,5,5)
2070
		char["Beam"..num].Transparency = char["Beam"..num].Transparency + 0.02
2071
	end
2072
	enabled = true
2073
	char["Beam"..num]:Destroy()
2074
	end
2075
	
2076
end
2077
2078
end)
2079
2080
2081
2082
2083
2084
2085
2086
beam3 = true
2087
beam4 = true
2088
wait(2)
2089
2090
beam3 = false
2091
2092
repeat
2093
	wait()
2094
	a1s.Size = a1s.Size - v3(0,0.2,0.2)
2095
	aa2s.Scale = aa2s.Scale - v3(2,2,2)
2096
	aa3s.Scale = aa3s.Scale - v3(2,2,2)
2097
until
2098
	a1s.Size.y < 0.1
2099
	
2100
	beamgo = 2.2
2101
	beamgo1 = 1
2102
	a1s:Destroy()
2103
		a2s:Destroy()
2104
		a3s:Destroy()
2105
		for i = 1,10 do
2106
			wait()
2107
	
2108
	kamefire.Volume = kamefire.Volume - 0.5
2109
		end
2110
		kamefire:Stop()
2111
		
2112
		
2113
		
2114
		
2115
		
2116
		
2117
		
2118
		
2119
		
2120
		
2121
		
2122
		wait(1)
2123
		torso.Anchored = false
2124
		hed.Anchored = false
2125
		c:Destroy()
2126
		beamgo4 = 2.2
2127
beamgo3 = 1
2128
		canattack = true
2129
		canwalk = true
2130
		canidle = true
2131
		
2132
	a8.Anchored = false
2133
	ae.Anchored =false
2134
	trans = 1
2135
	for i = 1,10 do
2136
		wait()
2137
		ssj2music.Volume = ssj2music.Volume + 1
2138
	end
2139
		end
2140
		end
2141
2142
	end)
2143
	
2144
	
2145
	
2146
	
2147
	
2148
	
2149
	
2150
	
2151
	
2152
	
2153
	
2154
	
2155
	
2156
	
2157
	
2158
	
2159
	
2160
	mouse.KeyDown:connect(function(key)
2161
	if key == "e" then
2162
		if canattack == true then
2163
			if punched1 == true then
2164
				punched1 = false
2165
				punched3 = false
2166
				punched4 = false
2167
				canidle = false
2168
				canwalk= false
2169
				
2170
				firsthit()
2171
				canidle = true
2172
				canwalk= true
2173
				punched2 = true
2174
			end
2175
		end
2176
	end
2177
	end)
2178
	mouse.KeyDown:connect(function(key)
2179
	if key == "e" then
2180
		if canattack == true then
2181
			if punched2 == true then
2182
				punched2 = false
2183
				punched4 = false
2184
				punched1 = false
2185
				canidle = false
2186
				canwalk= false
2187
				
2188
				secondhit()
2189
				canidle = true
2190
				canwalk= true
2191
				punched3 = true
2192
			end
2193
		end
2194
	end
2195
	end)
2196
	mouse.KeyDown:connect(function(key)
2197
	if key == "e" then
2198
		if canattack == true then
2199
			if punched3 == true then
2200
				punched3 = false
2201
				punched2 = false
2202
				punched1 = false
2203
				canidle = false
2204
				canwalk= false
2205
				
2206
				thirdhit()
2207
				canidle = true
2208
				canwalk= true
2209
				punched4 = true
2210
			end
2211
		end
2212
	end
2213
	end)
2214
	mouse.KeyDown:connect(function(key)
2215
	if key == "e" then
2216
		if canattack == true then
2217
			if punched4 == true then
2218
				punched4 = false
2219
				punched2 = false
2220
				punched3 = false
2221
				canidle = false
2222
				canwalk= false
2223
				
2224
				lasthit()
2225
				canidle = true
2226
				canwalk= true
2227
				punched1 = true
2228
			end
2229
		end
2230
	end
2231
	end)