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