SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | ~~ GENOCIDE SANS SCRIPT ~~ | |
3 | ||
4 | VERSION BETA V3.0.3 | |
5 | Whats New: | |
6 | *1st attempt in adding skull (failed lol) | |
7 | *Patched some more bugs | |
8 | *1st attempt in adding bones (failed lol) | |
9 | *removed ball spawning | |
10 | - AzuLX | |
11 | ||
12 | Genocide Sans script from the Undertale game Script is edited by Xeradius, Isaac and Pingu. | |
13 | Full credit to whoever made the base | |
14 | Please do not leak this script. | |
15 | Full credit to 'KrystalTeam' and 'rocky2u' for the Telek script. | |
16 | TeamAzuL2K16 | |
17 | ]]-- | |
18 | ID = '319332735' | |
19 | Looped = false | |
20 | ||
21 | Music=Instance.new("Sound" ,workspace) | |
22 | Music.Name = "Music" | |
23 | if Looped == true then | |
24 | Music.Looped = true | |
25 | end | |
26 | Music.SoundId = "http://roblox.com/asset/?id=319332735" | |
27 | Music:Play() --Demonic Laugh. (Omega Flowey) You can remove if you wish. Its very loud (To not make play, remove 'Music:Play()') | |
28 | ||
29 | --full credit to krystal and rocky2u for below | |
30 | Fire = false | |
31 | ||
32 | Sparkles = false | |
33 | ||
34 | Box = false | |
35 | ||
36 | local Players = game.Players | |
37 | ||
38 | local Player = Players.LocalPlayer | |
39 | ||
40 | local Mouse = Player:GetMouse() | |
41 | ||
42 | ||
43 | local dist = 25 | |
44 | ||
45 | local trans = 0 | |
46 | ||
47 | local dwn=false | |
48 | ||
49 | local Bin = Instance.new("HopperBin") | |
50 | ||
51 | Bin.Name = "Sans' Telekinesis" | |
52 | ||
53 | Bin.Parent = Player.Backpack | |
54 | ||
55 | ||
56 | local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui) | |
57 | ||
58 | local Color = Instance.new("Color3Value", ScreenGUI) | |
59 | ||
60 | local ColorValue = Color.Value | |
61 | ||
62 | local Blue = Instance.new("TextButton", ScreenGUI) | |
63 | ||
64 | local Red = Instance.new("TextButton", ScreenGUI) | |
65 | ||
66 | local Green = Instance.new("TextButton", ScreenGUI) | |
67 | ||
68 | local Yellow = Instance.new("TextButton", ScreenGUI) | |
69 | ||
70 | local Pink = Instance.new("TextButton", ScreenGUI) | |
71 | ||
72 | local LightBlue = Instance.new("TextButton", ScreenGUI) | |
73 | ||
74 | local White = Instance.new("TextButton", ScreenGUI) | |
75 | ||
76 | local FireTrue = Instance.new("TextButton", ScreenGUI) | |
77 | ||
78 | local FireFalse = Instance.new("TextButton", ScreenGUI) | |
79 | ||
80 | local SparklesTrue = Instance.new("TextButton", ScreenGUI) | |
81 | ||
82 | local SparklesFalse = Instance.new("TextButton", ScreenGUI) | |
83 | ||
84 | local BoxTrue = Instance.new("TextButton", ScreenGUI) | |
85 | ||
86 | local BoxFalse = Instance.new("TextButton", ScreenGUI) | |
87 | ||
88 | Color.Name = "Color" | |
89 | ||
90 | Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color | |
91 | ||
92 | Blue.Transparency = 0.5 | |
93 | ||
94 | Blue.Size = UDim2.new(0, 20 ,0, 20) | |
95 | ||
96 | Blue.Position = UDim2.new(1, -35, 1, -35) | |
97 | ||
98 | Blue.Name = "Blue" | |
99 | ||
100 | Blue.Text = "" | |
101 | ||
102 | Blue.Visible = false | |
103 | ||
104 | Red.BackgroundColor3 = BrickColor.new("Bright red").Color | |
105 | ||
106 | Red.Transparency = 0.5 | |
107 | ||
108 | Red.Size = UDim2.new(0, 20 ,0, 20) | |
109 | ||
110 | Red.Position = UDim2.new(1,-65, 1, -35) | |
111 | ||
112 | Red.Name = "Red" | |
113 | ||
114 | Red.Text = "" | |
115 | ||
116 | Red.Visible = false | |
117 | ||
118 | Green.BackgroundColor3 = BrickColor.new("Bright green").Color | |
119 | ||
120 | Green.Transparency = 0.5 | |
121 | ||
122 | Green.Size = UDim2.new(0, 20 ,0, 20) | |
123 | ||
124 | Green.Position = UDim2.new(1,-95, 1, -35) | |
125 | ||
126 | Green.Name = "Green" | |
127 | ||
128 | Green.Text = "" | |
129 | ||
130 | Green.Visible = false | |
131 | ||
132 | Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color | |
133 | ||
134 | Yellow.Transparency = 0.5 | |
135 | ||
136 | Yellow.Size = UDim2.new(0, 20 ,0, 20) | |
137 | ||
138 | Yellow.Position = UDim2.new(1,-125, 1, -35) | |
139 | ||
140 | Yellow.Name = "Yellow" | |
141 | ||
142 | Yellow.Text = "" | |
143 | ||
144 | Yellow.Visible = false | |
145 | ||
146 | Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color | |
147 | ||
148 | Pink.Transparency = 0.5 | |
149 | ||
150 | Pink.Size = UDim2.new(0, 20 ,0, 20) | |
151 | ||
152 | Pink.Position = UDim2.new(1,-155, 1, -35) | |
153 | ||
154 | Pink.Name = "Pink" | |
155 | ||
156 | Pink.Text = "" | |
157 | ||
158 | Pink.Visible = false | |
159 | ||
160 | LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color | |
161 | ||
162 | LightBlue.Transparency = 0.5 | |
163 | ||
164 | LightBlue.Size = UDim2.new(0, 20 ,0, 20) | |
165 | ||
166 | LightBlue.Position = UDim2.new(1,-185, 1, -35) | |
167 | ||
168 | LightBlue.Name = "LightBlue" | |
169 | ||
170 | LightBlue.Text = "" | |
171 | ||
172 | LightBlue.Visible = false | |
173 | ||
174 | White.BackgroundColor3 = BrickColor.new("White").Color | |
175 | ||
176 | White.Transparency = 0.5 | |
177 | ||
178 | White.Size = UDim2.new(0, 20 ,0, 20) | |
179 | ||
180 | White.Position = UDim2.new(1,-215, 1, -35) | |
181 | ||
182 | White.Name = "White" | |
183 | ||
184 | White.Text = "" | |
185 | ||
186 | White.Visible = false | |
187 | ||
188 | FireFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
189 | ||
190 | FireFalse.Transparency = 0.5 | |
191 | ||
192 | FireFalse.Size = UDim2.new(0, 50 ,0, 20) | |
193 | ||
194 | FireFalse.Position = UDim2.new(1,-65, 1, -65) | |
195 | ||
196 | FireFalse.Name = "FireFalse" | |
197 | ||
198 | FireFalse.Text = "Fire: F" | |
199 | ||
200 | FireFalse.Visible = false | |
201 | ||
202 | FireFalse.FontSize = "Size12" | |
203 | ||
204 | FireFalse.Font = "ArialBold" | |
205 | ||
206 | FireFalse.TextColor = BrickColor.new(255,255,255) | |
207 | ||
208 | FireFalse.TextTransparency = 0 | |
209 | ||
210 | FireTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
211 | ||
212 | FireTrue.Transparency = 0.5 | |
213 | ||
214 | FireTrue.Size = UDim2.new(0, 50 ,0, 20) | |
215 | ||
216 | FireTrue.Position = UDim2.new(1,-65, 1, -65) | |
217 | ||
218 | FireTrue.Name = "FireTrue" | |
219 | ||
220 | FireTrue.Text = "Fire: T" | |
221 | ||
222 | FireTrue.Visible = false | |
223 | ||
224 | FireTrue.FontSize = "Size12" | |
225 | ||
226 | FireTrue.Font = "ArialBold" | |
227 | ||
228 | FireTrue.TextColor = BrickColor.new(255,255,255) | |
229 | ||
230 | FireTrue.TextTransparency = 0 | |
231 | ||
232 | SparklesTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
233 | ||
234 | SparklesTrue.Transparency = 0.5 | |
235 | ||
236 | SparklesTrue.Size = UDim2.new(0, 50 ,0, 20) | |
237 | ||
238 | SparklesTrue.Position = UDim2.new(1,-125, 1, -65) | |
239 | ||
240 | SparklesTrue.Name = "SparklesTrue" | |
241 | ||
242 | SparklesTrue.Text = "SP: T" | |
243 | ||
244 | SparklesTrue.Visible = false | |
245 | ||
246 | SparklesTrue.FontSize = "Size12" | |
247 | ||
248 | SparklesTrue.Font = "ArialBold" | |
249 | ||
250 | SparklesTrue.TextColor = BrickColor.new(255,255,255) | |
251 | ||
252 | SparklesTrue.TextTransparency = 0 | |
253 | ||
254 | SparklesFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
255 | ||
256 | SparklesFalse.Transparency = 0.5 | |
257 | ||
258 | SparklesFalse.Size = UDim2.new(0, 50 ,0, 20) | |
259 | ||
260 | SparklesFalse.Position = UDim2.new(1,-125, 1, -65) | |
261 | ||
262 | SparklesFalse.Name = "SparklesFalse" | |
263 | ||
264 | SparklesFalse.Text = "SP: F" | |
265 | ||
266 | SparklesFalse.Visible = false | |
267 | ||
268 | SparklesFalse.FontSize = "Size12" | |
269 | ||
270 | SparklesFalse.Font = "ArialBold" | |
271 | ||
272 | SparklesFalse.TextColor = BrickColor.new(255,255,255) | |
273 | ||
274 | SparklesFalse.TextTransparency = 0 | |
275 | ||
276 | BoxTrue.BackgroundColor3 = BrickColor.new("Really black").Color | |
277 | ||
278 | BoxTrue.Transparency = 0.5 | |
279 | ||
280 | BoxTrue.Size = UDim2.new(0, 50 ,0, 20) | |
281 | ||
282 | BoxTrue.Position = UDim2.new(1,-185, 1, -65) | |
283 | ||
284 | BoxTrue.Name = "BoxTrue" | |
285 | ||
286 | BoxTrue.Text = "Box: T" | |
287 | ||
288 | BoxTrue.Visible = false | |
289 | ||
290 | BoxTrue.FontSize = "Size12" | |
291 | ||
292 | BoxTrue.Font = "ArialBold" | |
293 | ||
294 | BoxTrue.TextColor = BrickColor.new(255,255,255) | |
295 | ||
296 | BoxTrue.TextTransparency = 0 | |
297 | ||
298 | BoxFalse.BackgroundColor3 = BrickColor.new("Really black").Color | |
299 | ||
300 | BoxFalse.Transparency = 0.5 | |
301 | ||
302 | BoxFalse.Size = UDim2.new(0, 50 ,0, 20) | |
303 | ||
304 | BoxFalse.Position = UDim2.new(1,-185, 1, -65) | |
305 | ||
306 | BoxFalse.Name = "BoxFalse" | |
307 | ||
308 | BoxFalse.Text = "Box: F" | |
309 | ||
310 | BoxFalse.Visible = false | |
311 | ||
312 | BoxFalse.FontSize = "Size12" | |
313 | ||
314 | BoxFalse.Font = "ArialBold" | |
315 | ||
316 | BoxFalse.TextColor = BrickColor.new(255, 255, 255) | |
317 | ||
318 | BoxFalse.TextTransparency = 0 | |
319 | ||
320 | local Credits = Instance.new("ScreenGui",Player.PlayerGui) | |
321 | ||
322 | local Text = Instance.new("TextLabel",Credits) | |
323 | ||
324 | Text.BackgroundTransparency = 1 | |
325 | ||
326 | Text.Position = UDim2.new(0, 0, 1, -25) | |
327 | ||
328 | Text.Size = UDim2.new(0, 200, 0, 25) | |
329 | ||
330 | Text.Font = "SourceSans" | |
331 | ||
332 | Text.FontSize = "Size24" | |
333 | ||
334 | Text.Text = "By AzuLX, Issac and Pingu - GSans Script." | |
335 | ||
336 | Text.TextColor3 = Color3.new(255, 255, 255) | |
337 | ||
338 | Text.TextXAlignment = "Left" | |
339 | ||
340 | local bawl = Instance.new("Part", game.Lighting) | |
341 | ||
342 | bawl.Name="TelekinesisGrab" | |
343 | ||
344 | local bp = Instance.new("BodyPosition", bawl) | |
345 | ||
346 | local w = Instance.new("Weld", bawl) | |
347 | ||
348 | function onButton1Down(mouse) | |
349 | ||
350 | bawl.Size = Vector3.new(2,2,2) | |
351 | ||
352 | bawl.Material="Neon" | |
353 | ||
354 | bawl.Shape=0 | |
355 | ||
356 | bawl.Transparency=trans | |
357 | ||
358 | bawl.Name="TelekinesisGrab" | |
359 | ||
360 | bawl.CanCollide = false | |
361 | ||
362 | bawl.Parent = game.Workspace | |
363 | ||
364 | w.Parent = bawl | |
365 | ||
366 | w.Name = "Weld" | |
367 | ||
368 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
369 | ||
370 | bp.Parent = bawl | |
371 | ||
372 | bp.Name="lolx" | |
373 | ||
374 | bawl.Parent = workspace | |
375 | ||
376 | if mouse ~= nil then | |
377 | ||
378 | if mouse.Target ~= nil then | |
379 | ||
380 | w.Part0 = mouse.Target | |
381 | ||
382 | w.Part1 = bawl | |
383 | ||
384 | dwn = true | |
385 | ||
386 | if mouse.Target.Parent:FindFirstChild("Humanoid") then | |
387 | ||
388 | mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true | |
389 | ||
390 | else | |
391 | ||
392 | print('no humanoid') | |
393 | ||
394 | end | |
395 | ||
396 | end | |
397 | ||
398 | end | |
399 | ||
400 | spawn(function() | |
401 | ||
402 | while dwn == true do | |
403 | ||
404 | ypcall(function() | |
405 | ||
406 | bp.Parent = bawl | |
407 | ||
408 | bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist) | |
409 | ||
410 | wait() | |
411 | ||
412 | end) | |
413 | ||
414 | end | |
415 | ||
416 | end) | |
417 | ||
418 | end | |
419 | ||
420 | function onButton1Up(mouse) | |
421 | ||
422 | dwn=false | |
423 | ||
424 | if bawl ~= nil then | |
425 | ||
426 | bawl.Parent=game.Lighting | |
427 | ||
428 | else | |
429 | ||
430 | print('not found') | |
431 | ||
432 | end | |
433 | ||
434 | end | |
435 | ||
436 | function onKeyDown(key, mouse) | |
437 | ||
438 | key:lower() | |
439 | ||
440 | if key == "r" then | |
441 | ||
442 | if bawl ~= nil then | |
443 | ||
444 | --bawl.Parent=nil | |
445 | ||
446 | end | |
447 | ||
448 | elseif key == "e" then | |
449 | ||
450 | local p = Instance.new("Part", workspace) | |
451 | ||
452 | p.Size = Vector3.new(3,3,3) | |
453 | ||
454 | p.Material = "Neon" | |
455 | ||
456 | p.Position = mouse.Hit.p + Vector3.new(0,2,0) | |
457 | ||
458 | p.BrickColor = bawl.BrickColor | |
459 | ||
460 | p.Shape = "Ball" | |
461 | ||
462 | p.BottomSurface = "Smooth" | |
463 | ||
464 | p.TopSurface = "Smooth" | |
465 | ||
466 | elseif key == "h" then | |
467 | ||
468 | if bawl ~= nil then | |
469 | ||
470 | if bawl:FindFirstChild("Weld") ~= nil then | |
471 | ||
472 | if bawl:FindFirstChild("Weld").Part0 ~= nil then | |
473 | ||
474 | bawl:FindFirstChild("Weld").Part0.Anchored=false | |
475 | ||
476 | end | |
477 | ||
478 | end | |
479 | ||
480 | end | |
481 | ||
482 | elseif key == "g" then | |
483 | ||
484 | if bawl ~= nil then | |
485 | ||
486 | local x = Instance.new("Explosion",workspace) | |
487 | ||
488 | x.Position=bawl.Position | |
489 | ||
490 | else | |
491 | ||
492 | print('some sort of error') | |
493 | ||
494 | end | |
495 | ||
496 | elseif key == "x" then | |
497 | ||
498 | dist=dist - 5 | |
499 | ||
500 | elseif key == "c" then | |
501 | ||
502 | dist=15 | |
503 | ||
504 | elseif key == "v" then | |
505 | ||
506 | dist=100 | |
507 | ||
508 | elseif key == "z" then | |
509 | ||
510 | dist=dist + 5 | |
511 | ||
512 | end | |
513 | ||
514 | end | |
515 | ||
516 | FireX = 0 | |
517 | ||
518 | FireY = 0 | |
519 | ||
520 | FireZ = 0 | |
521 | ||
522 | SPX = 0 | |
523 | ||
524 | SPY = 0 | |
525 | ||
526 | SPZ = 0 | |
527 | ||
528 | BoxColor = "White" | |
529 | ||
530 | FireFalse.MouseButton1Down:connect(function () | |
531 | ||
532 | local Fire = Instance.new("Fire", bawl) | |
533 | Fire.Color = Color3.new(FireX,FireY,FireZ) | |
534 | ||
535 | Player.PlayerGui.ScreenGui.FireFalse.Visible = false | |
536 | ||
537 | Player.PlayerGui.ScreenGui.FireTrue.Visible = true | |
538 | ||
539 | Fire.Color = Color3.new(FireX,FireY,FireZ) | |
540 | ||
541 | end) | |
542 | ||
543 | FireTrue.MouseButton1Down:connect(function () | |
544 | ||
545 | bawl.Fire:remove() | |
546 | ||
547 | Player.PlayerGui.ScreenGui.FireFalse.Visible = true | |
548 | ||
549 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
550 | ||
551 | end) | |
552 | ||
553 | SparklesFalse.MouseButton1Down:connect(function () | |
554 | ||
555 | local SP = Instance.new("Sparkles", bawl) | |
556 | SP.Color = Color3.new(SPX,SPY,SPZ) | |
557 | ||
558 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false | |
559 | ||
560 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = true | |
561 | ||
562 | end) | |
563 | ||
564 | SparklesTrue.MouseButton1Down:connect(function () | |
565 | ||
566 | bawl.Sparkles:remove() | |
567 | ||
568 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true | |
569 | ||
570 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
571 | ||
572 | end) | |
573 | ||
574 | BoxFalse.MouseButton1Down:connect(function () | |
575 | ||
576 | local Box = Instance.new("SelectionBox", bawl) | |
577 | Box.Color = BrickColor.new(BoxColor) | |
578 | Box.Adornee = Box.Parent | |
579 | ||
580 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = false | |
581 | ||
582 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = true | |
583 | ||
584 | end) | |
585 | ||
586 | BoxTrue.MouseButton1Down:connect(function () | |
587 | ||
588 | bawl.SelectionBox:remove() | |
589 | ||
590 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = true | |
591 | ||
592 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
593 | ||
594 | end) | |
595 | ||
596 | Blue.MouseButton1Down:connect(function () | |
597 | ||
598 | if bawl ~= nil then | |
599 | ||
600 | bawl.BrickColor = BrickColor.new("Bright blue") | |
601 | ||
602 | FireX = 0 | |
603 | FireY = 0 | |
604 | FireZ = 255 | |
605 | ||
606 | SPX = 0 | |
607 | SPY = 0 | |
608 | SPZ = 255 | |
609 | ||
610 | BoxColor = "Bright blue" | |
611 | ||
612 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,0,255) | |
613 | ||
614 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,0,255) | |
615 | ||
616 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright blue") | |
617 | ||
618 | end | |
619 | ||
620 | end) | |
621 | ||
622 | Red.MouseButton1Down:connect(function () | |
623 | ||
624 | if bawl ~= nil then | |
625 | ||
626 | bawl.BrickColor = BrickColor.new("Bright red") | |
627 | ||
628 | FireX = 255 | |
629 | FireY = 0 | |
630 | FireZ = 0 | |
631 | ||
632 | SPX = 255 | |
633 | SPY = 0 | |
634 | SPZ = 0 | |
635 | ||
636 | BoxColor = "Bright red" | |
637 | ||
638 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,0) | |
639 | ||
640 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,0) | |
641 | ||
642 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright red") | |
643 | ||
644 | end | |
645 | ||
646 | end) | |
647 | ||
648 | Green.MouseButton1Down:connect(function () | |
649 | ||
650 | if bawl ~= nil then | |
651 | ||
652 | bawl.BrickColor = BrickColor.new("Bright green") | |
653 | ||
654 | FireX = 0 | |
655 | FireY = 255 | |
656 | FireZ = 0 | |
657 | ||
658 | SPX = 0 | |
659 | SPY = 255 | |
660 | SPZ = 0 | |
661 | ||
662 | BoxColor = "Bright green" | |
663 | ||
664 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,0) | |
665 | ||
666 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,0) | |
667 | ||
668 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright green") | |
669 | ||
670 | end | |
671 | ||
672 | end) | |
673 | ||
674 | Yellow.MouseButton1Down:connect(function () | |
675 | ||
676 | if bawl ~= nil then | |
677 | ||
678 | bawl.BrickColor = BrickColor.new("New Yeller") | |
679 | ||
680 | FireX = 255 | |
681 | FireY = 255 | |
682 | FireZ = 0 | |
683 | ||
684 | SPX = 255 | |
685 | SPY = 255 | |
686 | SPZ = 0 | |
687 | ||
688 | BoxColor = "New Yeller" | |
689 | ||
690 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,0) | |
691 | ||
692 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,0) | |
693 | ||
694 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("New Yeller") | |
695 | ||
696 | end | |
697 | ||
698 | end) | |
699 | ||
700 | Pink.MouseButton1Down:connect(function () | |
701 | ||
702 | if bawl ~= nil then | |
703 | ||
704 | bawl.BrickColor = BrickColor.new("Hot pink") | |
705 | ||
706 | FireX = 255 | |
707 | FireY = 0 | |
708 | FireZ = 255 | |
709 | ||
710 | SPX = 255 | |
711 | SPY = 0 | |
712 | SPZ = 255 | |
713 | ||
714 | BoxColor = "Hot pink" | |
715 | ||
716 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,255) | |
717 | ||
718 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,255) | |
719 | ||
720 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Hot pink") | |
721 | ||
722 | end | |
723 | ||
724 | end) | |
725 | ||
726 | LightBlue.MouseButton1Down:connect(function () | |
727 | ||
728 | if bawl ~= nil then | |
729 | ||
730 | bawl.BrickColor = BrickColor.new("Cyan") | |
731 | ||
732 | FireX = 0 | |
733 | FireY = 255 | |
734 | FireZ = 255 | |
735 | ||
736 | SPX = 0 | |
737 | SPY = 255 | |
738 | SPZ = 255 | |
739 | ||
740 | BoxColor = "Cyan" | |
741 | ||
742 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,255) | |
743 | ||
744 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,255) | |
745 | ||
746 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Cyan") | |
747 | ||
748 | end | |
749 | ||
750 | end) | |
751 | ||
752 | ||
753 | White.MouseButton1Down:connect(function () | |
754 | ||
755 | if bawl ~= nil then | |
756 | ||
757 | bawl.BrickColor = BrickColor.new("White") | |
758 | ||
759 | FireX = 255 | |
760 | FireY = 255 | |
761 | FireZ = 255 | |
762 | ||
763 | SPX = 255 | |
764 | SPY = 255 | |
765 | SPZ = 255 | |
766 | ||
767 | BoxColor = "White" | |
768 | ||
769 | game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,255) | |
770 | ||
771 | game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,255) | |
772 | ||
773 | game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("White") | |
774 | ||
775 | end | |
776 | ||
777 | end) | |
778 | ||
779 | Bin.Selected:connect(function () | |
780 | ||
781 | Fire = false | |
782 | ||
783 | Player.PlayerGui.ScreenGui.Blue.Visible = true | |
784 | ||
785 | Player.PlayerGui.ScreenGui.Red.Visible = true | |
786 | ||
787 | Player.PlayerGui.ScreenGui.Green.Visible = true | |
788 | ||
789 | Player.PlayerGui.ScreenGui.Yellow.Visible = true | |
790 | ||
791 | Player.PlayerGui.ScreenGui.Pink.Visible = true | |
792 | ||
793 | Player.PlayerGui.ScreenGui.LightBlue.Visible = true | |
794 | ||
795 | Player.PlayerGui.ScreenGui.White.Visible = true | |
796 | ||
797 | Player.PlayerGui.ScreenGui.FireFalse.Visible = true | |
798 | ||
799 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
800 | ||
801 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true | |
802 | ||
803 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
804 | ||
805 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = true | |
806 | ||
807 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
808 | ||
809 | end) | |
810 | ||
811 | Bin.Deselected:connect(function () | |
812 | ||
813 | Fire = false | |
814 | ||
815 | Player.PlayerGui.ScreenGui.Blue.Visible = false | |
816 | ||
817 | Player.PlayerGui.ScreenGui.Red.Visible = false | |
818 | ||
819 | Player.PlayerGui.ScreenGui.Green.Visible = false | |
820 | ||
821 | Player.PlayerGui.ScreenGui.Yellow.Visible = false | |
822 | ||
823 | Player.PlayerGui.ScreenGui.Pink.Visible = false | |
824 | ||
825 | Player.PlayerGui.ScreenGui.LightBlue.Visible = false | |
826 | ||
827 | Player.PlayerGui.ScreenGui.White.Visible = false | |
828 | ||
829 | Player.PlayerGui.ScreenGui.FireFalse.Visible = false | |
830 | ||
831 | Player.PlayerGui.ScreenGui.FireTrue.Visible = false | |
832 | ||
833 | Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false | |
834 | ||
835 | Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false | |
836 | ||
837 | Player.PlayerGui.ScreenGui.BoxFalse.Visible = false | |
838 | ||
839 | Player.PlayerGui.ScreenGui.BoxTrue.Visible = false | |
840 | ||
841 | end) | |
842 | ||
843 | Bin.Selected:connect(function(mouse) | |
844 | ||
845 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
846 | ||
847 | mouse.Button1Up:connect(function() onButton1Up(mouse) end) | |
848 | ||
849 | mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end) | |
850 | ||
851 | end) | |
852 | print 'Telek script has loaded, credit to Krystal and rocky2u' | |
853 | dot = false | |
854 | des = false | |
855 | local ChatService = game:GetService("Chat") | |
856 | local player = game.Players.LocalPlayer | |
857 | char = player.Character | |
858 | hum = char.Humanoid | |
859 | torso = hum.Torso | |
860 | lig = Instance.new("PointLight",player.Character.Torso) | |
861 | lig.Color=Color3.new(0,255,255) | |
862 | m=player:GetMouse() | |
863 | bb = Instance.new("BillboardGui",player.Character.Head) | |
864 | bb.Enabled = true | |
865 | bb.AlwaysOnTop = true | |
866 | bb.Size = UDim2.new(0,200,0,50) | |
867 | bb.StudsOffset = Vector3.new(0,1,0) | |
868 | gui=Instance.new("TextBox",bb) | |
869 | gui.Text = "* " | |
870 | gui.Size = UDim2.new(0,133,0,45) | |
871 | gui.Position=UDim2.new(0,57,0,-40) | |
872 | gui.TextColor3 = Color3.new(255,255,255) | |
873 | gui.BackgroundColor3=Color3.new(0,0,0) | |
874 | gui.TextWrapped = true | |
875 | gui.TextScaled = true | |
876 | gui.TextXAlignment = "Left" | |
877 | gui.TextYAlignment = "Top" | |
878 | gui.Visible = false | |
879 | gui.BorderColor3 = Color3.new(0,0,0) | |
880 | ||
881 | gui1=Instance.new("TextButton",bb) | |
882 | gui1.Position=UDim2.new(0,5,0,-43) | |
883 | gui1.Size = UDim2.new(0,190,0,51) | |
884 | ||
885 | gui1.TextColor3 = Color3.new(255,255,255) | |
886 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
887 | ||
888 | gui1.Visible = false | |
889 | img = Instance.new("ImageLabel",bb) | |
890 | img.Size = UDim2.new(0,46,0,47) | |
891 | img.Position = UDim2.new(0,10,0,-41) | |
892 | img.Image = "rbxassetid://388166921" | |
893 | img.BorderColor3 = Color3.new(0,0,0) | |
894 | img.Visible = false | |
895 | asd = Instance.new("Sound",player.Character.Torso) | |
896 | asd.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
897 | ||
898 | asd1 = Instance.new("Sound",player.Character.Torso) | |
899 | asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
900 | ||
901 | asd2 = Instance.new("Sound",player.Character.Torso) | |
902 | asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481" | |
903 | asd2.Looped = true | |
904 | asd3 = Instance.new("Sound",player.Character.Torso) | |
905 | asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309" | |
906 | asd3.Looped = true | |
907 | asd4 = Instance.new("Sound",player.Character.Torso) | |
908 | asd4.SoundId = "http://www.roblox.com/asset/?id = 366168126" | |
909 | asd4.Looped = false | |
910 | asd5 = Instance.new("Sound",player.Character.Torso) | |
911 | asd5.SoundId = "http://www.roblox.com/asset/?id = 0" | |
912 | asd5.Looped = true | |
913 | dunkd = Instance.new("Sound",player.Character.Torso) | |
914 | dunkd.SoundId = "http://www.roblox.com/asset/?id = 382893859" | |
915 | dunkd.Looped = false | |
916 | function play(play) | |
917 | asd:Play() | |
918 | asd1:Play() | |
919 | end | |
920 | eye = Instance.new("Part",player.Character) | |
921 | eye.BrickColor = BrickColor.new("Toothpaste") | |
922 | eye.Material = "Neon" | |
923 | eye.FormFactor = 3 | |
924 | eye.Shape = "Ball" | |
925 | eye.Size = Vector3.new(0.37,0.37,0.1) | |
926 | weld = Instance.new("Weld",eye) | |
927 | weld.Part0 = eye | |
928 | weld.Part1 = player.Character.Head | |
929 | weld.C0 = CFrame.new(0.1,-0.2,0.45) | |
930 | eye.Transparency = 1 | |
931 | -- listen for their chatting | |
932 | player.Chatted:connect(function(message) | |
933 | a = string.len(message) | |
934 | gui.Text = "* " | |
935 | gui.Visible = true | |
936 | gui1.Visible = true | |
937 | des = false | |
938 | img.Visible = true | |
939 | print(a) | |
940 | if dot == false then | |
941 | for i = 1,string.len(message) do wait(0.07) | |
942 | gui.Text =gui.Text..message:sub(i,i) | |
943 | ||
944 | play() | |
945 | end | |
946 | end | |
947 | ||
948 | des = true | |
949 | end) | |
950 | m.KeyDown:connect(function(k) | |
951 | if k == "g" then | |
952 | asd2:Play() | |
953 | eye.Transparency = 0 | |
954 | ||
955 | end | |
956 | end) | |
957 | m.KeyDown:connect(function(k) | |
958 | if k == "p" then | |
959 | eye.Transparency = 1 | |
960 | asd3:Play() | |
961 | end | |
962 | end) | |
963 | m.KeyDown:connect(function(k) | |
964 | if k == "r" then | |
965 | eye.Transparency = 0 | |
966 | asd4:Play() | |
967 | end | |
968 | end) | |
969 | m.KeyDown:connect(function(k) | |
970 | if k == "q" then | |
971 | eye.Transparency = 1 | |
972 | asd5:Play() | |
973 | end | |
974 | end) | |
975 | m.KeyDown:connect(function(k) | |
976 | if k == "z" then | |
977 | ||
978 | img.Image = "rbxassetid://414178632" | |
979 | end | |
980 | end) | |
981 | m.KeyDown:connect(function(k) | |
982 | if k == "c" then | |
983 | img.Image = "rbxassetid://333660171" | |
984 | end | |
985 | end) | |
986 | m.KeyDown:connect(function(k) | |
987 | if k == "n" then | |
988 | img.Image = "rbxassetid://309482690" | |
989 | end | |
990 | end) | |
991 | m.KeyDown:connect(function(k) | |
992 | if k == "b" then | |
993 | img.Image = "rbxassetid://356477236" | |
994 | end | |
995 | end) | |
996 | m.KeyDown:connect(function(k) | |
997 | if k == "m" then | |
998 | img.Image = "rbxassetid://392578302" | |
999 | end | |
1000 | end) | |
1001 | m.KeyDown:connect(function(k) | |
1002 | if k == "v" then | |
1003 | img.Image = "rbxassetid://359052889" | |
1004 | end | |
1005 | end) | |
1006 | m.KeyDown:connect(function(k) | |
1007 | if k == "h" then | |
1008 | img.Image = "rbxassetid://339763092" | |
1009 | end | |
1010 | end) | |
1011 | m.KeyDown:connect(function(k) | |
1012 | if k == "j" then | |
1013 | img.Image = "rbxassetid://384795061" | |
1014 | end | |
1015 | end) | |
1016 | m.KeyDown:connect(function(k) | |
1017 | if k == "l" then | |
1018 | img.Image = "rbxassetid://378214121" | |
1019 | print("You take your very last breath...") | |
1020 | asdd = Instance.new("Sound",player.Character.Torso) | |
1021 | asdd.SoundId = "http://www.roblox.com/asset/?id = 357417055" | |
1022 | asdd.Looped = false | |
1023 | spawn(function() | |
1024 | wait() | |
1025 | asdd:Play() | |
1026 | end) | |
1027 | wait(2) | |
1028 | asddd = Instance.new("Sound",player.Character.Torso) | |
1029 | asddd.SoundId = "http://www.roblox.com/asset/?id = 387183672" | |
1030 | asddd.Looped = false | |
1031 | spawn(function() | |
1032 | wait() | |
1033 | asddd:Play() | |
1034 | end) | |
1035 | wait(2) | |
1036 | asdded = Instance.new("Sound",player.Character.Torso) | |
1037 | asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707" | |
1038 | asdded.Looped = false | |
1039 | spawn(function() | |
1040 | wait() | |
1041 | asdded:Play() | |
1042 | end) | |
1043 | char:BreakJoints() | |
1044 | end | |
1045 | end) | |
1046 | m.KeyDown:connect(function(k) | |
1047 | if k == "x" then | |
1048 | if des == true then | |
1049 | gui.Visible = false | |
1050 | gui.Text = "* " | |
1051 | gui1.Visible = false | |
1052 | img.Visible = false | |
1053 | end | |
1054 | end | |
1055 | end) | |
1056 | m.KeyDown:connect(function(k) | |
1057 | if k == "f" then | |
1058 | asd3:Stop() | |
1059 | asd2:Stop() | |
1060 | asd4:Stop() | |
1061 | dunkd:Stop() | |
1062 | eye.Transparency = 1 | |
1063 | asd5:Stop() | |
1064 | end | |
1065 | end) | |
1066 | m.KeyDown:connect(function(k) | |
1067 | if k == "u" then | |
1068 | dunkd = Instance.new("Sound",player.Character.Torso) | |
1069 | dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694" | |
1070 | dunkd.Looped = false | |
1071 | dunkd:Play() | |
1072 | end | |
1073 | end) | |
1074 | m.KeyDown:connect(function(k) | |
1075 | if k == "y" then | |
1076 | img.Image = "rbxassetid://378198656" | |
1077 | end | |
1078 | end) | |
1079 | -- my god... | |
1080 | -- Suck_HiyaThere moves to arizona | |
1081 | ||
1082 | -------------------------------------------------------- | |
1083 | ||
1084 | pls = game:GetService'Players' | |
1085 | rs = game:GetService'RunService' | |
1086 | uinps = game:GetService'UserInputService' | |
1087 | lp = pls.LocalPlayer | |
1088 | mouse = lp:GetMouse() | |
1089 | c = lp.Character | |
1090 | human = c.Humanoid | |
1091 | human.MaxHealth = 50000 | |
1092 | soundVol = 0 | |
1093 | wait() | |
1094 | human.Health = 50000 | |
1095 | c.Health:Destroy() | |
1096 | ||
1097 | -------------------------------------------------------- | |
1098 | ||
1099 | Debounces = { | |
1100 | AnimationCycles = 0; | |
1101 | FPS = 0; | |
1102 | scalingDamage = false; | |
1103 | damageLevel = 0; | |
1104 | attackNumber = 0; | |
1105 | isAttacking = false; | |
1106 | isMoving = false; | |
1107 | isSprinting = false; | |
1108 | isBoosting = false; | |
1109 | isPassive = false; | |
1110 | isTyping = false; | |
1111 | } | |
1112 | ||
1113 | -------------------------------------------------------- | |
1114 | ||
1115 | numLerp = function(start, goal, alpha) | |
1116 | return(((goal - start) * alpha) + start) | |
1117 | end | |
1118 | ||
1119 | CFrameZero = function() | |
1120 | return CFrame.new(Vector3.new()) | |
1121 | end | |
1122 | ||
1123 | rad = function(value) | |
1124 | return math.rad(value) | |
1125 | end | |
1126 | ||
1127 | CFAngles = function(Vector) | |
1128 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) | |
1129 | end | |
1130 | ||
1131 | -------------------------------------------------------- | |
1132 | ||
1133 | AnimStat = { | |
1134 | lerpSpeed = .2; | |
1135 | lerpSpeed2 = .35; | |
1136 | lerpTween = 0; | |
1137 | } | |
1138 | ||
1139 | Joints = { | |
1140 | c.HumanoidRootPart.RootJoint; | |
1141 | c.Torso.Neck; | |
1142 | c.Torso['Left Shoulder']; | |
1143 | c.Torso['Right Shoulder']; | |
1144 | c.Torso['Left Hip']; | |
1145 | c.Torso['Right Hip']; | |
1146 | } | |
1147 | ||
1148 | JointTargets = { | |
1149 | CFrameZero(); | |
1150 | CFrameZero(); | |
1151 | CFrameZero(); | |
1152 | CFrameZero(); | |
1153 | CFrameZero(); | |
1154 | CFrameZero(); | |
1155 | } | |
1156 | ||
1157 | -------------------------------------------------------- | |
1158 | ||
1159 | BodyColors = { | |
1160 | HeadColor = BrickColor.new("Institutional white"); | |
1161 | LeftArmColor = BrickColor.new("Institutional white"); | |
1162 | RightArmColor = BrickColor.new("Institutional white"); | |
1163 | LeftLegColor = BrickColor.new("Institutional white"); | |
1164 | RightLegColor = BrickColor.new("Institutional white"); | |
1165 | TorsoColor = BrickColor.new("Mid gray"); | |
1166 | } | |
1167 | ||
1168 | Customs = { | |
1169 | Face = "http://www.roblox.com/asset/?id=382064533"; | |
1170 | Shirt = "http://www.roblox.com/asset/?id=380669878"; | |
1171 | Pants = "http://www.roblox.com/asset/?id=415270659"; | |
1172 | } | |
1173 | ||
1174 | -------------------------------------------------------- | |
1175 | ||
1176 | prepareCharacter = function() | |
1177 | local transPoints = { | |
1178 | NumberSequenceKeypoint.new(0,0,0), | |
1179 | NumberSequenceKeypoint.new(.4,.05,0), | |
1180 | NumberSequenceKeypoint.new(.8,.16,0), | |
1181 | NumberSequenceKeypoint.new(1,.25,0) | |
1182 | } | |
1183 | local sizePoints = { | |
1184 | NumberSequenceKeypoint.new(0,.5,0), | |
1185 | NumberSequenceKeypoint.new(.18,.5,0), | |
1186 | NumberSequenceKeypoint.new(.49,.69,0), | |
1187 | NumberSequenceKeypoint.new(.74,.5,0), | |
1188 | NumberSequenceKeypoint.new(.92,.25,0), | |
1189 | NumberSequenceKeypoint.new(1,.0625,0) | |
1190 | } | |
1191 | local Size = NumberSequence.new(sizePoints) | |
1192 | local Transparency = NumberSequence.new(transPoints) | |
1193 | rayModel = Instance.new("Model",c) | |
1194 | efxBlock = Instance.new("Part",c) | |
1195 | efxBlock.Material = "Neon" | |
1196 | efxBlock.FormFactor = "Custom" | |
1197 | efxBlock.Size = Vector3.new(.3,.3,.3) | |
1198 | light = Instance.new("PointLight",c.Head) | |
1199 | light.Range = 8 | |
1200 | light.Color = Color3.new(1,1,1) | |
1201 | light.Shadows = false | |
1202 | local particles = Instance.new("ParticleEmitter",efxBlock) | |
1203 | particles.Color = ColorSequence.new(Color3.new(.85,.85,.85),Color3.new(1,1,1)) | |
1204 | particles.ZOffset = 1 | |
1205 | particles.LightEmission = .96 | |
1206 | particles.Size = Size | |
1207 | particles.Name = "Fire" | |
1208 | particles.Transparency = Transparency | |
1209 | particles.LockedToPart = true | |
1210 | particles.Rate = 25 | |
1211 | particles.EmissionDirection = "Right" | |
1212 | particles.Acceleration = Vector3.new(-.5,0,0) | |
1213 | particles.Texture = "rbxassetid://24378732" | |
1214 | particles.Lifetime = NumberRange.new(.25,.25) | |
1215 | particles.Speed = NumberRange.new(-.5,5) | |
1216 | script.Parent = efxBlock | |
1217 | fire = particles | |
1218 | local offset = Vector3.new(0.2, .23, -0.5) | |
1219 | local weld = Instance.new("Weld",c.Head) | |
1220 | weld.Part0 = c.Head | |
1221 | weld.Part1 = efxBlock | |
1222 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1223 | efxBlock.Parent = c | |
1224 | local music = Instance.new("Sound",c.Torso) | |
1225 | music.SoundId = "rbxassetid://316012176" | |
1226 | music.Looped = true | |
1227 | music.Volume = soundVol | |
1228 | fight = music | |
1229 | local music2 = Instance.new("Sound",c.Torso) | |
1230 | music2.SoundId = "rbxassetid://316014309" | |
1231 | music2.Looped = true | |
1232 | music2.Volume = soundVol | |
1233 | sans = music2 | |
1234 | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) | |
1235 | pointGyro.P = 1e7 | |
1236 | pointGyro.D = 1e3 | |
1237 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
1238 | animator = c.Humanoid:FindFirstChild("Animator") | |
1239 | if animator then | |
1240 | animator:Destroy() | |
1241 | end | |
1242 | c.Torso.roblox:Destroy() | |
1243 | for i,v in pairs (c.Head:children()) do | |
1244 | if v.ClassName == "Sound" then | |
1245 | v:Destroy() | |
1246 | end | |
1247 | end | |
1248 | for i = 1,#Joints do | |
1249 | Joints[i].C1 = CFrame.new(Vector3.new()) | |
1250 | end | |
1251 | human.WalkSpeed = 0 | |
1252 | human.JumpPower = 0 | |
1253 | end | |
1254 | ||
1255 | uinps.InputBegan:connect(function(InputObject) | |
1256 | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then | |
1257 | Debounces.isPassive = not Debounces.isPassive | |
1258 | end | |
1259 | end) | |
1260 | ||
1261 | setJointCFrames = function(table) | |
1262 | for i = 1,#table do | |
1263 | JointTargets[i] = table[i] | |
1264 | end | |
1265 | AnimationCycles = 0 | |
1266 | end | |
1267 | ||
1268 | setLerp = function(speed) | |
1269 | AnimStat.lerpSpeed = speed | |
1270 | end | |
1271 | ||
1272 | setTween = function(tween) | |
1273 | AnimStat.lerpTween = tween | |
1274 | end | |
1275 | ||
1276 | takeDamage = function(position,damage,distance,platformStand) | |
1277 | for i,v in pairs (pls:children()) do | |
1278 | if v.ClassName == "Player" and v:FindFirstChild("Character") then | |
1279 | local torso = v.Character:FindFirstChild("Torso") | |
1280 | if torso and (torso.Position - position).magnitude < distance then | |
1281 | if v.Character.Humanoid.MaxHealth > 1000 then | |
1282 | v.Character.Humanoid.MaxHealth = 100; | |
1283 | v.Character.Humanoid.Breakjoints() | |
1284 | end | |
1285 | ||
1286 | ||
1287 | v.Character.Humanoid:TakeDamage(damage) | |
1288 | if platformStand == true then | |
1289 | v.Character.PlatformStand = platformStand | |
1290 | end | |
1291 | end | |
1292 | end | |
1293 | end | |
1294 | end | |
1295 | ||
1296 | -------------------------------------------------------- | |
1297 | ||
1298 | prepareCharacter() | |
1299 | ||
1300 | -------------------------------------------------------- | |
1301 | ||
1302 | spawn(function() | |
1303 | local sine = 0 | |
1304 | while wait() do | |
1305 | pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100) | |
1306 | if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then | |
1307 | setLerp(.1) | |
1308 | if Debounces.isPassive == true then | |
1309 | setJointCFrames({ | |
1310 | CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1311 | CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001)); | |
1312 | CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51)); | |
1313 | CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511)); | |
1314 | CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0)); | |
1315 | CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0)); | |
1316 | }) | |
1317 | else | |
1318 | setJointCFrames({ | |
1319 | CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1320 | CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001)); | |
1321 | CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51)); | |
1322 | CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511)); | |
1323 | CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0)); | |
1324 | CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0)); | |
1325 | }) | |
1326 | end | |
1327 | elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then | |
1328 | sine = sine + math.rad(12) | |
1329 | human.WalkSpeed = 15 | |
1330 | setLerp(.15) | |
1331 | setJointCFrames({ | |
1332 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0)); | |
1333 | CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001)); | |
1334 | CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0)); | |
1335 | CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0)); | |
1336 | CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0)); | |
1337 | CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0)); | |
1338 | }) | |
1339 | end | |
1340 | if Debounces.scalingDamage == true then | |
1341 | takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true) | |
1342 | end | |
1343 | end | |
1344 | end) | |
1345 | ||
1346 | human.Changed:connect(function(prop) | |
1347 | if prop == "MoveDirection" then | |
1348 | if human.MoveDirection.magnitude > .02 then | |
1349 | Debounces.isMoving = true | |
1350 | else | |
1351 | Debounces.isMoving = false | |
1352 | end | |
1353 | end | |
1354 | end) | |
1355 | ||
1356 | uinps.InputBegan:connect(function(InputObject) | |
1357 | if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1358 | Debounces.isBoosting = true | |
1359 | Debounces.damageLevel = 10 | |
1360 | Debounces.scalingDamage = true | |
1361 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
1362 | setLerp(.15) | |
1363 | setJointCFrames({ | |
1364 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20)); | |
1365 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837)); | |
1366 | CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45)); | |
1367 | CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45)); | |
1368 | CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495)); | |
1369 | CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999)); | |
1370 | }) | |
1371 | local boostSpeed = 250 | |
1372 | local efx = Instance.new("Sound",c.Head) | |
1373 | efx.SoundId = "rbxassetid://200632875" | |
1374 | efx.Pitch = math.random(1100,1300)/1000 | |
1375 | efx.Volume = .5 | |
1376 | efx:Play() | |
1377 | spawn(function() | |
1378 | wait(5) | |
1379 | efx:Destroy() | |
1380 | end) | |
1381 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed | |
1382 | vel.P = 1e3 | |
1383 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
1384 | wait(.15) | |
1385 | vel.P = 1000 | |
1386 | vel.MaxForce = Vector3.new(3000,0,3000) | |
1387 | vel.Velocity = Vector3.new() | |
1388 | wait(.3) | |
1389 | setLerp(.3) | |
1390 | setJointCFrames({ | |
1391 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13)); | |
1392 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879)); | |
1393 | CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45)); | |
1394 | CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383)); | |
1395 | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457)); | |
1396 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968)); | |
1397 | }) | |
1398 | wait(.2) | |
1399 | vel:Destroy() | |
1400 | Debounces.damageLevel = 0 | |
1401 | Debounces.scalingDamage = false | |
1402 | Debounces.isBoosting = false | |
1403 | end | |
1404 | end) | |
1405 | ||
1406 | uinps.InputBegan:connect(function(InputObject) | |
1407 | if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1408 | Debounces.isBoosting = true | |
1409 | Debounces.damageLevel = 10 | |
1410 | Debounces.scalingDamage = true | |
1411 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
1412 | setLerp(.15) | |
1413 | setJointCFrames({ | |
1414 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15)); | |
1415 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645)); | |
1416 | CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853)); | |
1417 | CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102)); | |
1418 | CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566)); | |
1419 | CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528)); | |
1420 | }) | |
1421 | local boostSpeed = 250 | |
1422 | local efx = Instance.new("Sound",c.Head) | |
1423 | efx.SoundId = "rbxassetid://200632875" | |
1424 | efx.Pitch = math.random(1100,1300)/1000 | |
1425 | efx.Volume = .5 | |
1426 | efx:Play() | |
1427 | spawn(function() | |
1428 | wait(5) | |
1429 | efx:Destroy() | |
1430 | end) | |
1431 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed | |
1432 | vel.P = 1e3 | |
1433 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
1434 | wait(.15) | |
1435 | vel.P = 1000 | |
1436 | vel.MaxForce = Vector3.new(3000,0,3000) | |
1437 | vel.Velocity = Vector3.new() | |
1438 | wait(.3) | |
1439 | setLerp(.3) | |
1440 | setJointCFrames({ | |
1441 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13)); | |
1442 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
1443 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
1444 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
1445 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
1446 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
1447 | }) | |
1448 | wait(.2) | |
1449 | vel:Destroy() | |
1450 | Debounces.damageLevel = 0 | |
1451 | Debounces.scalingDamage = false | |
1452 | Debounces.isBoosting = false | |
1453 | end | |
1454 | end) | |
1455 | ||
1456 | uinps.InputBegan:connect(function(InputObject) | |
1457 | if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1458 | Debounces.isBoosting = true | |
1459 | Debounces.damageLevel = 10 | |
1460 | Debounces.scalingDamage = true | |
1461 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
1462 | setLerp(.15) | |
1463 | setJointCFrames({ | |
1464 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5)); | |
1465 | CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878)); | |
1466 | CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0)); | |
1467 | CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087)); | |
1468 | CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5)); | |
1469 | CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
1470 | }) | |
1471 | local boostSpeed = 250 | |
1472 | local efx = Instance.new("Sound",c.Head) | |
1473 | efx.SoundId = "rbxassetid://200632875" | |
1474 | efx.Pitch = math.random(1100,1300)/1000 | |
1475 | efx.Volume = .5 | |
1476 | efx:Play() | |
1477 | spawn(function() | |
1478 | wait(5) | |
1479 | efx:Destroy() | |
1480 | end) | |
1481 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed | |
1482 | vel.P = 1e3 | |
1483 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
1484 | wait(.15) | |
1485 | vel.P = 1000 | |
1486 | vel.MaxForce = Vector3.new(3000,0,3000) | |
1487 | vel.Velocity = Vector3.new() | |
1488 | wait(.3) | |
1489 | setLerp(.3) | |
1490 | setJointCFrames({ | |
1491 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13)); | |
1492 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
1493 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
1494 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
1495 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
1496 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
1497 | }) | |
1498 | wait(.2) | |
1499 | vel:Destroy() | |
1500 | Debounces.damageLevel = 0 | |
1501 | Debounces.scalingDamage = false | |
1502 | Debounces.isBoosting = false | |
1503 | end | |
1504 | end) | |
1505 | ||
1506 | uinps.InputBegan:connect(function(InputObject) | |
1507 | if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1508 | Debounces.isBoosting = true | |
1509 | Debounces.damageLevel = 100000 | |
1510 | Debounces.scalingDamage = true | |
1511 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
1512 | setLerp(.15) | |
1513 | setJointCFrames({ | |
1514 | CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0)); | |
1515 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093)); | |
1516 | CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939)); | |
1517 | CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465)); | |
1518 | CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373)); | |
1519 | CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
1520 | }) | |
1521 | local boostSpeed = 150 | |
1522 | local boostSpeed = 250 | |
1523 | local efx = Instance.new("Sound",c.Head) | |
1524 | efx.SoundId = "rbxassetid://200632875" | |
1525 | efx.Pitch = math.random(1100,1300)/1000 | |
1526 | efx.Volume = .5 | |
1527 | efx:Play() | |
1528 | spawn(function() | |
1529 | wait(5) | |
1530 | efx:Destroy() | |
1531 | end) | |
1532 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed | |
1533 | vel.P = 1e3 | |
1534 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
1535 | wait(.15) | |
1536 | vel.P = 1000 | |
1537 | vel.MaxForce = Vector3.new(3000,0,3000) | |
1538 | vel.Velocity = Vector3.new() | |
1539 | wait(.3) | |
1540 | setLerp(.3) | |
1541 | setJointCFrames({ | |
1542 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0)); | |
1543 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598)); | |
1544 | CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511)); | |
1545 | CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887)); | |
1546 | CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524)); | |
1547 | CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631)); | |
1548 | }) | |
1549 | wait(.2) | |
1550 | vel:Destroy() | |
1551 | Debounces.damageLevel = 0 | |
1552 | Debounces.scalingDamage = false | |
1553 | Debounces.isBoosting = false | |
1554 | end | |
1555 | end) | |
1556 | ||
1557 | uinps.InputBegan:connect(function(InputObject) | |
1558 | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1559 | local isLooping = true | |
1560 | uinps.InputEnded:connect(function(InputObject2) | |
1561 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
1562 | isLooping = false | |
1563 | end | |
1564 | end) | |
1565 | while true do | |
1566 | if isLooping == false then | |
1567 | break | |
1568 | end | |
1569 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
1570 | local aimPos = mouse.Hit.p | |
1571 | local head = Instance.new("Part",c) | |
1572 | head.Size = Vector3.new(12,.2,12) | |
1573 | head.CanCollide = false | |
1574 | head.Anchored = true | |
1575 | head.Transparency = 1 | |
1576 | for i = 1,2 do | |
1577 | local decal = Instance.new("Decal",head) | |
1578 | decal.Texture = "rbxassetid://323497117" | |
1579 | if i == 1 then | |
1580 | decal.Face = Enum.NormalId.Top | |
1581 | else | |
1582 | decal.Face = Enum.NormalId.Bottom | |
1583 | end | |
1584 | end | |
1585 | if Debounces.attackNumber%2 == 1 then | |
1586 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
1587 | else | |
1588 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
1589 | end | |
1590 | spawn(function() | |
1591 | local timer = 0 | |
1592 | while rs.RenderStepped:wait() do | |
1593 | if timer >= 1.55 then | |
1594 | break | |
1595 | end | |
1596 | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) | |
1597 | timer = timer + 1/30/(Debounces.FPS/60) | |
1598 | end | |
1599 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1600 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
1601 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
1602 | local dis = (head.CFrame.p - pos).magnitude | |
1603 | local rayPart = Instance.new("Part",rayModel) | |
1604 | rayPart.Material = "Neon" | |
1605 | rayPart.FormFactor = "Custom" | |
1606 | rayPart.BrickColor = BrickColor.new(1,1,1) | |
1607 | rayPart.Anchored = true | |
1608 | rayPart.CanCollide = false | |
1609 | rayPart.Size = Vector3.new(7,7,dis + 400) | |
1610 | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) | |
1611 | rayPart.CFrame = rayCFrame | |
1612 | head:Destroy() | |
1613 | end) | |
1614 | wait() | |
1615 | local s = Instance.new("Sound",head) | |
1616 | s.Volume = 1 | |
1617 | s.SoundId = "rbxassetid://332223043" | |
1618 | s:Play() | |
1619 | wait(.04) | |
1620 | end | |
1621 | end | |
1622 | end) | |
1623 | ||
1624 | uinps.InputBegan:connect(function(InputObj) | |
1625 | if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
1626 | Debounces.isAttacking = true | |
1627 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
1628 | local head = Instance.new("Part",c) | |
1629 | head.Size = Vector3.new(18,.2,18) | |
1630 | head.CanCollide = false | |
1631 | head.Anchored = true | |
1632 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
1633 | head.Transparency = 1 | |
1634 | for i = 1,2 do | |
1635 | local decal = Instance.new("Decal",head) | |
1636 | decal.Texture = "rbxassetid://323497117" | |
1637 | if i == 1 then | |
1638 | decal.Face = Enum.NormalId.Top | |
1639 | else | |
1640 | decal.Face = Enum.NormalId.Bottom | |
1641 | end | |
1642 | end | |
1643 | setLerp(.1) | |
1644 | setJointCFrames({ | |
1645 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1646 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
1647 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
1648 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
1649 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
1650 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
1651 | }) | |
1652 | spawn(function() | |
1653 | local timer = 0 | |
1654 | while rs.RenderStepped:wait() do | |
1655 | if timer >= 1.55/.8 then | |
1656 | break | |
1657 | end | |
1658 | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) | |
1659 | timer = timer + 1/30/(Debounces.FPS/60) | |
1660 | end | |
1661 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1662 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
1663 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
1664 | local dis = (head.CFrame.p - pos).magnitude | |
1665 | local rayPart = Instance.new("Part",rayModel) | |
1666 | rayPart.Material = "Neon" | |
1667 | rayPart.FormFactor = "Custom" | |
1668 | rayPart.Name = "Punch" | |
1669 | rayPart.BrickColor = BrickColor.new(1,1,1) | |
1670 | rayPart.Anchored = true | |
1671 | rayPart.CanCollide = false | |
1672 | rayPart.Size = Vector3.new(28,28,dis + 400) | |
1673 | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) | |
1674 | rayPart.CFrame = rayCFrame | |
1675 | head:Destroy() | |
1676 | end) | |
1677 | wait() | |
1678 | local s = Instance.new("Sound",head) | |
1679 | s.Volume = 1 | |
1680 | s.SoundId = "rbxassetid://332223043" | |
1681 | s.Pitch = .8 | |
1682 | s:Play() | |
1683 | wait(.75) | |
1684 | setLerp(.17) | |
1685 | setJointCFrames({ | |
1686 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
1687 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
1688 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
1689 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
1690 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
1691 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
1692 | }) | |
1693 | wait(.5) | |
1694 | Debounces.isAttacking = false | |
1695 | end | |
1696 | end) | |
1697 | ||
1698 | reflect = function(d,n) | |
1699 | local i, n = -1 * d.unit, n.unit | |
1700 | local dot = n:Dot(i) | |
1701 | return 2*dot*n - i | |
1702 | end | |
1703 | ||
1704 | makeReflectionBeam = function(pos,look,isCrit) | |
1705 | local ray = Ray.new(pos,look) | |
1706 | local hit,hitpos,norm = workspace:FindPartOnRay(ray,c) | |
1707 | local e = Instance.new("Part",rayModel) | |
1708 | e.Anchored = true | |
1709 | e.CanCollide = false | |
1710 | e.BrickColor = BrickColor.new("White") | |
1711 | e.Material = "Neon" | |
1712 | e.FormFactor = "Custom" | |
1713 | e.Size = Vector3.new(6,6,(pos - hitpos).magnitude) | |
1714 | if isCrit == true then | |
1715 | e.Size = Vector3.new(16,16,(pos - hitpos).magnitude) | |
1716 | e.Name = "Punch" | |
1717 | end | |
1718 | e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos) | |
1719 | local e = Instance.new("Sound",c) | |
1720 | if isCrit == true then | |
1721 | e.Volume = .5 | |
1722 | else | |
1723 | e.Volume = .3 | |
1724 | e.Pitch = 1.5 | |
1725 | end | |
1726 | e.SoundId = "rbxassetid://200632875" | |
1727 | e:Play() | |
1728 | spawn(function() | |
1729 | wait(6) | |
1730 | e:Destroy() | |
1731 | end) | |
1732 | wait(.05) | |
1733 | if hit ~= nil then | |
1734 | newDir = reflect(look.unit,norm,isCrit) | |
1735 | makeReflectionBeam(hitpos,newDir * 999,isCrit) | |
1736 | end | |
1737 | end | |
1738 | ||
1739 | uinps.InputBegan:connect(function(InputObject) | |
1740 | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then | |
1741 | local isLooping = true | |
1742 | uinps.InputEnded:connect(function(InputObject2) | |
1743 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
1744 | isLooping = false | |
1745 | end | |
1746 | end) | |
1747 | while true do | |
1748 | if isLooping == false then | |
1749 | break | |
1750 | end | |
1751 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
1752 | local aimPos = mouse.Hit.p | |
1753 | local head = Instance.new("Part",c) | |
1754 | head.Size = Vector3.new(12,.2,12) | |
1755 | head.CanCollide = false | |
1756 | head.Anchored = true | |
1757 | head.Transparency = 1 | |
1758 | for i = 1,2 do | |
1759 | local decal = Instance.new("Decal",head) | |
1760 | decal.Texture = "rbxassetid://323497117" | |
1761 | if i == 1 then | |
1762 | decal.Face = Enum.NormalId.Top | |
1763 | else | |
1764 | decal.Face = Enum.NormalId.Bottom | |
1765 | end | |
1766 | end | |
1767 | if Debounces.attackNumber%2 == 1 then | |
1768 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
1769 | else | |
1770 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
1771 | end | |
1772 | spawn(function() | |
1773 | local timer = 0 | |
1774 | while rs.RenderStepped:wait() do | |
1775 | if timer >= 1.55 then | |
1776 | break | |
1777 | end | |
1778 | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) | |
1779 | timer = timer + 1/30/(Debounces.FPS/60) | |
1780 | end | |
1781 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1782 | head:Destroy() | |
1783 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false) | |
1784 | end) | |
1785 | ||
1786 | wait() | |
1787 | local s = Instance.new("Sound",head) | |
1788 | s.Volume = 1 | |
1789 | s.SoundId = "rbxassetid://332223043" | |
1790 | s.Pitch = 1.02 | |
1791 | s:Play() | |
1792 | wait(.2) | |
1793 | end | |
1794 | end | |
1795 | end) | |
1796 | ||
1797 | uinps.InputBegan:connect(function(InputObj) | |
1798 | if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then | |
1799 | Debounces.isAttacking = true | |
1800 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
1801 | local head = Instance.new("Part",c) | |
1802 | head.Size = Vector3.new(18,.2,18) | |
1803 | head.CanCollide = false | |
1804 | head.Anchored = true | |
1805 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
1806 | head.Transparency = 1 | |
1807 | for i = 1,2 do | |
1808 | local decal = Instance.new("Decal",head) | |
1809 | decal.Texture = "rbxassetid://323497117" | |
1810 | if i == 1 then | |
1811 | decal.Face = Enum.NormalId.Top | |
1812 | else | |
1813 | decal.Face = Enum.NormalId.Bottom | |
1814 | end | |
1815 | end | |
1816 | setLerp(.1) | |
1817 | setJointCFrames({ | |
1818 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1819 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
1820 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
1821 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
1822 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
1823 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
1824 | }) | |
1825 | spawn(function() | |
1826 | local timer = 0 | |
1827 | while rs.RenderStepped:wait() do | |
1828 | if timer >= 1.55/.8 then | |
1829 | break | |
1830 | end | |
1831 | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) | |
1832 | timer = timer + 1/30/(Debounces.FPS/60) | |
1833 | end | |
1834 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1835 | head:Destroy() | |
1836 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true) | |
1837 | end) | |
1838 | wait() | |
1839 | local s = Instance.new("Sound",head) | |
1840 | s.Volume = 2 | |
1841 | s.SoundId = "rbxassetid://332223043" | |
1842 | s.Pitch = .8 | |
1843 | s:Play() | |
1844 | wait(.75) | |
1845 | setLerp(.17) | |
1846 | setJointCFrames({ | |
1847 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
1848 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
1849 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
1850 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
1851 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
1852 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
1853 | }) | |
1854 | wait(.5) | |
1855 | Debounces.isAttacking = false | |
1856 | end | |
1857 | end) | |
1858 | ||
1859 | uinps.InputBegan:connect(function(InputObj) | |
1860 | if InputObj.KeyCode == Enum.KeyCode.Slash then | |
1861 | local finishEvent = nil | |
1862 | Debounces.isTyping = true | |
1863 | finishEvent = uinps.InputBegan:connect(function(InputObj) | |
1864 | if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then | |
1865 | Debounces.isTyping = false | |
1866 | finishEvent:disconnect() | |
1867 | end | |
1868 | end) | |
1869 | end | |
1870 | end) | |
1871 | ||
1872 | uinps.InputBegan:connect(function(InputObj) | |
1873 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1874 | Debounces.isSprinting = true | |
1875 | end | |
1876 | end) | |
1877 | ||
1878 | uinps.InputEnded:connect(function(InputObj) | |
1879 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1880 | Debounces.isSprinting = false | |
1881 | end | |
1882 | end) | |
1883 | ||
1884 | rs.RenderStepped:connect(function() | |
1885 | Debounces.FPS = 1/rs.RenderStepped:wait() | |
1886 | local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60) | |
1887 | if Debounces.isPassive == false then | |
1888 | fight:Pause() | |
1889 | sans:Resume() | |
1890 | efxBlock.Transparency = 1 | |
1891 | else | |
1892 | fight:Resume() | |
1893 | sans:Pause() | |
1894 | efxBlock.Transparency = 0 | |
1895 | end | |
1896 | for i,v in pairs (rayModel:children()) do | |
1897 | if v.Transparency >= 1 then | |
1898 | v:Destroy() | |
1899 | else | |
1900 | v.CanCollide = true | |
1901 | local parts = v:GetTouchingParts() | |
1902 | v.CanCollide = false | |
1903 | for i = 1,#parts do | |
1904 | if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then | |
1905 | parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60)) | |
1906 | elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then | |
1907 | parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60)) | |
1908 | end | |
1909 | end | |
1910 | v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0) | |
1911 | v.Transparency = v.Transparency + .05/(Debounces.FPS/60) | |
1912 | end | |
1913 | end | |
1914 | for i = 1,#Joints do | |
1915 | Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp) | |
1916 | end | |
1917 | light.Brightness = math.random(1,4) | |
1918 | end) | |
1919 | -- ~CLarramore |