SHOW:
|
|
- or go back to the newest paste.
1 | -- editted by tom5213 | |
2 | local p = game.Players.LocalPlayer | |
3 | local char = p.Character | |
4 | local mouse = p:GetMouse() | |
5 | local larm = char["Left Arm"] | |
6 | local rarm = char["Right Arm"] | |
7 | local lleg = char["Left Leg"] | |
8 | local rleg = char["Right Leg"] | |
9 | local hed = char.Head | |
10 | local torso = char.Torso | |
11 | local hum = char.Humanoid | |
12 | local cam = game.Workspace.CurrentCamera | |
13 | local root = char.HumanoidRootPart | |
14 | local deb = false | |
15 | local shot = 0 | |
16 | local debris=game:service"Debris" | |
17 | local l = game:GetService("Lighting") | |
18 | local rs = game:GetService("RunService").RenderStepped | |
19 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
20 | math.randomseed(os.time()) | |
21 | for i,v in pairs(char:children()) do | |
22 | if v:IsA("Hat") then | |
23 | v:Destroy() | |
24 | end | |
25 | end | |
26 | for i,v in pairs (hed:GetChildren()) do | |
27 | if v:IsA("Sound") then | |
28 | v:Destroy() | |
29 | end | |
30 | end | |
31 | ---------------------------------------------------- | |
32 | Debounces = { | |
33 | CanAttack = true; | |
34 | NoIdl = false; | |
35 | Slashing = false; | |
36 | Slashed = false; | |
37 | RPunch = false; | |
38 | RPunched = false; | |
39 | LPunch = false; | |
40 | LPunched = false; | |
41 | } | |
42 | local Touche = {char.Name, } | |
43 | ---------------------------------------------------- | |
44 | hed.face.Texture = "rbxassetid://631522700" | |
45 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") | |
46 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown") | |
47 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") | |
48 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") | |
49 | ---------------------------------------------------- | |
50 | LoudVolume = false | |
51 | Submerged = false | |
52 | Music = true | |
53 | script.Name = "GOKU" | |
54 | Player = game.Players.LocalPlayer | |
55 | c = game.Players.LocalPlayer.Character | |
56 | Head = c.Head | |
57 | anim = c.Humanoid.Animator | |
58 | Humanoid = c:findFirstChild("Humanoid") | |
59 | Humanoid.Name = "InfiniteBeing" | |
60 | b23 = Instance.new("BoolValue", c) | |
61 | b23.Name = "InfiniteHuman" | |
62 | rage = false | |
63 | p = game.Players.LocalPlayer | |
64 | Music = false | |
65 | local Effects = {} | |
66 | attack = false | |
67 | local attacking = false | |
68 | vt = Vector3.new | |
69 | bc = BrickColor.new | |
70 | br = BrickColor.random | |
71 | it = Instance.new | |
72 | cf = CFrame.new | |
73 | euler = CFrame.fromEulerAnglesXYZ | |
74 | angles = CFrame.Angles | |
75 | matr = math.random | |
76 | mouse = Player:GetMouse() | |
77 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
78 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
79 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
80 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
81 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
82 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
83 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
84 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
85 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
86 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
87 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
88 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
89 | RS = c.Torso:FindFirstChild("Right Shoulder") | |
90 | LS = c.Torso:FindFirstChild("Left Shoulder") | |
91 | RH = c.Torso:FindFirstChild("Right Hip") | |
92 | LH = c.Torso:FindFirstChild("Left Hip") | |
93 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint") | |
94 | N = c.Torso:FindFirstChild("Neck") | |
95 | cf = CFrame.new | |
96 | ang = CFrame.Angles | |
97 | rd = math.rad | |
98 | rd2 = math.random | |
99 | function swait(num) | |
100 | if num == 0 or num == nil then | |
101 | game:service("RunService").Heartbeat:wait(0) | |
102 | else | |
103 | for i = 0, num do | |
104 | game:service("RunService").Heartbeat:wait(0) | |
105 | end | |
106 | end | |
107 | end | |
108 | function lerpz(joint, prop, cfrmz, alp) | |
109 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
110 | end | |
111 | function resetlerp() | |
112 | RJ.C0 = RJC0 | |
113 | RJ.C1 = RJC1 | |
114 | N.C0 = NC0 | |
115 | N.C1 = NC1 | |
116 | RS.C0 = RSC0 | |
117 | RS.C1 = RSC1 | |
118 | LS.C0 = LSC0 | |
119 | LS.C1 = LSC1 | |
120 | RH.C0 = RHC0 | |
121 | RH.C1 = RHC1 | |
122 | LH.C0 = LHC0 | |
123 | LH.C1 = LHC1 | |
124 | end | |
125 | for _, c in pairs(c:children()) do | |
126 | if c.className == "Accessory" then | |
127 | c.Parent = nil | |
128 | end | |
129 | end | |
130 | local S2 = Instance.new("Sound", c.HumanoidRootPart) | |
131 | S2.SoundId = "" | |
132 | S2.Volume = 0 | |
133 | S2.Looped = true | |
134 | local P = Instance.new("Part", c) | |
135 | P.CanCollide = false | |
136 | P.Size = Vector3.new(0.2, 0.2, 0.2) | |
137 | P.BrickColor = BrickColor.new("Really black") | |
138 | local M = Instance.new("SpecialMesh", P) | |
139 | M.MeshId = "rbxassetid://560186510" | |
140 | M.Scale = Vector3.new(6.25, 6.25, 6.25) | |
141 | - | M.Offset = Vector3.new(0, 0.5, 0) |
141 | + | M.Offset = Vector3.new(-.4, 0.7, 0) |
142 | local W = Instance.new("Weld", c.Head) | |
143 | W.Part0 = c.Head | |
144 | W.Part1 = P | |
145 | W.C0 = CFrame.Angles(0, 0, 0) | |
146 | trazx = Instance.new("ParticleEmitter") | |
147 | function New(Object, Parent, Name, Data) | |
148 | local Object = Instance.new(Object) | |
149 | for Index, Value in pairs(Data or {}) do | |
150 | Object[Index] = Value | |
151 | end | |
152 | Object.Parent = Parent | |
153 | Object.Name = Name | |
154 | return Object | |
155 | end | |
156 | Form = "None" | |
157 | function SSJB() | |
158 | if Form == "None" then | |
159 | Form = "SSJB" | |
160 | hed.face.Texture = "rbxassetid://581728822" | |
161 | attack = true | |
162 | anim.Parent = nil | |
163 | for i = 1, 35 do | |
164 | swait() | |
165 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
166 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
167 | lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3) | |
168 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
169 | lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3) | |
170 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
171 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3) | |
172 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
173 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3) | |
174 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
175 | end | |
176 | local S = Instance.new("Sound", c.HumanoidRootPart) | |
177 | S.SoundId = "rbxassetid://304052646" | |
178 | S.Volume = 1 | |
179 | S:Play() | |
180 | local S2 = Instance.new("Sound", c.HumanoidRootPart) | |
181 | S2.SoundId = "rbxassetid://623287429" | |
182 | S2.Looped = true | |
183 | S2:Play() | |
184 | for i = 1, 15 do | |
185 | swait() | |
186 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5) | |
187 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5) | |
188 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5) | |
189 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
190 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5) | |
191 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
192 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5) | |
193 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
194 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5) | |
195 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
196 | end | |
197 | for i, v in pairs(c:children()) do | |
198 | if v.ClassName == "Part" then | |
199 | local tra = trazx:clone() | |
200 | tra.Parent = v | |
201 | tra.LightEmission = 1 | |
202 | tra.Color = ColorSequence.new(Color3.new(245, 205, 48)) | |
203 | tra.Rate = 15 | |
204 | tra.Rotation = NumberRange.new(-5, 5) | |
205 | tra.Lifetime = NumberRange.new(1.5, 2) | |
206 | tra.Size = NumberSequence.new({ | |
207 | NumberSequenceKeypoint.new(0, 0.1, 0), | |
208 | NumberSequenceKeypoint.new(1, 0, 0) | |
209 | }) | |
210 | tra.Transparency = NumberSequence.new({ | |
211 | NumberSequenceKeypoint.new(0, 1, 0), | |
212 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
213 | NumberSequenceKeypoint.new(0.875, 0, 0), | |
214 | NumberSequenceKeypoint.new(1, 1, 0) | |
215 | }) | |
216 | tra.Speed = NumberRange.new(0.5) | |
217 | tra.VelocitySpread = 360 | |
218 | tra.VelocityInheritance = 0.5 | |
219 | tra.ZOffset = 2 | |
220 | tra.Acceleration = Vector3.new(0, 2.5, 0) | |
221 | end | |
222 | end | |
223 | local tra = trazx:clone() | |
224 | tra.Parent = c.HumanoidRootPart | |
225 | tra.Texture = "rbxassetid://347730682" | |
226 | tra.LightEmission = 0.8 | |
227 | tra.Color = ColorSequence.new(Color3.new(245, 205, 48)) | |
228 | tra.Rate = 250 | |
229 | tra.Rotation = NumberRange.new(-5, 5) | |
230 | tra.Lifetime = NumberRange.new(0.75) | |
231 | tra.Size = NumberSequence.new({ | |
232 | NumberSequenceKeypoint.new(0, 4.81, 0.875), | |
233 | NumberSequenceKeypoint.new(1, 2.13, 0.875) | |
234 | }) | |
235 | tra.Transparency = NumberSequence.new({ | |
236 | NumberSequenceKeypoint.new(0, 1, 0), | |
237 | NumberSequenceKeypoint.new(0.0399, 0.85, 0), | |
238 | NumberSequenceKeypoint.new(0.394, 0.9, 0), | |
239 | NumberSequenceKeypoint.new(0.699, 1, 0), | |
240 | NumberSequenceKeypoint.new(1, 1, 0) | |
241 | }) | |
242 | tra.Speed = NumberRange.new(15) | |
243 | tra.VelocitySpread = 360 | |
244 | tra.VelocityInheritance = 0.5 | |
245 | tra.ZOffset = 3.5 | |
246 | tra.Acceleration = Vector3.new(0, 25, 0) | |
247 | for i = 1, 25 do | |
248 | for i = 1, 3 do | |
249 | swait() | |
250 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 0.5) | |
251 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5) | |
252 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 0.5) | |
253 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
254 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 0.5) | |
255 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
256 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 0.5) | |
257 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
258 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 0.5) | |
259 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
260 | end | |
261 | for i = 1, 3 do | |
262 | swait() | |
263 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5) | |
264 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5) | |
265 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 0.5) | |
266 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
267 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 0.5) | |
268 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
269 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5) | |
270 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
271 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5) | |
272 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
273 | end | |
274 | end | |
275 | local S3 = Instance.new("Sound", c.HumanoidRootPart) | |
276 | S3.SoundId = "rbxassetid://740811119" | |
277 | S3.Volume = 10 | |
278 | S3:Play() | |
279 | S2.SoundId = "rbxassetid://442908826" | |
280 | S2:Play() | |
281 | local SE = Instance.new("ChorusSoundEffect", S3) | |
282 | tra.LightEmission = 0.8 | |
283 | tra.Color = ColorSequence.new(Color3.new(245, 205, 48)) | |
284 | tra.Rate = 250 | |
285 | tra.Rotation = NumberRange.new(-5, 5) | |
286 | tra.Lifetime = NumberRange.new(0.2, 0.4) | |
287 | tra.Size = NumberSequence.new({ | |
288 | NumberSequenceKeypoint.new(0, 4.81, 0.875), | |
289 | NumberSequenceKeypoint.new(1, 2.13, 0.875) | |
290 | }) | |
291 | tra.Transparency = NumberSequence.new({ | |
292 | NumberSequenceKeypoint.new(0, 1, 0), | |
293 | NumberSequenceKeypoint.new(0.0399, 0.8, 0), | |
294 | NumberSequenceKeypoint.new(0.394, 0.8, 0), | |
295 | NumberSequenceKeypoint.new(0.699, 1, 0), | |
296 | NumberSequenceKeypoint.new(1, 1, 0) | |
297 | }) | |
298 | tra.Speed = NumberRange.new(5) | |
299 | tra.VelocitySpread = 360 | |
300 | tra.VelocityInheritance = 0.5 | |
301 | tra.ZOffset = 3.5 | |
302 | tra.Acceleration = Vector3.new(0, 150, 0) | |
303 | P.BrickColor = BrickColor.new("Bright yellow") | |
304 | W.C0 = CFrame.Angles(0, 0, 0) | |
305 | P.Material = "Neon" | |
306 | local M = Instance.new("SpecialMesh", P) | |
307 | M.MeshId = "rbxassetid://560186510" | |
308 | M.Scale = Vector3.new(6.25, 6.25, 6.25) | |
309 | - | M.Offset = Vector3.new(0, 0.5, 0) |
309 | + | M.Offset = Vector3.new(-.4, 0.7, 0) |
310 | local s = Instance.new("Sound", c.Head) | |
311 | s.SoundId = "rbxassetid://620889412" | |
312 | s.Volume = 10 | |
313 | s.Looped = true | |
314 | s:play() | |
315 | for i = 1, 50 do | |
316 | swait() | |
317 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
318 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
319 | lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3) | |
320 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
321 | lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3) | |
322 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
323 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3) | |
324 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
325 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3) | |
326 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
327 | end | |
328 | resetlerp() | |
329 | attack = false | |
330 | anim.Parent = Humanoid | |
331 | elseif Form == "SSJB" then | |
332 | Form = "Kaioken" | |
333 | attack = true | |
334 | anim.Parent = nil | |
335 | for i = 1, 35 do | |
336 | swait() | |
337 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
338 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
339 | lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3) | |
340 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
341 | lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3) | |
342 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
343 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3) | |
344 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
345 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3) | |
346 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
347 | end | |
348 | local S = Instance.new("Sound", c.HumanoidRootPart) | |
349 | S.SoundId = "rbxassetid://263260463" | |
350 | S.Volume = 1 | |
351 | S:Play() | |
352 | S2.SoundId = "rbxassetid://336074463" | |
353 | S2:Play() | |
354 | for i = 1, 15 do | |
355 | swait() | |
356 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5) | |
357 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5) | |
358 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5) | |
359 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
360 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5) | |
361 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
362 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5) | |
363 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
364 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5) | |
365 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
366 | end | |
367 | local tra = trazx:clone() | |
368 | tra.Parent = c.HumanoidRootPart | |
369 | tra.Texture = "rbxassetid://347730682" | |
370 | tra.LightEmission = 0 | |
371 | tra.Color = ColorSequence.new(Color3.new(245, 205, 48)) | |
372 | tra.Rate = 250 | |
373 | tra.Rotation = NumberRange.new(-5, 5) | |
374 | tra.Lifetime = NumberRange.new(0.3) | |
375 | tra.Size = NumberSequence.new({ | |
376 | NumberSequenceKeypoint.new(0, 8, 0.875), | |
377 | NumberSequenceKeypoint.new(1, 10, 0.875) | |
378 | }) | |
379 | tra.Transparency = NumberSequence.new({ | |
380 | NumberSequenceKeypoint.new(0, 1, 0), | |
381 | NumberSequenceKeypoint.new(0.0399, 0.531, 0), | |
382 | NumberSequenceKeypoint.new(0.394, 0.906, 0), | |
383 | NumberSequenceKeypoint.new(0.699, 1, 0), | |
384 | NumberSequenceKeypoint.new(1, 1, 0) | |
385 | }) | |
386 | tra.Speed = NumberRange.new(75) | |
387 | tra.VelocitySpread = 360 | |
388 | tra.VelocityInheritance = 0.5 | |
389 | tra.ZOffset = 3 | |
390 | tra.Acceleration = Vector3.new(0, 350, 0) | |
391 | local S4 = Instance.new("Sound", c.HumanoidRootPart) | |
392 | S4.SoundId = "rbxassetid://738749992" | |
393 | S4.Volume = 5 | |
394 | S4:Play() | |
395 | for i = 1, 2 do | |
396 | local SE = Instance.new("ChorusSoundEffect", S4) | |
397 | end | |
398 | for i = 1, 23 do | |
399 | for i = 1, 3 do | |
400 | swait() | |
401 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 1) | |
402 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1) | |
403 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 1) | |
404 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
405 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 1) | |
406 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
407 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 1) | |
408 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
409 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 1) | |
410 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
411 | end | |
412 | for i = 1, 3 do | |
413 | swait() | |
414 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 1) | |
415 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1) | |
416 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 1) | |
417 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
418 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 1) | |
419 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
420 | lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 1) | |
421 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
422 | lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 1) | |
423 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
424 | end | |
425 | end | |
426 | local S3 = Instance.new("Sound", c.HumanoidRootPart) | |
427 | S3.SoundId = "rbxassetid://590580746" | |
428 | S3.Volume = 1.5 | |
429 | S3:Play() | |
430 | S2.SoundId = "rbxassetid://590580496" | |
431 | S2:Play() | |
432 | tra.LightEmission = 0.8 | |
433 | tra.Color = ColorSequence.new(Color3.new(245, 205, 48)) | |
434 | tra.Rate = 250 | |
435 | tra.Rotation = NumberRange.new(-5, 5) | |
436 | tra.Lifetime = NumberRange.new(0.3) | |
437 | tra.Size = NumberSequence.new({ | |
438 | NumberSequenceKeypoint.new(0, 8, 0.875), | |
439 | NumberSequenceKeypoint.new(1, 10, 0.875) | |
440 | }) | |
441 | tra.Transparency = NumberSequence.new({ | |
442 | NumberSequenceKeypoint.new(0, 1, 0), | |
443 | NumberSequenceKeypoint.new(0.0399, 0.531, 0), | |
444 | NumberSequenceKeypoint.new(0.394, 0.906, 0), | |
445 | NumberSequenceKeypoint.new(0.699, 1, 0), | |
446 | NumberSequenceKeypoint.new(1, 1, 0) | |
447 | }) | |
448 | tra.Speed = NumberRange.new(25) | |
449 | tra.VelocitySpread = 360 | |
450 | tra.VelocityInheritance = 0.5 | |
451 | tra.ZOffset = 3 | |
452 | tra.Acceleration = Vector3.new(0, 350, 0) | |
453 | for i = 1, 50 do | |
454 | swait() | |
455 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
456 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3) | |
457 | lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3) | |
458 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
459 | lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3) | |
460 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
461 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3) | |
462 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
463 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3) | |
464 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
465 | end | |
466 | resetlerp() | |
467 | attack = false | |
468 | anim.Parent = Humanoid | |
469 | end | |
470 | end | |
471 | ButtonDown = false | |
472 | CombatDebounce = false | |
473 | Combo = 1 | |
474 | mouse.Button1Down:connect(function() | |
475 | if CombatDebounce == true then | |
476 | return | |
477 | end | |
478 | CombatDebounce = true | |
479 | ButtonDown = true | |
480 | if Form == "None" then | |
481 | local SP = Instance.new("Sound", c.HumanoidRootPart) | |
482 | SP.SoundId = "rbxassetid://696622391" | |
483 | SP.PlaybackSpeed = math.random(90, 120) / 100 | |
484 | SP.Volume = 5 | |
485 | SP:Play() | |
486 | for i, v in pairs(game.Workspace:children()) do | |
487 | if v:findFirstChild("Humanoid") ~= nil and v:findFirstChild("HumanoidRootPart") ~= nil and v ~= c and v.HumanoidRootPart.Position - c.HumanoidRootPart.Position.magnitude <= 6 then | |
488 | v.Humanoid.Health = v.Humanoid.Health - 15 | |
489 | end | |
490 | end | |
491 | if Combo == 1 then | |
492 | Combo = 2 | |
493 | for i = 1, 3 do | |
494 | swait() | |
495 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(15), rd(60)), 0.8) | |
496 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-60)), 0.8) | |
497 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-60), rd(110)), 0.8) | |
498 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
499 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
500 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
501 | lerpz(RH, "C0", RHC0 * cf(0.5, 0.75, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
502 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
503 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.8) | |
504 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
505 | end | |
506 | for i = 1, 4 do | |
507 | swait() | |
508 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(15), rd(100)), 0.5) | |
509 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-100)), 0.5) | |
510 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(90)), 0.5) | |
511 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
512 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
513 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
514 | lerpz(RH, "C0", RHC0 * cf(0.5, 0.75, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
515 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
516 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
517 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
518 | end | |
519 | CombatDebounce = false | |
520 | for i = 1, 2 do | |
521 | swait() | |
522 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
523 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
524 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
525 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
526 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
527 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
528 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
529 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
530 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
531 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
532 | end | |
533 | elseif Combo == 2 then | |
534 | Combo = 3 | |
535 | for i = 1, 3 do | |
536 | swait() | |
537 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(-25), rd(-80)), 0.8) | |
538 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(40)), 0.8) | |
539 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(-80)), 0.8) | |
540 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
541 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
542 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
543 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
544 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
545 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(-60)), 0.8) | |
546 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
547 | end | |
548 | for i = 1, 4 do | |
549 | swait() | |
550 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(-25), rd(-160)), 0.5) | |
551 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(60)), 0.5) | |
552 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(-90)), 0.5) | |
553 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
554 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
555 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
556 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
557 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
558 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(-95)), 0.5) | |
559 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
560 | end | |
561 | CombatDebounce = false | |
562 | for i = 1, 2 do | |
563 | swait() | |
564 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
565 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
566 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
567 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
568 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
569 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
570 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
571 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
572 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
573 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
574 | end | |
575 | elseif Combo == 3 then | |
576 | Combo = 4 | |
577 | for i = 1, 3 do | |
578 | swait() | |
579 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(25), rd(80)), 0.8) | |
580 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(40)), 0.8) | |
581 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(-80)), 0.8) | |
582 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
583 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
584 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
585 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
586 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(-60)), 0.8) | |
587 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
588 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
589 | end | |
590 | for i = 1, 4 do | |
591 | swait() | |
592 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(25), rd(160)), 0.5) | |
593 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(60)), 0.5) | |
594 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(-90)), 0.5) | |
595 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
596 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
597 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
598 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(-95)), 0.5) | |
599 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
600 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
601 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
602 | end | |
603 | CombatDebounce = false | |
604 | for i = 1, 2 do | |
605 | swait() | |
606 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
607 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
608 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
609 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
610 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
611 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
612 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
613 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
614 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
615 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
616 | end | |
617 | elseif Combo == 4 then | |
618 | Combo = 1 | |
619 | for i = 1, 3 do | |
620 | swait() | |
621 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(25), rd(-80)), 0.8) | |
622 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(40)), 0.8) | |
623 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(80)), 0.8) | |
624 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
625 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
626 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
627 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
628 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
629 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(40), rd(-60)), 0.8) | |
630 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.8) | |
631 | end | |
632 | for i = 1, 4 do | |
633 | swait() | |
634 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(25), rd(-160)), 0.5) | |
635 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(60)), 0.5) | |
636 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(90)), 0.5) | |
637 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
638 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
639 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
640 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
641 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
642 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(60), rd(-95)), 0.5) | |
643 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
644 | end | |
645 | CombatDebounce = false | |
646 | for i = 1, 2 do | |
647 | swait() | |
648 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
649 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
650 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
651 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
652 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
653 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
654 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
655 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
656 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
657 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.45) | |
658 | end | |
659 | end | |
660 | else | |
661 | while ButtonDown == true do | |
662 | local SP = Instance.new("Sound", c.HumanoidRootPart) | |
663 | SP.SoundId = "rbxassetid://696622391" | |
664 | SP.PlaybackSpeed = math.random(90, 120) / 100 | |
665 | SP.Volume = 5 | |
666 | SP:Play() | |
667 | for i, v in pairs(game.Workspace:children()) do | |
668 | if v:findFirstChild("Humanoid") ~= nil and v:findFirstChild("HumanoidRootPart") ~= nil and v ~= c and v.HumanoidRootPart.Position - c.HumanoidRootPart.Position.magnitude <= 6 then | |
669 | v.Humanoid.Health = v.Humanoid.Health - 15 | |
670 | end | |
671 | end | |
672 | if Combo == 1 then | |
673 | Combo = 2 | |
674 | for i = 1, 1 do | |
675 | swait() | |
676 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 1) | |
677 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 1) | |
678 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-60), rd(110)), 1) | |
679 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
680 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
681 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
682 | lerpz(RH, "C0", RHC0 * cf(0.5, 0.75, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
683 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
684 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 1) | |
685 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
686 | end | |
687 | for i = 1, 2 do | |
688 | swait() | |
689 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 0.75) | |
690 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 0.75) | |
691 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
692 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
693 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
694 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
695 | lerpz(RH, "C0", RHC0 * cf(0.5, 0.75, 0) * ang(rd(math.random(-90, 90)), rd(math.random(-90, 90)), rd(0)), 0.75) | |
696 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
697 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
698 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
699 | end | |
700 | CombatDebounce = false | |
701 | for i = 1, 2 do | |
702 | swait() | |
703 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
704 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
705 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
706 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
707 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
708 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
709 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
710 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
711 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
712 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
713 | end | |
714 | elseif Combo == 2 then | |
715 | Combo = 3 | |
716 | for i = 1, 1 do | |
717 | swait() | |
718 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 1) | |
719 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 1) | |
720 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 1) | |
721 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
722 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
723 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
724 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
725 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
726 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 1) | |
727 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
728 | end | |
729 | for i = 1, 3 do | |
730 | swait() | |
731 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 0.5) | |
732 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 0.5) | |
733 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 0.5) | |
734 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
735 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.5) | |
736 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
737 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.5) | |
738 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
739 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 0.5) | |
740 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
741 | end | |
742 | CombatDebounce = false | |
743 | for i = 1, 2 do | |
744 | swait() | |
745 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
746 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
747 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
748 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
749 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
750 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
751 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
752 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
753 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
754 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
755 | end | |
756 | elseif Combo == 3 then | |
757 | Combo = 4 | |
758 | for i = 1, 1 do | |
759 | swait() | |
760 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 1) | |
761 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 1) | |
762 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 1) | |
763 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
764 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
765 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
766 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
767 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 1) | |
768 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
769 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
770 | end | |
771 | for i = 1, 3 do | |
772 | swait() | |
773 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(160)), 0.75) | |
774 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(60)), 0.75) | |
775 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 0.75) | |
776 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
777 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
778 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
779 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(-math.random(-90, 90))), 0.75) | |
780 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
781 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
782 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
783 | end | |
784 | CombatDebounce = false | |
785 | for i = 1, 2 do | |
786 | swait() | |
787 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
788 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
789 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
790 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
791 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
792 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
793 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
794 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
795 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
796 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
797 | end | |
798 | elseif Combo == 4 then | |
799 | Combo = 1 | |
800 | for i = 1, 1 do | |
801 | swait() | |
802 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 1) | |
803 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 1) | |
804 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
805 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
806 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
807 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
808 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
809 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
810 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 1) | |
811 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
812 | end | |
813 | for i = 1, 3 do | |
814 | swait() | |
815 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-math.random(-180, 180))), 0.76) | |
816 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.random(-180, 180))), 0.76) | |
817 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
818 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
819 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
820 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
821 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
822 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
823 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(math.random(-90, 90)), rd(math.random(-90, 90))), 0.75) | |
824 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
825 | end | |
826 | CombatDebounce = false | |
827 | for i = 1, 2 do | |
828 | swait() | |
829 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
830 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
831 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
832 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
833 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
834 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
835 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
836 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
837 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
838 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.76) | |
839 | end | |
840 | end | |
841 | end | |
842 | end | |
843 | resetlerp() | |
844 | end) | |
845 | mouse.Button1Up:connect(function() | |
846 | ButtonDown = false | |
847 | end) | |
848 | function Kamehameha() | |
849 | resetlerp() | |
850 | CombatDebounce = true | |
851 | attack = true | |
852 | anim.Parent = nil | |
853 | c.HumanoidRootPart.Anchored = true | |
854 | local P = Instance.new("Part", c) | |
855 | P.CanCollide = false | |
856 | P.Size = Vector3.new(0.2, 0.2, 0.2) | |
857 | P.Transparency = 1 | |
858 | local W2 = Instance.new("Weld", c["Right Arm"]) | |
859 | W2.Part0 = c["Right Arm"] | |
860 | W2.Part1 = P | |
861 | W2.C0 = CFrame.new(0, -1, 0) | |
862 | local tra | |
863 | if Form == "Kaioken" then | |
864 | tra = trazx:clone() | |
865 | tra.Parent = P | |
866 | tra.LightEmission = 1 | |
867 | tra.Color = ColorSequence.new({ | |
868 | ColorSequenceKeypoint.new(0, Color3.new(0, 0.6666666666666666, 1)), | |
869 | ColorSequenceKeypoint.new(0.5, Color3.new(0.3843137254901961, 0.8666666666666667, 1)), | |
870 | ColorSequenceKeypoint.new(1, Color3.new(1, 0.19607843137254902, 1)) | |
871 | }) | |
872 | tra.Rate = 50 | |
873 | tra.Rotation = NumberRange.new(-360, 360) | |
874 | tra.Lifetime = NumberRange.new(1) | |
875 | tra.Size = NumberSequence.new({ | |
876 | NumberSequenceKeypoint.new(0, 0.273, 0), | |
877 | NumberSequenceKeypoint.new(0.779, 0.984, 0.492), | |
878 | NumberSequenceKeypoint.new(1, 3.06, 0) | |
879 | }) | |
880 | tra.Transparency = NumberSequence.new({ | |
881 | NumberSequenceKeypoint.new(0, 1, 0), | |
882 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
883 | NumberSequenceKeypoint.new(0.862, 0, 0), | |
884 | NumberSequenceKeypoint.new(1, 1, 0) | |
885 | }) | |
886 | tra.Speed = NumberRange.new(0) | |
887 | tra.VelocitySpread = 360 | |
888 | tra.LockedToPart = true | |
889 | tra.ZOffset = 3.6 | |
890 | else | |
891 | tra = trazx:clone() | |
892 | tra.Parent = P | |
893 | tra.LightEmission = 1 | |
894 | tra.Color = ColorSequence.new({ | |
895 | ColorSequenceKeypoint.new(0, Color3.new(0, 0.6666666666666666, 1)), | |
896 | ColorSequenceKeypoint.new(0.5, Color3.new(0.3843137254901961, 0.8666666666666667, 1)), | |
897 | ColorSequenceKeypoint.new(1, Color3.new(0, 0.6666666666666666, 1)) | |
898 | }) | |
899 | tra.Rate = 50 | |
900 | tra.Rotation = NumberRange.new(-360, 360) | |
901 | tra.Lifetime = NumberRange.new(1) | |
902 | tra.Size = NumberSequence.new({ | |
903 | NumberSequenceKeypoint.new(0, 0.273, 0), | |
904 | NumberSequenceKeypoint.new(0.779, 0.984, 0.492), | |
905 | NumberSequenceKeypoint.new(1, 3.06, 0) | |
906 | }) | |
907 | tra.Transparency = NumberSequence.new({ | |
908 | NumberSequenceKeypoint.new(0, 1, 0), | |
909 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
910 | NumberSequenceKeypoint.new(0.862, 0, 0), | |
911 | NumberSequenceKeypoint.new(1, 1, 0) | |
912 | }) | |
913 | tra.Speed = NumberRange.new(0) | |
914 | tra.VelocitySpread = 360 | |
915 | tra.LockedToPart = true | |
916 | tra.ZOffset = 3.6 | |
917 | end | |
918 | local S4 = Instance.new("Sound", c.HumanoidRootPart) | |
919 | S4.SoundId = "rbxassetid://825760017" | |
920 | S4.Volume = 1 | |
921 | S4:Play() | |
922 | for i = 1, 300 do | |
923 | swait() | |
924 | c.HumanoidRootPart.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p) | |
925 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(15), rd(-5), rd(-90)), 0.5) | |
926 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.5) | |
927 | lerpz(RS, "C0", RSC0 * cf(0, 0.25, 0) * ang(rd(35), rd(15), rd(35)), 0.5) | |
928 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
929 | lerpz(LS, "C0", LSC0 * cf(0, 0.25, -0.5) * ang(rd(65), rd(15), rd(-35)), 0.5) | |
930 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
931 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(5)), 0.5) | |
932 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
933 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-5)), 0.5) | |
934 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
935 | end | |
936 | if Form == "Kaioken" then | |
937 | tra.Size = NumberSequence.new({ | |
938 | NumberSequenceKeypoint.new(0, 0, 0), | |
939 | NumberSequenceKeypoint.new(0.4, 6.92, 0.492), | |
940 | NumberSequenceKeypoint.new(1, 3.44, 0) | |
941 | }) | |
942 | else | |
943 | tra.Size = NumberSequence.new({ | |
944 | NumberSequenceKeypoint.new(0, 0, 0), | |
945 | NumberSequenceKeypoint.new(0.275, 4.92, 0.492), | |
946 | NumberSequenceKeypoint.new(1, 1.44, 0) | |
947 | }) | |
948 | end | |
949 | W2.C0 = CFrame.new(0, -2.5, 0) | |
950 | S4:Stop() | |
951 | S4.SoundId = "rbxassetid://256643436" | |
952 | S4:Play() | |
953 | S4.Volume = 5 | |
954 | tra.ZOffset = 3.6 | |
955 | for i = 1, 4 do | |
956 | swait() | |
957 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
958 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
959 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(90)), 0.5) | |
960 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
961 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-30), rd(-90)), 0.5) | |
962 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
963 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
964 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
965 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
966 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
967 | end | |
968 | local PE, PE3 | |
969 | if Form ~= "Kaioken" then | |
970 | PE = Instance.new("Part", c) | |
971 | PE.Size = Vector3.new(2, 2, 2) | |
972 | PE.Material = "Neon" | |
973 | PE.BrickColor = BrickColor.new("Light blue") | |
974 | PE.CanCollide = false | |
975 | PE.Anchored = true | |
976 | else | |
977 | PE = Instance.new("Part", c) | |
978 | PE.Size = Vector3.new(4, 4, 4) | |
979 | PE.Material = "Neon" | |
980 | PE.BrickColor = BrickColor.new("Bright yellow") | |
981 | PE.CanCollide = false | |
982 | PE.Anchored = true | |
983 | PE3 = Instance.new("Part", c) | |
984 | PE3.Size = Vector3.new(4.1, 4.1, 4.1) | |
985 | PE3.Material = "Neon" | |
986 | PE3.Transparency = 0.5 | |
987 | PE3.BrickColor = BrickColor.new("Light blue") | |
988 | PE3.CanCollide = false | |
989 | PE3.Anchored = true | |
990 | end | |
991 | local Charge2 = 0 | |
992 | for i = 1, 100 do | |
993 | Charge2 = Charge2 + 1 | |
994 | PE.Size = PE.Size + Vector3.new(0, 0, 2) | |
995 | if Form == "Kaioken" then | |
996 | PE3.Size = PE3.Size + Vector3.new(0, 0, 2) | |
997 | end | |
998 | PE.Touched:connect(function(Hit) | |
999 | if Hit.Anchored == false and Hit.Parent ~= c then | |
1000 | local BV2 = Instance.new("BodyVelocity", Hit) | |
1001 | BV2.Velocity = c.HumanoidRootPart.CFrame.lookVector * 400 | |
1002 | BV2.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1003 | game.Debris:AddItem(BV2, 0.5) | |
1004 | end | |
1005 | swait() | |
1006 | end) | |
1007 | if Form == "Kaioken" then | |
1008 | PE3.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1009 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1010 | else | |
1011 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1012 | end | |
1013 | swait() | |
1014 | end | |
1015 | tra.Enabled = false | |
1016 | for i = 1, 80 do | |
1017 | Charge2 = Charge2 + 1 | |
1018 | if Form == "Kaioken" then | |
1019 | PE3.Size = PE3.Size + Vector3.new(-0.025, -0.025, 4) | |
1020 | PE3.Velocity = Vector3.new(0, 0, 0) | |
1021 | PE3.Transparency = PE3.Transparency + 0.0125 | |
1022 | PE.Size = PE.Size + Vector3.new(-0.025, -0.025, 4) | |
1023 | PE.Velocity = Vector3.new(0, 0, 0) | |
1024 | PE.Transparency = PE.Transparency + 0.0125 | |
1025 | PE3.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1026 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1027 | else | |
1028 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 + -2 * Charge2) | |
1029 | PE.Size = PE.Size + Vector3.new(-0.025, -0.025, 4) | |
1030 | PE.Velocity = Vector3.new(0, 0, 0) | |
1031 | PE.Transparency = PE.Transparency + 0.0125 | |
1032 | end | |
1033 | swait() | |
1034 | end | |
1035 | P:remove() | |
1036 | PE:remove() | |
1037 | c.HumanoidRootPart.Anchored = false | |
1038 | if Form == "Kaioken" then | |
1039 | PE3:remove() | |
1040 | end | |
1041 | anim.Parent = Humanoid | |
1042 | resetlerp() | |
1043 | attack = false | |
1044 | CombatDebounce = false | |
1045 | end | |
1046 | function SuperKamehameha() | |
1047 | resetlerp() | |
1048 | CombatDebounce = true | |
1049 | attack = true | |
1050 | anim.Parent = nil | |
1051 | c.HumanoidRootPart.Anchored = true | |
1052 | local P = Instance.new("Part", c) | |
1053 | P.CanCollide = false | |
1054 | P.Size = Vector3.new(0.2, 0.2, 0.2) | |
1055 | P.Transparency = 1 | |
1056 | local W2 = Instance.new("Weld", c["Right Arm"]) | |
1057 | W2.Part0 = c["Right Arm"] | |
1058 | W2.Part1 = P | |
1059 | W2.C0 = CFrame.new(0, -1, 0) | |
1060 | local tra | |
1061 | if Form == "Kaioken" then | |
1062 | tra = trazx:clone() | |
1063 | tra.Parent = P | |
1064 | tra.LightEmission = 1 | |
1065 | tra.Color = ColorSequence.new({ | |
1066 | ColorSequenceKeypoint.new(0, Color3.new(0, 0.6666666666666666, 1)), | |
1067 | ColorSequenceKeypoint.new(0.5, Color3.new(0.3843137254901961, 0.8666666666666667, 1)), | |
1068 | ColorSequenceKeypoint.new(1, Color3.new(1, 0.19607843137254902, 0.7843137254901961)) | |
1069 | }) | |
1070 | tra.Rate = 50 | |
1071 | tra.Rotation = NumberRange.new(-360, 360) | |
1072 | tra.Lifetime = NumberRange.new(0.5) | |
1073 | tra.Size = NumberSequence.new({ | |
1074 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
1075 | NumberSequenceKeypoint.new(0.779, 2, 0.492), | |
1076 | NumberSequenceKeypoint.new(1, 4.5, 0) | |
1077 | }) | |
1078 | tra.Transparency = NumberSequence.new({ | |
1079 | NumberSequenceKeypoint.new(0, 1, 0), | |
1080 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
1081 | NumberSequenceKeypoint.new(0.862, 0, 0), | |
1082 | NumberSequenceKeypoint.new(1, 1, 0) | |
1083 | }) | |
1084 | tra.Speed = NumberRange.new(0) | |
1085 | tra.VelocitySpread = 360 | |
1086 | tra.LockedToPart = true | |
1087 | tra.ZOffset = 3.6 | |
1088 | else | |
1089 | tra = trazx:clone() | |
1090 | tra.Parent = P | |
1091 | tra.LightEmission = 1 | |
1092 | tra.Color = ColorSequence.new({ | |
1093 | ColorSequenceKeypoint.new(0, Color3.new(0, 0.6666666666666666, 1)), | |
1094 | ColorSequenceKeypoint.new(0.5, Color3.new(0.3843137254901961, 0.8666666666666667, 1)), | |
1095 | ColorSequenceKeypoint.new(1, Color3.new(0, 0.6666666666666666, 1)) | |
1096 | }) | |
1097 | tra.Rate = 50 | |
1098 | tra.Rotation = NumberRange.new(-360, 360) | |
1099 | tra.Lifetime = NumberRange.new(0.5) | |
1100 | tra.Size = NumberSequence.new({ | |
1101 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
1102 | NumberSequenceKeypoint.new(0.779, 2, 0.492), | |
1103 | NumberSequenceKeypoint.new(1, 4.5, 0) | |
1104 | }) | |
1105 | tra.Transparency = NumberSequence.new({ | |
1106 | NumberSequenceKeypoint.new(0, 1, 0), | |
1107 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
1108 | NumberSequenceKeypoint.new(0.862, 0, 0), | |
1109 | NumberSequenceKeypoint.new(1, 1, 0) | |
1110 | }) | |
1111 | tra.Speed = NumberRange.new(0) | |
1112 | tra.VelocitySpread = 360 | |
1113 | tra.LockedToPart = true | |
1114 | tra.ZOffset = 3.6 | |
1115 | end | |
1116 | local S4 = Instance.new("Sound", P) | |
1117 | S4.SoundId = "rbxassetid://858904104" | |
1118 | S4.Volume = 2.5 | |
1119 | S4:Play() | |
1120 | for i = 1, 300 do | |
1121 | swait() | |
1122 | c.HumanoidRootPart.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p) | |
1123 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(15), rd(-5), rd(-90)), 0.5) | |
1124 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.5) | |
1125 | lerpz(RS, "C0", RSC0 * cf(0, 0.25, 0) * ang(rd(35), rd(15), rd(35)), 0.5) | |
1126 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1127 | lerpz(LS, "C0", LSC0 * cf(0, 0.25, -0.5) * ang(rd(65), rd(15), rd(-35)), 0.5) | |
1128 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1129 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(5)), 0.5) | |
1130 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1131 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-5)), 0.5) | |
1132 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1133 | end | |
1134 | if Form == "Kaioken" then | |
1135 | tra.Size = NumberSequence.new({ | |
1136 | NumberSequenceKeypoint.new(0, 14, 0), | |
1137 | NumberSequenceKeypoint.new(0.275, 14, 0.492), | |
1138 | NumberSequenceKeypoint.new(1, 14, 0) | |
1139 | }) | |
1140 | else | |
1141 | tra.Size = NumberSequence.new({ | |
1142 | NumberSequenceKeypoint.new(0, 10, 0), | |
1143 | NumberSequenceKeypoint.new(0.275, 10, 0.492), | |
1144 | NumberSequenceKeypoint.new(1, 10, 0) | |
1145 | }) | |
1146 | end | |
1147 | W2:remove() | |
1148 | P.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5) | |
1149 | P.Anchored = true | |
1150 | S4:Stop() | |
1151 | S4.SoundId = "rbxassetid://870984991" | |
1152 | S4:Play() | |
1153 | S4.Volume = 5 | |
1154 | tra.ZOffset = 3.6 | |
1155 | for i = 1, 4 do | |
1156 | swait() | |
1157 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1158 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1159 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(90)), 0.5) | |
1160 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1161 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-30), rd(-90)), 0.5) | |
1162 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1163 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
1164 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1165 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
1166 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1167 | end | |
1168 | local PE, PE3 | |
1169 | if Form ~= "Kaioken" then | |
1170 | PE = Instance.new("Part", c) | |
1171 | PE.Size = Vector3.new(5, 5, 5) | |
1172 | PE.Material = "Neon" | |
1173 | PE.BrickColor = BrickColor.new("Light blue") | |
1174 | PE.CanCollide = false | |
1175 | PE.Anchored = true | |
1176 | else | |
1177 | PE = Instance.new("Part", c) | |
1178 | PE.Size = Vector3.new(9, 9, 9) | |
1179 | PE.Material = "Neon" | |
1180 | PE.BrickColor = BrickColor.new("Bright red") | |
1181 | PE.CanCollide = false | |
1182 | PE.Anchored = true | |
1183 | PE3 = Instance.new("Part", c) | |
1184 | PE3.Size = Vector3.new(9.1, 9.1, 9.1) | |
1185 | PE3.Material = "Neon" | |
1186 | PE3.Transparency = 0.5 | |
1187 | PE3.BrickColor = BrickColor.new("Light blue") | |
1188 | PE3.CanCollide = false | |
1189 | PE3.Anchored = true | |
1190 | end | |
1191 | local Charge2 = 0 | |
1192 | for i = 1, 100 do | |
1193 | Charge2 = Charge2 + 1 | |
1194 | PE.Size = PE.Size + Vector3.new(0, 0, 4) | |
1195 | if Form == "Kaioken" then | |
1196 | PE3.Size = PE3.Size + Vector3.new(0, 0, 4) | |
1197 | end | |
1198 | PE.Touched:connect(function(Hit) | |
1199 | if Hit.Anchored == false and Hit.Parent ~= c then | |
1200 | Hit:remove() | |
1201 | end | |
1202 | swait() | |
1203 | end) | |
1204 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -6 + -2 * Charge2) | |
1205 | if Form == "Kaioken" then | |
1206 | PE3.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -6 + -2 * Charge2) | |
1207 | end | |
1208 | swait() | |
1209 | end | |
1210 | tra.Enabled = false | |
1211 | for i = 1, 80 do | |
1212 | Charge2 = Charge2 + 1 | |
1213 | PE.Size = PE.Size + Vector3.new(-0.2, -0.2, 4) | |
1214 | PE.Velocity = Vector3.new(0, 0, 0) | |
1215 | PE.Transparency = PE.Transparency + 0.025 | |
1216 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2 * Charge2) | |
1217 | PE.CFrame = PE.CFrame * CFrame.new(0, 0, -6) | |
1218 | if Form == "Kaioken" then | |
1219 | PE3.Size = PE3.Size + Vector3.new(-0.2005, -0.2005, 4) | |
1220 | PE3.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 0, -6 + -2 * Charge2) | |
1221 | end | |
1222 | swait() | |
1223 | end | |
1224 | game.Debris:AddItem(PE, 0) | |
1225 | game.Debris:AddItem(P, 10) | |
1226 | if Form == "Kaioken" then | |
1227 | game.Debris:AddItem(PE, 0) | |
1228 | end | |
1229 | anim.Parent = Humanoid | |
1230 | resetlerp() | |
1231 | c.HumanoidRootPart.Anchored = false | |
1232 | attack = false | |
1233 | CombatDebounce = false | |
1234 | end | |
1235 | function FireSpiritBomb(Bomb) | |
1236 | local Hit = false | |
1237 | Spawn(function() | |
1238 | if Hit == true then | |
1239 | return | |
1240 | end | |
1241 | Bomb.CFrame = Bomb.CFrame * CFrame.new(0, 0, -1) | |
1242 | swait() | |
1243 | end) | |
1244 | end | |
1245 | function SpiritBomb() | |
1246 | resetlerp() | |
1247 | CombatDebounce = true | |
1248 | attack = true | |
1249 | anim.Parent = nil | |
1250 | c.HumanoidRootPart.Anchored = true | |
1251 | local PE | |
1252 | PE = Instance.new("Part", c) | |
1253 | PE.Size = Vector3.new(0.2, 0.2, 0.2) | |
1254 | PE.Material = "Neon" | |
1255 | PE.BrickColor = BrickColor.new("Light blue") | |
1256 | PE.CanCollide = false | |
1257 | PE.Anchored = true | |
1258 | PE.Shape = "Ball" | |
1259 | local P = Instance.new("Part", c) | |
1260 | P.CanCollide = false | |
1261 | P.Size = Vector3.new(0.2, 0.2, 0.2) | |
1262 | P.Transparency = 1 | |
1263 | local tra | |
1264 | tra = trazx:clone() | |
1265 | tra.Parent = P | |
1266 | tra.LightEmission = 1 | |
1267 | tra.Color = ColorSequence.new({ | |
1268 | ColorSequenceKeypoint.new(0, Color3.new(0, 0.6666666666666666, 1)), | |
1269 | ColorSequenceKeypoint.new(0.5, Color3.new(0.3843137254901961, 0.8666666666666667, 1)), | |
1270 | ColorSequenceKeypoint.new(1, Color3.new(0, 0.6666666666666666, 1)) | |
1271 | }) | |
1272 | tra.Rate = 50 | |
1273 | tra.Rotation = NumberRange.new(-360, 360) | |
1274 | tra.Lifetime = NumberRange.new(0.5) | |
1275 | tra.Size = NumberSequence.new({ | |
1276 | NumberSequenceKeypoint.new(0, 0.4, 0), | |
1277 | NumberSequenceKeypoint.new(0.779, 2, 0.492), | |
1278 | NumberSequenceKeypoint.new(1, 4.5, 0) | |
1279 | }) | |
1280 | tra.Transparency = NumberSequence.new({ | |
1281 | NumberSequenceKeypoint.new(0, 1, 0), | |
1282 | NumberSequenceKeypoint.new(0.135, 0, 0), | |
1283 | NumberSequenceKeypoint.new(0.862, 0, 0), | |
1284 | NumberSequenceKeypoint.new(1, 1, 0) | |
1285 | }) | |
1286 | tra.Speed = NumberRange.new(0) | |
1287 | tra.VelocitySpread = 360 | |
1288 | tra.LockedToPart = true | |
1289 | tra.ZOffset = 4 | |
1290 | local S4 = Instance.new("Sound", P) | |
1291 | S4.SoundId = "rbxassetid://858904104" | |
1292 | S4.Volume = 2.5 | |
1293 | S4:Play() | |
1294 | for i = 1, 50 do | |
1295 | swait() | |
1296 | c.HumanoidRootPart.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p) | |
1297 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1298 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1299 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(180)), 0.5) | |
1300 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1301 | lerpz(LS, "C0", LSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(180)), 0.5) | |
1302 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1303 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.5) | |
1304 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1305 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.5) | |
1306 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1307 | end | |
1308 | for i = 1, 900 do | |
1309 | c.HumanoidRootPart.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p) | |
1310 | tra.Size = NumberSequence.new({ | |
1311 | NumberSequenceKeypoint.new(0, 0.2 + 0.05 * i, 0), | |
1312 | NumberSequenceKeypoint.new(1, 0.2 + 0.05 * i, 0) | |
1313 | }) | |
1314 | PE.Size = PE.Size + Vector3.new(0.05, 0.05, 0.05) | |
1315 | PE.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 25, 0) | |
1316 | P.CFrame = c.HumanoidRootPart.CFrame * CFrame.new(0, 25, 0) | |
1317 | swait() | |
1318 | end | |
1319 | for i = 1, 4 do | |
1320 | swait() | |
1321 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(10), rd(0)), 0.5) | |
1322 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1323 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.5) | |
1324 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1325 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.5) | |
1326 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1327 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5) | |
1328 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1329 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5) | |
1330 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1331 | end | |
1332 | local W2 = Instance.new("Weld", PE) | |
1333 | W2.Part0 = PE | |
1334 | W2.Part1 = P | |
1335 | W2.C0 = CFrame.new(0, 0, 0) | |
1336 | S4:Stop() | |
1337 | S4.SoundId = "rbxassetid://870984991" | |
1338 | S4:Play() | |
1339 | S4.Volume = 5 | |
1340 | PE.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0, 0, 0)).p, mouse.hit.p) | |
1341 | PE.CFrame = PE.CFrame * CFrame.new(0, 0, -25) | |
1342 | FireSpiritBomb(PE) | |
1343 | anim.Parent = Humanoid | |
1344 | resetlerp() | |
1345 | c.HumanoidRootPart.Anchored = false | |
1346 | attack = false | |
1347 | CombatDebounce = false | |
1348 | end | |
1349 | mouse.KeyDown:connect(function(key) | |
1350 | if attack == true then | |
1351 | return | |
1352 | end | |
1353 | if key == "z" then | |
1354 | Kamehameha() | |
1355 | end | |
1356 | if key == "x" then | |
1357 | SuperKamehameha() | |
1358 | end | |
1359 | if key == "c" then | |
1360 | SpiritBomb() | |
1361 | end | |
1362 | if key == "m" then | |
1363 | SSJB() | |
1364 | end | |
1365 | end) | |
1366 | game:GetService("RunService").RenderStepped:connect(function() | |
1367 | Humanoid.MaxHealth = Humanoid.MaxHealth * 2 | |
1368 | Humanoid.Health = Humanoid.MaxHealth * 2 | |
1369 | if attack == false then | |
1370 | for i, v in pairs(c:children()) do | |
1371 | if v.ClassName == "Accessory" then | |
1372 | for i, v2 in pairs(v:children()) do | |
1373 | if v2.ClassName == "Part" then | |
1374 | v2.Anchored = false | |
1375 | end | |
1376 | end | |
1377 | end | |
1378 | end | |
1379 | for i, v in pairs(c:children()) do | |
1380 | if v.ClassName == "Part" then | |
1381 | v.Anchored = false | |
1382 | end | |
1383 | end | |
1384 | end | |
1385 | end) |