SHOW:
|
|
- or go back to the newest paste.
1 | - | Kaoi Ken |
1 | + | |
2 | local char = jun.Character | |
3 | local Head = char.Head | |
4 | local mouse = jun: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 jun:IsA("Hat") then | |
23 | jun:Destroy() | |
24 | end | |
25 | end | |
26 | for i,v in pairs (hed:GetChildren()) do | |
27 | if jun:IsA("Sound") then | |
28 | jun:Destroy() | |
29 | end | |
30 | end | |
31 | ||
32 | Stuff = false | |
33 | ---------------------------------------------------------------- | |
34 | rleg.Transparency = 0 | |
35 | rarm.Transparency = 0 | |
36 | larm.Transparency = 0 | |
37 | lleg.Transparency = 0 | |
38 | torso.Transparency = 0 | |
39 | ||
40 | Player = game:GetService("Players").LocalPlayer | |
41 | Character = Player.Character | |
42 | rarm = Character["Right Arm"] | |
43 | larm = Character["Left Arm"] | |
44 | ||
45 | ---------------------------------------------------------------- | |
46 | ||
47 | ---------------------------- SHIRT AND PANTS -- | |
48 | -------------------------------- | |
49 | shirt = Instance.new("Shirt", char) | |
50 | shirt.Name = "Shirt" | |
51 | pants = Instance.new("Pants", char) | |
52 | pants.Name = "Pants" | |
53 | char.Shirt.ShirtTemplate = "rbxassetid://247266812" | |
54 | char.Pants.PantsTemplate = "rbxassetid://247266984" | |
55 | ---------------------- BODY COLORS --------------------------------------- | |
56 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") | |
57 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown") | |
58 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") | |
59 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") | |
60 | ||
61 | --------------------------------------------------------- | |
62 | -------------------------------------------------------- | |
63 | hed.face.Texture = "rbxassetid://631520833" | |
64 | ||
65 | jun.Character.Humanoid.Health = 1000 | |
66 | jun.Character.Humanoid.MaxHealth = 1000 | |
67 | ||
68 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
69 | --------------------------------------------------------- | |
70 | ||
71 | Debounces = { | |
72 | CanAttack = true; | |
73 | NoIdl = false; | |
74 | Slashing = false; | |
75 | Slashed = false; | |
76 | RPunch = false; | |
77 | RPunched = false; | |
78 | LPunch = false; | |
79 | LPunched = false; | |
80 | } | |
81 | local Touche = {char.Name, } | |
82 | ||
83 | ------------------------ ----------------------------------------- | |
84 | ||
85 | --------------------------------------------------------------------- | |
86 | ||
87 | rarm.Touched:connect(function(ht) | |
88 | hit = ht.Parent | |
89 | if ht and hit:IsA("Model") then | |
90 | if hit:FindFirstChild("Humanoid") then | |
91 | if hit.Name ~= jun.Name then | |
92 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
93 | Debounces.RPunched = true | |
94 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
95 | if Debounces.ks==true then | |
96 | z = Instance.new("Sound",hed) | |
97 | z.SoundId = "rbxassetid://169380525" | |
98 | z.Pitch = ptz[math.random(1,#ptz)] | |
99 | z.Volume = 1 | |
100 | z:Play() | |
101 | end | |
102 | wait(.2) | |
103 | Debounces.RPunched = false | |
104 | end | |
105 | end | |
106 | end | |
107 | elseif ht and hit:IsA("Hat") then | |
108 | if hit.Parent.Name ~= p.Name then | |
109 | if hit.Parent:FindFirstChild("Humanoid") then | |
110 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
111 | Debounces.RPunched = true | |
112 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
113 | if Debounces.ks==true then | |
114 | z = Instance.new("Sound",hed) | |
115 | z.SoundId = "rbxassetid://169380525" | |
116 | z.Pitch = ptz[math.random(1,#ptz)] | |
117 | z.Volume = 1 | |
118 | z:Play() | |
119 | end | |
120 | wait(.2) | |
121 | Debounces.RPunched = false | |
122 | end | |
123 | end | |
124 | end | |
125 | end | |
126 | end) | |
127 | larm.Touched:connect(function(ht) | |
128 | hit = ht.Parent | |
129 | if ht and hit:IsA("Model") then | |
130 | if hit:FindFirstChild("Humanoid") then | |
131 | if hit.Name ~= jun.Name then | |
132 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
133 | Debounces.LPunched = true | |
134 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
135 | if Debounces.ks2==true then | |
136 | z = Instance.new("Sound",hed) | |
137 | z.SoundId = "rbxassetid://169380525" | |
138 | z.Pitch = ptz[math.random(1,#ptz)] | |
139 | z.Volume = 1 | |
140 | z:Play() | |
141 | end | |
142 | wait(.2) | |
143 | Debounces.LPunched = false | |
144 | end | |
145 | end | |
146 | end | |
147 | elseif ht and hit:IsA("Hat") then | |
148 | if hit.Parent.Name ~= jun.Name then | |
149 | if hit.Parent:FindFirstChild("Humanoid") then | |
150 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
151 | Debounces.LPunched = true | |
152 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
153 | if Debounces.ks2==true then | |
154 | z = Instance.new("Sound",hed) | |
155 | z.SoundId = "rbxassetid://169380525" | |
156 | z.Pitch = ptz[math.random(1,#ptz)] | |
157 | z.Volume = 1 | |
158 | z:Play() | |
159 | end | |
160 | wait(.2) | |
161 | Debounces.LPunched = false | |
162 | end | |
163 | end | |
164 | end | |
165 | end | |
166 | end) | |
167 | ---------------------------------------------------- | |
168 | mod4 = Instance.new("Model",char) | |
169 | ||
170 | ptez = {0.7, 0.8, 0.9, 1} | |
171 | ||
172 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
173 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
174 | local List = {} | |
175 | for i,v in pairs(workspace:GetChildren())do | |
176 | if v:IsA("Model")then | |
177 | if v:findFirstChild("Torso")then | |
178 | if v ~= char then | |
179 | if(v.Torso.Position -Position).magnitude <= Distance then | |
180 | table.insert(List,v) | |
181 | end | |
182 | end | |
183 | end | |
184 | end | |
185 | end | |
186 | return List | |
187 | end | |
188 | ||
189 | function Punch() | |
190 | part=Instance.new('Part',mod4) | |
191 | part.Anchored=true | |
192 | part.CanCollide=false | |
193 | part.FormFactor='Custom' | |
194 | part.Size=Vector3.new(.2,.2,.2) | |
195 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
196 | part.Transparency=.7 | |
197 | part.BrickColor=BrickColor.new('Really red') | |
198 | mesh=Instance.new('SpecialMesh',part) | |
199 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
200 | mesh.Scale=Vector3.new(3,3,3) | |
201 | part2=Instance.new('Part',mod4) | |
202 | part2.Anchored=true | |
203 | part2.CanCollide=false | |
204 | part2.FormFactor='Custom' | |
205 | part2.Size=Vector3.new(.2,.2,.2) | |
206 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
207 | part2.Transparency=.7 | |
208 | part2.BrickColor=BrickColor.new('Really red') | |
209 | mesh2=Instance.new('SpecialMesh',part2) | |
210 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
211 | mesh2.Scale=Vector3.new(3,1.5,3) | |
212 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
213 | if v:FindFirstChild('Humanoid') then | |
214 | v.Humanoid:TakeDamage(math.random(2,6)) | |
215 | end | |
216 | end | |
217 | coroutine.resume(coroutine.create(function() | |
218 | for i=0,0.62,0.4 do | |
219 | wait() | |
220 | part.CFrame=part.CFrame | |
221 | part.Transparency=i | |
222 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
223 | part2.CFrame=part2.CFrame | |
224 | part2.Transparency=i | |
225 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
226 | end | |
227 | part.Parent=nil | |
228 | part2.Parent=nil | |
229 | end)) | |
230 | end | |
231 | ---------------------------------------------------- | |
232 | rarm.Touched:connect(function(ht) | |
233 | hit = ht.Parent | |
234 | if ht and hit:IsA("Model") then | |
235 | if hit:FindFirstChild("Humanoid") then | |
236 | if hit.Name ~= jun.Name then | |
237 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
238 | Debounces.RPunched = true | |
239 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
240 | if Debounces.ks==true then | |
241 | z = Instance.new("Sound",hed) | |
242 | z.SoundId = "rbxassetid://169380525" | |
243 | z.Pitch = ptz[math.random(1,#ptz)] | |
244 | z.Volume = 1 | |
245 | z:Play() | |
246 | end | |
247 | wait(.2) | |
248 | Debounces.RPunched = false | |
249 | end | |
250 | end | |
251 | end | |
252 | elseif ht and hit:IsA("Hat") then | |
253 | if hit.Parent.Name ~= p.Name then | |
254 | if hit.Parent:FindFirstChild("Humanoid") then | |
255 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
256 | Debounces.RPunched = true | |
257 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
258 | if Debounces.ks==true then | |
259 | z = Instance.new("Sound",hed) | |
260 | z.SoundId = "rbxassetid://169380525" | |
261 | z.Pitch = ptz[math.random(1,#ptz)] | |
262 | z.Volume = 1 | |
263 | z:Play() | |
264 | end | |
265 | wait(.2) | |
266 | Debounces.RPunched = false | |
267 | end | |
268 | end | |
269 | end | |
270 | end | |
271 | end) | |
272 | larm.Touched:connect(function(ht) | |
273 | hit = ht.Parent | |
274 | if ht and hit:IsA("Model") then | |
275 | if hit:FindFirstChild("Humanoid") then | |
276 | if hit.Name ~= jun.Name then | |
277 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
278 | Debounces.LPunched = true | |
279 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
280 | if Debounces.ks2==true then | |
281 | z = Instance.new("Sound",hed) | |
282 | z.SoundId = "rbxassetid://169380525" | |
283 | z.Pitch = ptz[math.random(1,#ptz)] | |
284 | z.Volume = 1 | |
285 | z:Play() | |
286 | end | |
287 | wait(.2) | |
288 | Debounces.LPunched = false | |
289 | end | |
290 | end | |
291 | end | |
292 | elseif ht and hit:IsA("Hat") then | |
293 | if hit.Parent.Name ~= jun.Name then | |
294 | if hit.Parent:FindFirstChild("Humanoid") then | |
295 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
296 | Debounces.LPunched = true | |
297 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
298 | if Debounces.ks2==true then | |
299 | z = Instance.new("Sound",hed) | |
300 | z.SoundId = "rbxassetid://169380525" | |
301 | z.Pitch = ptz[math.random(1,#ptz)] | |
302 | z.Volume = 1 | |
303 | z:Play() | |
304 | end | |
305 | wait(.2) | |
306 | Debounces.LPunched = false | |
307 | end | |
308 | end | |
309 | end | |
310 | end | |
311 | end) | |
312 | ||
313 | --------------------------- CHARGE ---------------------------------------- | |
314 | Charging = false | |
315 | mouse.KeyDown:connect(function(key) | |
316 | if key == "r" then | |
317 | if Charging == false then | |
318 | Charging = true | |
319 | if Debounces.CanAttack == true then | |
320 | Debounces.CanAttack = false | |
321 | Debounces.NoIdl = true | |
322 | Debounces.on = true | |
323 | for i = 1,20 do | |
324 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
325 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
326 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
327 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
328 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
329 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
330 | if Debounces.on == false then break end | |
331 | rs:wait() | |
332 | end | |
333 | --[[for i = 1,20 do | |
334 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
335 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
336 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
337 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
338 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
339 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
340 | if Debounces.on == false then break end | |
341 | rs:wait() | |
342 | end]]-- | |
343 | --------------------------------------------------------------------------- | |
344 | ||
345 | --------------------------------------------------------------------------- | |
346 | mouse.KeyDown:connect(function(key) | |
347 | if key == "q" then | |
348 | if Debounces.CanAttack == true then | |
349 | Debounces.CanAttack = false | |
350 | Debounces.NoIdl = true | |
351 | Debounces.on = true | |
352 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
353 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
354 | local List = {} | |
355 | for i,v in pairs(workspace:GetChildren())do | |
356 | if v:IsA("Model")then | |
357 | if v:findFirstChild("Torso")then | |
358 | if v ~= char then | |
359 | if(v.Torso.Position -Position).magnitude <= Distance then | |
360 | table.insert(List,v) | |
361 | end | |
362 | end | |
363 | end | |
364 | end | |
365 | end | |
366 | return List | |
367 | end | |
368 | z = Instance.new("Sound",hed) | |
369 | z.SoundId = "rbxassetid://232213955" | |
370 | z.Pitch = 1 | |
371 | z.Volume = 1 | |
372 | wait(0.2) | |
373 | z:Play() | |
374 | sp = Instance.new("Part",rarm) | |
375 | sp.Anchored = true | |
376 | sp.CanCollide = false | |
377 | sp.Locked = true | |
378 | sp.Transparency = 0 | |
379 | sp.Material = "Neon" | |
380 | sp.Size = Vector3.new(1,1,1) | |
381 | sp.TopSurface = "SmoothNoOutlines" | |
382 | sp.BottomSurface = "SmoothNoOutlines" | |
383 | sp.BrickColor = BrickColor.new("Really red") | |
384 | spm = Instance.new("SpecialMesh",sp) | |
385 | spm.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
386 | spm.Scale = Vector3.new(21,21,21) | |
387 | sp2 = Instance.new("Part", rarm) | |
388 | sp2.Name = "Energy" | |
389 | sp2.BrickColor = BrickColor.new("Really red") | |
390 | sp2.Size = Vector3.new(1, 1, 1) | |
391 | sp2.Shape = "Ball" | |
392 | sp2.CanCollide = false | |
393 | sp2.Anchored = true | |
394 | sp2.Locked = true | |
395 | sp2.TopSurface = 0 | |
396 | sp2.BottomSurface = 0 | |
397 | sp2.Transparency = 1 | |
398 | spm2 = Instance.new("SpecialMesh",sp2) | |
399 | spm2.MeshId = "rbxassetid://9756362" | |
400 | spm2.Scale = Vector3.new(4,4,4) | |
401 | for i = 1, 20 do | |
402 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
403 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
404 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
405 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
406 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
407 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
408 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
409 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
410 | if Debounces.on == false then break end | |
411 | rs:wait() | |
412 | end | |
413 | for i = 1, 100, 20 do rs:wait() | |
414 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
415 | end | |
416 | for i = 1, 20 do | |
417 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
418 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
419 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
420 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
421 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
422 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
423 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
424 | if Debounces.on == false then break end | |
425 | rs:wait() | |
426 | end | |
427 | sp.Transparency = 1 | |
428 | for i = 1, 20 do | |
429 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
430 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
431 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
432 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
433 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
434 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
435 | if Debounces.on == false then break end | |
436 | rs:wait() | |
437 | end | |
438 | wait(1) | |
439 | sp.Transparency = 0 | |
440 | sp2.Transparency = 0.84 | |
441 | for i = 1, 20 do | |
442 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
443 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
444 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
445 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
446 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
447 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
448 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
449 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
450 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
451 | if Debounces.on == false then break end | |
452 | rs:wait() | |
453 | end | |
454 | for i = 1, 2880, 50 do | |
455 | rs:wait() | |
456 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
457 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
458 | rs:wait() | |
459 | end | |
460 | sp:Destroy() | |
461 | sp2:Destroy() | |
462 | local X = Instance.new("Part",char) | |
463 | local O = Instance.new("ObjectValue",X) | |
464 | O.Name = "creator" | |
465 | X.Locked = true | |
466 | X.Name = "Shell" | |
467 | X.Anchored = false | |
468 | X.CanCollide = false | |
469 | X.Transparency = 0 | |
470 | X.Reflectance = 0 | |
471 | X.BottomSurface = 0 | |
472 | X.TopSurface = 0 | |
473 | X.Shape = 0 | |
474 | local V = Instance.new("ObjectValue",X) | |
475 | V.Value = char | |
476 | V.Name = "creator" | |
477 | X.BrickColor = BrickColor.new("Really red") | |
478 | X.Size = Vector3.new(2,2,2) | |
479 | X.Material = "Neon" | |
480 | local Z = Instance.new("SpecialMesh",X) | |
481 | Z.MeshId = "rbxassetid://9756362" | |
482 | Z.Scale = Vector3.new(0.5,0.5,1) | |
483 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
484 | local bv = Instance.new("BodyVelocity",X) | |
485 | bv.maxForce = Vector3.new(99999,99999,99999) | |
486 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
487 | bv.velocity = X.CFrame.lookVector*65 | |
488 | ||
489 | Explode = X.Touched:connect(function(hit) | |
490 | if hit ~= char and hit.Name ~= "Shell" then | |
491 | local cf = X.CFrame | |
492 | bv:Destroy() | |
493 | X.Anchored = true | |
494 | Z:Remove() | |
495 | Explode:disconnect() | |
496 | X.Size = Vector3.new(3,3,3) | |
497 | X.Touched:connect(function(hit) end) | |
498 | X.CanCollide = false | |
499 | local part3 = Instance.new("Part", rarm) | |
500 | part3.Anchored=true | |
501 | part3.CanCollide=false | |
502 | part3.Locked = true | |
503 | part3.TopSurface = "SmoothNoOutlines" | |
504 | part3.BottomSurface = "SmoothNoOutlines" | |
505 | part3.FormFactor='Custom' | |
506 | part3.Size=Vector3.new(1,1, 1) | |
507 | part3.CFrame=X.CFrame | |
508 | part3.Transparency=0 | |
509 | part3.BrickColor=BrickColor.new("Really red") | |
510 | local mesh3 = Instance.new("SpecialMesh",part3) | |
511 | mesh3.MeshType = "Sphere" | |
512 | mesh3.Scale = Vector3.new(1,1,1) | |
513 | --debris:AddItem(X,8) | |
514 | local part4 = Instance.new("Part", rarm) | |
515 | part4.Material = "Neon" | |
516 | part4.Anchored=true | |
517 | part4.CanCollide=false | |
518 | part4.Locked = true | |
519 | part4.TopSurface = "SmoothNoOutlines" | |
520 | part4.BottomSurface = "SmoothNoOutlines" | |
521 | part4.FormFactor='Custom' | |
522 | part4.Size=Vector3.new(1,1, 1) | |
523 | part4.CFrame=X.CFrame | |
524 | part4.Transparency=0 | |
525 | part4.BrickColor=BrickColor.new("Really red") | |
526 | local mesh4 = Instance.new("SpecialMesh",part4) | |
527 | mesh4.MeshType = "Sphere" | |
528 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
529 | local part7 = Instance.new("Part", rarm) | |
530 | part7.Material = "Neon" | |
531 | part7.Anchored=true | |
532 | part7.CanCollide=false | |
533 | part7.Locked = true | |
534 | part7.TopSurface = "SmoothNoOutlines" | |
535 | part7.BottomSurface = "SmoothNoOutlines" | |
536 | part7.FormFactor='Custom' | |
537 | part7.Size=Vector3.new(1,1, 1) | |
538 | part7.CFrame=X.CFrame | |
539 | part7.Transparency=0 | |
540 | part7.BrickColor=BrickColor.new("Really red") | |
541 | local mesh7 = Instance.new("SpecialMesh",part7) | |
542 | mesh7.MeshType = "Sphere" | |
543 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
544 | --[[X.Touched:connect(function(ht) | |
545 | hit = ht.Parent | |
546 | if ht and hit:IsA("Model") then | |
547 | if hit:FindFirstChild("Humanoid") then | |
548 | if hit.Name ~= p.Name then | |
549 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
550 | wait(.3) | |
551 | end | |
552 | end | |
553 | elseif ht and hit:IsA("Hat") then | |
554 | if hit.Parent.Name ~= p.Name then | |
555 | if hit.Parent:FindFirstChild("Humanoid") then | |
556 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
557 | wait(.3) | |
558 | end | |
559 | end | |
560 | end | |
561 | end) | |
562 | part3.Touched:connect(function(ht) | |
563 | hit = ht.Parent | |
564 | if ht and hit:IsA("Model") then | |
565 | if hit:FindFirstChild("Humanoid") then | |
566 | if hit.Name ~= p.Name then | |
567 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
568 | wait(.3) | |
569 | end | |
570 | end | |
571 | elseif ht and hit:IsA("Hat") then | |
572 | if hit.Parent.Name ~= p.Name then | |
573 | if hit.Parent:FindFirstChild("Humanoid") then | |
574 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
575 | wait(.3) | |
576 | end | |
577 | end | |
578 | end | |
579 | end)]]-- | |
580 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
581 | if v:FindFirstChild('Humanoid') then | |
582 | v.Humanoid:TakeDamage(math.random(60,90)) | |
583 | v.Humanoid.PlatformStand = true | |
584 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
585 | end | |
586 | end | |
587 | ||
588 | local acos = math.acos | |
589 | local sqrt = math.sqrt | |
590 | local Vec3 = Vector3.new | |
591 | local fromAxisAngle = CFrame.fromAxisAngle | |
592 | ||
593 | local function toAxisAngle(CFr) | |
594 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
595 | local Angle = math.acos((R00+R11+R22-1)/2) | |
596 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
597 | A = A == 0 and 0.00001 or A | |
598 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
599 | B = B == 0 and 0.00001 or B | |
600 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
601 | C = C == 0 and 0.00001 or C | |
602 | local x = (R21-R12)/sqrt(A) | |
603 | local y = (R02-R20)/sqrt(B) | |
604 | local z = (R10-R01)/sqrt(C) | |
605 | return Vec3(x,y,z),Angle | |
606 | end | |
607 | ||
608 | function ApplyTrig(Num,Func) | |
609 | local Min,Max = Func(0),Func(1) | |
610 | local i = Func(Num) | |
611 | return (i-Min)/(Max-Min) | |
612 | end | |
613 | ||
614 | function LerpCFrame(CFrame1,CFrame2,Num) | |
615 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
616 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
617 | end | |
618 | ||
619 | function Crater(Torso,Radius) | |
620 | Spawn(function() | |
621 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
622 | local Ignore = {} | |
623 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
624 | if v.Character ~= nil then | |
625 | Ignore[#Ignore+1] = v.Character | |
626 | end | |
627 | end | |
628 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
629 | if Hit == nil then return end | |
630 | local Parts = {} | |
631 | for i = 1,360,10 do | |
632 | local P = Instance.new("Part",Torso.Parent) | |
633 | P.Anchored = true | |
634 | P.FormFactor = "Custom" | |
635 | P.BrickColor = Hit.BrickColor | |
636 | P.Material = Hit.Material | |
637 | P.TopSurface = "Smooth" | |
638 | P.BottomSurface = "Smooth" | |
639 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
640 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
641 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
642 | if math.random(0,5) == 0 then -- rubble | |
643 | local P = Instance.new("Part",Torso.Parent) | |
644 | P.Anchored = true | |
645 | P.FormFactor = "Custom" | |
646 | P.BrickColor = Hit.BrickColor | |
647 | P.Material = Hit.Material | |
648 | P.TopSurface = "Smooth" | |
649 | P.BottomSurface = "Smooth" | |
650 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
651 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
652 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
653 | end | |
654 | end | |
655 | for i = 0,1,0.05 do | |
656 | for i2,v in pairs(Parts) do | |
657 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
658 | end | |
659 | wait(0.02) | |
660 | end | |
661 | for i,v in pairs(Parts) do | |
662 | if v[1].Size.X > 2.1 then | |
663 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
664 | end | |
665 | v[1].Anchored = false | |
666 | end | |
667 | for i = 0,1,0.05 do | |
668 | for i2,v in pairs(Parts) do | |
669 | v[1].Transparency = i | |
670 | if i == 1 then | |
671 | v[1]:Destroy() | |
672 | elseif i >= 0.25 then | |
673 | v[1].CanCollide = false | |
674 | end | |
675 | end | |
676 | wait(0.02) | |
677 | end | |
678 | Parts = nil | |
679 | end) | |
680 | end | |
681 | ||
682 | ROW = function(out, trans, s, wt, t, ang, plus) | |
683 | for i = 1, 360, 360/t do | |
684 | local c = Instance.new("Part", game.Workspace) | |
685 | c.FormFactor = 3 | |
686 | c.TopSurface = 0 | |
687 | c.BottomSurface = 0 | |
688 | c.Size = s | |
689 | c.Anchored = true | |
690 | c.CanCollide = wt | |
691 | c.Material=workspace.Base.Material | |
692 | c.Transparency = trans | |
693 | c.BrickColor = workspace.Base.BrickColor | |
694 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
695 | c.Locked=true | |
696 | game.Debris:AddItem(c,15) | |
697 | end | |
698 | end | |
699 | ||
700 | Part = function(x,y,z,color,tr,cc,an,parent) | |
701 | local p = Instance.new('Part',parent or Weapon) | |
702 | p.formFactor = 'Custom' | |
703 | p.Size = Vector3.new(x,y,z) | |
704 | p.BrickColor = BrickColor.new(color) | |
705 | p.CanCollide = cc | |
706 | p.Transparency = tr | |
707 | p.Anchored = an | |
708 | p.TopSurface,p.BottomSurface = 0,0 | |
709 | p.Locked=true | |
710 | p:BreakJoints() | |
711 | return p end | |
712 | ||
713 | Mesh = function(par,num,x,y,z) | |
714 | local msh = _ | |
715 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
716 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
717 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
718 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
719 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
720 | end msh.Scale = Vector3.new(x,y,z) | |
721 | return msh end | |
722 | ||
723 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
724 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
725 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
726 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
727 | v1,v2,v3=sz.x,sz.y,sz.z | |
728 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
729 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
730 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
731 | a.CFrame=cfr | |
732 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
733 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
734 | ||
735 | Spawn(function() | |
736 | while wait() do | |
737 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
738 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
739 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
740 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
741 | a.Transparency=a.Transparency+0.05 | |
742 | a2.Transparency=a2.Transparency+0.05 | |
743 | a3.Transparency=a3.Transparency+0.05 | |
744 | end | |
745 | end) | |
746 | end | |
747 | ||
748 | Crater(X,20) | |
749 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
750 | z = Instance.new("Sound",X) | |
751 | z.SoundId = "rbxassetid://231917744" | |
752 | z.Pitch = .5 | |
753 | z.Volume = 10 | |
754 | z1 = Instance.new("Sound",X) | |
755 | z1.SoundId = "rbxassetid://231917744" | |
756 | z1.Pitch = .5 | |
757 | z1.Volume = 10 | |
758 | z2 = Instance.new("Sound",X) | |
759 | z2.SoundId = "rbxassetid://231917744" | |
760 | z2.Pitch = .5 | |
761 | z2.Volume = 10 | |
762 | z3 = Instance.new("Sound",X) | |
763 | z3.SoundId = "rbxassetid://245537790" | |
764 | z3.Pitch = .7 | |
765 | z3.Volume = 1 | |
766 | z4 = Instance.new("Sound",X) | |
767 | z4.SoundId = "rbxassetid://245537790" | |
768 | z4.Pitch = .7 | |
769 | z4.Volume = 1 | |
770 | wait(0.1) | |
771 | z:Play() | |
772 | z1:Play() | |
773 | z2:Play() | |
774 | z3:Play() | |
775 | z4:Play() | |
776 | ||
777 | local part=Instance.new('Part',rarm) | |
778 | part.Anchored=true | |
779 | part.CanCollide=false | |
780 | part.Locked = true | |
781 | part.FormFactor='Custom' | |
782 | part.Size=Vector3.new(1,1,1) | |
783 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
784 | part.Transparency=0 | |
785 | part.BrickColor=BrickColor.new('Really red') | |
786 | local mesh=Instance.new('SpecialMesh',part) | |
787 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
788 | mesh.Scale=Vector3.new(2,2,2) | |
789 | local part2=part:clone() | |
790 | part2.Parent = rarm | |
791 | part2.BrickColor=BrickColor.new("Really red") | |
792 | local part5=part:clone() | |
793 | part5.Parent = rarm | |
794 | part5.BrickColor=BrickColor.new("Magenta") | |
795 | local part6=part:clone() | |
796 | part6.Parent = rarm | |
797 | part6.BrickColor=BrickColor.new("Black") | |
798 | local mesh2=mesh:clone() | |
799 | mesh2.Parent=part2 | |
800 | mesh2.Scale=Vector3.new(3, 3, 3) | |
801 | local mesh5=mesh:clone() | |
802 | mesh5.Parent=part5 | |
803 | mesh5.Scale=Vector3.new(3, 3, 3) | |
804 | local mesh6=mesh:clone() | |
805 | mesh6.Parent=part6 | |
806 | mesh6.Scale=Vector3.new(3, 3, 3) | |
807 | local blast = Instance.new("Part", rarm) | |
808 | blast.BrickColor = BrickColor.new("Really red") | |
809 | blast.Anchored = true | |
810 | blast.CanCollide = false | |
811 | blast.Locked = true | |
812 | blast.Size = Vector3.new(1, 1, 1) | |
813 | blast.TopSurface = "Smooth" | |
814 | blast.BottomSurface = "Smooth" | |
815 | blast.Transparency = 0 | |
816 | blast.CFrame = HandCF | |
817 | local bm = Instance.new("SpecialMesh", blast) | |
818 | bm.Scale = Vector3.new(5,1,5) | |
819 | bm.MeshId = "rbxassetid://3270017" | |
820 | local blast2 = Instance.new("Part", rarm) | |
821 | blast2.BrickColor = BrickColor.new("Really red") | |
822 | blast2.Anchored = true | |
823 | blast2.CanCollide = false | |
824 | blast2.Locked = true | |
825 | blast2.Size = Vector3.new(1, 1, 1) | |
826 | blast2.TopSurface = "Smooth" | |
827 | blast2.BottomSurface = "Smooth" | |
828 | blast2.Transparency = 0 | |
829 | blast2.CFrame = HandCF | |
830 | local bm2 = Instance.new("SpecialMesh", blast2) | |
831 | bm2.Scale = Vector3.new(3,1,3) | |
832 | bm2.MeshId = "rbxassetid://3270017" | |
833 | local blast3 = Instance.new("Part", rarm) | |
834 | blast3.BrickColor = BrickColor.new("Really red") | |
835 | blast3.Anchored = true | |
836 | blast3.CanCollide = false | |
837 | blast3.Locked = true | |
838 | blast3.Size = Vector3.new(1, 1, 1) | |
839 | blast3.TopSurface = "Smooth" | |
840 | blast3.BottomSurface = "Smooth" | |
841 | blast3.Transparency = 0 | |
842 | blast3.CFrame = HandCF | |
843 | local bm3 = Instance.new("SpecialMesh", blast3) | |
844 | bm3.Scale = Vector3.new(3,1,3) | |
845 | bm3.MeshId = "rbxassetid://3270017" | |
846 | for i = 1,120 do rs:wait() | |
847 | X.Transparency = X.Transparency + (1/120) | |
848 | part.Transparency = part.Transparency + (1/120) | |
849 | part2.Transparency = part2.Transparency + (1/120) | |
850 | part3.Transparency = part3.Transparency + (1/120) | |
851 | part4.Transparency = part4.Transparency + (1/120) | |
852 | part5.Transparency = part5.Transparency + (1/120) | |
853 | part6.Transparency = part6.Transparency + (1/120) | |
854 | part7.Transparency = part7.Transparency + (1/120) | |
855 | blast.Transparency = blast.Transparency + (1/120) | |
856 | blast2.Transparency = blast2.Transparency + (1/120) | |
857 | blast3.Transparency = blast3.Transparency + (1/120) | |
858 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
859 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
860 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
861 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
862 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
863 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
864 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
865 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
866 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
867 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
868 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
869 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
870 | X.CFrame = cf | |
871 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
872 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
873 | part3.CFrame=X.CFrame | |
874 | part4.CFrame=X.CFrame | |
875 | part7.CFrame=X.CFrame | |
876 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
877 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
878 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
879 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
880 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
881 | rs:wait() | |
882 | end | |
883 | X:Destroy() | |
884 | part:Destroy() | |
885 | print("you think you can steal le script by taking of the credits!??") | |
886 | print("boi you is wrong") | |
887 | part2:Destroy() | |
888 | part3:Destroy() | |
889 | part4:Destroy() | |
890 | part5:Destroy() | |
891 | part6:Destroy() | |
892 | blast:Destroy() | |
893 | blast2:Destroy() | |
894 | blast3:Destroy() | |
895 | z:Destroy() | |
896 | z1:Destroy() | |
897 | z2:Destroy() | |
898 | z3:Destroy() | |
899 | z4:Destroy() | |
900 | end | |
901 | end) | |
902 | for i = 1, 20 do | |
903 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
904 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
905 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
906 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
907 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
908 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
909 | if Debounces.on == false then break end | |
910 | rs:wait() | |
911 | end | |
912 | if Debounces.CanAttack == false then | |
913 | Debounces.CanAttack = true | |
914 | Debounces.NoIdl = false | |
915 | Debounces.on = false | |
916 | end | |
917 | end | |
918 | end | |
919 | end) | |
920 | --------------------------------------------------------------------------------------------- | |
921 | mouse.KeyDown:connect(function(key) | |
922 | if key == "e" then | |
923 | if Debounces.CanAttack == true then | |
924 | Debounces.CanAttack = false | |
925 | Debounces.on = true | |
926 | Debounces.NoIdl = true | |
927 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
928 | z = Instance.new("Sound", rarm) | |
929 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
930 | z.Volume = .6 | |
931 | z.Pitch = pt[math.random(1,#pt)] | |
932 | z.Looped = false | |
933 | z:Play() | |
934 | Debounces.RPunch = true | |
935 | Debounces.LPunch = true | |
936 | Debounces.ks = true | |
937 | Debounces.ks2 = true | |
938 | for i = 1, 3 do | |
939 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
940 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
941 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
942 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
943 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
944 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
945 | if Debounces.on == false then break end | |
946 | wait() | |
947 | end | |
948 | z2 = Instance.new("Sound", larm) | |
949 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
950 | z2.Volume = .6 | |
951 | z2.Pitch = pt[math.random(1,#pt)] | |
952 | z2.Looped = false | |
953 | z2:Play() | |
954 | for i = 1, 3 do | |
955 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
956 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
957 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
958 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
959 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
960 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
961 | if Debounces.on == false then break end | |
962 | wait() | |
963 | end | |
964 | z3 = Instance.new("Sound", rarm) | |
965 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
966 | z3.Volume = 0.6 | |
967 | z3.Pitch = pt[math.random(1,#pt)] | |
968 | z3.Looped = false | |
969 | z3:Play() | |
970 | for i = 1, 3 do | |
971 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
972 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
973 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
974 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
975 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
976 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
977 | if Debounces.on == false then break end | |
978 | wait() | |
979 | end | |
980 | z4 = Instance.new("Sound", larm) | |
981 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
982 | z4.Volume = .6 | |
983 | z4.Pitch = pt[math.random(1,#pt)] | |
984 | z4.Looped = false | |
985 | z4:Play() | |
986 | for i = 1, 3 do | |
987 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
988 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
989 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
990 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
991 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
992 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
993 | if Debounces.on == false then break end | |
994 | wait() | |
995 | end | |
996 | z5 = Instance.new("Sound", rarm) | |
997 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
998 | z5.Volume = .6 | |
999 | z5.Pitch = pt[math.random(1,#pt)] | |
1000 | z5.Looped = false | |
1001 | z5:Play() | |
1002 | for i = 1, 3 do | |
1003 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1004 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1005 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1006 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1007 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1008 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1009 | if Debounces.on == false then break end | |
1010 | wait() | |
1011 | end | |
1012 | z6 = Instance.new("Sound", larm) | |
1013 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1014 | z6.Volume = .6 | |
1015 | z6.Pitch = pt[math.random(1,#pt)] | |
1016 | z6.Looped = false | |
1017 | z6:Play() | |
1018 | for i = 1, 3 do | |
1019 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1020 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1021 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1022 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1023 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1024 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1025 | if Debounces.on == false then break end | |
1026 | wait() | |
1027 | end | |
1028 | z7 = Instance.new("Sound", rarm) | |
1029 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1030 | z7.Volume = .6 | |
1031 | z7.Pitch = pt[math.random(1,#pt)] | |
1032 | z7.Looped = false | |
1033 | z7:Play() | |
1034 | for i = 1, 3 do | |
1035 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1036 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1037 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1038 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1039 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1040 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1041 | if Debounces.on == false then break end | |
1042 | wait() | |
1043 | end | |
1044 | z8 = Instance.new("Sound", larm) | |
1045 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1046 | z8.Volume = .6 | |
1047 | z8.Pitch = pt[math.random(1,#pt)] | |
1048 | z8.Looped = false | |
1049 | z8:Play() | |
1050 | for i = 1, 3 do | |
1051 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1052 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1053 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1054 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1055 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1056 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1057 | if Debounces.on == false then break end | |
1058 | wait() | |
1059 | end | |
1060 | z9 = Instance.new("Sound", rarm) | |
1061 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1062 | z9.Volume = 0.6 | |
1063 | z9.Pitch = pt[math.random(1,#pt)] | |
1064 | z9.Looped = false | |
1065 | z9:Play() | |
1066 | for i = 1, 3 do | |
1067 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1068 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1069 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1070 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1071 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1072 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1073 | if Debounces.on == false then break end | |
1074 | wait() | |
1075 | end | |
1076 | z10 = Instance.new("Sound", larm) | |
1077 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1078 | z10.Volume = .6 | |
1079 | z10.Pitch = pt[math.random(1,#pt)] | |
1080 | z10.Looped = false | |
1081 | z10:Play() | |
1082 | for i = 1, 3 do | |
1083 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1084 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1085 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1086 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1087 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1088 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1089 | if Debounces.on == false then break end | |
1090 | wait() | |
1091 | end | |
1092 | z11 = Instance.new("Sound", rarm) | |
1093 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1094 | z11.Volume = .6 | |
1095 | z11.Pitch = pt[math.random(1,#pt)] | |
1096 | z11.Looped = false | |
1097 | z11:Play() | |
1098 | for i = 1, 3 do | |
1099 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1100 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1101 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1102 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1103 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1104 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1105 | if Debounces.on == false then break end | |
1106 | wait() | |
1107 | end | |
1108 | z12 = Instance.new("Sound", larm) | |
1109 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1110 | z12.Volume = .6 | |
1111 | z12.Pitch = pt[math.random(1,#pt)] | |
1112 | z12.Looped = false | |
1113 | z12:Play() | |
1114 | for i = 1, 3 do | |
1115 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1116 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1117 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1118 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1119 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1120 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1121 | if Debounces.on == false then break end | |
1122 | wait() | |
1123 | end | |
1124 | z13 = Instance.new("Sound", rarm) | |
1125 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1126 | z13.Volume = 0.6 | |
1127 | z13.Pitch = pt[math.random(1,#pt)] | |
1128 | z13.Looped = false | |
1129 | z13:Play() | |
1130 | for i = 1, 3 do | |
1131 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1132 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1133 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1134 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1135 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1136 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1137 | if Debounces.on == false then break end | |
1138 | wait() | |
1139 | end | |
1140 | z14 = Instance.new("Sound", larm) | |
1141 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1142 | z14.Volume = .6 | |
1143 | z14.Pitch = pt[math.random(1,#pt)] | |
1144 | z14.Looped = false | |
1145 | z14:Play() | |
1146 | for i = 1, 3 do | |
1147 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1148 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1149 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1150 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1151 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1152 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1153 | if Debounces.on == false then break end | |
1154 | wait() | |
1155 | end | |
1156 | z15 = Instance.new("Sound", rarm) | |
1157 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1158 | z15.Volume = .6 | |
1159 | z15.Pitch = pt[math.random(1,#pt)] | |
1160 | z15.Looped = false | |
1161 | z15:Play() | |
1162 | for i = 1, 3 do | |
1163 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1164 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1165 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1166 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1167 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1168 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1169 | if Debounces.on == false then break end | |
1170 | wait() | |
1171 | end | |
1172 | z16 = Instance.new("Sound", larm) | |
1173 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1174 | z16.Volume = .6 | |
1175 | z16.Pitch = pt[math.random(1,#pt)] | |
1176 | z16.Looped = false | |
1177 | z16:Play() | |
1178 | for i = 1, 3 do | |
1179 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1180 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1181 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1182 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1183 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1184 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1185 | if Debounces.on == false then break end | |
1186 | wait() | |
1187 | end | |
1188 | z17 = Instance.new("Sound", rarm) | |
1189 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1190 | z17.Volume = .6 | |
1191 | z17.Pitch = pt[math.random(1,#pt)] | |
1192 | z17.Looped = false | |
1193 | z17:Play() | |
1194 | for i = 1, 3 do | |
1195 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1196 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1197 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1198 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1199 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1200 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1201 | if Debounces.on == false then break end | |
1202 | wait() | |
1203 | end | |
1204 | z18 = Instance.new("Sound", larm) | |
1205 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1206 | z18.Volume = .6 | |
1207 | z18.Pitch = pt[math.random(1,#pt)] | |
1208 | z18.Looped = false | |
1209 | z18:Play() | |
1210 | for i = 1, 3 do | |
1211 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1212 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1213 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1214 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1215 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1216 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1217 | if Debounces.on == false then break end | |
1218 | wait() | |
1219 | end | |
1220 | z19 = Instance.new("Sound", rarm) | |
1221 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1222 | z19.Volume = 0.6 | |
1223 | z19.Pitch = pt[math.random(1,#pt)] | |
1224 | z19.Looped = false | |
1225 | z19:Play() | |
1226 | for i = 1, 3 do | |
1227 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1228 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1229 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1230 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1231 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1232 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1233 | if Debounces.on == false then break end | |
1234 | wait() | |
1235 | end | |
1236 | z20 = Instance.new("Sound", larm) | |
1237 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1238 | z20.Volume = .6 | |
1239 | z20.Pitch = pt[math.random(1,#pt)] | |
1240 | z20.Looped = false | |
1241 | z20:Play() | |
1242 | for i = 1, 3 do | |
1243 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1244 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1245 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1246 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1247 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1248 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1249 | if Debounces.on == false then break end | |
1250 | wait() | |
1251 | end | |
1252 | z:Destroy() | |
1253 | z2:Destroy() | |
1254 | z3:Destroy() | |
1255 | z4:Destroy() | |
1256 | z5:Destroy() | |
1257 | z6:Destroy() | |
1258 | z7:Destroy() | |
1259 | z8:Destroy() | |
1260 | z9:Destroy() | |
1261 | z10:Destroy() | |
1262 | z11:Destroy() | |
1263 | z12:Destroy() | |
1264 | z13:Destroy() | |
1265 | z14:Destroy() | |
1266 | z15:Destroy() | |
1267 | z16:Destroy() | |
1268 | z17:Destroy() | |
1269 | z18:Destroy() | |
1270 | z19:Destroy() | |
1271 | z20:Destroy() | |
1272 | Debounces.LPunch = false | |
1273 | Debounces.RPunch = false | |
1274 | Debounces.ks = false | |
1275 | Debounces.ks2 = false | |
1276 | if Debounces.CanAttack == false then | |
1277 | Debounces.CanAttack = true | |
1278 | Debounces.on = false | |
1279 | Debounces.NoIdl = false | |
1280 | end | |
1281 | end | |
1282 | end | |
1283 | end) | |
1284 | -------------------------------------------------------------------------------------------------- | |
1285 | ---------------------------------------------------- | |
1286 | mouse.KeyDown:connect(function(key) | |
1287 | if key == "y" then | |
1288 | if Debounces.CanAttack == true then | |
1289 | Debounces.CanAttack = false | |
1290 | Debounces.on = true | |
1291 | Debounces.NoIdl = true | |
1292 | for i = 1, 15 do | |
1293 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(90+1), math.rad(0), math.rad(-60)), 0.2) | |
1294 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(93),math.rad(0),math.rad(10)), 0.2) | |
1295 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-20),math.rad(-10),0), 0.2) | |
1296 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(10), 0), 0.2) | |
1297 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
1298 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
1299 | if Debounces.on == false then break end if Debounces.on == false then break end | |
1300 | rs:wait(2.7) | |
1301 | end | |
1302 | x = Instance.new("Sound",char) | |
1303 | x.SoundId = "rbxassetid://228343271" | |
1304 | x.Pitch = 1 | |
1305 | x.Volume = .8 | |
1306 | wait(.1) | |
1307 | x:Play() | |
1308 | Debounces.on = false | |
1309 | Debounces.Here = false | |
1310 | shot = shot + 1 | |
1311 | local rng = Instance.new("Part", larm) | |
1312 | rng.Anchored = true | |
1313 | rng.BrickColor = BrickColor.new("Really red") | |
1314 | rng.CanCollide = false | |
1315 | rng.FormFactor = 3 | |
1316 | rng.Name = "Ring" | |
1317 | rng.Size = Vector3.new(1, 1, 1) | |
1318 | rng.Transparency = 0.35 | |
1319 | rng.TopSurface = 0 | |
1320 | rng.BottomSurface = 0 | |
1321 | rng2 = rng:clone() | |
1322 | rng3 = rng2:clone() | |
1323 | rng4 = rng2:clone() | |
1324 | local rngm = Instance.new("SpecialMesh", rng) | |
1325 | rngm.MeshId = "http://www.roblox.com/asset/?id=1125473" -- 1125473 | |
1326 | rngm.Scale = Vector3.new(10, 10, 1) | |
1327 | rngm2 = rngm:clone() | |
1328 | rngm2.Scale = Vector3.new(5, 5, 3) | |
1329 | rngm3=rngm2:clone() | |
1330 | rngm3.Parent = rng3 | |
1331 | rngm3.Scale = Vector3.new(8, 8, 1) | |
1332 | rngm4 = rngm2:clone() | |
1333 | rngm4.Parent = rng4 | |
1334 | rngm4.Scale = Vector3.new(6, 6, 1) | |
1335 | local bem = Instance.new("Part", larm) | |
1336 | bem.Anchored = true | |
1337 | bem.BrickColor = BrickColor.new("Really red") | |
1338 | bem.CanCollide = false | |
1339 | bem.FormFactor = 3 | |
1340 | bem.Name = "Beam" .. shot | |
1341 | bem.Size = Vector3.new(1, 1, 1) | |
1342 | bem.Transparency = 0.35 | |
1343 | bem.TopSurface = 0 | |
1344 | bem.BottomSurface = 0 | |
1345 | local bemm = Instance.new("SpecialMesh", bem) | |
1346 | bemm.MeshType = 4 | |
1347 | bemm.Scale = Vector3.new(1, 4, 4) | |
1348 | local out = Instance.new("Part", larm) | |
1349 | out.Anchored = true | |
1350 | out.BrickColor = BrickColor.new("Really red") | |
1351 | out.CanCollide = false | |
1352 | out.FormFactor = 3 | |
1353 | out.Name = "Out" | |
1354 | out.Size = Vector3.new(4, 4, 4) | |
1355 | out.Transparency = 0.35 | |
1356 | out.TopSurface = 0 | |
1357 | out.BottomSurface = 0 | |
1358 | local outm = Instance.new("SpecialMesh", out) | |
1359 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
1360 | outm.Scale = Vector3.new(6, 4, 6) | |
1361 | local bnd = Instance.new("Part", larm) | |
1362 | bnd.Anchored = true | |
1363 | bnd.BrickColor = BrickColor.new("Really red") | |
1364 | bnd.CanCollide = false | |
1365 | bnd.FormFactor = 3 | |
1366 | bnd.Name = "Bend" | |
1367 | bnd.Size = Vector3.new(1, 1, 1) | |
1368 | bnd.Transparency = 1 | |
1369 | bnd.TopSurface = 0 | |
1370 | bnd.BottomSurface = 0 | |
1371 | local bndm = Instance.new("SpecialMesh", bnd) | |
1372 | bndm.MeshType = 3 | |
1373 | bndm.Scale = Vector3.new(8, 8, 8) | |
1374 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
1375 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1376 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
1377 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1378 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
1379 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
1380 | Debounces.Shewt = true | |
1381 | coroutine.wrap(function() | |
1382 | for i = 1, 20, 0.2 do | |
1383 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
1384 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
1385 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
1386 | rng.Transparency = i/20 | |
1387 | rng3.Transparency = 1/24 | |
1388 | rng4.Transparency = i/26 | |
1389 | wait() | |
1390 | end | |
1391 | wait() | |
1392 | rng:Destroy() | |
1393 | end)() | |
1394 | if Debounces.Shewt == true then | |
1395 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
1396 | hit = ht.Parent | |
1397 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
1398 | if HasntTouched(hit.Name) == true and deb == false then | |
1399 | deb = true | |
1400 | coroutine.wrap(function() | |
1401 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1402 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1403 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
1404 | end)() | |
1405 | table.insert(Touche, hit.Name) | |
1406 | deb = false | |
1407 | end | |
1408 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
1409 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
1410 | deb = true | |
1411 | coroutine.wrap(function() | |
1412 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
1413 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1414 | wait(1) | |
1415 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
1416 | end)() | |
1417 | table.insert(Touche, hit.Parent.Name) | |
1418 | deb = false | |
1419 | for i, v in pairs(Touche) do | |
1420 | print(v) | |
1421 | end | |
1422 | end | |
1423 | end | |
1424 | end) | |
1425 | end | |
1426 | for i = 0, 260, 8 do | |
1427 | bem.Size = Vector3.new(i, 3, 3) | |
1428 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
1429 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1430 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
1431 | bnd.Size = Vector3.new(1,1,1) | |
1432 | bndm.Scale = Vector3.new(8,8,8) | |
1433 | if i % 10 == 0 then | |
1434 | local newRng = rng2:Clone() | |
1435 | newRng.Parent = larm | |
1436 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
1437 | local newRngm = rngm2:clone() | |
1438 | newRngm.Parent=newRng | |
1439 | coroutine.wrap(function() | |
1440 | for i = 1, 10, 0.2 do | |
1441 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
1442 | newRng.Transparency = i/10 | |
1443 | wait() | |
1444 | end | |
1445 | wait() | |
1446 | newRng:Destroy() | |
1447 | end)() | |
1448 | end | |
1449 | wait() | |
1450 | end | |
1451 | wait() | |
1452 | Debounces.Shewt = false | |
1453 | bem:Destroy() | |
1454 | out:Destroy() | |
1455 | bnd:Destroy() | |
1456 | Debounces.Ready = false | |
1457 | for i, v in pairs(Touche) do | |
1458 | table.remove(Touche, i) | |
1459 | end | |
1460 | wait() | |
1461 | table.insert(Touche, char.Name) | |
1462 | Debounces.NoIdl = false | |
1463 | if Debounces.CanAttack == false then | |
1464 | Debounces.CanAttack = true | |
1465 | end | |
1466 | end | |
1467 | end | |
1468 | end) | |
1469 | ---------------------------------------------------- | |
1470 | mouse.KeyDown:connect(function(key) | |
1471 | if key == "x" then | |
1472 | if Debounces.CanAttack == true then | |
1473 | Debounces.CanAttack = false | |
1474 | Debounces.NoIdl = true | |
1475 | Debounces.on = true | |
1476 | hed.Anchored=true | |
1477 | local shell = Instance.new("Part",torso) | |
1478 | shell.BrickColor = BrickColor.new("Really red") | |
1479 | shell.Anchored = false | |
1480 | shell.CanCollide = false | |
1481 | shell.Locked = true | |
1482 | shell.Material = "Neon" | |
1483 | shell.TopSurface = "SmoothNoOutlines" | |
1484 | shell.BottomSurface = "SmoothNoOutlines" | |
1485 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
1486 | shell.FormFactor = 3 | |
1487 | local shellm = Instance.new("SpecialMesh",shell) | |
1488 | shellm.MeshType = "Sphere" | |
1489 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
1490 | local Omega = function() | |
1491 | local X = Instance.new("Part",char) | |
1492 | local O = Instance.new("ObjectValue",X) | |
1493 | O.Name = "creator" | |
1494 | X.Locked = true | |
1495 | X.Name = "Shell" | |
1496 | X.Anchored = false | |
1497 | X.CanCollide = false | |
1498 | X.Transparency = 0.5 | |
1499 | X.Reflectance = 0 | |
1500 | X.BottomSurface = 0 | |
1501 | X.TopSurface = 0 | |
1502 | X.Shape = 0 | |
1503 | local V = Instance.new("ObjectValue",X) | |
1504 | V.Value = char | |
1505 | V.Name = "creator" | |
1506 | X.BrickColor = BrickColor.new("Really red") | |
1507 | X.Size = Vector3.new(100,40,100) | |
1508 | X.CFrame=torso.CFrame*CFrame.new(0,0,-40) | |
1509 | X.Material = "Neon" | |
1510 | b = Instance.new("Sound") | |
1511 | b.SoundId = "http://www.roblox.com/asset/?id=262498472" | |
1512 | b.Parent = char.Head | |
1513 | b.Looped = false | |
1514 | b.Pitch = 1 | |
1515 | b.Volume = 1 | |
1516 | wait(.1) | |
1517 | b:Play() | |
1518 | local Z = Instance.new("SpecialMesh",X) | |
1519 | Z.MeshType = "Sphere" | |
1520 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
1521 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
1522 | local bv = Instance.new("BodyVelocity",X) | |
1523 | bv.maxForce = Vector3.new(99999,99999,99999) | |
1524 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
1525 | bv.velocity = root.CFrame.lookVector*10 | |
1526 | Explode = X.Touched:connect(function(hit) | |
1527 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart") then | |
1528 | local cf = X.CFrame | |
1529 | bv:Destroy() | |
1530 | X.Anchored = true | |
1531 | Z:Remove() | |
1532 | Explode:disconnect() | |
1533 | X.Size = Vector3.new(3,3,3) | |
1534 | X.Touched:connect(function(hit) end) | |
1535 | X.CanCollide = false | |
1536 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
1537 | if v:FindFirstChild('Humanoid') then | |
1538 | v.Humanoid:TakeDamage(math.random(80,120)) | |
1539 | end | |
1540 | end | |
1541 | for i = 1, (40) do rs:wait() | |
1542 | X.Transparency = X.Transparency + (1/40) | |
1543 | X.Size = X.Size + Vector3.new(1,1,1) | |
1544 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
1545 | end | |
1546 | X:Destroy() | |
1547 | end | |
1548 | end) | |
1549 | end | |
1550 | --Omega() | |
1551 | local function wat() | |
1552 | local sweld=Instance.new('ManualWeld',shell) | |
1553 | sweld.Part0=shell | |
1554 | sweld.Part1=rarm | |
1555 | sweld.C0=CFrame.new(0,1,0) | |
1556 | return sweld | |
1557 | end | |
1558 | local watweld=wat() | |
1559 | for i = 1,200 do | |
1560 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
1561 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
1562 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1563 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1564 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1565 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1566 | if Debounces.on == false then break end | |
1567 | rs:wait() | |
1568 | end | |
1569 | b = Instance.new("Sound") | |
1570 | b.SoundId = "http://www.roblox.com/asset/?id=245537790" | |
1571 | b.Parent = char.Head | |
1572 | b.Looped = false | |
1573 | b.Pitch = 1 | |
1574 | b.Volume = 1 | |
1575 | wait(.1) | |
1576 | b:Play() | |
1577 | watweld.Part1=torso | |
1578 | watweld.C0=CFrame.new(0,-4,0) | |
1579 | for i = 1,30 do | |
1580 | watweld.C0=watweld.C0*CFrame.new(0,-1,0) | |
1581 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
1582 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
1583 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1584 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1585 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1586 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1587 | if Debounces.on == false then break end | |
1588 | rs:wait() | |
1589 | end | |
1590 | local shelbx=true | |
1591 | --Experimental Damagefunction | |
1592 | coroutine.resume(coroutine.create(function() while shelbx do wait() | |
1593 | for _,v in pairs(game.workspace:GetChildren()) do | |
1594 | if v:IsA'Model' and v:FindFirstChild'Humanoid' and v:FindFirstChild'Torso' and v~=pchar then | |
1595 | local mag=(v.Torso.CFrame.p-shell.CFrame.p).magnitude | |
1596 | if mag <= shell.Size.x then | |
1597 | v.Humanoid.Health=v.Humanoid.Health-(v.Humanoid.MaxHealth/7) | |
1598 | end | |
1599 | end | |
1600 | end | |
1601 | end end)) | |
1602 | for i = 1,40 do | |
1603 | --shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
1604 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
1605 | local watweld=wat() | |
1606 | watweld.C0=CFrame.new(0,-14-i,0) | |
1607 | watweld.Part1=torso | |
1608 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
1609 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
1610 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1611 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1612 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1613 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1614 | if Debounces.on == false then break end | |
1615 | rs:wait() | |
1616 | end | |
1617 | for i = 1,40 do | |
1618 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
1619 | local watweld=wat() | |
1620 | watweld.Part1=torso | |
1621 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,40),1) | |
1622 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
1623 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
1624 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1625 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1626 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1627 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1628 | if Debounces.on == false then break end | |
1629 | rs:wait() | |
1630 | end | |
1631 | for i = 1,60 do | |
1632 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
1633 | local watweld=wat() | |
1634 | watweld.Part1=torso | |
1635 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,60),1) | |
1636 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
1637 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
1638 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1639 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1640 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1641 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1642 | if Debounces.on == false then break end | |
1643 | rs:wait() | |
1644 | end | |
1645 | for i = 1,60 do | |
1646 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
1647 | --shell.Size = shell.Size + Vector3.new(1,1,1) | |
1648 | shell.Size=shell.Size+Vector3.new(1,1,1) | |
1649 | local watweld=wat() | |
1650 | watweld.Part1=torso | |
1651 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,62),1) | |
1652 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
1653 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
1654 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1655 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1656 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1657 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
1658 | if Debounces.on == false then break end | |
1659 | rs:wait() | |
1660 | end | |
1661 | coroutine.resume(coroutine.create(function() | |
1662 | for i=0,1,.1 do wait() shell.Transparency=i end | |
1663 | shell:Destroy() | |
1664 | shelbx=false | |
1665 | end)) | |
1666 | hed.Anchored=false | |
1667 | if Debounces.CanAttack == false then | |
1668 | Debounces.CanAttack = true | |
1669 | Debounces.NoIdl = false | |
1670 | Debounces.on = false | |
1671 | b:Destroy() | |
1672 | ||
1673 | end | |
1674 | end | |
1675 | end | |
1676 | end) | |
1677 | ---------------------------------------------------- | |
1678 | mouse.KeyDown:connect(function(key) | |
1679 | if key == "z" then | |
1680 | if Debounces.CanAttack == true then | |
1681 | Debounces.CanAttack = false | |
1682 | Debounces.NoIdl = true | |
1683 | char.Humanoid.WalkSpeed = .01 | |
1684 | Debounces.on = true | |
1685 | for i = 1, 20 do | |
1686 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.3) | |
1687 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.3) | |
1688 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.3) | |
1689 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.3) | |
1690 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.3) | |
1691 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.3) | |
1692 | if Debounces.on == false then | |
1693 | break | |
1694 | end | |
1695 | wait() | |
1696 | end | |
1697 | for i = 1, 20 do | |
1698 | wait() | |
1699 | end | |
1700 | x = Instance.new("Sound") | |
1701 | x.SoundId = "http://www.roblox.com/asset/?id=235097614" | |
1702 | x.Parent = char | |
1703 | x.Looped = false | |
1704 | x.Pitch = .7 | |
1705 | x.Volume = .6 | |
1706 | wait(.1) | |
1707 | x:Play() | |
1708 | Debounces.on = false | |
1709 | Debounces.Here = false | |
1710 | shot = shot + 1 | |
1711 | for i = 1, 6 do | |
1712 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
1713 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.4) | |
1714 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
1715 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
1716 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
1717 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 3) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
1718 | wait() | |
1719 | end | |
1720 | local rng = Instance.new("Part", char) | |
1721 | rng.Anchored = true | |
1722 | rng.BrickColor = BrickColor.new("Really red") | |
1723 | rng.CanCollide = false | |
1724 | rng.FormFactor = 3 | |
1725 | rng.Name = "Ring" | |
1726 | rng.Size = Vector3.new(1, 1, 1) | |
1727 | rng.Transparency = 0.35 | |
1728 | rng.TopSurface = 0 | |
1729 | rng.BottomSurface = 0 | |
1730 | local rngm = Instance.new("SpecialMesh", rng) | |
1731 | rngm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
1732 | rngm.Scale = Vector3.new(10, 10, 1) | |
1733 | local bem = Instance.new("Part", char) | |
1734 | bem.Anchored = true | |
1735 | bem.BrickColor = BrickColor.new("Really red") | |
1736 | bem.CanCollide = false | |
1737 | bem.FormFactor = 3 | |
1738 | bem.Name = "Beam" .. shot | |
1739 | bem.Size = Vector3.new(1, 1, 1) | |
1740 | bem.Transparency = 0.35 | |
1741 | bem.TopSurface = 0 | |
1742 | bem.BottomSurface = 0 | |
1743 | local bemm = Instance.new("SpecialMesh", bem) | |
1744 | bemm.MeshType = 4 | |
1745 | bemm.Scale = Vector3.new(1, 4, 4) | |
1746 | local out = Instance.new("Part", char) | |
1747 | out.Anchored = true | |
1748 | out.BrickColor = BrickColor.new("Really red") | |
1749 | out.CanCollide = false | |
1750 | out.FormFactor = 3 | |
1751 | out.Name = "Out" | |
1752 | out.Size = Vector3.new(4, 4, 4) | |
1753 | out.Transparency = 0.35 | |
1754 | out.TopSurface = 0 | |
1755 | out.BottomSurface = 0 | |
1756 | local outm = Instance.new("SpecialMesh", out) | |
1757 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" --24388358 | |
1758 | outm.Scale = Vector3.new(4, 4, 4) | |
1759 | local bnd = Instance.new("Part", char) | |
1760 | bnd.Anchored = true | |
1761 | bnd.BrickColor = BrickColor.new("Really red") | |
1762 | bnd.CanCollide = false | |
1763 | bnd.FormFactor = 3 | |
1764 | bnd.Name = "Bend" | |
1765 | bnd.Size = Vector3.new(1, 1, 1) | |
1766 | bnd.Transparency = 1 | |
1767 | bnd.TopSurface = 0 | |
1768 | bnd.BottomSurface = 0 | |
1769 | local bndm = Instance.new("SpecialMesh", bnd) | |
1770 | bndm.MeshType = 3 | |
1771 | bndm.Scale = Vector3.new(8, 8, 8) | |
1772 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
1773 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1774 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
1775 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1776 | Debounces.Shewt = true | |
1777 | coroutine.wrap(function() | |
1778 | for i = 1, 20, 0.2 do | |
1779 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
1780 | rng.Transparency = i/20 | |
1781 | wait() | |
1782 | end | |
1783 | wait() | |
1784 | rng:Destroy() | |
1785 | end)() | |
1786 | if Debounces.Shewt == true then | |
1787 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
1788 | hit = ht.Parent | |
1789 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
1790 | if HasntTouched(hit.Name) == true and deb == false then | |
1791 | deb = true | |
1792 | coroutine.wrap(function() | |
1793 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1794 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1795 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
1796 | end)() | |
1797 | table.insert(Touche, hit.Name) | |
1798 | deb = false | |
1799 | end | |
1800 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
1801 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
1802 | deb = true | |
1803 | coroutine.wrap(function() | |
1804 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
1805 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
1806 | wait(1) | |
1807 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
1808 | end)() | |
1809 | table.insert(Touche, hit.Parent.Name) | |
1810 | deb = false | |
1811 | for i, v in pairs(Touche) do | |
1812 | print(v) | |
1813 | end | |
1814 | end | |
1815 | end | |
1816 | end) | |
1817 | end | |
1818 | for i = 0, 260, 8 do | |
1819 | bem.Size = Vector3.new(i, 2, 2) | |
1820 | bem.CFrame = rarm.CFrame * CFrame.new(0, -3.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1821 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
1822 | bnd.Size = Vector3.new(1,1,1) | |
1823 | bndm.Scale = Vector3.new(8,8,8) | |
1824 | wait() | |
1825 | end | |
1826 | wait() | |
1827 | Debounces.Shewt = false | |
1828 | bem:Destroy() | |
1829 | out:Destroy() | |
1830 | bnd:Destroy() | |
1831 | char.Humanoid.WalkSpeed = 10 | |
1832 | Debounces.Ready = false | |
1833 | for i, v in pairs(Touche) do | |
1834 | table.remove(Touche, i) | |
1835 | end | |
1836 | wait() | |
1837 | table.insert(Touche, char.Name) | |
1838 | Debounces.NoIdl = false | |
1839 | if Debounces.CanAttack == false then | |
1840 | Debounces.CanAttack = true | |
1841 | for i = 1, 20 do | |
1842 | wait() | |
1843 | hum.WalkSpeed = 5 | |
1844 | end | |
1845 | end | |
1846 | end | |
1847 | end | |
1848 | end) | |
1849 | ||
1850 | ------------------------ | |
1851 | ||
1852 | mouse.KeyDown:connect(function(key) | |
1853 | if key == "t" then | |
1854 | if Debounces.CanAttack == true then | |
1855 | Debounces.CanAttack = false | |
1856 | Debounces.NoIdl = true | |
1857 | Debounces.on = true | |
1858 | Debounces.ks = true | |
1859 | kik = rleg.Touched:connect(function(ht) | |
1860 | hit = ht.Parent | |
1861 | if ht and hit:IsA("Model") then | |
1862 | if hit:FindFirstChild("Humanoid") then | |
1863 | if hit.Name ~= p.Name then | |
1864 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1865 | Debounces.Slashed = true]]-- | |
1866 | if Debounces.ks==true then | |
1867 | z = Instance.new("Sound",hed) | |
1868 | z.SoundId = "rbxassetid://169380525" | |
1869 | z.Volume = 1 | |
1870 | z:Play() | |
1871 | Debounces.ks=false | |
1872 | end | |
1873 | hit:FindFirstChild("Humanoid"):TakeDamage(2) | |
1874 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
1875 | --Debounces.Slashed = false | |
1876 | --end | |
1877 | end | |
1878 | end | |
1879 | elseif ht and hit:IsA("Hat") then | |
1880 | if hit.Parent.Name ~= p.Name then | |
1881 | if hit.Parent:FindFirstChild("Humanoid") then | |
1882 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1883 | Debounces.Slashed = true]]-- | |
1884 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) | |
1885 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
1886 | --Debounces.Slashed = false | |
1887 | --end | |
1888 | end | |
1889 | end | |
1890 | end | |
1891 | end) | |
1892 | for i = 1,20 do | |
1893 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1894 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
1895 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
1896 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
1897 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
1898 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
1899 | if Debounces.on == false then break end | |
1900 | rs:wait() | |
1901 | end | |
1902 | kik:disconnect() | |
1903 | if Debounces.CanAttack == false then | |
1904 | Debounces.CanAttack = true | |
1905 | Debounces.NoIdl = false | |
1906 | Debounces.on = false | |
1907 | end | |
1908 | end | |
1909 | end | |
1910 | end) | |
1911 | --------------------------------------------------------------------------------- | |
1912 | ||
1913 | pt=Instance.new('Part',torso) | |
1914 | pt.Anchored=true | |
1915 | pt.CanCollide=false | |
1916 | pt.Locked = true | |
1917 | pt.FormFactor='Custom' | |
1918 | pt.Size=Vector3.new(1,1,1) | |
1919 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1920 | pt.Transparency=.6 | |
1921 | pt.BrickColor=BrickColor.new('Really red') | |
1922 | msh=Instance.new('SpecialMesh',pt) | |
1923 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1924 | msh.Scale=Vector3.new(8,4,8) | |
1925 | pt2=pt:clone() | |
1926 | pt2.Parent = torso | |
1927 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1928 | pt2.BrickColor=BrickColor.new("Really red") | |
1929 | msh2=msh:clone() | |
1930 | msh2.Parent=pt2 | |
1931 | msh2.Scale=Vector3.new(10,5,10) | |
1932 | ||
1933 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
1934 | ||
1935 | bl = Instance.new("Part", char) | |
1936 | bl.Locked = true | |
1937 | bl.Name = "Shell" | |
1938 | bl.BrickColor = BrickColor.new("Really red") | |
1939 | bl.Anchored = true | |
1940 | bl.CanCollide = false | |
1941 | bl.Transparency = 0 | |
1942 | bl.Reflectance = 0 | |
1943 | bl.BottomSurface = 0 | |
1944 | bl.TopSurface = 0 | |
1945 | bl.Shape = 0 | |
1946 | blm = Instance.new("SpecialMesh",bl) | |
1947 | blm.MeshType = "Sphere" | |
1948 | blm.Scale = Vector3.new(1,1,1) | |
1949 | blm.MeshId = "rbxassetid://9982590" | |
1950 | ||
1951 | ||
1952 | ||
1953 | coroutine.resume(coroutine.create(function() | |
1954 | for i=1, math.huge, 4 do | |
1955 | if Charging == true then | |
1956 | rs:wait() | |
1957 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1958 | blm.Scale = blm.Scale + Vector3.new(9.5, 9.5, 9.5) | |
1959 | bl.Transparency = bl.Transparency + 0.1 | |
1960 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
1961 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
1962 | msh.Scale = msh.Scale + Vector3.new(9.5,0,9.5) | |
1963 | msh2.Scale = msh2.Scale + Vector3.new(9.5,0,9.5) | |
1964 | ||
1965 | elseif Charging == false then break | |
1966 | end | |
1967 | end | |
1968 | end)) | |
1969 | repeat | |
1970 | local p = Instance.new('Part',torso) | |
1971 | p.formFactor = 'Custom' | |
1972 | p.Size = Vector3.new(1,1,1) | |
1973 | p.BrickColor = BrickColor.new("Really red") | |
1974 | p.CanCollide = false | |
1975 | p.Transparency = 0 | |
1976 | p.Anchored = true | |
1977 | p.Locked=true | |
1978 | p.Material = workspace.Base.Material | |
1979 | s = math.random(1,40)/10 | |
1980 | local m = Instance.new("SpecialMesh",p) | |
1981 | m.MeshId = "rbxassetid://9755053" ---- Particles for when charging | |
1982 | m.Scale = Vector3.new(s,s,s) | |
1983 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
1984 | ||
1985 | ------------------------------------------------- | |
1986 | ||
1987 | --[[coroutine.wrap(function() | |
1988 | wait(2) | |
1989 | while Charging == true do | |
1990 | wait(2) | |
1991 | GroundWave1() | |
1992 | wait(2) | |
1993 | end | |
1994 | end)()]]-- | |
1995 | Spawn(function() | |
1996 | while rs:wait() do | |
1997 | if Charging == true then | |
1998 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
1999 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2000 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2001 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2002 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2003 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2004 | elseif Charging == false then break | |
2005 | end | |
2006 | end | |
2007 | end) | |
2008 | Spawn(function() | |
2009 | while rs:wait() do | |
2010 | if p.Transparency >= 1 then p:Destroy() break end | |
2011 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2012 | p.Transparency = p.Transparency+0.01 | |
2013 | end | |
2014 | end) | |
2015 | wait(.3) | |
2016 | until Charging == false | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | end) | |
2021 | ||
2022 | ||
2023 | ||
2024 | ---------------------------------------------------- | |
2025 | mouse.KeyUp:connect(function(key) | |
2026 | if key == "r" then | |
2027 | if Charging == true then | |
2028 | Charging = false | |
2029 | pt:Destroy() | |
2030 | pt2:Destroy() | |
2031 | bl:Destroy() | |
2032 | if Debounces.CanAttack == false then | |
2033 | Debounces.CanAttack = true | |
2034 | Debounces.NoIdl = false | |
2035 | Debounces.on = false | |
2036 | end | |
2037 | end | |
2038 | end | |
2039 | end) | |
2040 | ------------------------------------------------ | |
2041 | ||
2042 | function lerp(a, b, t) -- Linear interpolation | |
2043 | return a + (b - a)*t | |
2044 | end | |
2045 | ||
2046 | function slerp(a, b, t) --Spherical interpolation | |
2047 | dot = a:Dot(b) | |
2048 | if dot > 0.99999 or dot < -0.99999 then | |
2049 | return t <= 0.5 and a or b | |
2050 | else | |
2051 | r = math.acos(dot) | |
2052 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
2053 | end | |
2054 | end | |
2055 | ||
2056 | function matrixInterpolate(a, b, t) | |
2057 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
2058 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
2059 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
2060 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
2061 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
2062 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
2063 | local t = v1:Dot(v2) | |
2064 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
2065 | return CFrame.new() | |
2066 | end | |
2067 | return CFrame.new( | |
2068 | v0.x, v0.y, v0.z, | |
2069 | v1.x, v1.y, v1.z, | |
2070 | v2.x, v2.y, v2.z, | |
2071 | v3.x, v3.y, v3.z) | |
2072 | end | |
2073 | ---------------------------------------------------- | |
2074 | function genWeld(a,b) | |
2075 | local w = Instance.new("Weld",a) | |
2076 | w.Part0 = a | |
2077 | w.Part1 = b | |
2078 | return w | |
2079 | end | |
2080 | function weld(a, b) | |
2081 | local weld = Instance.new("Weld") | |
2082 | weld.Name = "W" | |
2083 | weld.Part0 = a | |
2084 | weld.Part1 = b | |
2085 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
2086 | weld.Parent = a | |
2087 | return weld; | |
2088 | end | |
2089 | ---------------------------------------------------- | |
2090 | function Lerp(c1,c2,al) | |
2091 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
2092 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
2093 | for i,v in pairs(com1) do | |
2094 | com1[i] = v+(com2[i]-v)*al | |
2095 | end | |
2096 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
2097 | end | |
2098 | ------------------------------------------------------------------- | |
2099 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
2100 | local wld = Instance.new("Weld", wp1) | |
2101 | wld.Part0 = wp0 | |
2102 | wld.Part1 = wp1 | |
2103 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
2104 | end | |
2105 | ---------------------------------------------------- | |
2106 | function weld5(part0, part1, c0, c1) | |
2107 | weeld=Instance.new("Weld", part0) | |
2108 | weeld.Part0=part0 | |
2109 | weeld.Part1=part1 | |
2110 | weeld.C0=c0 | |
2111 | weeld.C1=c1 | |
2112 | return weeld | |
2113 | end | |
2114 | ---------------------------------------------------- | |
2115 | function HasntTouched(plrname) | |
2116 | local ret = true | |
2117 | for _, v in pairs(Touche) do | |
2118 | if v == plrname then | |
2119 | ret = false | |
2120 | end | |
2121 | end | |
2122 | return ret | |
2123 | end | |
2124 | ---------------------------------------------------- | |
2125 | newWeld(torso, larm, -1.5, 0.5, 0) | |
2126 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
2127 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
2128 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
2129 | newWeld(torso, hed, 0, 1.5, 0) | |
2130 | newWeld(torso, lleg, -0.5, -1, 0) | |
2131 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
2132 | newWeld(torso, rleg, 0.5, -1, 0) | |
2133 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
2134 | newWeld(root, torso, 0, -1, 0) | |
2135 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
2136 | ---------------------------------------------------- | |
2137 | ||
2138 | ------------------------------- | |
2139 | local animpose = "Idle" | |
2140 | local lastanimpose = "Idle" | |
2141 | local sine = 0 | |
2142 | local change = 1 | |
2143 | local val = 0 | |
2144 | local ffing = false | |
2145 | ------------------------------- | |
2146 | game:GetService("RunService").RenderStepped:connect(function() | |
2147 | --[[if char.Humanoid.Jump == true then | |
2148 | jump = true | |
2149 | else | |
2150 | jump = false | |
2151 | end]] | |
2152 | char.Humanoid.FreeFalling:connect(function(f) | |
2153 | if f then | |
2154 | ffing = true | |
2155 | else | |
2156 | ffing = false | |
2157 | end | |
2158 | end) | |
2159 | sine = sine + change | |
2160 | if jumpn == true then | |
2161 | animpose = "Jumping" | |
2162 | elseif ffing == true then | |
2163 | animpose = "Freefalling" | |
2164 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
2165 | animpose = "Idle" | |
2166 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
2167 | animpose = "Walking" | |
2168 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
2169 | animpose = "Running" | |
2170 | end | |
2171 | ||
2172 | lastanimpose = animpose | |
2173 | if Debounces.NoIdl == false then | |
2174 | if animpose == "Idle" then | |
2175 | change = 0.5 | |
2176 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4) | |
2177 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4) | |
2178 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
2179 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
2180 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
2181 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4) | |
2182 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
2183 | --[[rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(-10+4*math.cos(sine/8)),math.rad(-20-2*math.cos(sine/8)),math.rad(10+2*math.cos(sine/8))), 0.2) | |
2184 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0),math.rad(10+2*math.cos(sine/8)),math.rad(-18-2*math.cos(sine/8))), 0.2) | |
2185 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(20+4*math.cos(sine/8)),0), 0.2) | |
2186 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(-12-3*math.cos(sine/8)),math.rad(0),0), 0.2) | |
2187 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+2*math.cos(sine/8)), math.rad(-20-4*math.cos(sine/8)), 0), 0.2) | |
2188 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/8)), math.rad(20+4*math.cos(sine/8)), math.rad(-5+1*math.cos(sine/8))), 0.2) | |
2189 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0-4*math.cos(sine/8)), math.rad(-10-4*math.cos(sine/8)), math.rad(5+1*math.cos(sine/8))), 0.2)]]-- | |
2190 | elseif animpose == "Walking" then | |
2191 | change = 1 | |
2192 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
2193 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
2194 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
2195 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
2196 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
2197 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
2198 | elseif animpose == "Running" then | |
2199 | change = 1 | |
2200 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-22),math.rad(20+2*math.cos(sine/14))), 0.2) | |
2201 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-10),math.rad(10),math.rad(-14-2*math.cos(sine/14))), 0.2) | |
2202 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(20),0,0), 0.4) | |
2203 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
2204 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-40),0, math.rad(0)), 0.05) | |
2205 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(-8)), 0.4) | |
2206 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(8)), 0.4) | |
2207 | end | |
2208 | end | |
2209 | end) | |
2210 | ||
2211 | for _,c in pairs (jun.Character:GetChildren()) do | |
2212 | if c.className == "Hat" then | |
2213 | c.Handle.Transparency = 1 | |
2214 | end | |
2215 | end | |
2216 | ||
2217 | ||
2218 | Hair99 = Instance.new("Part") | |
2219 | ||
2220 | Hair99.Parent = jun.Character | |
2221 | Hair99.Name = "Hair" | |
2222 | Hair99.formFactor = "Symmetric" | |
2223 | Hair99.Size = Vector3.new(1, 1, 1) | |
2224 | Hair99.CFrame = jun.Character.Head.CFrame | |
2225 | Hair99:BreakJoints() | |
2226 | Hair99.CanCollide = false | |
2227 | Hair99.TopSurface = "Smooth" | |
2228 | Hair99.BottomSurface = "Smooth" | |
2229 | Hair99.BrickColor = BrickColor.new("Really black") | |
2230 | Hair99.Transparency = 1 | |
2231 | ||
2232 | Weld = Instance.new("Weld") | |
2233 | Weld.Part0 = jun.Character.Head | |
2234 | Weld.Part1 = Hair99 | |
2235 | Weld.Parent = jun.Character.Head | |
2236 | Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2237 | ||
2238 | Hair7 = Instance.new("Part") | |
2239 | Hair7.Parent = jun.Character | |
2240 | Hair7.Name = "Hair" | |
2241 | Hair7.CanCollide = false | |
2242 | Hair7.Locked = true | |
2243 | Hair7.TopSurface = "Smooth" | |
2244 | Hair7.BottomSurface = "Smooth" | |
2245 | Hair7.formFactor = "Symmetric" | |
2246 | Hair7.Material = "Neon" | |
2247 | Hair7.BrickColor = BrickColor.new("Really black") | |
2248 | Hair7.CFrame = jun.Character.Torso.CFrame | |
2249 | Hair7.Size = Vector3.new(1, 1, 1) | |
2250 | Hair7.Transparency = 1 | |
2251 | ||
2252 | Mesh = Instance.new("SpecialMesh") | |
2253 | Mesh.Parent = Hair99 | |
2254 | Mesh.MeshType = "Sphere" | |
2255 | Mesh.Offset = Vector3.new(0, 0.1, 0.1) | |
2256 | Mesh.Scale = Vector3.new(1.2, 1.2, 1.2) | |
2257 | ||
2258 | ||
2259 | Weld = Instance.new("Weld") | |
2260 | Weld.Parent = jun.Character.Head | |
2261 | Weld.Part0 = jun.Character.Head | |
2262 | Weld.Part1 = Hair7 | |
2263 | Weld.C0 = CFrame.new(0, 1, 0) | |
2264 | ||
2265 | Mesh = Instance.new("SpecialMesh") | |
2266 | Mesh.Offset = Vector3.new(0.2, -0.2, 0.2) | |
2267 | Mesh.Parent = Hair7 | |
2268 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2269 | Mesh.MeshType = "FileMesh" | |
2270 | Mesh.MeshId = "http://www.roblox.com/asset/?id=476757756" | |
2271 | Mesh.TextureId = "" | |
2272 | ||
2273 | jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0) | |
2274 | ||
2275 | for i = 1, 6 do | |
2276 | Hair99.Transparency = Hair99.Transparency - .2 | |
2277 | Hair7.Transparency = Hair7.Transparency - .2 | |
2278 | wait(0) | |
2279 | end | |
2280 | ||
2281 | ------------------------------- TRANSFORM FUNC ----------------------------------------------------- | |
2282 | Charging = false | |
2283 | chargewait = false | |
2284 | mouse.KeyDown:connect(function(key) | |
2285 | if key == "h" then | |
2286 | if Charging == false and chargewait == false then | |
2287 | Charging = true | |
2288 | chargewait = true | |
2289 | if Debounces.CanAttack == true then | |
2290 | Debounces.CanAttack = false | |
2291 | Debounces.NoIdl = true | |
2292 | Debounces.on = true | |
2293 | ||
2294 | ||
2295 | ||
2296 | ||
2297 | for i = 1,20 do | |
2298 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
2299 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
2300 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
2301 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
2302 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
2303 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
2304 | ||
2305 | if Debounces.on == false then break end | |
2306 | rs:wait() | |
2307 | end | |
2308 | pt=Instance.new('Part',torso) | |
2309 | pt.Anchored=true | |
2310 | pt.CanCollide=false | |
2311 | pt.Locked = true | |
2312 | pt.Material = "Neon" | |
2313 | pt.FormFactor='Custom' | |
2314 | pt.Size=Vector3.new(1,1,1) | |
2315 | pt.BrickColor = BrickColor.new("Really red") | |
2316 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2317 | pt.Transparency=.6 | |
2318 | ||
2319 | ||
2320 | msh=Instance.new('SpecialMesh',pt) | |
2321 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2322 | msh.Scale=Vector3.new(8,4,8) | |
2323 | pt2=pt:clone() | |
2324 | pt2.Parent = torso | |
2325 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2326 | ||
2327 | ||
2328 | msh2=msh:clone() | |
2329 | msh2.Parent=pt2 | |
2330 | msh2.Scale=Vector3.new(10,5,10) | |
2331 | ||
2332 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
2333 | ||
2334 | bl = Instance.new("Part", char) | |
2335 | bl.Locked = true | |
2336 | bl.Name = "Shell" | |
2337 | ||
2338 | ||
2339 | bl.Anchored = true | |
2340 | bl.Material = "Neon" | |
2341 | bl.CanCollide = false | |
2342 | bl.BrickColor = BrickColor.new("Really red") | |
2343 | bl.Transparency = 0 | |
2344 | bl.Reflectance = 0 | |
2345 | bl.BottomSurface = 0 | |
2346 | bl.TopSurface = 0 | |
2347 | bl.Shape = 0 | |
2348 | blm = Instance.new("SpecialMesh",bl) | |
2349 | blm.MeshType = "Sphere" | |
2350 | blm.Scale = Vector3.new(1,1,1) | |
2351 | ||
2352 | ||
2353 | ||
2354 | ||
2355 | coroutine.resume(coroutine.create(function() | |
2356 | for i=1, math.huge, 4 do | |
2357 | if Charging == true then | |
2358 | rs:wait() | |
2359 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2360 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2361 | bl.Transparency = bl.Transparency + 0.05 | |
2362 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
2363 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
2364 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
2365 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
2366 | elseif Charging == false then break | |
2367 | end | |
2368 | end | |
2369 | end)) | |
2370 | ||
2371 | ||
2372 | repeat | |
2373 | local p = Instance.new('Part',torso) | |
2374 | p.formFactor = 'Custom' | |
2375 | p.Size = Vector3.new(1,1,1) | |
2376 | ||
2377 | p.CanCollide = false | |
2378 | p.Transparency = 0 | |
2379 | p.Anchored = true | |
2380 | p.Locked=true | |
2381 | p.Material = "Neon" | |
2382 | p.Transparency = 1 | |
2383 | p.BrickColor = BrickColor.new("Really red") | |
2384 | s = math.random(1,40)/10 | |
2385 | local m = Instance.new("BlockMesh",p) | |
2386 | m.Scale = Vector3.new(s,s,s) | |
2387 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2388 | --[[coroutine.wrap(function() | |
2389 | wait(2) | |
2390 | while Charging == true do | |
2391 | wait(2) | |
2392 | GroundWave1() | |
2393 | wait(2) | |
2394 | end | |
2395 | end)()]]-- | |
2396 | Spawn(function() | |
2397 | while rs:wait() do | |
2398 | if Charging == true then | |
2399 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
2400 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2401 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2402 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2403 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2404 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2405 | elseif Charging == false then break | |
2406 | end | |
2407 | end | |
2408 | end) | |
2409 | Spawn(function() | |
2410 | while rs:wait() do | |
2411 | if p.Transparency >= 1 then p:Destroy() break end | |
2412 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2413 | p.Transparency = p.Transparency+0.01 | |
2414 | end | |
2415 | end) | |
2416 | ||
2417 | ||
2418 | ||
2419 | ||
2420 | local Transforming = true | |
2421 | hum.WalkSpeed = 0 | |
2422 | local fx = Instance.new("Part",torso) | |
2423 | larm.Anchored = true | |
2424 | rarm.Anchored = true | |
2425 | rleg.Anchored = true | |
2426 | lleg.Anchored = true | |
2427 | torso.Anchored = true | |
2428 | hed.Anchored = true | |
2429 | fx.Anchored = true | |
2430 | fx.Material = "Neon" | |
2431 | fx.CanCollide = false | |
2432 | fx.Locked = true | |
2433 | fx.Transparency = 1 | |
2434 | fx.Material = "Neon" | |
2435 | fx.Size = Vector3.new(5,5,5) | |
2436 | fx.TopSurface = "SmoothNoOutlines" | |
2437 | fx.BottomSurface = "SmoothNoOutlines" | |
2438 | fx.BrickColor = BrickColor.new("Really red") | |
2439 | fxm = Instance.new("SpecialMesh",fx) | |
2440 | fxm.MeshType = "Sphere" | |
2441 | fxm.Scale = Vector3.new(1,1,1) | |
2442 | for i = 1, 20 do rs:wait() | |
2443 | fx.Transparency = fx.Transparency - (1/20) | |
2444 | fx.CFrame = torso.CFrame | |
2445 | fxm.Scale = fxm.Scale + Vector3.new(0.1,0.1,0.1) | |
2446 | rs:wait() | |
2447 | end | |
2448 | ---------------------------------------------------- | |
2449 | GroundWave = function() | |
2450 | if Transforming == true then | |
2451 | local wave = Instance.new("Part", torso) | |
2452 | wave.BrickColor = BrickColor.new("Really red") | |
2453 | wave.Anchored = true | |
2454 | wave.CanCollide = false | |
2455 | wave.Locked = true | |
2456 | wave.Size = Vector3.new(1, 1, 1) | |
2457 | wave.TopSurface = "Smooth" | |
2458 | wave.BottomSurface = "Smooth" | |
2459 | wave.Transparency = 0.35 | |
2460 | wave.CFrame = fx.CFrame | |
2461 | wm = Instance.new("SpecialMesh", wave) | |
2462 | wm.MeshType = "Sphere" | |
2463 | wm.Scale = Vector3.new(1,1,1) | |
2464 | coroutine.wrap(function() | |
2465 | for i = 1, 18, 1 do | |
2466 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
2467 | --wave.Size = wm.Scale | |
2468 | wave.CFrame = fx.CFrame | |
2469 | wave.Transparency = i/14 | |
2470 | wait() | |
2471 | end | |
2472 | wait() | |
2473 | wave:Destroy() | |
2474 | end)() | |
2475 | elseif Transforming == false then | |
2476 | wait() | |
2477 | end | |
2478 | end | |
2479 | ||
2480 | for i = 1, 100 do rs:wait() | |
2481 | fx.CFrame = torso.CFrame | |
2482 | end | |
2483 | ||
2484 | Spawn(function() | |
2485 | while wait(1) do | |
2486 | GroundWave() | |
2487 | end | |
2488 | end) | |
2489 | ||
2490 | wait(4) | |
2491 | ||
2492 | Transforming = false | |
2493 | ||
2494 | for i = 1, 20 do rs:wait() | |
2495 | fx.Transparency = fx.Transparency + (1/20) | |
2496 | fx.CFrame = torso.CFrame | |
2497 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
2498 | rs:wait() | |
2499 | end | |
2500 | ||
2501 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2502 | local wave = Instance.new("Part", torso) | |
2503 | wave.BrickColor = workspace.Base.BrickColor | |
2504 | wave.Material = workspace.Base.Material | |
2505 | wave.Anchored = true | |
2506 | wave.CanCollide = false | |
2507 | wave.Locked = true | |
2508 | wave.Size = Vector3.new(1, 1, 1) | |
2509 | wave.TopSurface = "Smooth" | |
2510 | wave.BottomSurface = "Smooth" | |
2511 | wave.Transparency = 0.35 | |
2512 | wave.CFrame = HandCF | |
2513 | wm = Instance.new("SpecialMesh", wave) | |
2514 | wm.MeshId = "rbxassetid://3270017" | |
2515 | coroutine.wrap(function() | |
2516 | for i = 1, 14, 1 do | |
2517 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
2518 | wave.Size = wm.Scale | |
2519 | wave.CFrame = HandCF | |
2520 | wave.Transparency = i/14 | |
2521 | wait() | |
2522 | end | |
2523 | wait() | |
2524 | wave:Destroy() | |
2525 | end)() | |
2526 | hum.WalkSpeed = 17 | |
2527 | ---------------------------------------------------- | |
2528 | Blast = function() | |
2529 | local Colors = {"Really red", "Really red"} | |
2530 | local wave = Instance.new("Part", torso) | |
2531 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
2532 | wave.Anchored = true | |
2533 | wave.CanCollide = false | |
2534 | wave.Locked = true | |
2535 | wave.Size = Vector3.new(1, 1, 1) | |
2536 | wave.TopSurface = "Smooth" | |
2537 | wave.BottomSurface = "Smooth" | |
2538 | wave.Transparency = 0.35 | |
2539 | wave.CFrame = rarm.CFrame | |
2540 | wm = Instance.new("SpecialMesh", wave) | |
2541 | wm.MeshType = "Sphere" | |
2542 | wm.Scale = Vector3.new(1,1,1) | |
2543 | z = Instance.new("Sound",wave) | |
2544 | z.SoundId = "rbxassetid://237035051" | |
2545 | z.Volume = 1 | |
2546 | z.Pitch = .9 | |
2547 | z:Play() | |
2548 | coroutine.wrap(function() | |
2549 | for i = 1, 30, 1 do | |
2550 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
2551 | --wave.Size = wm.Scale | |
2552 | wave.CFrame = rarm.CFrame | |
2553 | wave.Transparency = (1/14) | |
2554 | rs:wait() | |
2555 | end | |
2556 | rs:wait() | |
2557 | wave:Destroy() | |
2558 | z:Destroy() | |
2559 | end)() | |
2560 | end | |
2561 | ||
2562 | larm.Anchored = false | |
2563 | rarm.Anchored = false | |
2564 | rleg.Anchored = false | |
2565 | lleg.Anchored = false | |
2566 | torso.Anchored = false | |
2567 | hed.Anchored = false | |
2568 | --------------------------------------------- | |
2569 | ||
2570 | ||
2571 | p = Instance.new("Part") | |
2572 | p.Parent = jun.Character | |
2573 | p.Anchored = true | |
2574 | p.CanCollide = false | |
2575 | p.Transparency = 0.15 | |
2576 | p.formFactor = "Symmetric" | |
2577 | p.Size = Vector3.new(0, 0, 0) | |
2578 | p.TopSurface = "Smooth" | |
2579 | p.BottomSurface = "Smooth" | |
2580 | p.Name = "Sharingan" | |
2581 | p.Shape = "Ball" | |
2582 | p.CFrame = jun.Character.Torso.CFrame | |
2583 | p.BrickColor = BrickColor.new("Really red") | |
2584 | for i = 1 , 10 do | |
2585 | wait(0.07) | |
2586 | p.Size = p.Size + Vector3.new(4, 4, 4) | |
2587 | p.Transparency = p.Transparency + 0.1 | |
2588 | p.CFrame = jun.Character.Torso.CFrame | |
2589 | end | |
2590 | p:Destroy() | |
2591 | ||
2592 | local runServ = game:GetService("RunService").RenderStepped | |
2593 | ||
2594 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head) | |
2595 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame") | |
2596 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel") | |
2597 | HBill.Size = UDim2.new(15,0,2.2,0) | |
2598 | HBill.Name = "Health Display" | |
2599 | HBill.StudsOffset = Vector3.new(0,4,0) | |
2600 | HBill.AlwaysOnTop = true | |
2601 | HBill.Enabled = true | |
2602 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
2603 | HMain.BackgroundTransparency = 1 | |
2604 | HMain.Size = UDim2.new(1,0,1,0) | |
2605 | HBarBack.Parent = HMain | |
2606 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
2607 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
2608 | HBarBack.BorderSizePixel = 2 | |
2609 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
2610 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
2611 | HBar.Parent = HBarBack | |
2612 | HBar.BackgroundColor3 = Color3.new(0, 1, 0) | |
2613 | HBar.BorderColor3 = Color3.new(0,0,0) | |
2614 | HBar.Size = UDim2.new(.5,0,1,0) | |
2615 | HHealth.BackgroundTransparency = 1 | |
2616 | HHealth.Size = UDim2.new(1,0,1,0) | |
2617 | HHealth.Font = "Bodoni" | |
2618 | HHealth.Text = " " | |
2619 | HHealth.TextScaled = true | |
2620 | HHealth.TextColor3 = Color3.new(220, 144, 149) | |
2621 | HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color | |
2622 | HHealth.TextStrokeTransparency = 0 | |
2623 | HName.Parent = HMain | |
2624 | HName.BackgroundTransparency = 1 | |
2625 | HName.Size = UDim2.new(1,0,.5,0) | |
2626 | HName.Font = "Bodoni" | |
2627 | HName.Text = "Kaio Ken" | |
2628 | HName.TextScaled = true | |
2629 | HName.TextColor3 = BrickColor.new("Really red").Color | |
2630 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
2631 | HName.TextStrokeTransparency = 0 | |
2632 | HName.TextYAlignment = "Top" | |
2633 | ---------------------------------------------------------- | |
2634 | -------------------------------------------------------------------------------------------- | |
2635 | z = Instance.new("Sound", char) | |
2636 | z.SoundId = "rbxassetid://428902535" | |
2637 | z.Looped = true | |
2638 | z.Pitch = 1 | |
2639 | z.Volume = 2 | |
2640 | wait(.1) | |
2641 | z:Play() | |
2642 | ----------------------------------------------------- | |
2643 | ||
2644 | --------------------------------------------------- | |
2645 | ||
2646 | for u, c in pairs (jun.Character:GetChildren()) do -- This func removes the | |
2647 | if c.className == "Hat" then -- base form hair. | |
2648 | c.Handle.Transparency = 0 -- Put after transformation | |
2649 | end | |
2650 | if c.Name == "Hair" then | |
2651 | c:Remove() | |
2652 | end | |
2653 | end | |
2654 | ||
2655 | ---------------------------------------------------- | |
2656 | Magik = function() | |
2657 | Spawn(function() | |
2658 | local function lerp(a,b,c) | |
2659 | return a+(b-a)*c | |
2660 | end | |
2661 | local function rndRange(rng) | |
2662 | return math.random(-rng*1000,rng*1000)/1000 | |
2663 | end | |
2664 | local magik = Instance.new("Part", larm) | |
2665 | local Colors = {"Really red", "Really red"} | |
2666 | magik.Anchored = true | |
2667 | magik.Locked = true | |
2668 | magik.Material = "Neon" | |
2669 | magik.FormFactor = "Custom" | |
2670 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
2671 | magik.TopSurface = "Smooth" | |
2672 | magik.BottomSurface = "Smooth" | |
2673 | magik.Transparency = 0 | |
2674 | magik.CanCollide = false | |
2675 | ||
2676 | if holy == false then | |
2677 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
2678 | else | |
2679 | magik.BrickColor = BrickColor.new("Really red") | |
2680 | end | |
2681 | ||
2682 | local mr = math.rad | |
2683 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
2684 | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
2685 | magik.CFrame = cf | |
2686 | for i = 0, 1, .05 do | |
2687 | local newTrans = lerp(0.5, 1, i) | |
2688 | local ns = lerp(1,1.2,i) | |
2689 | magik.Transparency = newTrans | |
2690 | magik.Size = Vector3.new(ns,ns,ns) | |
2691 | magik.CFrame = cf | |
2692 | rs:wait() | |
2693 | end | |
2694 | magik:Destroy() | |
2695 | wait() | |
2696 | end) | |
2697 | end | |
2698 | ---------------------------------------------------- | |
2699 | Magik2 = function() | |
2700 | Spawn(function() | |
2701 | local function lerp(a,b,c) | |
2702 | return a+(b-a)*c | |
2703 | end | |
2704 | local function rndRange(rng) | |
2705 | return math.random(-rng*1000,rng*1000)/1000 | |
2706 | end | |
2707 | local magik2 = Instance.new("Part", rarm) | |
2708 | local Colors = {"Really red", "Really red"} | |
2709 | magik2.Anchored = true | |
2710 | magik2.Locked = true | |
2711 | magik2.Material = "Neon" | |
2712 | magik2.FormFactor = "Custom" | |
2713 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
2714 | magik2.TopSurface = "Smooth" | |
2715 | magik2.BottomSurface = "Smooth" | |
2716 | magik2.Transparency = 0 | |
2717 | magik2.CanCollide = false | |
2718 | ||
2719 | if holy == false then | |
2720 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
2721 | else | |
2722 | magik2.BrickColor = BrickColor.new("Really red") | |
2723 | end | |
2724 | ||
2725 | local mr = math.rad | |
2726 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
2727 | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
2728 | magik2.CFrame = cf | |
2729 | for i = 0, 1, .05 do | |
2730 | local newTrans = lerp(0.5, 1, i) | |
2731 | local ns = lerp(1,1.2,i) | |
2732 | magik2.Transparency = newTrans | |
2733 | magik2.Size = Vector3.new(ns,ns,ns) | |
2734 | magik2.CFrame = cf | |
2735 | rs:wait() | |
2736 | end | |
2737 | magik2:Destroy() | |
2738 | wait() | |
2739 | end) | |
2740 | end | |
2741 | ---------------------------------------------------- | |
2742 | ||
2743 | Magik3 = function() | |
2744 | Spawn(function() | |
2745 | local function lerp(a,b,c) | |
2746 | return a+(b-a)*c | |
2747 | end | |
2748 | local function rndRange(rng) | |
2749 | return math.random(-rng*1000,rng*1000)/1000 | |
2750 | end | |
2751 | local magik3 = Instance.new("Part", larm) | |
2752 | local Colors = {"Really red", "Really red"} | |
2753 | magik3.Anchored = true | |
2754 | magik3.Locked = true | |
2755 | magik3.Material = "Neon" | |
2756 | magik3.FormFactor = "Custom" | |
2757 | magik3.Size = Vector3.new(1.2, 1.2, 1.2) | |
2758 | magik3.TopSurface = "Smooth" | |
2759 | magik3.BottomSurface = "Smooth" | |
2760 | magik3.Transparency = 0 | |
2761 | magik3.CanCollide = false | |
2762 | ||
2763 | if holy == false then | |
2764 | magik3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
2765 | else | |
2766 | magik3.BrickColor = BrickColor.new("Really red") | |
2767 | end | |
2768 | ||
2769 | local mr = math.rad | |
2770 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
2771 | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
2772 | magik3.CFrame = cf | |
2773 | for i = 0, 1, .05 do | |
2774 | local newTrans = lerp(0.5, 1, i) | |
2775 | local ns = lerp(1,1.2,i) | |
2776 | magik3.Transparency = newTrans | |
2777 | magik3.Size = Vector3.new(ns,ns,ns) | |
2778 | magik3.CFrame = cf | |
2779 | rs:wait() | |
2780 | end | |
2781 | magik3:Destroy() | |
2782 | wait() | |
2783 | end) | |
2784 | end | |
2785 | -------------------------------------- | |
2786 | ||
2787 | Magik4 = function() | |
2788 | Spawn(function() | |
2789 | local function lerp(a,b,c) | |
2790 | return a+(b-a)*c | |
2791 | end | |
2792 | local function rndRange(rng) | |
2793 | return math.random(-rng*1000,rng*1000)/1000 | |
2794 | end | |
2795 | local magik4 = Instance.new("Part", rarm) | |
2796 | local Colors = {"Really red", "Really red"} | |
2797 | magik4.Anchored = true | |
2798 | magik4.Locked = true | |
2799 | magik4.Material = "Neon" | |
2800 | magik4.FormFactor = "Custom" | |
2801 | magik4.Size = Vector3.new(1.2, 1.2, 1.2) | |
2802 | magik4.TopSurface = "Smooth" | |
2803 | magik4.BottomSurface = "Smooth" | |
2804 | magik4.Transparency = 0 | |
2805 | magik4.CanCollide = false | |
2806 | ||
2807 | if holy == false then | |
2808 | magik4.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
2809 | else | |
2810 | magik4.BrickColor = BrickColor.new("Really red") | |
2811 | end | |
2812 | ||
2813 | local mr = math.rad | |
2814 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
2815 | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
2816 | magik4.CFrame = cf | |
2817 | for i = 0, 1, .05 do | |
2818 | local newTrans = lerp(0.5, 1, i) | |
2819 | local ns = lerp(1,1.2,i) | |
2820 | magik4.Transparency = newTrans | |
2821 | magik4.Size = Vector3.new(ns,ns,ns) | |
2822 | magik4.CFrame = cf | |
2823 | rs:wait() | |
2824 | end | |
2825 | magik4:Destroy() | |
2826 | wait() | |
2827 | end) | |
2828 | end | |
2829 | ------------------------------------------------------------- | |
2830 | ||
2831 | ||
2832 | Spawn(function() | |
2833 | while wait(.1) do | |
2834 | Magik() | |
2835 | end | |
2836 | end) | |
2837 | ||
2838 | Spawn(function() | |
2839 | while wait(.1) do | |
2840 | Magik2() | |
2841 | end | |
2842 | end) | |
2843 | ||
2844 | Spawn(function() | |
2845 | while wait(.1) do | |
2846 | Magik3() | |
2847 | end | |
2848 | end) | |
2849 | ||
2850 | ||
2851 | Spawn(function() | |
2852 | while wait(.1) do | |
2853 | Magik4() | |
2854 | end | |
2855 | end) | |
2856 | ||
2857 | ||
2858 | ------------ | |
2859 | z = Instance.new("Sound", char) | |
2860 | z.SoundId = "rbxassetid://" | |
2861 | z.Looped = true | |
2862 | z.Pitch = 1 | |
2863 | z.Volume = 4 | |
2864 | wait(.1) | |
2865 | z:Play() | |
2866 | ||
2867 | ||
2868 | ------------------------------------------------------------------ | |
2869 | ||
2870 | jun.Character.Humanoid.MaxHealth = 1000000000 | |
2871 | jun.Character.Humanoid.Health = 1000000000 | |
2872 | ||
2873 | ------------------------------------------------------------------------------------- | |
2874 | hed.face.Texture = "rbxassetid://753637664" | |
2875 | ----------------------- SHIFT TO RUN FUNC -------------------------- | |
2876 | ||
2877 | local player = game.Players.LocalPlayer | |
2878 | local pchar = player.Character | |
2879 | local mouse = player:GetMouse() | |
2880 | local cam = workspace.CurrentCamera | |
2881 | ||
2882 | local rad = math.rad | |
2883 | ||
2884 | local keysDown = {} | |
2885 | local flySpeed = 0 | |
2886 | local MAX_FLY_SPEED = 150 | |
2887 | ||
2888 | local canFly = false | |
2889 | local flyToggled = false | |
2890 | ||
2891 | local forward, side = 0, 0 | |
2892 | local lastForward, lastSide = 0, 0 | |
2893 | ||
2894 | local floatBP = Instance.new("BodyPosition") | |
2895 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
2896 | local flyBV = Instance.new("BodyVelocity") | |
2897 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
2898 | local turnBG = Instance.new("BodyGyro") | |
2899 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
2900 | ||
2901 | mouse.KeyDown:connect(function(key) | |
2902 | keysDown[key] = true | |
2903 | ||
2904 | if key == "f" then | |
2905 | flyToggled = not flyToggled | |
2906 | ||
2907 | if not flyToggled then | |
2908 | stanceToggle = "Normal" | |
2909 | floatBP.Parent = nil | |
2910 | flyBV.Parent = nil | |
2911 | turnBG.Parent = nil | |
2912 | root.Velocity = Vector3.new() | |
2913 | pchar.Humanoid.PlatformStand = false | |
2914 | end | |
2915 | end | |
2916 | ||
2917 | end) | |
2918 | mouse.KeyUp:connect(function(key) | |
2919 | keysDown[key] = nil | |
2920 | end) | |
2921 | ||
2922 | local function updateFly() | |
2923 | ||
2924 | if not flyToggled then return end | |
2925 | ||
2926 | lastForward = forward | |
2927 | lastSide = side | |
2928 | ||
2929 | forward = 0 | |
2930 | side = 0 | |
2931 | ||
2932 | if keysDown.w then | |
2933 | forward = forward + 1 | |
2934 | end | |
2935 | if keysDown.s then | |
2936 | forward = forward - 1 | |
2937 | end | |
2938 | if keysDown.a then | |
2939 | side = side - 1 | |
2940 | end | |
2941 | if keysDown.d then | |
2942 | side = side + 1 | |
2943 | end | |
2944 | ||
2945 | canFly = (forward ~= 0 or side ~= 0) | |
2946 | ||
2947 | if canFly then | |
2948 | stanceToggle = "Floating" | |
2949 | turnBG.Parent = root | |
2950 | floatBP.Parent = nil | |
2951 | flyBV.Parent = root | |
2952 | ||
2953 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
2954 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
2955 | else | |
2956 | floatBP.position = root.Position | |
2957 | floatBP.Parent = root | |
2958 | ||
2959 | flySpeed = flySpeed - 1 | |
2960 | if flySpeed < 0 then flySpeed = 0 end | |
2961 | end | |
2962 | ||
2963 | local camCF = cam.CoordinateFrame | |
2964 | local in_forward = canFly and forward or lastForward | |
2965 | local in_side = canFly and side or lastSide | |
2966 | ||
2967 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
2968 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
2969 | ||
2970 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
2971 | 0) | |
2972 | end | |
2973 | ||
2974 | game:service'RunService'.RenderStepped:connect(function() | |
2975 | if flyToggled then | |
2976 | pchar.Humanoid.PlatformStand = true | |
2977 | end | |
2978 | updateFly() | |
2979 | end) | |
2980 | ||
2981 | ||
2982 | ------------------------------------------- | |
2983 | repeat wait() until game.Players.LocalPlayer | |
2984 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
2985 | local Plr = game.Players.LocalPlayer | |
2986 | ||
2987 | Mouse.KeyDown:connect(function(KeyDown) | |
2988 | if KeyDown == "0" then | |
2989 | Plr.Character.Humanoid.WalkSpeed = 40 | |
2990 | end | |
2991 | end) | |
2992 | ||
2993 | Mouse.KeyUp:connect(function(KeyUp) | |
2994 | if KeyUp == "0" then | |
2995 | Plr.Character.Humanoid.WalkSpeed = 17 | |
2996 | end | |
2997 | end) | |
2998 | ------------------------------------- | |
2999 | ||
3000 | ||
3001 | ------------------------------- | |
3002 | local animpose = "Idle" | |
3003 | local lastanimpose = "Idle" | |
3004 | local sine = 0 | |
3005 | local change = 1 | |
3006 | local val = 0 | |
3007 | local ffing = false | |
3008 | ------------------------------- | |
3009 | game:GetService("RunService").RenderStepped:connect(function() | |
3010 | --[[if char.Humanoid.Jump == true then | |
3011 | jump = true | |
3012 | else | |
3013 | jump = false | |
3014 | end]] | |
3015 | char.Humanoid.FreeFalling:connect(function(f) | |
3016 | if f then | |
3017 | ffing = true | |
3018 | else | |
3019 | ffing = false | |
3020 | end | |
3021 | end) | |
3022 | sine = sine + change | |
3023 | if jumpn == true then | |
3024 | animpose = "Jumping" | |
3025 | elseif ffing == true then | |
3026 | animpose = "Freefalling" | |
3027 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3028 | animpose = "Idle" | |
3029 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3030 | animpose = "Walking" | |
3031 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3032 | animpose = "Running" | |
3033 | end | |
3034 | ||
3035 | lastanimpose = animpose | |
3036 | if Debounces.NoIdl == false then | |
3037 | if animpose == "Idle" then | |
3038 | change = 0.5 | |
3039 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4) | |
3040 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4) | |
3041 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
3042 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
3043 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
3044 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4) | |
3045 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
3046 | --[[rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(-10+4*math.cos(sine/8)),math.rad(-20-2*math.cos(sine/8)),math.rad(10+2*math.cos(sine/8))), 0.2) | |
3047 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0),math.rad(10+2*math.cos(sine/8)),math.rad(-18-2*math.cos(sine/8))), 0.2) | |
3048 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(20+4*math.cos(sine/8)),0), 0.2) | |
3049 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(-12-3*math.cos(sine/8)),math.rad(0),0), 0.2) | |
3050 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+2*math.cos(sine/8)), math.rad(-20-4*math.cos(sine/8)), 0), 0.2) | |
3051 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/8)), math.rad(20+4*math.cos(sine/8)), math.rad(-5+1*math.cos(sine/8))), 0.2) | |
3052 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0-4*math.cos(sine/8)), math.rad(-10-4*math.cos(sine/8)), math.rad(5+1*math.cos(sine/8))), 0.2)]]-- | |
3053 | elseif animpose == "Walking" then | |
3054 | change = 1 | |
3055 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3056 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3057 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3058 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3059 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3060 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3061 | elseif animpose == "Running" then | |
3062 | change = 1 | |
3063 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
3064 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
3065 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
3066 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
3067 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
3068 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
3069 | end | |
3070 | end | |
3071 | end) | |
3072 | ------------------------------------------------------------------------------------------------- | |
3073 | runServ:connect(function() | |
3074 | HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]" | |
3075 | HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4) | |
3076 | end) | |
3077 | ||
3078 | local p = game.Players.LocalPlayer | |
3079 | local char = p.Character | |
3080 | local mouse = p:GetMouse() | |
3081 | local torso = char.Torso | |
3082 | ||
3083 | local rot ={4} | |
3084 | ||
3085 | local pe1 = Instance.new("ParticleEmitter",torso) | |
3086 | ||
3087 | pe1.Transparency = NumberSequence.new(0.2,0.2) | |
3088 | ||
3089 | pe1.Size = NumberSequence.new(7,7,7) | |
3090 | pe1.LockedToPart = true | |
3091 | ||
3092 | pe1.Color = ColorSequence.new(Color3.new(255,0,0)) | |
3093 | ||
3094 | pe1.Texture = "rbxassetid://" | |
3095 | pe1.Lifetime = NumberRange.new(0.1,0.1) | |
3096 | pe1.Rate = 6 | |
3097 | pe1.RotSpeed = NumberRange.new(0,0) | |
3098 | pe1.Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
3099 | pe1.Speed = NumberRange.new(0,0) | |
3100 | ||
3101 | local pe2 = Instance.new("ParticleEmitter",torso) | |
3102 | ||
3103 | pe2.Transparency = NumberSequence.new(0,0.85000002384186,0.375,0.13749998807907,0.58124995231628,0.018750011920929,0.11874997615814,0.14999997615814,0.58749997615814,0.125,0.83749997615814,0.050000011920929,0.94999998807907,0.25) | |
3104 | ||
3105 | pe2.Size = NumberSequence.new(9,9,9) | |
3106 | pe2.LockedToPart = true | |
3107 | ||
3108 | pe2.Color = ColorSequence.new(Color3.new(220, 144, 149)) | |
3109 | ||
3110 | pe2.Texture = "rbxassetid://541140939" | |
3111 | pe2.Lifetime = NumberRange.new(0.1,0.1) | |
3112 | pe2.Rate = 6 | |
3113 | pe2.RotSpeed = NumberRange.new(0,0) | |
3114 | pe2Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
3115 | pe2Speed = NumberRange.new(0,0) | |
3116 | ||
3117 | local pe3 = Instance.new("ParticleEmitter",torso) | |
3118 | ||
3119 | pe3.Transparency = NumberSequence.new(0.2,0.2) | |
3120 | ||
3121 | pe3.Size = NumberSequence.new(7,7,7) | |
3122 | pe3.LockedToPart = true | |
3123 | ||
3124 | ||
3125 | ||
3126 | pe3.Texture = "rbxassetid://242223465" | |
3127 | pe3.Lifetime = NumberRange.new(0.1,0.1) | |
3128 | pe3.Rate = 6 | |
3129 | pe3.RotSpeed = NumberRange.new(0,0) | |
3130 | pe3.Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
3131 | pe3.Speed = NumberRange.new(0,0) | |
3132 | ||
3133 | ||
3134 | ||
3135 | --------------------------------------------------- | |
3136 | ||
3137 | ---------------------------------------- | |
3138 | ||
3139 | ||
3140 | for _,c in pairs (jun.Character:GetChildren()) do | |
3141 | if c.className == "Hat" then | |
3142 | c.Handle.Transparency = 1 | |
3143 | end | |
3144 | end | |
3145 | ||
3146 | Hair22 = Instance.new("Part") | |
3147 | ||
3148 | Hair22.Parent = jun.Character | |
3149 | Hair22.Name = "Hair" | |
3150 | Hair22.formFactor = "Symmetric" | |
3151 | Hair22.Size = Vector3.new(1, 1, 1) | |
3152 | Hair22.CFrame = jun.Character.Head.CFrame | |
3153 | Hair22:BreakJoints() | |
3154 | Hair22.CanCollide = false | |
3155 | Hair22.TopSurface = "Smooth" | |
3156 | Hair22.BottomSurface = "Smooth" | |
3157 | Hair22.BrickColor = BrickColor.new("Really red") | |
3158 | Hair22.Transparency = 1 | |
3159 | ||
3160 | Weld = Instance.new("Weld") | |
3161 | Weld.Part0 = jun.Character.Head | |
3162 | Weld.Part1 = Hair22 | |
3163 | Weld.Parent = jun.Character.Head | |
3164 | Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
3165 | ||
3166 | Mesh = Instance.new("SpecialMesh") | |
3167 | Mesh.Parent = Hair22 | |
3168 | Mesh.MeshType = "Sphere" | |
3169 | Mesh.Scale = Vector3.new(0, 0, 0) | |
3170 | ||
3171 | Hair4 = Instance.new("Part") | |
3172 | Hair4.Parent = jun.Character | |
3173 | Hair4.Name = "Hair" | |
3174 | Hair4.CanCollide = false | |
3175 | Hair4.Locked = true | |
3176 | Hair4.TopSurface = "Smooth" | |
3177 | Hair4.BottomSurface = "Smooth" | |
3178 | Hair4.formFactor = "Symmetric" | |
3179 | Hair4.Material = "Neon" | |
3180 | Hair4.BrickColor = BrickColor.new("Really red") | |
3181 | Hair4.CFrame = jun.Character.Torso.CFrame | |
3182 | Hair4.Size = Vector3.new(0, 0, 0) | |
3183 | Hair4.Transparency = 1 | |
3184 | ||
3185 | Weld = Instance.new("Weld") | |
3186 | Weld.Parent = jun.Character.Head | |
3187 | Weld.Part0 = jun.Character.Head | |
3188 | Weld.Part1 = Hair4 | |
3189 | Weld.C0 = CFrame.new(0, 1, 0) | |
3190 | ||
3191 | Mesh = Instance.new("SpecialMesh") | |
3192 | Mesh.Offset = Vector3.new(0.2, -0.2, 0.2) | |
3193 | Mesh.Parent = Hair4 | |
3194 | Mesh.Scale = Vector3.new(1, 1, 1) | |
3195 | Mesh.MeshType = "FileMesh" | |
3196 | Mesh.MeshId = "http://www.roblox.com/asset/?id=476757756" | |
3197 | Mesh.TextureId = "" | |
3198 | ||
3199 | ||
3200 | ||
3201 | ||
3202 | --------------- other functions------------------------ | |
3203 | ||
3204 | for i = 1, 6 do | |
3205 | Hair22.Transparency = Hair22.Transparency - .2 | |
3206 | Hair4.Transparency = Hair4.Transparency - .2 | |
3207 | end | |
3208 | ||
3209 | ---------------------- blok meshs --------------------------------- | |
3210 | ||
3211 | char = jun.Character | |
3212 | ||
3213 | ||
3214 | until Charging == false | |
3215 | end | |
3216 | end | |
3217 | end | |
3218 | end) | |
3219 | ||
3220 | ||
3221 | ---------------------------------------------------- | |
3222 | ||
3223 | -------------------------------------------- | |
3224 | mouse.KeyUp:connect(function(key) | |
3225 | if key == "h" then | |
3226 | if Charging == true and chargewait == true then | |
3227 | chargewait = false | |
3228 | wait(1) | |
3229 | Charging = false | |
3230 | ||
3231 | --[[for i,v in pairs (torso:GetChildren()) do | |
3232 | if v:IsA("Sound") then | |
3233 | v:Destroy() | |
3234 | end | |
3235 | end]] | |
3236 | ||
3237 | ||
3238 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7) | |
3239 | ||
3240 | pt:Destroy() | |
3241 | pt2:Destroy() | |
3242 | bl:Destroy() | |
3243 | if Debounces.CanAttack == false then | |
3244 | Debounces.CanAttack = true | |
3245 | Debounces.NoIdl = false | |
3246 | Debounces.on = false | |
3247 | Debounces.grab = false | |
3248 | ||
3249 | end | |
3250 | end | |
3251 | end | |
3252 | end) | |
3253 | ---------------------------------------------------- | |
3254 | LocalPlayer = game:GetService("Players").LocalPlayer | |
3255 | local lastCF=char.Torso.Position | |
3256 | local x1=Instance.new("Part",game.Workspace) | |
3257 | x1.Name="Lightning" | |
3258 | x1.Size=Vector3.new(1,1,1) | |
3259 | x1.CanCollide=false | |
3260 | x1.Anchored=true | |
3261 | x1.Transparency=1 | |
3262 | Spawn(function() | |
3263 | while true do | |
3264 | wait(-1) | |
3265 | x1.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(50,360)))*CFrame.new(0,0,2.6) | |
3266 | end | |
3267 | end) | |
3268 | for i = 1,math.huge do | |
3269 | local dist2 = (lastCF-x1.Position).magnitude | |
3270 | local x2=Instance.new("Part",game.Workspace) | |
3271 | x2.Name="Lightning2" | |
3272 | x2.Size=Vector3.new(1,1,1) | |
3273 | x2.Material="Neon" | |
3274 | x2.BrickColor=BrickColor.new("Really red") | |
3275 | x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2) | |
3276 | x2.CanCollide=false | |
3277 | x2.Anchored=true | |
3278 | local m = Instance.new("BlockMesh",x2) | |
3279 | m.Scale = Vector3.new(0.5,0.5,dist2) | |
3280 | lastCF=x1.Position | |
3281 | spawn(function() | |
3282 | for i = 1,20 do | |
3283 | xx=m.Scale.x/2 | |
3284 | y=m.Scale.x/2 | |
3285 | m.Scale=m.Scale-Vector3.new(xx,y,0) | |
3286 | wait() | |
3287 | end | |
3288 | end) | |
3289 | game.Debris:AddItem(x2,1.5) | |
3290 | wait() | |
3291 | end | |
3292 | ||
3293 | ----------------------------------------------------- |