View difference between Paste ID: jY4FNSdw and v5puGu7H
SHOW: | | - or go back to the newest paste.
1
--Leaked by Mike The Hacker
2
local Plr = game:GetService'Players'.LocalPlayer
3
local UIS = game:GetService'UserInputService'
4
local Chr = Plr.Character or Plr.CharacterAdded:Wait()
5
local Hum = Chr:WaitForChild'Humanoid'
6
local HRP = Chr:WaitForChild'HumanoidRootPart'
7
local RiA = Chr:WaitForChild'Right Arm'
8
local LiA = Chr:WaitForChild'Left Arm'
9
local Head = Chr:WaitForChild'Head'
10
local Torso = Chr:WaitForChild'Torso'
11
local attack = false
12
local anim = Hum.Animator
13
local Form = "None"
14
local RS = Torso:FindFirstChild("Right Shoulder")
15
local LS = Torso:FindFirstChild("Left Shoulder")
16
local RH = Torso:FindFirstChild("Right Hip")
17
local LH = Torso:FindFirstChild("Left Hip")
18
local RJ = HRP:FindFirstChild("RootJoint")
19
local N = Torso:FindFirstChild("Neck")
20
local ang = CFrame.Angles
21
local rd = math.rad
22
local Mouse = Plr:GetMouse()
23
local Debris = game:GetService'Debris'
24
local cf = CFrame.new
25
local necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
26
local vt = Vector3.new
27
local euler=CFrame.fromEulerAnglesXYZ
28
local RootCF=euler(-1.57,0,3.14)
29
local CP = game:GetService'ContentProvider'
30
local PL = {743886825,597269159,437432504,186934658,560718478,568141359,858904104,870984991,710665860,533682002,533682286,741623151,738749992,711351773}
31
for a,a in pairs(PL)do
32
	CP:Preload('rbxassetid://'..tostring(a))
33
end
34
Hum.MaxHealth = math.huge
35
Hum.Health = math.huge
36
Hum.WalkSpeed = 100
37
Hum.JumpPower = 50
38
if Head:FindFirstChild'face' then
39
	Head:WaitForChild'face'.Texture = 'rbxassetid://710665860'
40
else
41
	local a = Instance.new('Decal', Head)
42
	a.Texture = 'rbxassetid://710665860'
43
end
44
for a, a in pairs(Chr:GetChildren()) do
45
	if a:IsA'Shirt' or a:IsA'Pants' or a:IsA'Hat' or a:IsA'Accessory' then
46
		a:Destroy()
47
	end
48
end
49
for a, a in pairs(Head:GetChildren()) do
50
	if a:IsA'Sound' then
51
		a:Destroy()
52
	end
53
end
54
local S = Instance.new("Shirt", Chr)
55
S.Name = "Shirt"
56
local Pants  = Instance.new("Pants", Chr)
57
Pants.Name = "Pants"
58
S.ShirtTemplate = 'rbxassetid://533682002'
59
Pants.PantsTemplate = 'rbxassetid://533682286'
60
local W2 = Instance.new("Weld", Head)
61
W2.Part0 = Head
62
local train = Instance.new("Part", Head)
63
train.Anchored = true
64
train.CanCollide = false
65
train.Size = vt(3, 2, 6)
66
train.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
67
W2.Part1 = train
68
W2.C1 = cf(0.05, -0.9, -0.5) * ang(0, rd(0), 0)
69
train.Anchored = false
70
local TrainMesh = Instance.new("SpecialMesh", train)
71
TrainMesh.MeshType = Enum.MeshType.FileMesh
72
TrainMesh.Scale = vt(6.25, 6.25, 6.25)
73
TrainMesh.MeshId = "rbxassetid://560718478"
74
TrainMesh.TextureId = "rbxassetid://0"
75
local function HSLtoRGB(hue, sat, light)
76
    local c = light > .5 and (2 - 2 * light) * sat or (2 * light) * sat
77
    local h2 = hue / 60
78
    local x = c * (1 - math.abs((h2 % 2) - 1))
79
    local rgbvals = {{c, x, 0}, {x, c, 0}, {0, c, x}, {0, x, c}, {x, 0, c}, {c, 0, x}}
80
    local rgb = rgbvals[math.floor(h2) + 1]
81
    for i = 1, 3 do rgb[i] = rgb[i] + (light - .5 * c) end
82
    return Color3.new(rgb[1], rgb[2], rgb[3])
83
end
84
local function New(Object, Parent, Name, Data)
85
	local Object = Instance.new(Object)
86
	for Index, Value in pairs(Data or {}) do
87
		Object[Index] = Value
88
	end
89
	Object.Parent = Parent
90
	Object.Name = Name
91
	return Object
92
end
93
local function QuaternionFromCFrame(cf) 
94
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
95
	local trace = m00 + m11 + m22 
96
	if trace > 0 then 
97
		local s = math.sqrt(1 + trace) 
98
		local recip = 0.5/s 
99
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
100
	else 
101
		local i = 0 
102
		if m11 > m00 then
103
			i = 1
104
		end
105
		if m22 > (i == 0 and m00 or m11) then 
106
			i = 2 
107
		end 
108
		if i == 0 then 
109
			local s = math.sqrt(m00-m11-m22+1) 
110
			local recip = 0.5/s 
111
			return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
112
		elseif i == 1 then 
113
			local s = math.sqrt(m11-m22-m00+1) 
114
			local recip = 0.5/s 
115
			return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
116
		elseif i == 2 then 
117
			local s = math.sqrt(m22-m00-m11+1) 
118
			local recip = 0.5/s
119
			return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
120
		end
121
	end
122
end
123
local function QuaternionToCFrame(px, py, pz, x, y, z, w) 
124
	local xs, ys, zs = x + x, y + y, z + z 
125
	local wx, wy, wz = w*xs, w*ys, w*zs 
126
	local xx = x*xs 
127
	local xy = x*ys 
128
	local xz = x*zs 
129
	local yy = y*ys 
130
	local yz = y*zs 
131
	local zz = z*zs 
132
	return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
133
end
134
local function QuaternionSlerp(a, b, t) 
135
	local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
136
	local startInterp, finishInterp; 
137
	if cosTheta >= 0.0001 then 
138
		if (1 - cosTheta) > 0.0001 then 
139
			local theta = math.acos(cosTheta) 
140
			local invSinTheta = 1/math.sin(theta) 
141
			startInterp = math.sin((1-t)*theta)*invSinTheta 
142
			finishInterp = math.sin(t*theta)*invSinTheta  
143
		else 
144
			startInterp = 1-t 
145
			finishInterp = t 
146
		end 
147
	else 
148
		if (1+cosTheta) > 0.0001 then 
149
			local theta = math.acos(-cosTheta) 
150
			local invSinTheta = 1/math.sin(theta) 
151
			startInterp = math.sin((t-1)*theta)*invSinTheta 
152
			finishInterp = math.sin(t*theta)*invSinTheta 
153
		else 
154
			startInterp = t-1 
155
			finishInterp = t 
156
		end 
157
	end 
158
	return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
159
end
160
local function clerp(a,b,t) 
161
	local qa = {QuaternionFromCFrame(a)}
162
	local qb = {QuaternionFromCFrame(b)} 
163
	local ax, ay, az = a.x, a.y, a.z 
164
	local bx, by, bz = b.x, b.y, b.z
165
	local _t = 1-t
166
	return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
167
end
168
local RightArm = New("Model", Chr, "RightArm", {})
169
local MainPart = New("Part", RightArm, "MainPart", {
170
	Transparency = 1,
171
	Transparency = 1,
172
	FormFactor = Enum.FormFactor.Symmetric,
173
	Size = Vector3.new(1, 2, 1),
174
	CFrame = cf(2.011096, 6.31690788, -3.92582893, 0.00918400101, -0.262283146, 0.964947343, 0.259330034, 0.932596445, 0.251021653, -0.965745091, 0.247934431, 0.0765828639),
175
	CanCollide = false,
176
})
177
New("ManualWeld", MainPart, "Weld", {
178
	Part0 = MainPart,
179
	Part1 = RiA,
180
	C0 = cf(0, 0, 0, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639),
181
	C1 = cf(-2.86102295e-006, -9.05990601e-006, -2.38418579e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
182
})
183
Hitbox = New("Part", RightArm, "Hitbox", {
184
	BrickColor = BrickColor.new("Really black"),
185
	Transparency = 1,
186
	Transparency = 1,
187
	Size = Vector3.new(1, 4, 1),
188
	CFrame = cf(22.2733669, 5.0842762, -22.1737366, -0.964945257, -0.262290984, 0.00919180829, -0.251027077, 0.93259424, 0.259333313, -0.0765930116, 0.247935042, -0.965744138),
189
	CanCollide = false,
190
	BackSurface = Enum.SurfaceType.SmoothNoOutlines,
191
	BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
192
	FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
193
	LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
194
	RightSurface = Enum.SurfaceType.SmoothNoOutlines,
195
	TopSurface = Enum.SurfaceType.SmoothNoOutlines,
196
	Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
197
})
198
New("ManualWeld", Hitbox, "Weld", {
199
	Part0 = Hitbox,
200
	Part1 = MainPart,
201
	C0 = cf(0, 0, 0, -0.964945257, -0.251027077, -0.0765930116, -0.262290984, 0.93259424, 0.247935042, 0.00919180829, 0.259333313, -0.965744138),
202
	C1 = cf(-1.52587891e-005, -1.00003147, -1.71661377e-005, 0.0091838371, 0.259330064, -0.965745151, -0.262283117, 0.932596445, 0.247934505, 0.964947283, 0.251021653, 0.0765827149)
203
})
204
CorruptedPart = New("Part", RightArm, "CorruptedPart", {
205
	BrickColor = BrickColor.new("Bright violet"),
206
	Material = Enum.Material.Sand,
207
	Size = Vector3.new(1, 2, 1),
208
	CFrame = cf(2.011096, 6.3169179, -3.92581391, -0.964945257, -0.262290984, 0.00919180829, -0.251027077, 0.93259424, 0.259333313, -0.0765930116, 0.247935042, -0.965744138),
209
	CanCollide = false,
210
	BackSurface = Enum.SurfaceType.SmoothNoOutlines,
211
	BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
212
	FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
213
	LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
214
	RightSurface = Enum.SurfaceType.SmoothNoOutlines,
215
	TopSurface = Enum.SurfaceType.SmoothNoOutlines,
216
	Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
217
})
218
New("BlockMesh", CorruptedPart, "Mesh", {
219
	Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),
220
})
221
New("ManualWeld", CorruptedPart, "Weld", {
222
	Part0 = CorruptedPart,
223
	Part1 = MainPart,
224
	C0 = cf(0, 0, 0, -0.964945138, -0.251027018, -0.0765930042, -0.262290984, 0.932594121, 0.247935027, 0.00919180084, 0.259333313, -0.965744197),
225
	C1 = cf(-1.1920929e-005, 1.28746033e-005, 3.57627869e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
226
})
227
CorruptedPart = New("Part", RightArm, "CorruptedPart", {
228
	BrickColor = BrickColor.new("Bright violet"),
229
	Material = Enum.Material.Sand,
230
	Size = Vector3.new(1, 0.600000024, 0.400000036),
231
	CFrame = cf(2.14866924, 6.03215551, -4.72580194, -0.964945078, 0.262291819, -0.00918725226, -0.251029015, -0.932593465, -0.259333432, -0.0765890032, -0.247936144, 0.965744317),
232
	CanCollide = false,
233
	BackSurface = Enum.SurfaceType.SmoothNoOutlines,
234
	BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
235
	FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
236
	LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
237
	RightSurface = Enum.SurfaceType.SmoothNoOutlines,
238
	TopSurface = Enum.SurfaceType.SmoothNoOutlines,
239
	Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
240
})
241
New("SpecialMesh", CorruptedPart, "Mesh", {
242
	Scale = Vector3.new(1.75, 3, 4.5),
243
	MeshType = Enum.MeshType.Sphere,
244
})
245
New("ManualWeld", CorruptedPart, "Weld", {
246
	Part0 = CorruptedPart,
247
	Part1 = MainPart,
248
	C0 = cf(0, 1, 0, -1., -0.251028955, -0.0765889958, 0.262291819, -0.932593465, -0.247936144, -0.00918724574, -0.259333432, 0.965744257),
249
	C1 = cf(0, -0.499982834, 7.62939453e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
250
})
251
local swinganim = Hum:LoadAnimation(New("Animation", Chr, "Swing", {
252
	AnimationId = "rbxassetid://186934658"
253
}))
254
local function SoulSteal(pos)
255
	local soul = Instance.new("Part", Chr)
256
	soul.Size = vt(0, 0, 0)
257
	soul.CanCollide = false
258
	soul.Anchored = false
259
	soul.Position = pos
260
	soul.CFrame = cf(pos.X, pos.Y, pos.Z)
261
	soul.Transparency = 1
262
	local ptc = Instance.new("ParticleEmitter", soul)
263
	ptc.Texture = "rbxassetid://149468041"
264
	ptc.Size = NumberSequence.new(.8)
265
	ptc.LockedToPart = true
266
	ptc.Speed = NumberRange.new(0)
267
	ptc.Lifetime = NumberRange.new(9999)
268
	local bodpos = Instance.new("BodyPosition", soul)
269
	bodpos.Position = pos
270
	soul.Touched:Connect(function(hit)
271
		if hit.Parent == Chr then
272
			soul:Destroy()
273
		end
274
	end)
275
	spawn(function()
276
		while soul and wait(.125) do
277
			bodpos.Position = Torso.Position
278
		end
279
	end)
280
end
281
local function KillMortal(hitdude)
282
	local torsy = nil
283
	if hitdude:FindFirstChild'Torso'then
284
		torsy = hitdude.Torso	
285
	elseif hitdude:FindFirstChild'UpperTorso'then
286
		torsy = hitdude.UpperTorso
287
	end
288
	local val = Instance.new("ObjectValue", hitdude)
289
	val.Name = "HasBeenHit"
290
	hitdude:BreakJoints()
291
	SoulSteal(torsy.Position)
292
	local chi = hitdude:GetChildren()
293
	for i = 1, #chi do
294
		if chi[i]:IsA"Part" or chi[i]:IsA"MeshPart" then
295
			local bodpos = Instance.new("BodyPosition", chi[i])
296
			bodpos.Position = chi[i].Position + vt(math.random(0, 0), math.random(0, 0), math.random(0, 0))
297
			chi[i].BrickColor = BrickColor.new("Bright violet")
298
			spawn(function()
299
				wait(1.25)
300
				chi[i]:Destroy()
301
			end)
302
		end
303
	end
304
	for i = 1, 4 do
305
		for i = 1, #chi do
306
			if chi[i]:IsA"Part" or chi[i]:IsA"MeshPart" then
307
				chi[i].Transparency = chi[i].Transparency + .25
308
				wait(.01)
309
			end
310
		end
311
	end
312
end
313
local bladeactive = false
314
MainPart.Touched:Connect(function(hit)
315
	if bladeactive == true then
316
		if hit.Parent:FindFirstChild'Humanoid' and not hit.Parent:FindFirstChild'HasBeenHit' and hit.Parent ~= Chr then
317
			local Sound = Instance.new('Sound', RiA)
318
			Sound.SoundId = 'rbxassetid://0'
319
			Sound.Volume = 2
320
			Sound:Play()
321
			KillMortal(hit.Parent)
322
		end
323
	end
324
end)
325
local name = Instance.new("BillboardGui", Chr)
326
name.Size = UDim2.new(0, 100, 0, 40)
327
name.StudsOffset = vt(0, 6, 0)
328
name.Adornee = Head
329
local txt = Instance.new("TextLabel", name)
330
txt.BackgroundTransparency = 1
331
txt.BorderSizePixel = 0
332
txt.Text = "???"
333
txt.Font = "Fantasy"
334
txt.FontSize = "Size24"
335
txt.TextStrokeTransparency = 0
336
txt.TextStrokeColor3 = Color3.new(0, 0, 0)
337
txt.TextColor3 = Color3.new(0, 0, 0)
338
txt.Size = UDim2.new(1, 0, .5, 0)
339
trazx = Instance.new("ParticleEmitter")
340
local function swait(num)
341
	if num == 0 or num == nil then
342
		game:GetService'RunService'.Heartbeat:wait(0)
343
	else
344
		for i = 0, num do
345
			game:GetService'RunService'.Heartbeat:wait(0)
346
		end
347
	end
348
end
349
local function lerpz(joint, prop, CFramermz, alp)
350
	joint[prop] = joint[prop]:lerp(CFramermz, alp)
351
end
352
local RSC0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
353
local RSC1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
354
local LSC0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
355
local LSC1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
356
local RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
357
local RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
358
local LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
359
local LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
360
local NC0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
361
local NC1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
362
local RJC0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
363
local RJC1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
364
local function resetlerp()
365
	RJ.C0 = RJC0
366
	RJ.C1 = RJC1
367
	N.C0 = NC0
368
	N.C1 = NC1
369
	RS.C0 = RSC0
370
	RS.C1 = RSC1
371
	LS.C0 = LSC0
372
	LS.C1 = LSC1
373
	RH.C0 = RHC0
374
	RH.C1 = RHC1
375
	LH.C0 = LHC0
376
	LH.C1 = LHC1
377
end
378
local function SSJB()
379
	if Form == "None"then
380
		Form = "SSJB"
381
		anim.Parent = nil
382
		for i = 1, 35 do
383
			swait()
384
			lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
385
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
386
			lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3)
387
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
388
			lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3)
389
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
390
			lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
391
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
392
			lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
393
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
394
		end
395
		for i = 1, 15 do
396
			swait()
397
			lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
398
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
399
			lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5)
400
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
401
			lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5)
402
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
403
			lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
404
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
405
			lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
406
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
407
		end
408
		for i, v in pairs(Chr:GetChildren()) do
409
			if v:IsA'Part' then
410
				local tra = trazx:clone()
411
				tra.Parent = v
412
				tra.LightEmission = 1
413
				tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
414
				tra.Rate = 12
415
				tra.Rotation = NumberRange.new(-5, 5)
416
				tra.Lifetime = NumberRange.new(1.5, 2)
417
				tra.Size = NumberSequence.new({
418
					NumberSequenceKeypoint.new(0, 0.1, 0),
419
					NumberSequenceKeypoint.new(1, 0, 0)
420
				})
421
				tra.Transparency = NumberSequence.new({
422
					NumberSequenceKeypoint.new(0, 1, 0),
423
					NumberSequenceKeypoint.new(0.135, 0, 0),
424
					NumberSequenceKeypoint.new(0.875, 0, 0),
425
					NumberSequenceKeypoint.new(1, 1, 0)
426
				})
427
				tra.Speed = NumberRange.new(0.5)
428
				tra.VelocitySpread = 360
429
				tra.VelocityInheritance = 0.5
430
				tra.ZOffset = 2
431
				tra.Acceleration = vt(0, 2.5, 0)
432
			end
433
		end
434
		local tra = trazx:clone()
435
		tra.Parent = HRP
436
		tra.Texture = "rbxassetid://741623151"
437
		tra.LightEmission = 0.8
438
		tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
439
		tra.Rate = 250
440
		tra.Rotation = NumberRange.new(-5, 5)
441
		tra.Lifetime = NumberRange.new(0.75)
442
		tra.Size = NumberSequence.new({
443
			NumberSequenceKeypoint.new(0, 4.81, 0.875),
444
			NumberSequenceKeypoint.new(1, 2.13, 0.875)
445
		})
446
		tra.Transparency = NumberSequence.new({
447
			NumberSequenceKeypoint.new(0, 1, 0),
448
			NumberSequenceKeypoint.new(0.0399, 0.85, 0),
449
			NumberSequenceKeypoint.new(0.394, 0.9, 0),
450
			NumberSequenceKeypoint.new(0.699, 1, 0),
451
			NumberSequenceKeypoint.new(1, 1, 0)
452
		})
453
		tra.Speed = NumberRange.new(15)
454
		tra.VelocitySpread = 360
455
		tra.VelocityInheritance = 0.5
456
		tra.ZOffset = 3.5
457
		tra.Acceleration = vt(0, 25, 0)
458
459
		for i = 1, 25 do
460
			for i = 1, 3 do
461
				swait()
462
				lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 0.5)
463
				lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
464
				lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 0.5)
465
				lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
466
				lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 0.5)
467
				lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
468
				lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 0.5)
469
				lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
470
				lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 0.5)
471
				lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
472
			end
473
			for i = 1, 3 do
474
				swait()
475
				lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
476
				lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
477
				lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 0.5)
478
				lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
479
				lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 0.5)
480
				lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
481
				lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
482
				lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
483
				lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
484
				lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
485
			end
486
		end
487
		TrainMesh.MeshType = Enum.MeshType.FileMesh
488
		TrainMesh.Scale = vt(0.05, 0.05, 0.05)
489
		TrainMesh.MeshId = "rbxassetid://437432504"
490
		W2.C1 = cf(0, 0.4, -2.1) * ang(0, rd(0), 0)
491
		local S2 = Instance.new("Sound", HRP)
492
    	S2.SoundId = "rbxassetid://597269159"
493
		S2.Volume = 1
494
    	S2:Play()
495
    	txt.Text = "I've tapped into an interesting power."
496
    	wait(2)
497
    	txt.Text = "???"
498
		local SE = Instance.new("ChorusSoundEffect", S2)
499
		tra.LightEmission = 0.8
500
		tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
501
		tra.Rate = 250
502
		tra.Rotation = NumberRange.new(-5, 5)
503
		tra.Lifetime = NumberRange.new(0.2, 0.4)
504
		tra.Size = NumberSequence.new({
505
			NumberSequenceKeypoint.new(0, 4.81, 0.875),
506
			NumberSequenceKeypoint.new(1, 2.13, 0.875)
507
		})
508
		tra.Transparency = NumberSequence.new({
509
			NumberSequenceKeypoint.new(0, 1, 0),
510
			NumberSequenceKeypoint.new(0.0399, 0.8, 0),
511
			NumberSequenceKeypoint.new(0.394, 0.8, 0),
512
			NumberSequenceKeypoint.new(0.699, 1, 0),
513
			NumberSequenceKeypoint.new(1, 1, 0)
514
		})
515
		tra.Speed = NumberRange.new(5)
516
		tra.VelocitySpread = 360
517
		tra.VelocityInheritance = 0.5
518
		tra.ZOffset = 3.5
519
		tra.Acceleration = vt(0, 150, 0)
520
		local tra = trazx:clone()
521
		tra.Parent = HRP
522
		tra.Texture = "rbxassetid://257173628"
523
		tra.LightEmission = 1
524
		tra.Rate = 20
525
		tra.Rotation = NumberRange.new(360, 720)
526
		tra.Lifetime = NumberRange.new(0.75)
527
		tra.Size = NumberSequence.new({
528
			NumberSequenceKeypoint.new(0, 2.5, 0.875),
529
			NumberSequenceKeypoint.new(1, 2.5, 0.875)
530
		})
531
		tra.Transparency = NumberSequence.new({
532
			NumberSequenceKeypoint.new(0, 0, 0),
533
			NumberSequenceKeypoint.new(0, 0., 0),
534
			NumberSequenceKeypoint.new(0, 0, 0),
535
			NumberSequenceKeypoint.new(0, 0, 0),
536
			NumberSequenceKeypoint.new(1, 1, 0)
537
		})
538
		tra.Speed = NumberRange.new(0)
539
		tra.VelocitySpread = 360
540
		tra.VelocityInheritance = 0
541
		tra.ZOffset = 3.5
542
		tra.Acceleration = vt(0, 0, 0)
543
		local tra = trazx:clone()
544
		tra.Parent = HRP
545
		tra.Texture = "rbxassetid://380961170"
546
		tra.LightEmission = 1
547
		tra.Rate = 25
548
		tra.RotSpeed = NumberRange.new(5000,10000)
549
		tra.Rotation = NumberRange.new(0, 0)
550
		tra.Lifetime = NumberRange.new(1)
551
		tra.Size = NumberSequence.new({
552
			NumberSequenceKeypoint.new(0, 0, 0),
553
			NumberSequenceKeypoint.new(1, 10, 0)
554
		})
555
		tra.Transparency = NumberSequence.new({
556
			NumberSequenceKeypoint.new(0, 0, 0),
557
			NumberSequenceKeypoint.new(0, 0., 0),
558
			NumberSequenceKeypoint.new(0, 0, 0),
559
			NumberSequenceKeypoint.new(0, 0, 0),
560
			NumberSequenceKeypoint.new(1, 1, 0)
561
		})
562
		tra.Speed = NumberRange.new(3)
563
		tra.VelocitySpread = 0
564
		tra.VelocityInheritance = 0
565
		tra.ZOffset = 0
566
		tra.Acceleration = vt(0, 0, 0)
567
568
		local s = Instance.new("Sound", Head)
569
		s.SoundId = "rbxassetid://0"
570
		s.Volume = 1
571
		s.Looped = true
572
		s:Play()
573
		for i = 1, 50 do
574
			swait()
575
			lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
576
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
577
			lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3)
578
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
579
			lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3)
580
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
581
			lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
582
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
583
			lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
584
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
585
		end
586
		resetlerp()
587
		attack = false
588
		anim.Parent = Hum
589
	elseif Form == "SSJB" then
590
		Form = "Kaioken"
591
		anim.Parent = nil
592
		for i = 1, 35 do
593
			swait()
594
			lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
595
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
596
			lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3)
597
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
598
			lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3)
599
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
600
			lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
601
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
602
			lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
603
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
604
		end
605
		local S2 = Instance.new("Sound", HRP)
606
		S2.SoundId = "rbxassetid://0"
607
		S2.Volume = 1
608
		S2:Play()
609
		for i = 1, 15 do
610
			swait()
611
			lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
612
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
613
			lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5)
614
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
615
			lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5)
616
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
617
			lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
618
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
619
			lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
620
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
621
		end
622
		local tra = trazx:clone()
623
		tra.Parent = HRP
624
		tra.Texture = "rbxassetid://0"
625
		tra.LightEmission = 0.8
626
		tra.Color = ColorSequence.new(Color3.new(255, 255, 255))
627
		tra.Rate = 75
628
		tra.Rotation = NumberRange.new(-5, 5)
629
		tra.Lifetime = NumberRange.new(0.3)
630
		tra.Size = NumberSequence.new({
631
			NumberSequenceKeypoint.new(0, 8, 0.875),
632
			NumberSequenceKeypoint.new(1, 9, 0.875)
633
		})
634
		tra.Transparency = NumberSequence.new({
635
			NumberSequenceKeypoint.new(0, 1, 0),
636
			NumberSequenceKeypoint.new(0.0399, 0.531, 0),
637
			NumberSequenceKeypoint.new(0.394, 0.906, 0),
638
			NumberSequenceKeypoint.new(0.699, 1, 0),
639
			NumberSequenceKeypoint.new(1, 1, 0)
640
		})
641
		tra.Speed = NumberRange.new(75)
642
		tra.VelocitySpread = 360
643
		tra.VelocityInheritance = 0.5
644
		tra.ZOffset = 3
645
		tra.Acceleration = vt(0, 350, 0)
646
		local s = Instance.new("Sound", HRP)
647
		s.SoundId = "rbxassetid://0"
648
		s.Volume = 5
649
		s:Play()
650
		for i = 1, 2 do
651
			Instance.new("ChorusSoundEffect", s)
652
		end
653
		for i = 1, 23 do
654
			for i = 1, 3 do
655
				swait()
656
				lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 1)
657
				lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1)
658
				lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 1)
659
				lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
660
				lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 1)
661
				lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
662
				lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 1)
663
				lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
664
				lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 1)
665
				lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
666
			end
667
			for i = 1, 3 do
668
				swait()
669
				lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 1)
670
				lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1)
671
				lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 1)
672
				lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
673
				lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 1)
674
				lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
675
				lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 1)
676
				lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
677
				lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 1)
678
				lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
679
			end
680
		end
681
		tra.LightEmission = 0.8
682
		tra.Color = ColorSequence.new(Color3.new(255, 255, 255))
683
		tra.Rate = 100
684
		tra.Rotation = NumberRange.new(-5, 5)
685
		tra.Lifetime = NumberRange.new(0.3)
686
		tra.Size = NumberSequence.new({
687
			NumberSequenceKeypoint.new(0, 8, 0.875),
688
			NumberSequenceKeypoint.new(1, 9, 0.875)
689
		})
690
		tra.Transparency = NumberSequence.new({
691
			NumberSequenceKeypoint.new(0, 1, 0),
692
			NumberSequenceKeypoint.new(0.0399, 0.531, 0),
693
			NumberSequenceKeypoint.new(0.394, 0.906, 0),
694
			NumberSequenceKeypoint.new(0.699, 1, 0),
695
			NumberSequenceKeypoint.new(1, 1, 0)
696
		})
697
		tra.Speed = NumberRange.new(25)
698
		tra.VelocitySpread = 360
699
		tra.VelocityInheritance = 0.5
700
		tra.ZOffset = 3
701
		tra.Acceleration = vt(0, 350, 0)
702
		for i = 1, 50 do
703
			swait()
704
			lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
705
			lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
706
			lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3)
707
			lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
708
			lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3)
709
			lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
710
			lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
711
			lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
712
			lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
713
			lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
714
		end
715
		resetlerp()
716
		attack = false
717
		anim.Parent = Hum
718
		txt.Text = "A fusion between Rose and Super Saiyan Three!"
719
		wait(3)
720
		txt.Text = "???"
721
	end
722
end
723
local function computeDirection(vec)
724
	local lenSquared = vec.magnitude * vec.magnitude
725
	local invSqrt = 1 / math.sqrt(lenSquared)
726
	return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
727
end
728
local function SB()
729
	resetlerp()
730
	anim.Parent = nil
731
	HRP.Anchored = true
732
	local Sound = Instance.new('Sound', HRP)
733
	Sound.SoundId = 'rbxassetid://858904104'
734
	Sound.Volume = 4.5
735
	Sound:Play()
736
	local PE = Instance.new("Part", workspace)
737
	PE.Size = vt(3, 3, 3)
738
	PE.Material = "Neon"
739
	PE.BrickColor = BrickColor.new("Really red")
740
	PE.CanCollide = false
741
	PE.Anchored = true
742
	PE.Shape = "Ball"
743
	PE.CFrame = HRP.CFrame * cf(0, 120, 0)
744
	PE.Transparency = 0.1
745
	for i = 1, 50 do
746
		swait()
747
		HRP.CFrame = cf(Torso.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
748
		lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
749
		lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
750
		lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(180)), 0.5)
751
		lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
752
		lerpz(LS, "C0", LSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(0)), 0)
753
		lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
754
		lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
755
		lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
756
		lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
757
		lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
758
		txt.Text = "DIVINE WRATH:PURIFCATION!"
759
	end
760
	for i = 1, 95 do
761
		HRP.CFrame = cf(Torso.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
762
		PE.Size = PE.Size + vt(2, 2, 2)
763
		PE.CFrame = HRP.CFrame * cf(0, 120, 0)
764
		swait()
765
	end
766
	local Hit = false
767
	PE.Touched:Connect(function(H)
768
		if Hit == false and H.Parent and H.Parent ~= Chr and H.Parent:FindFirstChild'Torso'and H.Parent:FindFirstChild'Humanoid'then
769
			Hit = true
770
			KillMortal(H.Parent)
771
			wait(.75)
772
			Hit = false
773
		end
774
	end)
775
	Sound:Stop()
776
	for i = 1, 4 do
777
		swait()
778
		lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(10), rd(0)), 0.5)
779
		lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
780
		lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.5)
781
		lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
782
		lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.5)
783
		lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
784
		lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5)
785
		lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
786
		lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5)
787
		lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
788
		txt.Text = "???"
789
	end
790
	W2.C0 = cf(0, 0, 0)
791
	local Sound4 = Instance.new("Sound", PE)
792
	Sound4.Volume = 4
793
	Sound4:Play()
794
	Sound4.SoundId = "rbxassetid://870984991"
795
	PE.CFrame = cf(HRP.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
796
	PE.CFrame = PE.CFrame * cf(0, 0, -100)
797
	local t = Mouse.Hit.p
798
	local d = t - PE.Position
799
	d = computeDirection(d)
800
	local pos = PE.Position + (d * 10.0)
801
	PE.Anchored = false
802
	PE.CFrame = CFrame.new(pos,  pos + d) * CFrame.Angles(math.pi/2, 0, 0)
803
	local ff = Instance.new("BodyForce")
804
	ff.force = vt(0, PE:GetMass() * 196.1, 0.0)
805
	ff.Parent = PE
806
	PE.Velocity = d * -160
807
	swait()
808
	PE.CFrame = PE.CFrame * cf(0, 0, -1)
809
	anim.Parent = Hum
810
	wait(2.25)
811
	resetlerp()
812
	HRP.Anchored = false
813
	if PE then
814
		PE:Destroy()
815
	end
816
end
817
local function NO(part)
818
	part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
819
end
820
local function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
821
	local fp=Instance.new("Part", parent)
822
	fp.formFactor=formfactor
823
	fp.Reflectance=reflectance
824
	fp.Transparency=transparency
825
	fp.CanCollide=false
826
	fp.Locked=true
827
	fp.BrickColor=BrickColor.new(tostring(brickcolor))
828
	fp.Name=name
829
	fp.Size=size
830
	fp.Position=Torso.Position
831
	NO(fp)
832
	fp.Material=material
833
	fp:BreakJoints()
834
	return fp
835
end
836
local function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
837
	local fp = Instance.new("Part", parent)
838
	fp.formFactor = formfactor
839
	fp.Reflectance = reflectance
840
	fp.Transparency = transparency
841
	fp.CanCollide = false 
842
	fp.Locked=true
843
	fp.BrickColor=BrickColor.new(tostring(brickcolor))
844
	fp.Name = name
845
	fp.Size = size
846
	fp.Position = LiA.Position 
847
	NO(fp)
848
	fp.Material="Neon"
849
	fp:BreakJoints()
850
	return fp
851
end
852
local function mesh(Mesh,part,meshtype,meshid,offset,scale)
853
	local mesh=Instance.new(Mesh)
854
	mesh.Parent=part
855
	if Mesh=="SpecialMesh" then
856
		mesh.MeshType=meshtype
857
		mesh.MeshId=meshid
858
	end
859
	mesh.Offset=offset
860
	mesh.Scale=scale
861
	return mesh
862
end
863
local function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
864
	local prt=ppart(3,workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
865
	prt.Anchored=true
866
	prt.CFrame=cframe
867
	local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
868
	Debris:AddItem(prt,5)
869
	coroutine.resume(coroutine.create(function(Part,Mesh) 
870
		for i=0,1,delay do
871
			wait()
872
			Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
873
			Part.Transparency=i
874
			Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
875
		end
876
		Part.Parent=nil
877
	end),prt,msh)
878
end
879
local function CB(parent,t)
880
	local counter=0
881
	local size=1
882
	for i=0,t,1 do
883
		swait()
884
		counter=counter+1
885
		if counter%5==0 then
886
			if size==1 then
887
				MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
888
			elseif size==2 then
889
				MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
890
			elseif size==3 then
891
				MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
892
			end
893
		end
894
	end
895
end
896
function so(id,par,vol,pit) 
897
	coroutine.resume(coroutine.create(function()
898
		local sou = Instance.new("Sound",par or workspace)
899
		sou.Volume=vol
900
		sou.Pitch=pit or 1
901
		sou.SoundId=id
902
		swait() 
903
		sou:Play() 
904
		Debris:AddItem(sou,6)
905
	end))
906
end
907
local function computeDirection(vec)
908
	local lenSquared = vec.magnitude * vec.magnitude
909
	local invSqrt = 1 / math.sqrt(lenSquared)
910
	return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
911
end
912
local function Blast()
913
	for i=0,1,.1 do
914
		swait()
915
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
916
		Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
917
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
918
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
919
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
920
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
921
	end
922
	so("rbxassetid://199145659",LiA,1,1)
923
	efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(45, 45, 45))
924
	efprt.Anchored = true
925
	efprt.Position = Vector3.new(2e5,2e5,2e5)
926
	mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
927
	CB(LiA,35)
928
	for i=0,1,.1 do
929
		swait()
930
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
931
		Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
932
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
933
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
934
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
935
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
936
	end
937
	txt.Text = "Have a ki blast."
938
	so("rbxassetid://199145534",LiA,1,1.2)
939
	efprt:BreakJoints()
940
	local t = Mouse.Hit.p
941
	local d = t - LiA.Position
942
	d = computeDirection(d)
943
	local pos = LiA.Position + (d * 10.0)
944
	efprt.Anchored = false
945
	efprt.CFrame = CFrame.new(pos,  pos + d) * CFrame.Angles(math.pi/2, 0, 0)
946
	local ff = Instance.new("BodyForce")
947
	ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
948
	ff.Parent = efprt
949
	efprt.Velocity = d * 160
950
	efprt.Touched:Connect(function(hit) 
951
		if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
952
			KillMortal(hit.Parent)
953
			ff:Destroy()
954
			efprt.Anchored=true
955
			efprt:Destroy()
956
		end
957
	end)
958
	Debris:AddItem(efprt,6)
959
	resetlerp()
960
end
961
local function Blast2()
962
	for i=0,1,.1 do
963
		swait()
964
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
965
		Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
966
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
967
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
968
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
969
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
970
	end
971
	so("rbxassetid://199145659",LiA,1,1)
972
	efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(15, 15, 15))
973
	efprt.Anchored = true
974
	efprt.Position = Vector3.new(2e5,2e5,2e5)
975
	mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
976
	CB(LiA,35)
977
	for i=0,1,.1 do
978
		swait()
979
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
980
		Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
981
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
982
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
983
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
984
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
985
	end
986
	so("rbxassetid://199145534",LiA,1,1.2)
987
	efprt:BreakJoints()
988
	local t = Mouse.Hit.p
989
	local d = t - LiA.Position
990
	d = computeDirection(d)
991
	local pos = LiA.Position + (d * 10.0)
992
	efprt.Anchored = false
993
	efprt.CFrame = CFrame.new(pos,  pos + d) * CFrame.Angles(math.pi/2, 0, 0)
994
	local ff = Instance.new("BodyForce")
995
	ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
996
	ff.Parent = efprt
997
	efprt.Velocity = d * 160
998
	efprt.Touched:Connect(function(hit) 
999
		if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
1000
			KillMortal(hit.Parent)
1001
			ff:Destroy()
1002
			efprt.Anchored=true
1003
			efprt:Destroy()
1004
		end
1005
	end)
1006
	Debris:AddItem(efprt,6)
1007
	resetlerp()
1008
end
1009
local function Blast3()
1010
	for i=0,1,.1 do
1011
		swait()
1012
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
1013
		Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
1014
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
1015
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
1016
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
1017
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
1018
	end
1019
	so("rbxassetid://199145659",LiA,1,1)
1020
	efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(15, 15, 15))
1021
	efprt.Anchored = true
1022
	efprt.Position = Vector3.new(2e5,2e5,2e5)
1023
	mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
1024
	CB(LiA,35)
1025
	for i=0,1,.1 do
1026
		swait()
1027
		RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
1028
		Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
1029
		RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
1030
		LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
1031
		RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
1032
		LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
1033
	end
1034
	so("rbxassetid://199145534",LiA,1,1.2)
1035
	efprt:BreakJoints()
1036
	local t = Mouse.Hit.p
1037
	local d = t - LiA.Position
1038
	d = computeDirection(d)
1039
	local pos = LiA.Position + (d * 10.0)
1040
	efprt.Anchored = false
1041
	efprt.CFrame = CFrame.new(pos,  pos + d) * CFrame.Angles(math.pi/2, 0, 0)
1042
	local ff = Instance.new("BodyForce")
1043
	ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
1044
	ff.Parent = efprt
1045
	efprt.Velocity = d * 160
1046
	efprt.Touched:Connect(function(hit) 
1047
		if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
1048
			KillMortal(hit.Parent)
1049
			ff:Destroy()
1050
			efprt.Anchored=true
1051
			efprt:Destroy()
1052
		end
1053
	end)
1054
	Debris:AddItem(efprt,6)
1055
	resetlerp()
1056
end
1057
Ev = UIS.InputBegan:Connect(function(Key, Gc)
1058
	if Gc then
1059
		return
1060
	end
1061
	if attack == false and Key.UserInputType == Enum.UserInputType.MouseButton1 then
1062
		attack = true
1063
		swinganim:Play()
1064
		bladeactive = true
1065
		wait(.7)
1066
		bladeactive = false
1067
		attack = false
1068
		swinganim:Stop()
1069
	elseif attack == false and Key.UserInputType == Enum.UserInputType.Keyboard then
1070
		if Key.KeyCode == Enum.KeyCode.Z and attack == false then
1071
			attack = true
1072
			SB()
1073
			wait(.75)
1074
			attack = false
1075
		elseif Key.KeyCode == Enum.KeyCode.X and attack == false then
1076
			attack = true
1077
			SSJB()
1078
		elseif Key.KeyCode == Enum.KeyCode.Q and attack == false then
1079
			attack = true
1080
			Blast()
1081
			wait(3)
1082
			txt.Text = "???"
1083
			CB(efprt, 100)
1084
			wait(.45)
1085
			attack = false
1086
		end
1087
	end
1088
end)
1089
spawn(function()
1090
	while wait(.25)do
1091
		for i = 1,150 do
1092
			wait()
1093
			TrainMesh.VertexColor = vt(HSLtoRGB(i*2,1,0.5).r,HSLtoRGB(i*2,1,0.5).g,HSLtoRGB(i*2,1,0.5).b)
1094
		end
1095
		wait()
1096
		local reversei = 150
1097
		for i = 1,150 do
1098
			wait()
1099
			TrainMesh.VertexColor = vt(HSLtoRGB(reversei*2,1,0.5).r,HSLtoRGB(reversei*2,1,0.5).g,HSLtoRGB(reversei*2,1,0.5).b)
1100
			reversei = reversei-1
1101
		end
1102
	end
1103
end)
1104
Hum.Died:Connect(function()
1105
	local a = Instance.new("Part", workspace)
1106
	a.Transparency = 1
1107
	a.Anchored = true
1108
	a.CFrame = Torso.CFrame
1109
	name.Parent = a
1110
	name.Adornee = a
1111
	local S = Instance.new('Sky', game:GetService'Lighting')
1112
	S.Name = ' 1341 63469 '
1113
	S.SkyboxBk = "rbxassetid://711351773"
1114
	S.SkyboxDn = "rbxassetid://711351773"
1115
	S.SkyboxUp = "rbxassetid://711351773"
1116
	S.SkyboxRt = "rbxassetid://711351773"
1117
	S.SkyboxLf = "rbxassetid://711351773"
1118
	S.SkyboxFt = "rbxassetid://711351773"
1119
	txt.Text = "I WILL NOT LOSE TO A FILTHY NINGEN!!!"
1120
	txt.FontSize = "Size48"
1121
	wait(1.85)
1122
	for a,a in pairs(game:GetService'Players':GetPlayers())do
1123
		if a.Character and a.Character:FindFirstChild'Head'then
1124
			a.Character:BreakJoints()
1125
		end
1126
	end
1127
	wait(2)
1128
	name:Destroy()
1129
	S:Destroy()
1130
	Ev:Disconnect()
1131
	script:Destroy()
1132
end)
1133
warn'Loaded!'