SHOW:
|
|
- or go back to the newest paste.
1 | player = game.Players.LocalPlayer | |
2 | pchar = player.Character | |
3 | player.Neutral = true | |
4 | yes = false | |
5 | yes1 = false | |
6 | yes3 = true | |
7 | yes4=true | |
8 | canmove = true | |
9 | humanoid = game.Players.LocalPlayer.Character.Humanoid | |
10 | pchar.Humanoid.MaxHealth = 800 | |
11 | wait() | |
12 | pchar.Humanoid.Health = pchar.Humanoid.MaxHealth | |
13 | co = {"267098887","268664553","267098887"} | |
14 | ||
15 | h = Instance.new("Sound",pchar.Torso) | |
16 | p = game.Players.LocalPlayer | |
17 | char = p.Character | |
18 | ocarina = true | |
19 | mouse = player:GetMouse() | |
20 | ||
21 | asd2 = Instance.new("Sound",char) | |
22 | asd2.SoundId = "http://www.roblox.com/asset/?id =267098887" | |
23 | asd2.Looped = true | |
24 | asd2.Volume = 5 | |
25 | RightShoulder = Instance.new("Weld",pchar.Torso) | |
26 | RightShoulder.Part0 = pchar.Torso | |
27 | RightShoulder.Part1 = pchar['Right Arm'] | |
28 | RightShoulder.C0 = CFrame.new(1,0.5,0) | |
29 | RightShoulder.C1 = CFrame.new(-0.5,0.5,0) | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | LeftShoulder = Instance.new("Weld",pchar.Torso) | |
35 | LeftShoulder.Part0 = pchar.Torso | |
36 | LeftShoulder.Part1 = pchar['Left Arm'] | |
37 | LeftShoulder.C0 = CFrame.new(-1,0.5,0) | |
38 | LeftShoulder.C1 = CFrame.new(0.5,0.5,0) | |
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | Neck = Instance.new("Weld",pchar.Torso) | |
46 | Neck.Part0 = pchar.Torso | |
47 | Neck.Part1 = pchar['Head'] | |
48 | Neck.C0 = CFrame.new(0,1.5,0) | |
49 | ||
50 | ||
51 | ||
52 | sound4 = Instance.new("Sound") | |
53 | sound4.Parent = char | |
54 | sound4.SoundId = "http://www.roblox.com/asset/?id=132673664" | |
55 | sound4.Looped = false | |
56 | sound4.Volume = 1 | |
57 | sound6 = Instance.new("Sound") | |
58 | sound6.Parent = char | |
59 | sound6.SoundId = "http://www.roblox.com/asset/?id=164274787" | |
60 | sound6.Looped = false | |
61 | sound6.Volume = 1 | |
62 | ||
63 | sound5 = Instance.new("Sound") | |
64 | sound5.Parent = char | |
65 | sound5.SoundId = "http://www.roblox.com/asset/?id=138189603" | |
66 | sound5.Looped = false | |
67 | sound5.Volume = 1 | |
68 | ||
69 | as =0.2 | |
70 | ||
71 | ||
72 | ||
73 | -- From 0,0,0 to 10,22,3 with lerps | |
74 | ||
75 | deg = math.deg | |
76 | rad = math.rad | |
77 | asin = math.asin | |
78 | atan2 = math.atan2 | |
79 | cos = math.cos | |
80 | sin = math.sin | |
81 | rad = math.sin | |
82 | function getAngles(cf) -- this is for later | |
83 | local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components() | |
84 | return atan2(-m12,m22),asin(m02),atan2(-m01,m00) | |
85 | end | |
86 | Lerp = { | |
87 | Number = function(C1,C2,inc) | |
88 | return C1 + (C2 - C1) * inc | |
89 | end; | |
90 | CFrame = function(a,b,m) | |
91 | local c,d={a:components()},{b:components()} | |
92 | table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end) | |
93 | return CFrame.new(unpack(c)) | |
94 | end; | |
95 | } | |
96 | ||
97 | ||
98 | p = game.Players.LocalPlayer | |
99 | ||
100 | sound = Instance.new("Sound") | |
101 | sound.Parent = char.Torso | |
102 | sound.SoundId = "http://www.roblox.com/asset/?id=211134014" | |
103 | sound.Looped = false | |
104 | sound.Volume = 0.7 | |
105 | ||
106 | sound1 = Instance.new("Sound") | |
107 | sound1.Parent = char.Torso | |
108 | sound1.SoundId = "http://www.roblox.com/asset/?id=211059653" | |
109 | sound1.Looped = false | |
110 | sound1.Volume = 0.7 | |
111 | co2 = {"270042126","267098942"} | |
112 | sound2= Instance.new("Sound") | |
113 | sound2.Parent = char.Torso | |
114 | ||
115 | sound2.Looped = false | |
116 | sound2.Pitch = 0.95 | |
117 | sound2.Volume = 1 | |
118 | ||
119 | function whatacunt() | |
120 | sound2.SoundId = "http://www.roblox.com/asset/?id="..co2[math.random(1,#co2)] | |
121 | pchar.Head.Jumping.SoundId = "rbxassetid://"..co[math.random(1,#co)] | |
122 | end | |
123 | Shield=Instance.new("Part") | |
124 | Shield.TopSurface = 0 | |
125 | Shield.BottomSurface=0 | |
126 | Shield.Parent = char | |
127 | Shield.FormFactor = 3 | |
128 | Shield.Size = Vector3.new(0.1,2,2) | |
129 | Shield.BrickColor = BrickColor.new("Brown") | |
130 | ||
131 | wg = Instance.new("Weld") | |
132 | wg.Parent = Shield | |
133 | wg.Part0 = Shield | |
134 | wg.Part1 = char["Right Arm"] | |
135 | wg.C1 = CFrame.new(.55,0,0) | |
136 | ||
137 | ||
138 | Shielda=Instance.new("Part") | |
139 | Shielda.TopSurface = 0 | |
140 | Shielda.BottomSurface=0 | |
141 | Shielda.Parent = char | |
142 | Shielda.FormFactor = 3 | |
143 | Shielda.Transparency = 1 | |
144 | Shielda.Size = Vector3.new(0.5,0.5,0.1) | |
145 | Shielda.BrickColor = BrickColor.new("Brown") | |
146 | jum = true | |
147 | wga = Instance.new("Weld") | |
148 | wga.Parent = Shielda | |
149 | wga.Part0 = Shielda | |
150 | wga.Part1 = char["Left Arm"] | |
151 | wga.C1 = CFrame.new(0,-1,-0.5) | |
152 | fr = Instance.new("Fire") | |
153 | fr.Parent = Shielda | |
154 | fr.Size = 1 | |
155 | fr.Heat = 3 | |
156 | fr.Enabled = false | |
157 | Shield2=Instance.new("Part") | |
158 | Shield2.TopSurface = 0 | |
159 | Shield2.Transparency =1 | |
160 | Shield2.BottomSurface=0 | |
161 | Shield2.Parent = char | |
162 | Shield2.FormFactor = 3 | |
163 | Shield2.Size = Vector3.new(0.3,0.3,1) | |
164 | Shield2.BrickColor = BrickColor.new("Brown") | |
165 | ||
166 | ||
167 | wg2 = Instance.new("Weld") | |
168 | wg2.Parent = Shield2 | |
169 | wg2.Part0 = Shield2 | |
170 | wg2.Part1 = char["Left Arm"] | |
171 | wg2.C1 = CFrame.new(0,-1,0) | |
172 | ||
173 | Shieldb=Instance.new("Part") | |
174 | Shieldb.TopSurface = 0 | |
175 | Shieldb.BottomSurface=0 | |
176 | Shieldb.Parent = char | |
177 | Shieldb.FormFactor = 3 | |
178 | Shieldb.Transparency = 1 | |
179 | Shieldb.Size = Vector3.new(0.5,0.1,0.5) | |
180 | Shieldb.BrickColor = BrickColor.new("Really blue") | |
181 | ||
182 | wgb = Instance.new("Weld") | |
183 | wgb.Parent = Shieldb | |
184 | wgb.Part0 = Shieldb | |
185 | wgb.Part1 = char["Left Arm"] | |
186 | wgb.C1 = CFrame.new(0,-1,-0.5) | |
187 | ||
188 | Shieldc=Instance.new("Part") | |
189 | Shieldc.TopSurface = 0 | |
190 | Shieldc.BottomSurface=0 | |
191 | Shieldc.Parent = char | |
192 | Shieldc.FormFactor = 3 | |
193 | Shieldc.Transparency = 1 | |
194 | Shieldc.Size = Vector3.new(0.1,0.3,5) | |
195 | Shieldc.BrickColor = BrickColor.new("White") | |
196 | ||
197 | wgc = Instance.new("Weld") | |
198 | wgc.Parent = Shieldc | |
199 | wgc.Part0 = Shieldc | |
200 | wgc.Part1 = char["Left Arm"] | |
201 | wgc.C1 = CFrame.new(0,-1,-2) | |
202 | ||
203 | fr = Instance.new("Fire") | |
204 | fr.Parent = Shielda | |
205 | fr.Size = 1 | |
206 | fr.Heat = 3 | |
207 | fr.Enabled = false | |
208 | Shield3=Instance.new("Part") | |
209 | Shield3.TopSurface = 0 | |
210 | Shield3.Transparency =1 | |
211 | Shield3.BottomSurface=0 | |
212 | Shield3.Parent = char | |
213 | Shield3.FormFactor = 3 | |
214 | Shield3.Size = Vector3.new(0.3,0.3,1) | |
215 | Shield3.BrickColor = BrickColor.new("Really blue") | |
216 | ||
217 | wg3 = Instance.new("Weld") | |
218 | wg3.Parent = Shield3 | |
219 | wg3.Part0 = Shield3 | |
220 | wg3.Part1 = char["Left Arm"] | |
221 | wg3.C1 = CFrame.new(0,-1,0) | |
222 | ||
223 | pl = Instance.new("PointLight") | |
224 | pl.Parent = Shield2 | |
225 | pl.Brightness = 90 | |
226 | pl.Enabled = false | |
227 | pl.Range = 10 | |
228 | pl.Color = Color3.new(236,139,70) | |
229 | ||
230 | ShirtBody=Instance.new("Part") | |
231 | ShirtBody.TopSurface = 0 | |
232 | ShirtBody.BottomSurface=0 | |
233 | ShirtBody.Parent = char | |
234 | ShirtBody.FormFactor = 3 | |
235 | ShirtBody.Size = Vector3.new(2.1,2.1,1.1) | |
236 | ShirtBody.BrickColor = BrickColor.new("Bright green") | |
237 | ||
238 | w1 = Instance.new("Weld") | |
239 | w1.Parent = ShirtBody | |
240 | w1.Part0 = ShirtBody | |
241 | w1.Part1 = char.Torso | |
242 | ||
243 | ||
244 | ShirtBody2=Instance.new("Part") | |
245 | ShirtBody2.TopSurface = 0 | |
246 | ShirtBody2.BottomSurface=0 | |
247 | ShirtBody2.Parent = char | |
248 | ShirtBody2.FormFactor = 3 | |
249 | ShirtBody2.Size = Vector3.new(1.1,1.1,1.1) | |
250 | ShirtBody2.BrickColor = BrickColor.new("Bright green") | |
251 | ||
252 | w2 = Instance.new("Weld") | |
253 | w2.Parent = ShirtBody2 | |
254 | w2.Part0 = ShirtBody2 | |
255 | w2.Part1 = char["Left Arm"] | |
256 | w2.C0 = CFrame.new(0,-0.5,0) | |
257 | ||
258 | ShirtBody3=Instance.new("Part") | |
259 | ShirtBody3.TopSurface = 0 | |
260 | ShirtBody3.BottomSurface=0 | |
261 | ShirtBody3.Parent = char | |
262 | ShirtBody3.FormFactor = 3 | |
263 | ShirtBody3.Size = Vector3.new(1.1,1.1,1.1) | |
264 | ShirtBody3.BrickColor = BrickColor.new("Bright green") | |
265 | ||
266 | w3 = Instance.new("Weld") | |
267 | w3.Parent = ShirtBody3 | |
268 | w3.Part0 = ShirtBody3 | |
269 | w3.Part1 = char["Right Arm"] | |
270 | w3.C0 = CFrame.new(0,-0.5,0) | |
271 | ||
272 | ShirtBody4=Instance.new("Part") | |
273 | ShirtBody4.TopSurface = 0 | |
274 | ShirtBody4.BottomSurface=0 | |
275 | ShirtBody4.Parent = char | |
276 | ShirtBody4.FormFactor = 3 | |
277 | ShirtBody4.Size = Vector3.new(2.15,0.1,1.15) | |
278 | ShirtBody4.BrickColor = BrickColor.new("Bright green") | |
279 | ||
280 | w4 = Instance.new("Weld") | |
281 | w4.Parent = ShirtBody4 | |
282 | w4.Part0 = ShirtBody4 | |
283 | w4.Part1 = char["Torso"] | |
284 | w4.C0 = CFrame.new(0,1,0) | |
285 | ||
286 | ShirtBody5=Instance.new("Part") | |
287 | ShirtBody5.TopSurface = 0 | |
288 | ShirtBody5.BottomSurface=0 | |
289 | ShirtBody5.Parent = char | |
290 | ShirtBody5.FormFactor = 3 | |
291 | ShirtBody5.Size = Vector3.new(0.3,3,1.2) | |
292 | ShirtBody5.BrickColor = BrickColor.new("Brown") | |
293 | ||
294 | w5 = Instance.new("Weld") | |
295 | w5.Parent = ShirtBody5 | |
296 | w5.Part0 = ShirtBody5 | |
297 | w5.Part1 = char["Torso"] | |
298 | w5.C0 = CFrame.new(0,0,0) | |
299 | w5.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,math.pi/4) | |
300 | ||
301 | ||
302 | ||
303 | ||
304 | ||
305 | ShirtBody6=Instance.new("Part") | |
306 | ShirtBody6.TopSurface = 0 | |
307 | ShirtBody6.BottomSurface=0 | |
308 | ShirtBody6.Parent = char | |
309 | ShirtBody6.FormFactor = 3 | |
310 | ShirtBody6.Size = Vector3.new(0.5,0.7,1.2) | |
311 | ShirtBody6.BrickColor = BrickColor.new("Brown") | |
312 | ||
313 | w6 = Instance.new("Weld") | |
314 | w6.Parent = ShirtBody6 | |
315 | w6.Part0 = ShirtBody6 | |
316 | w6.Part1 = char["Torso"] | |
317 | w6.C0 = CFrame.new(-1.2,1.3,0) | |
318 | ||
319 | ShirtBody7=Instance.new("Part") | |
320 | ShirtBody7.TopSurface = 0 | |
321 | ShirtBody7.BottomSurface=0 | |
322 | ShirtBody7.Parent = char | |
323 | ShirtBody7.FormFactor = 3 | |
324 | ShirtBody7.Size = Vector3.new(0.55,0.45,1.2) | |
325 | ShirtBody7.BrickColor = BrickColor.new("Brown") | |
326 | ||
327 | w7 = Instance.new("Weld") | |
328 | w7.Parent = ShirtBody7 | |
329 | w7.Part0 = ShirtBody7 | |
330 | w7.Part1 = char["Torso"] | |
331 | w7.C0 = CFrame.new(-1.2,1.2,0) | |
332 | ||
333 | ||
334 | ||
335 | ||
336 | ShirtBody8=Instance.new("Part") | |
337 | ShirtBody8.TopSurface = 0 | |
338 | ShirtBody8.BottomSurface=0 | |
339 | ShirtBody8.Parent = char | |
340 | ShirtBody8.FormFactor = 3 | |
341 | ShirtBody8.Size = Vector3.new(1.1,0.7,1.1) | |
342 | ShirtBody8.BrickColor = BrickColor.new("Brown") | |
343 | ||
344 | w8 = Instance.new("Weld") | |
345 | w8.Parent = ShirtBody8 | |
346 | w8.Part0 = ShirtBody8 | |
347 | w8.Part1 = char["Right Leg"] | |
348 | w8.C0 = CFrame.new(0,-0.7,0) | |
349 | ||
350 | ||
351 | ||
352 | ||
353 | ShirtBody9=Instance.new("Part") | |
354 | ShirtBody9.TopSurface = 0 | |
355 | ShirtBody9.BottomSurface=0 | |
356 | ShirtBody9.Parent = char | |
357 | ShirtBody9.FormFactor = 3 | |
358 | ShirtBody9.Size = Vector3.new(1.1,0.7,1.1) | |
359 | ShirtBody9.BrickColor = BrickColor.new("Brown") | |
360 | ||
361 | w9 = Instance.new("Weld") | |
362 | w9.Parent = ShirtBody9 | |
363 | w9.Part0 = ShirtBody9 | |
364 | w9.Part1 = char["Left Leg"] | |
365 | w9.C0 = CFrame.new(0,-0.7,0) | |
366 | ||
367 | ||
368 | ShirtBodya=Instance.new("Part") | |
369 | ShirtBodya.TopSurface = 0 | |
370 | ShirtBodya.BottomSurface=0 | |
371 | ShirtBodya.Parent = char | |
372 | ShirtBodya.FormFactor = 3 | |
373 | ShirtBodya.Size = Vector3.new(0.5,3,0.5) | |
374 | ShirtBodya.BrickColor = BrickColor.new("Brown") | |
375 | ||
376 | wa = Instance.new("Weld") | |
377 | wa.Parent = ShirtBodya | |
378 | wa.Part0 = ShirtBodya | |
379 | wa.Part1 = char.Torso | |
380 | wa.C0 = CFrame.new(0,0,-0.8) | |
381 | wa.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,math.pi/4) | |
382 | ||
383 | ||
384 | ||
385 | ||
386 | ShirtBodyb=Instance.new("Part") | |
387 | ShirtBodyb.TopSurface = 0 | |
388 | ShirtBodyb.BottomSurface=0 | |
389 | ShirtBodyb.Parent = char | |
390 | ShirtBodyb.FormFactor = 3 | |
391 | ShirtBodyb.Size = Vector3.new(0.3,0.15,0.15) | |
392 | ShirtBodyb.BrickColor = BrickColor.new("White") | |
393 | ||
394 | wb = Instance.new("Weld") | |
395 | wb.Parent = ShirtBodyb | |
396 | wb.Part0 = ShirtBodyb | |
397 | wb.Part1 = ShirtBodya | |
398 | wb.C0 = CFrame.new(0,-1.5,0) | |
399 | ||
400 | ShirtBodyc=Instance.new("Part") | |
401 | ShirtBodyc.TopSurface = 0 | |
402 | ShirtBodyc.BottomSurface=0 | |
403 | ShirtBodyc.Parent = char | |
404 | ShirtBodyc.FormFactor = 3 | |
405 | ShirtBodyc.Size = Vector3.new(1,0.1,0.15) | |
406 | ShirtBodyc.BrickColor = BrickColor.new("Really blue") | |
407 | ||
408 | wc = Instance.new("Weld") | |
409 | wc.Parent = ShirtBodyc | |
410 | wc.Part0 = ShirtBodyc | |
411 | wc.Part1 = ShirtBodya | |
412 | wc.C0 = CFrame.new(0,-1.7,0) | |
413 | ||
414 | ||
415 | ShirtBodyd=Instance.new("Part") | |
416 | ShirtBodyd.TopSurface = 0 | |
417 | ShirtBodyd.BottomSurface=0 | |
418 | ShirtBodyd.Parent = char | |
419 | ShirtBodyd.FormFactor = 3 | |
420 | ShirtBodyd.Size = Vector3.new(0.1,0.7,0.1) | |
421 | ShirtBodyd.BrickColor = BrickColor.new("Really blue") | |
422 | ||
423 | wd = Instance.new("Weld") | |
424 | wd.Parent = ShirtBodyd | |
425 | wd.Part0 = ShirtBodyd | |
426 | wd.Part1 = ShirtBodya | |
427 | wd.C0 = CFrame.new(0,-2,0) | |
428 | ||
429 | ||
430 | ||
431 | ShirtBodye=Instance.new("Part") | |
432 | ShirtBodye.TopSurface = 0 | |
433 | ShirtBodye.BottomSurface=0 | |
434 | ShirtBodye.Parent = char | |
435 | ShirtBodye.FormFactor = 3 | |
436 | ShirtBodye.Size = Vector3.new(1.2,0.3,1.2) | |
437 | ShirtBodye.BrickColor = BrickColor.new("Bright green") | |
438 | ||
439 | we = Instance.new("Weld") | |
440 | we.Parent = ShirtBodye | |
441 | we.Part0 = ShirtBodye | |
442 | we.Part1 = char.Head | |
443 | we.C0 = CFrame.new(0,-.5,0) | |
444 | ||
445 | ||
446 | ShirtBodyf=Instance.new("Part") | |
447 | ShirtBodyf.TopSurface = 0 | |
448 | ShirtBodyf.BottomSurface=0 | |
449 | ShirtBodyf.Parent = char | |
450 | ShirtBodyf.FormFactor = 3 | |
451 | ShirtBodyf.Size = Vector3.new(1,0.3,1) | |
452 | ShirtBodyf.BrickColor = BrickColor.new("Bright green") | |
453 | ||
454 | wf = Instance.new("Weld") | |
455 | wf.Parent = ShirtBodyf | |
456 | wf.Part0 = ShirtBodyf | |
457 | wf.Part1 = char.Head | |
458 | wf.C0 = CFrame.new(0,-.75,0) | |
459 | ||
460 | ||
461 | LerpTo = { -- this is where your lerp stuff would go if you had more than one arm to lerp | |
462 | RightArm = CFrame.new(1,0.5,0); | |
463 | LeftArm = CFrame.new(-1,0.5,0); | |
464 | LeftLeg = CFrame.new(-1,-1,0); | |
465 | RightLeg = CFrame.new(1,-1,0); | |
466 | Ball = CFrame.new(0,0.3,1.3); | |
467 | ||
468 | Head = CFrame.new(0,1.5,0); | |
469 | } | |
470 | mouse.KeyDown:connect(function(kkk) | |
471 | if kkk =="z" then | |
472 | if yes4 == false then return | |
473 | elseif yes4 == true then | |
474 | yes3 = false | |
475 | yes2 = false | |
476 | yes1 = false | |
477 | if yes == false then | |
478 | leh=false | |
479 | righ=false | |
480 | if righ == false then | |
481 | ||
482 | ------------------------------------------------This is the slash vvv | |
483 | mouse.Button1Down:connect(function(mo) | |
484 | as = 0.3 | |
485 | yes5 = false | |
486 | yes6=true | |
487 | if yes2 == false then | |
488 | yes2 = true | |
489 | ||
490 | Shield3.Touched:connect(function(h)if h.Parent.Name ==game.Players.LocalPlayer.Name then | |
491 | return | |
492 | else x = h.Parent:findFirstChild("Humanoid") | |
493 | ||
494 | if x then | |
495 | ||
496 | x:TakeDamage(1) | |
497 | ||
498 | as = 0.2 | |
499 | ||
500 | ||
501 | ||
502 | ||
503 | ||
504 | ||
505 | ||
506 | ||
507 | end | |
508 | end | |
509 | end) | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | LerpTo.LeftArm = CFrame.new(-1,0.3,0.3) * CFrame.Angles(math.pi,0,0) | |
515 | wait(0.3) | |
516 | sound2:Play() | |
517 | LerpTo.LeftArm = CFrame.new(-1,0.3,0.3) * CFrame.Angles(math.pi/4,-math.pi/8,math.pi/6) | |
518 | LerpTo.RightArm = CFrame.new(1,0.5,-0.3) * CFrame.Angles(math.pi/2.5,0,-math.pi/8) | |
519 | wait(0.1) | |
520 | LerpTo.LeftArm = CFrame.new(-1,0.3,0.3) * CFrame.Angles(-math.pi/4,math.pi/8,-math.pi/4) | |
521 | LerpTo.RightArm = CFrame.new(1,0.5,-0.3) * CFrame.Angles(math.pi/2,0,-math.pi/4) | |
522 | ||
523 | wait(0.5) | |
524 | yes5 = true | |
525 | yes2 = false | |
526 | end | |
527 | end) | |
528 | end | |
529 | ||
530 | sound1:Play() | |
531 | ||
532 | ||
533 | sound1.Looped = false | |
534 | sound1.Volume = 0.7 | |
535 | ||
536 | LerpTo.LeftArm = CFrame.new(-1,0.3,0.3) * CFrame.Angles(-math.pi/4,math.pi/8,-math.pi/4) | |
537 | ||
538 | ShirtBodyb.Transparency = 1 | |
539 | ShirtBodyc.Transparency = 1 | |
540 | ShirtBodyd.Transparency = 1 | |
541 | Shield3.Transparency = 0 | |
542 | Shieldb.Transparency = 0 | |
543 | Shieldc.Transparency = 0 | |
544 | wait(0.1) | |
545 | yes =true | |
546 | ||
547 | LerpTo.Head=CFrame.new(0,1.5,0) * CFrame.Angles(0,-math.pi/4,0) | |
548 | LerpTo.RightArm = CFrame.new(1,0.5,-0.3) * CFrame.Angles(math.pi/2,0,-math.pi/4) | |
549 | end | |
550 | end | |
551 | end | |
552 | end) | |
553 | ||
554 | mouse.KeyDown:connect(function(kkk) | |
555 | if kkk =="x" then | |
556 | yes1 = true | |
557 | if yes == true then | |
558 | ||
559 | sound:Play() | |
560 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,0) | |
561 | ShirtBodyb.Transparency = 0 | |
562 | ShirtBodyc.Transparency = 0 | |
563 | ShirtBodyd.Transparency = 0 | |
564 | Shield3.Transparency = 1 | |
565 | Shieldb.Transparency = 1 | |
566 | Shieldc.Transparency = 1 | |
567 | yes = false | |
568 | yes3 = true | |
569 | ||
570 | ||
571 | LerpTo.Head=CFrame.new(0,1.5,0) * CFrame.Angles(0,0,0) | |
572 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,0) | |
573 | leh=true | |
574 | righ=true | |
575 | end | |
576 | end | |
577 | end) | |
578 | mouse.KeyDown:connect(function(kkk) | |
579 | if kkk == "g" then | |
580 | if ocarina == true then | |
581 | ocarina = false | |
582 | canmove = false | |
583 | yes = false | |
584 | yes3 = false | |
585 | yes4 = false | |
586 | yes1 = false | |
587 | Oc = Instance.new("Part") | |
588 | Oc.Parent = char | |
589 | Oc.BrickColor = BrickColor.new("Cyan") | |
590 | Oc.Name = "Ocarina of Time" | |
591 | Oc.FormFactor = 3 | |
592 | Oc.Size = Vector3.new(0.7,0.5,0.5) | |
593 | Oc.TopSurface = 0 | |
594 | Oc.BottomSurface = 0 | |
595 | ||
596 | ow = Instance.new("Weld") | |
597 | ow.Parent = Oc | |
598 | ow.Part0 = Oc | |
599 | ow.Part1 = char.Torso | |
600 | ow.C0 = CFrame.new(0,-1.2,1) | |
601 | ow.C1 = CFrame.new(0,-0.4,-0.9)*CFrame.Angles(math.pi/4,0,0) | |
602 | m = Instance.new("SpecialMesh") | |
603 | m.Parent = Oc | |
604 | m.Scale = Vector3.new(1.5,1,1) | |
605 | m.MeshType = "Sphere" | |
606 | ------------------------------------- | |
607 | Oc2 = Instance.new("Part") | |
608 | Oc2.Parent = char | |
609 | Oc2.BrickColor = BrickColor.new("Cyan") | |
610 | Oc2.Name = "Ocarina of Time" | |
611 | Oc2.FormFactor = 3 | |
612 | Oc2.Size = Vector3.new(0.2,0.2,0.2) | |
613 | Oc2.TopSurface = 0 | |
614 | Oc2.BottomSurface = 0 | |
615 | ||
616 | ow2 = Instance.new("Weld") | |
617 | ow2.Parent = Oc2 | |
618 | ow2.Part0 = Oc2 | |
619 | ow2.Part1 = Oc | |
620 | ow2.C0 = CFrame.new(0.2,-0.1,0) | |
621 | ||
622 | ||
623 | m2 = Instance.new("SpecialMesh") | |
624 | m2.Parent = Oc2 | |
625 | m2.Scale = Vector3.new(1,2.3,1) | |
626 | m2.MeshType = "Sphere" | |
627 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2,0,-math.pi/4) | |
628 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.pi/2,0,math.pi/4) | |
629 | end | |
630 | end | |
631 | end) | |
632 | mouse.KeyDown:connect(function(kkk) | |
633 | if kkk == "h" then | |
634 | ocarina = true | |
635 | Oc:Remove() | |
636 | Oc2:Remove() | |
637 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) | |
638 | LerpTo.RightArm = CFrame.new(1,0.5,0) | |
639 | yes = true | |
640 | yes1 = true | |
641 | yes3 = true | |
642 | yes4 = true | |
643 | canmove = true | |
644 | end | |
645 | ||
646 | end) | |
647 | ||
648 | mouse.KeyDown:connect(function(k) | |
649 | if k == ";" then | |
650 | pos = pchar.Torso.CFrame | |
651 | end | |
652 | end) | |
653 | ||
654 | ||
655 | ||
656 | mouse.KeyDown:connect(function(k) | |
657 | if k == "k" then | |
658 | if ocarina == false then | |
659 | ||
660 | sound4:Play() | |
661 | wait(10) | |
662 | ||
663 | ||
664 | ||
665 | wait(1) | |
666 | local rng = Instance.new("Part", char) | |
667 | rng.Anchored = true | |
668 | rng.BrickColor = BrickColor.new("Institutional white") | |
669 | rng.CanCollide = false | |
670 | rng.FormFactor = 3 | |
671 | rng.Name = "Ring" | |
672 | rng.Size = Vector3.new(1, 1, 1) | |
673 | rng.Transparency = 0.8 | |
674 | rng.TopSurface = 0 | |
675 | rng.BottomSurface = 0 | |
676 | rng.CFrame = char["Torso"].CFrame * CFrame.new(0,-2,0) | |
677 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
678 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
679 | local rngm = Instance.new("SpecialMesh", rng) | |
680 | rngm.MeshType = "Sphere" | |
681 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
682 | ||
683 | coroutine.wrap(function() | |
684 | for i = 1, 10, .4 do | |
685 | rngm.Scale = Vector3.new(2 + i*6, 2 + i*6,2 + i*6) | |
686 | ||
687 | wait() | |
688 | end | |
689 | wait() | |
690 | rng:Destroy() | |
691 | char.Torso.CFrame = pos | |
692 | ||
693 | ||
694 | ||
695 | wait(1) | |
696 | ||
697 | ||
698 | wait() | |
699 | end)() | |
700 | end | |
701 | ||
702 | ||
703 | wait(2) | |
704 | ||
705 | h:Remove() | |
706 | yes = false | |
707 | end | |
708 | ||
709 | end) | |
710 | ||
711 | mouse.KeyDown:connect(function(k) | |
712 | if k == "q" then | |
713 | if ocarina == false then | |
714 | ||
715 | ||
716 | sound5:Play() | |
717 | wait(9) | |
718 | LerpTo.Head = CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0) | |
719 | ||
720 | sound2:Stop() | |
721 | ||
722 | wait(2) | |
723 | char.Humanoid.Health = char.Humanoid.MaxHealth | |
724 | h:Remove() | |
725 | yes = false | |
726 | end | |
727 | end | |
728 | end) | |
729 | ||
730 | ||
731 | mouse.KeyDown:connect(function(k) | |
732 | if k == "x" then | |
733 | if ocarina == false then | |
734 | ||
735 | ||
736 | sound6:Play() | |
737 | wait(4) | |
738 | ||
739 | ||
740 | sound6:Stop() | |
741 | ||
742 | wait(1) | |
743 | BV = Instance.new("BodyVelocity", torso) | |
744 | BV.maxForce = Vector3.new(0,20000,0) | |
745 | BV.P = 1000 | |
746 | BV.velocity = Vector3.new(0,100,0) | |
747 | wait(1) | |
748 | BV:Remove() | |
749 | ||
750 | yes = false | |
751 | end | |
752 | end | |
753 | end) | |
754 | ||
755 | ||
756 | ||
757 | ||
758 | mouse.KeyDown:connect(function(kkk) | |
759 | ||
760 | if kkk =="l" then | |
761 | if yes3 == false then | |
762 | return | |
763 | elseif yes3 == true then | |
764 | yes4 = false | |
765 | righ = false | |
766 | leh = false | |
767 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.pi/2,0,math.pi/6) | |
768 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2,0,-math.pi/4) | |
769 | Shielda.Transparency = 0 | |
770 | Shield2.Transparency = 0 | |
771 | pl.Enabled = true | |
772 | fr.Enabled = true | |
773 | ||
774 | end | |
775 | end | |
776 | end) | |
777 | yes3 = true | |
778 | mouse.KeyUp:connect(function(kkk) | |
779 | ||
780 | if kkk =="l" then | |
781 | if yes3 == false then | |
782 | return | |
783 | elseif yes3 == true then | |
784 | leh = true | |
785 | righ = true | |
786 | yes4 = true | |
787 | LerpTo.Head=CFrame.new(0,1.5,0) * CFrame.Angles(0,0,0) | |
788 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,0) | |
789 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,0) | |
790 | Shielda.Transparency = 1 | |
791 | Shield2.Transparency = 1 | |
792 | pl.Enabled = false | |
793 | fr.Enabled = false | |
794 | ||
795 | end | |
796 | end | |
797 | end) | |
798 | ||
799 | ||
800 | ||
801 | ||
802 | ||
803 | ||
804 | ||
805 | ||
806 | ||
807 | ||
808 | ||
809 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") | |
810 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") | |
811 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") | |
812 | char.Shirt:Remove() | |
813 | char.Pants:Remove() | |
814 | char["Body Colors"].RightLegColor = BrickColor.new("White") | |
815 | char["Body Colors"].LeftLegColor = BrickColor.new("White") | |
816 | char["Head"]:FindFirstChild("Mesh"):Remove() | |
817 | ||
818 | ||
819 | bm = Instance.new("BlockMesh") | |
820 | bm.Parent = char["Head"] | |
821 | bm.Scale = Vector3.new(1,1,1) | |
822 | x = char:GetChildren() | |
823 | ||
824 | for k, child in pairs(x) do | |
825 | if child:IsA('Hat') then | |
826 | child:Destroy() | |
827 | end | |
828 | end | |
829 | torso=char.Torso | |
830 | anglespeed = 1 | |
831 | angle = 0 | |
832 | righ=true | |
833 | leh=true | |
834 | --[[function hum() | |
835 | ||
836 | ||
837 | humState = humanoid:GetState() | |
838 | if humState == Enum.HumanoidStateType.Jumping then | |
839 | if jum == true then | |
840 | jum = false | |
841 | ||
842 | canmove = false | |
843 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(0.3)) | |
844 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(0.3)) | |
845 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(0.1),0) | |
846 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0) | |
847 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(0.07),0,0) | |
848 | ||
849 | ||
850 | end | |
851 | else | |
852 | if humState == Enum.HumanoidStateType.Freefall then | |
853 | if jum == true then | |
854 | canmove = false | |
855 | ||
856 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(0.6)) | |
857 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(0.6)) | |
858 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(0.1),0) | |
859 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0) | |
860 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(0.07),0,0) | |
861 | end | |
862 | end | |
863 | ||
864 | wait(1) | |
865 | jum = true | |
866 | canmove = true | |
867 | end | |
868 | end | |
869 | ]]-- | |
870 | function updateanims() | |
871 | if canmove == true then | |
872 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(0),0,0) | |
873 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
874 | anglespeed = 1/2 | |
875 | if righ then | |
876 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(0.1)) | |
877 | end | |
878 | if leh then | |
879 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(-0.1)) | |
880 | ||
881 | end | |
882 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
883 | anglespeed = 3 | |
884 | if righ then | |
885 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(-sin(angle)*.8,0,rad(3)) | |
886 | end | |
887 | if leh then | |
888 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*.8,0,-rad(3)) | |
889 | end | |
890 | end | |
891 | end | |
892 | ||
893 | end | |
894 | Spawn(function() | |
895 | while wait()do | |
896 | angle = (angle % 100) + anglespeed/10 | |
897 | end | |
898 | end) | |
899 | ||
900 | ||
901 | RunService = game:service'RunService' | |
902 | RunService.RenderStepped:connect(function() | |
903 | updateanims() | |
904 | -- hum() | |
905 | whatacunt() | |
906 | RightShoulder.C0 = Lerp.CFrame(RightShoulder.C0,LerpTo.RightArm,as) | |
907 | LeftShoulder.C0 = Lerp.CFrame(LeftShoulder.C0,LerpTo.LeftArm,as) | |
908 | ||
909 | Neck.C0 = Lerp.CFrame(Neck.C0,LerpTo.Head,0.1) | |
910 | ||
911 | ||
912 | end) |