DontAskme

hackermannnn

Jul 8th, 2017
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.42 KB | None | 0 0
  1. -- RBX.Lua LocalScript | Hackerman | xDarkScripter
  2.  
  3.  
  4. local Players = game:GetService("Players")
  5. local UserInputService = game:GetService("UserInputService")
  6. local RunService = game:GetService("RunService")
  7.  
  8. local Player = Players.LocalPlayer
  9. local Camera = workspace.CurrentCamera
  10. local Mouse = Player:GetMouse()
  11.  
  12. local Character = Player.Character
  13. local Torso = Character.Torso
  14.  
  15. local Typing = false
  16. local TypingSub = 1
  17. local TypingSub2 = 1
  18.  
  19. local Neck = Torso.Neck
  20.  
  21. Neck.C1 = CFrame.new(0, -0.5, 0)
  22.  
  23. local RightArm = Character["Right Arm"]
  24. local LeftArm = Character["Left Arm"]
  25.  
  26. local RightShoulder = Instance.new("Weld", Torso)
  27. RightShoulder.Part0 = Torso
  28. RightShoulder.Part1 = RightArm
  29.  
  30. local LeftShoulder = Instance.new("Weld", Torso)
  31. LeftShoulder.Part0 = Torso
  32. LeftShoulder.Part1 = LeftArm
  33.  
  34. RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0)
  35. LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0)
  36.  
  37.  
  38. local Code = [[
  39. error-261 resolved0
  40. error-340903-3455-34-5-749353230935-3095-234-9102-33-34-3-2349-02394-02934-0-2
  41. error-934-03---04966-049-5060-609-4-604-60945-9604--09-60459-045-694-43
  42. error--5-96-450---45096-4056-09-04-596-049-0956-094-0956-049-59-096-49-564-5-4506-9-045-69-094-69-04
  43. error-606904-596-00-45-69-05-96090-54-6904956094596-0495-0-9-049-49-095-96096-49
  44. error-324--9053-95-09-09-6-94056-3094-2934-092-209-409-34490-2
  45. error--4305--0906-59-0694-5064-95-394-034-93-4955-05496-239-2309-069-40965-34923043-39
  46. error-055-330904-023904-02934-09429034-09-09-29-3049-23094-0293-9-4092-3094-20934-02
  47. error-350-395-09-595-0394-509-34095-09-0304590-09-395-485-405-35093-45093495-039405
  48. error--59034-50-3095-039-09-5903-495-039-509-03094-5093-4059-03945-904-3095-3590-
  49. error-3-09-3950-39-50394-59-3409-093-09-095-0349-509359-3095-0395-093-4095-03945-0934-5
  50. error--350-0-04569-096-6409-694-06-409-0496-049-69-49-6904-9506-49069-495-6
  51. error--350-0-04569-You-suck-694-06-409-0496-049-69-49-6904-9506-49069-495-6
  52. end
  53.  
  54.  
  55.  
  56.  
  57. ]]
  58.  
  59.  
  60. local Argument = [[
  61.  
  62. struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
  63.  
  64. struct group_info *groups_alloc(int gidsetsize){
  65.  
  66. struct group_info *group_info;
  67.  
  68. int nblocks;
  69.  
  70. int i;
  71.  
  72.  
  73.  
  74. nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;
  75.  
  76. /* Make sure we always allocate at least one indirect block pointer */
  77.  
  78. nblocks = nblocks ? : 1;
  79.  
  80. group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);
  81.  
  82. if (!group_info)
  83.  
  84. return NULL;
  85.  
  86. group_info->ngroups = gidsetsize;
  87.  
  88. group_info->nblocks = nblocks;
  89.  
  90. atomic_set(&group_info->usage, 1);
  91.  
  92.  
  93.  
  94. if (gidsetsize <= NGROUPS_SMALL)
  95.  
  96. group_info->blocks[0] = group_info->small_block;
  97.  
  98. else {
  99.  
  100. for (i = 0; i < nblocks; i++) {
  101.  
  102. gid_t *b;
  103.  
  104. b = (void *)__get_free_page(GFP_USER);
  105.  
  106. if (!b)
  107.  
  108. goto out_undo_partial_alloc;
  109.  
  110. group_info->blocks[i] = b;
  111.  
  112. }
  113.  
  114. }
  115.  
  116. return group_info;
  117.  
  118.  
  119.  
  120. out_undo_partial_alloc:
  121.  
  122. while (--i >= 0) {
  123.  
  124. free_page((unsigned long)group_info->blocks[i]);
  125.  
  126. }
  127.  
  128. kfree(group_info);
  129.  
  130. return NULL;
  131.  
  132. }
  133.  
  134.  
  135.  
  136. EXPORT_SYMBOL(groups_alloc);
  137.  
  138.  
  139.  
  140. void groups_free(struct group_info *group_info)
  141.  
  142. {
  143.  
  144. if (group_info->blocks[0] != group_info->small_block) {
  145.  
  146. int i;
  147.  
  148. for (i = 0; i < group_info->nblocks; i++)
  149.  
  150. free_page((unsigned long)group_info->blocks[i]);
  151.  
  152. }
  153.  
  154. kfree(group_info);
  155.  
  156. }
  157.  
  158.  
  159.  
  160. EXPORT_SYMBOL(groups_free);
  161.  
  162.  
  163.  
  164. /* export the group_info to a user-space array */
  165.  
  166. static int groups_to_user(gid_t __user *grouplist,
  167.  
  168. const struct group_info *group_info)
  169.  
  170. {
  171.  
  172. int i;
  173.  
  174. unsigned int count = group_info->ngroups;
  175.  
  176.  
  177.  
  178. for (i = 0; i < group_info->nblocks; i++) {
  179.  
  180. unsigned int cp_count = min(NGROUPS_PER_BLOCK, count);
  181.  
  182. unsigned int len = cp_count * sizeof(*grouplist);
  183.  
  184.  
  185.  
  186. if (copy_to_user(grouplist, group_info->blocks[i], len))
  187.  
  188. return -EFAULT;
  189.  
  190.  
  191.  
  192. grouplist += NGROUPS_PER_BLOCK;
  193.  
  194. count -= cp_count;
  195.  
  196. }
  197.  
  198. return 0;
  199.  
  200. }
  201.  
  202.  
  203.  
  204. /* fill a group_info from a user-space array - it must be allocated already */
  205.  
  206. static int groups_from_user(struct group_info *group_info,
  207.  
  208. gid_t __user *grouplist)
  209.  
  210. {
  211.  
  212. int i;
  213.  
  214. unsigned int count = group_info->ngroups;
  215.  
  216.  
  217.  
  218. for (i = 0; i < group_info->nblocks; i++) {
  219.  
  220. unsigned int cp_count = min(NGROUPS_PER_BLOCK, count);
  221.  
  222. unsigned int len = cp_count * sizeof(*grouplist);
  223.  
  224.  
  225.  
  226. if (copy_from_user(group_info->blocks[i], grouplist, len))
  227.  
  228. return -EFAULT;
  229.  
  230.  
  231.  
  232. grouplist += NGROUPS_PER_BLOCK;
  233.  
  234. count -= cp_count;
  235.  
  236. }
  237.  
  238. return 0;
  239.  
  240. }
  241.  
  242.  
  243.  
  244. /* a simple Shell sort */
  245.  
  246. static void groups_sort(struct group_info *group_info)
  247.  
  248. {
  249.  
  250. int base, max, stride;
  251.  
  252. int gidsetsize = group_info->ngroups;
  253.  
  254.  
  255.  
  256. for (stride = 1; stride < gidsetsize; stride = 3 * stride + 1)
  257.  
  258. ; /* nothing */
  259.  
  260. stride /= 3;
  261.  
  262.  
  263.  
  264. while (stride) {
  265.  
  266. max = gidsetsize - stride;
  267.  
  268. for (base = 0; base < max; base++) {
  269.  
  270. int left = base;
  271.  
  272. int right = left + stride;
  273.  
  274. gid_t tmp = GROUP_AT(group_info, right);
  275.  
  276.  
  277.  
  278. while (left >= 0 && GROUP_AT(group_info, left) > tmp) {
  279.  
  280. GROUP_AT(group_info, right) =
  281.  
  282. GROUP_AT(group_info, left);
  283.  
  284. right = left;
  285.  
  286. left -= stride;
  287.  
  288. }
  289.  
  290. GROUP_AT(group_info, right) = tmp;
  291.  
  292. }
  293.  
  294. stride /= 3;
  295.  
  296. }
  297.  
  298. }
  299.  
  300.  
  301.  
  302. /* a simple bsearch */
  303.  
  304. int groups_search(const struct group_info *group_info, gid_t grp)
  305.  
  306. {
  307.  
  308. unsigned int left, right;
  309.  
  310.  
  311.  
  312. if (!group_info)
  313.  
  314. return 0;
  315.  
  316.  
  317.  
  318. left = 0;
  319.  
  320. right = group_info->ngroups;
  321.  
  322. while (left < right) {
  323.  
  324. unsigned int mid = left + (right - left)/2;
  325.  
  326. if (grp > GROUP_AT(group_info, mid))
  327.  
  328. left = mid + 1;
  329.  
  330. else if (grp < GROUP_AT(group_info, mid))
  331.  
  332. right = mid;
  333.  
  334. else
  335.  
  336. return 1;
  337.  
  338. }
  339.  
  340. return 0;
  341.  
  342. }
  343.  
  344.  
  345.  
  346. /**
  347.  
  348. * set_groups - Change a group subscription in a set of credentials
  349.  
  350. * @new: The newly prepared set of credentials to alter
  351.  
  352. * @group_info: The group list to install
  353.  
  354. *
  355.  
  356. * Validate a group subscription and, if valid, insert it into a set
  357.  
  358. * of credentials.
  359.  
  360. */
  361.  
  362. int set_groups(struct cred *new, struct group_info *group_info)
  363.  
  364. {
  365.  
  366. put_group_info(new->group_info);
  367.  
  368. groups_sort(group_info);
  369.  
  370. get_group_info(group_info);
  371.  
  372. new->group_info = group_info;
  373.  
  374. return 0;
  375.  
  376. }
  377.  
  378.  
  379.  
  380. EXPORT_SYMBOL(set_groups);
  381.  
  382.  
  383.  
  384. /**
  385.  
  386. * set_current_groups - Change current's group subscription
  387.  
  388. * @group_info: The group list to impose
  389.  
  390. *
  391.  
  392. * Validate a group subscription and, if valid, impose it upon current's task
  393.  
  394. * security record.
  395.  
  396. */
  397.  
  398. int set_current_groups(struct group_info *group_info)
  399.  
  400. {
  401.  
  402. struct cred *new;
  403.  
  404. int ret;
  405.  
  406.  
  407.  
  408. new = prepare_creds();
  409.  
  410. if (!new)
  411.  
  412. return -ENOMEM;
  413.  
  414.  
  415.  
  416. ret = set_groups(new, group_info);
  417.  
  418. if (ret < 0) {
  419.  
  420. abort_creds(new);
  421.  
  422. return ret;
  423.  
  424. }
  425.  
  426.  
  427.  
  428. return commit_creds(new);
  429.  
  430. }
  431.  
  432.  
  433.  
  434. EXPORT_SYMBOL(set_current_groups);
  435.  
  436.  
  437.  
  438. SYSCALL_DEFINE2(getgroups, int, gidsetsize, gid_t __user *, grouplist)
  439.  
  440. {
  441.  
  442. const struct cred *cred = current_cred();
  443.  
  444. int i;
  445.  
  446.  
  447.  
  448. if (gidsetsize < 0)
  449.  
  450. return -EINVAL;
  451.  
  452.  
  453.  
  454. /* no need to grab task_lock here; it cannot change */
  455.  
  456. i = cred->group_info->ngroups;
  457.  
  458. if (gidsetsize) {
  459.  
  460. if (i > gidsetsize) {
  461.  
  462. i = -EINVAL;
  463.  
  464. goto out;
  465.  
  466. }
  467.  
  468. if (groups_to_user(grouplist, cred->group_info)) {
  469.  
  470. i = -EFAULT;
  471.  
  472. goto out;
  473.  
  474. }
  475.  
  476. }
  477.  
  478. out:
  479.  
  480. return i;
  481.  
  482. }
  483.  
  484.  
  485.  
  486. /*
  487.  
  488. * SMP: Our groups are copy-on-write. We can set them safely
  489.  
  490. * without another task interfering.
  491.  
  492. */
  493.  
  494.  
  495.  
  496. SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist)
  497.  
  498. {
  499.  
  500. struct group_info *group_info;
  501.  
  502. int retval;
  503.  
  504.  
  505.  
  506. if (!nsown_capable(CAP_SETGID))
  507.  
  508. return -EPERM;
  509.  
  510. if ((unsigned)gidsetsize > NGROUPS_MAX)
  511.  
  512. return -EINVAL;
  513.  
  514.  
  515.  
  516. group_info = groups_alloc(gidsetsize);
  517.  
  518. if (!group_info)
  519.  
  520. return -ENOMEM;
  521.  
  522. retval = groups_from_user(group_info, grouplist);
  523.  
  524. if (retval) {
  525.  
  526. put_group_info(group_info);
  527.  
  528. return retval;
  529.  
  530. }
  531.  
  532.  
  533.  
  534. retval = set_current_groups(group_info);
  535.  
  536. put_group_info(group_info);
  537.  
  538.  
  539.  
  540. return retval;
  541.  
  542. }
  543.  
  544.  
  545.  
  546. /*
  547.  
  548. * Check whether we're fsgid/egid or in the supplemental group..
  549.  
  550. */
  551.  
  552. int in_group_p(gid_t grp)
  553.  
  554. {
  555.  
  556. const struct cred *cred = current_cred();
  557.  
  558. int retval = 1;
  559.  
  560.  
  561.  
  562. if (grp != cred->fsgid)
  563.  
  564. retval = groups_search(cred->group_info, grp);
  565.  
  566. return retval;
  567.  
  568. }
  569.  
  570.  
  571.  
  572. EXPORT_SYMBOL(in_group_p);
  573.  
  574.  
  575.  
  576. int in_egroup_p(gid_t grp)
  577.  
  578. {
  579.  
  580. const struct cred *cred = current_cred();
  581.  
  582. int retval = 1;
  583.  
  584.  
  585.  
  586. if (grp != cred->egid)
  587.  
  588. retval = groups_search(cred->group_info, grp);
  589.  
  590. return retval;
  591.  
  592. }
  593.  
  594.  
  595. ]]
  596.  
  597.  
  598.  
  599. game.Lighting.GlobalShadows = false
  600. game.Lighting.Brightness = 0.25
  601.  
  602.  
  603. local function Smooth(Part)
  604. Part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  605. Part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  606. Part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  607. Part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  608. Part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  609. Part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  610. end
  611.  
  612.  
  613. local function SetLine(Line, Alpha, Beta)
  614. local dx = Alpha.Position.X.Scale - Beta.Position.X.Scale
  615. local dy = Alpha.Position.Y.Scale - Beta.Position.Y.Scale
  616. local Magnitude = math.sqrt(dx^2 + dy^2)
  617.  
  618. Line.Size = UDim2.new(Magnitude, 0, 0, 8)
  619. Line.Position = Alpha.Position:Lerp(Beta.Position, 0.5)
  620. Line.Rotation = math.deg(math.atan2(dy, dx))
  621. end
  622.  
  623.  
  624. local Keyboard = Instance.new("Part")
  625. Keyboard.BrickColor = BrickColor.new("Really black")
  626. Keyboard.Material = Enum.Material.Neon
  627. Keyboard.Transparency = 0.1
  628. Keyboard.Size = Vector3.new(5, 0, 2)
  629. Keyboard.CanCollide = false
  630. Keyboard.Locked = true
  631.  
  632. Smooth(Keyboard)
  633.  
  634. local KeyboardWeld = Instance.new("Weld")
  635. KeyboardWeld.Part0 = Torso
  636. KeyboardWeld.Part1 = Keyboard
  637. KeyboardWeld.C0 = CFrame.new(0, 0.2, -2) * CFrame.Angles(0.3, 0, 0)
  638.  
  639. KeyboardWeld.Parent = Keyboard
  640. Keyboard.Parent = Character
  641.  
  642.  
  643. local Light = Instance.new("PointLight")
  644. Light.Brightness = 1.5
  645. Light.Range = 12
  646. Light.Parent = Keyboard
  647.  
  648.  
  649. local Screen = Instance.new("Part")
  650. Screen.BrickColor = BrickColor.new("Really black")
  651. Screen.Material = Enum.Material.Neon
  652. Screen.Transparency = 0.3
  653. Screen.Size = Vector3.new(6, 4, 0)
  654. Screen.CanCollide = false
  655. Screen.Locked = true
  656.  
  657. Smooth(Screen)
  658.  
  659. local ScreenWeld = Instance.new("Weld")
  660. ScreenWeld.Part0 = Torso
  661. ScreenWeld.Part1 = Screen
  662. ScreenWeld.C0 = CFrame.new(0, 3.5, -4.5) * CFrame.Angles(0.1, 0, 0)
  663.  
  664. local Gui = Instance.new("SurfaceGui")
  665. Gui.Face = "Back"
  666. Gui.Adornee = Screen
  667. Gui.Parent = Screen
  668.  
  669. local Text = Instance.new("TextBox")
  670. Text.BackgroundTransparency = 1
  671. Text.Position = UDim2.new(0, 0, 0, 0)
  672. Text.Size = UDim2.new(1, 0, 1, 0)
  673. Text.TextColor3 = Color3.new(1, 1, 1)
  674. Text.Font = Enum.Font.Code
  675. Text.Active = false
  676. Text.MultiLine = true
  677. Text.TextWrapped = true
  678. Text.FontSize = Enum.FontSize.Size32
  679. Text.TextXAlignment = Enum.TextXAlignment.Left
  680. Text.TextYAlignment = Enum.TextYAlignment.Top
  681. Text.Text = ""
  682.  
  683. Text.Parent = Gui
  684.  
  685. ScreenWeld.Parent = Screen
  686. Screen.Parent = Character
  687.  
  688.  
  689.  
  690. local Screen2 = Instance.new("Part")
  691. Screen2.BrickColor = BrickColor.new("Really black")
  692. Screen2.Material = Enum.Material.Neon
  693. Screen2.Transparency = 0.3
  694. Screen2.Size = Vector3.new(6, 4, 0)
  695. Screen2.CanCollide = false
  696. Screen2.Locked = true
  697.  
  698. Smooth(Screen2)
  699.  
  700. local Screen2Weld = Instance.new("Weld")
  701. Screen2Weld.Part0 = Torso
  702. Screen2Weld.Part1 = Screen2
  703. Screen2Weld.C0 = CFrame.new(5.4, 3.4, -1.5) * CFrame.Angles(0.1, -0.9, 0)
  704.  
  705. local Gui2 = Instance.new("SurfaceGui")
  706. Gui2.Face = "Back"
  707. Gui2.Adornee = Screen2
  708. Gui2.Parent = Screen2
  709.  
  710. local Text2 = Instance.new("TextBox")
  711. Text2.BackgroundTransparency = 1
  712. Text2.Position = UDim2.new(0, 0, 0, 0)
  713. Text2.Size = UDim2.new(1, 0, 1, 0)
  714. Text2.TextColor3 = Color3.new(0, 1, 0)
  715. Text2.Font = Enum.Font.Code
  716. Text2.Active = false
  717. Text2.MultiLine = true
  718. Text2.TextWrapped = true
  719. Text2.FontSize = Enum.FontSize.Size32
  720. Text2.TextXAlignment = Enum.TextXAlignment.Left
  721. Text2.TextYAlignment = Enum.TextYAlignment.Top
  722. Text2.Text = ""
  723.  
  724. Text2.Parent = Gui2
  725.  
  726. local ImageKey = Instance.new("ImageLabel")
  727. ImageKey.BackgroundTransparency = 1
  728. ImageKey.Size = UDim2.new(0.2, 0, 0.2, 0)
  729. ImageKey.Position = UDim2.new(0.4, 0, 0.4, 0)
  730. ImageKey.Image = "http://www.roblox.com/asset/?id=697224414"
  731. ImageKey.ImageTransparency = 1
  732. ImageKey.Parent = Gui2
  733.  
  734. Screen2Weld.Parent = Screen2
  735. Screen2.Parent = Character
  736.  
  737.  
  738.  
  739. local Screen3 = Instance.new("Part")
  740. Screen3.BrickColor = BrickColor.new("Really black")
  741. Screen3.Material = Enum.Material.Neon
  742. Screen3.Transparency = 0.3
  743. Screen3.Size = Vector3.new(6, 4, 0)
  744. Screen3.CanCollide = false
  745. Screen3.Locked = true
  746.  
  747. Smooth(Screen3)
  748.  
  749. local Screen3Weld = Instance.new("Weld")
  750. Screen3Weld.Part0 = Torso
  751. Screen3Weld.Part1 = Screen3
  752. Screen3Weld.C0 = CFrame.new(-5.4, 3.4, -1.5) * CFrame.Angles(0.1, 0.9, 0)
  753.  
  754. local Gui3 = Instance.new("SurfaceGui")
  755. Gui3.Face = "Back"
  756. Gui3.Adornee = Screen3
  757. Gui3.Parent = Screen3
  758.  
  759. local Map = Instance.new("ImageLabel")
  760. Map.BackgroundTransparency = 1
  761. Map.Position = UDim2.new(0, 0, 0, 0)
  762. Map.Size = UDim2.new(1, 0, 1, 0)
  763. Map.Image = "http://www.roblox.com/asset/?id=121661614"
  764.  
  765. Map.Parent = Gui3
  766.  
  767. Screen3Weld.Parent = Screen3
  768. Screen3.Parent = Character
  769.  
  770. local Points = {}
  771. local Lines = {}
  772.  
  773. for i = 1, 10 do
  774. if i > 1 then
  775. local Line = Instance.new("Frame")
  776. Line.BorderSizePixel = 0
  777. Line.BackgroundColor3 = Color3.new(0.8, 0, 0)
  778. Line.AnchorPoint = Vector2.new(0.5, 0.5)
  779. Line.Parent = Gui3
  780.  
  781. Lines[i] = Line
  782. end
  783.  
  784. local Point = Instance.new("Frame")
  785. Point.BorderSizePixel = 0
  786. Point.BackgroundColor3 = Color3.new(1, 0, 0)
  787. Point.Size = UDim2.new(0, 40, 0, 40)
  788. Point.Position = UDim2.new(math.random(), 0, math.random(), 0)
  789. Point.AnchorPoint = Vector2.new(0.5, 0.5)
  790. Point.Parent = Gui3
  791.  
  792. Points[i] = {Point = Point, Position = Point.Position}
  793. end
  794.  
  795.  
  796.  
  797.  
  798. UserInputService.InputBegan:Connect(function(Input, Processed)
  799. if Processed then return end
  800.  
  801. if Input.UserInputType == Enum.UserInputType.Keyboard then
  802. local KeyCode = Input.KeyCode
  803.  
  804. if KeyCode == Enum.KeyCode.E then
  805. Typing = not Typing
  806. end
  807. end
  808. end)
  809.  
  810.  
  811.  
  812. RunService.Heartbeat:Connect(function()
  813. local Sine = math.sin(tick() * 8) / 8
  814.  
  815. for Key, Value in next, Points do
  816. Value.Point.Size = UDim2.new(0, 25 + Sine * 40, 0, 25 + Sine * 40)
  817. Value.Point.Position = Value.Point.Position:Lerp(Value.Position, 0.1)
  818.  
  819. if Key > 1 then
  820. SetLine(Lines[Key], Value.Point, Points[1].Point)
  821. end
  822. end
  823.  
  824. if math.random(100) == 1 then
  825. for _, Value in next, Points do
  826. Value.Position = UDim2.new(math.random(), 0, math.random(), 0)
  827. end
  828. end
  829.  
  830. ImageKey.ImageTransparency = math.abs(math.sin(tick()))
  831.  
  832. if Typing then
  833. if math.random(5) == 1 then
  834. local PressSound = Instance.new("Sound")
  835. PressSound.SoundId = "rbxassetid://265970978"
  836. PressSound.Pitch = 0.5 + math.random() / 5
  837. PressSound.Volume = 3
  838. PressSound.Parent = Keyboard
  839. PressSound:Play()
  840.  
  841. game:GetService("Debris"):AddItem(PressSound, 1 / 2)
  842. end
  843.  
  844. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-0.2 + Sine / 4, (math.random() - 0.5) / 2, 0)
  845.  
  846. RightShoulder.C0 = CFrame.new(1, 0.6 + math.random() / 4, -math.random() * 0.7)
  847. * CFrame.Angles(1.5 + Sine * math.random(), -Sine / 4, -(0.5 + 2 * Sine * math.random()))
  848.  
  849. LeftShoulder.C0 = CFrame.new(-1, 0.6 + math.random() / 4, -math.random() * 0.7)
  850. * CFrame.Angles(1.5 - Sine * math.random(), Sine / 4, 0.5 + 2 * Sine * math.random())
  851.  
  852. if math.random(2) == 1 then
  853. if TypingSub < #Argument then
  854. TypingSub = TypingSub + 1
  855. Text.Text = Text.Text..Argument:sub(TypingSub, TypingSub)
  856.  
  857. local nl = Text.Text:find("\n")
  858.  
  859. if nl and #Text.Text > 400 then
  860. Text.Text = Text.Text:sub(nl + 1)
  861. end
  862.  
  863. else
  864. TypingSub = 1
  865. end
  866. end
  867.  
  868. if math.random(3) == 1 then
  869. if TypingSub2 < #Code then
  870. TypingSub2 = TypingSub2 + 1
  871. Text2.Text = Text2.Text..Code:sub(TypingSub2, TypingSub2)
  872.  
  873. local nl = Text2.Text:find("\n")
  874.  
  875. if nl and #Text2.Text > 400 then
  876. Text2.Text = Text2.Text:sub(nl + 1)
  877. end
  878.  
  879. else
  880. TypingSub2 = 1
  881. end
  882. end
  883.  
  884. else
  885. Neck.C0 = CFrame.new(0, 1, 0)
  886.  
  887. RightShoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(1.5, 0, 0)
  888. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(1.5, 0, 0)
  889. end
  890. end)
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916. plr = game.Players.LocalPlayer
  917. mouse = plr:GetMouse()
  918. part = nil
  919. bp = nil
  920. particles = nil
  921. function clerp(a,b,c,d)
  922. for i = 0,d,.01 do
  923. a.CFrame = CFrame.new(b:lerp(c,i))
  924. wait()
  925. end
  926. end
  927. function slerp(a2,b2,c2,d2)
  928. for i2 = 0,d2,.01 do
  929. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  930. wait()
  931. end
  932. end
  933. mouse.KeyDown:connect(function(key)
  934. if key == "e" and plr.Character.Parent == workspace then
  935. plr.Character.Parent = workspace.Camera
  936. plr.Character.Archivable = true
  937. Instance.new("ForceField",plr.Character).Visible = false
  938. for y,t in pairs(plr.Character:GetChildren()) do
  939. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  940. t.Transparency = 1
  941. if t.Name == "Head" and t:FindFirstChild("face") then
  942. t.face.Transparency = 1
  943. end
  944. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  945. t.Handle.Transparency = 1
  946. end
  947. end
  948. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  949. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  950. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  951. if plr.Character.Torso.Anchored == true then
  952. for y,t in pairs(plr.Character:GetChildren()) do
  953. if t:IsA("Part") then
  954. t.Anchored = false
  955. end
  956. end
  957. else
  958. for y,t in pairs(plr.Character:GetChildren()) do
  959. if t:IsA("Part") then
  960. t.Anchored = true
  961. end
  962. end
  963. end
  964. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  965. local clone = part:Clone()
  966. clone.Parent = workspace
  967. clone.Anchored = false
  968. clone:ClearAllChildren()
  969. clone.CanCollide = true
  970. bp.Parent = clone
  971. particles.Parent = clone
  972. if part.Parent:FindFirstChildOfClass("Humanoid") then
  973. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  974. end
  975. part:Destroy()
  976. part = clone
  977. elseif key == "q" and plr.Character.Parent == workspace.Camera and part == nil then
  978. plr.Character.Parent = workspace
  979. plr.Character.Archivable = false
  980. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  981. for y,t in pairs(plr.Character:GetChildren()) do
  982. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  983. t.Transparency = 0
  984. if t.Name == "Head" and t:FindFirstChild("face") then
  985. t.face.Transparency = 0
  986. end
  987. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  988. t.Handle.Transparency = 0
  989. end
  990. end
  991. end
  992. end)
  993. mouse.Button1Down:connect(function()
  994. if plr.Character.Parent == workspace.Camera then
  995. if mouse ~= nil then
  996. if mouse.Target ~= nil then
  997. part = mouse.Target
  998. bp = Instance.new("BodyPosition",part)
  999. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1000. bp.Position = part.Position
  1001. particles = Instance.new("ParticleEmitter",part)
  1002. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  1003. particles.Size = NumberSequence.new(1)
  1004. particles.Texture = "rbxassetid://292289455"
  1005. particles.VelocitySpread = 360
  1006. particles.Speed = NumberRange.new(0)
  1007. particles.RotSpeed = NumberRange.new(0)
  1008. particles.Rotation = NumberRange.new(0)
  1009. particles.Rate = 250
  1010. particles.Lifetime = NumberRange.new(.2,.4)
  1011. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  1012. dwn = true
  1013. end
  1014. end
  1015. while dwn == true do
  1016. wait()
  1017. bp.Position = mouse.hit.p
  1018. if part then
  1019. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1020. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1021. end
  1022. end
  1023. end
  1024. end
  1025. end)
  1026. mouse.Button1Up:connect(function()
  1027. dwn = false
  1028. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  1029. if bp then bp:Destroy() end
  1030. if particles then particles:Destroy() end
  1031. end)
  1032. base = Instance.new("ScreenGui",plr.PlayerGui)
  1033. bbg = Instance.new("BillboardGui",plr.Character.Head)
  1034. bbg.Size = UDim2.new(0,200,0,50)
  1035. bbg.StudsOffset = Vector3.new(0,3,0)
  1036. bbgTl = Instance.new("TextLabel",bbg)
  1037. bbgTl.BackgroundTransparency = 1
  1038. bbgTl.Size = UDim2.new(10,0,1,0)
  1039. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  1040. bbgTl.Font = "Code"
  1041. bbgTl.Text = " "
  1042. bbgTl.TextSize = 25
  1043. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  1044. bbgTl.TextColor3 = Color3.new(0,0,0)
  1045. bbgTl.TextStrokeTransparency = 0
  1046. bbgTl.TextWrapped = true
  1047. plr.Chatted:connect(function(msg)
  1048. bbgTl.Text = msg
  1049. wait(5)
  1050. if bbgTl.Text == msg then
  1051. bbgTl.Text = " "
  1052. end
  1053. end)
  1054. touchCounter = 0
  1055. while wait() do
  1056. if plr.Character.Parent == workspace.Camera then
  1057. local c = plr.Character:Clone()
  1058. c:MakeJoints()
  1059. for y,t in pairs(c:GetChildren()) do
  1060. if t:IsA("Part") then
  1061. t.CanCollide = false
  1062. t.Anchored = true
  1063. t.Transparency = .5
  1064. t.TopSurface = "Smooth"
  1065. t.BottomSurface = "Smooth"
  1066. t.RightSurface = "Smooth"
  1067. t.LeftSurface = "Smooth"
  1068. t.FrontSurface = "Smooth"
  1069. t.BackSurface = "Smooth"
  1070. t.BrickColor = BrickColor.new("Really black")
  1071. if t.Name == "Head" and t:FindFirstChild("face") then
  1072. t.face:Remove()
  1073. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  1074. t.roblox:Remove()
  1075. elseif t.Name == "HumanoidRootPart" then
  1076. t:Remove()
  1077. end
  1078. else
  1079. t:Remove()
  1080. end
  1081. end
  1082. c.Parent = workspace
  1083. game.Debris:AddItem(c,.05)
  1084. end
  1085. end
Add Comment
Please, Sign In to add comment