zachhy

mouse fly

Jul 13th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. if not bind then loadstring(game:HttpGet'https://ic3w0lf.xyz/cloud/t/ABBVe6rcECIP1Aw04mm')(); end
  2. if not input then loadstring(game:HttpGet'https://ic3w0lf.xyz/cloud/t/FKyC0IcUfeS1TR')(); end
  3.  
  4. local player = game:GetService'Players'.LocalPlayer;
  5. local mouse = player:GetMouse();
  6. local camera = workspace.CurrentCamera;
  7. local runservice = game:GetService'RunService';
  8. local uis = game:GetService'UserInputService';
  9.  
  10. local fly = true;
  11. local lsf = 0;
  12. local flySpeed = 50;
  13. local maxSpeed = 2060;
  14. local disp;
  15.  
  16. local gayGames = {
  17. 3016661674; -- rogue lineage checks falling humanoid state lmao
  18. 3541987450; -- rogue lineage uber world
  19. };
  20.  
  21. for i, v in ipairs(gayGames) do
  22. gayGames[v] = true;
  23. gayGames[i] = false;
  24. end
  25.  
  26. local gay = gayGames[game.PlaceId];
  27.  
  28. shared.sfls = script;
  29.  
  30. if Drawing then
  31. disp = shared.fdisp or Drawing.new'Text';
  32. disp.Text = 'FlySpeed: ' .. flySpeed;
  33. disp.Size = 18;
  34. disp.Center = false;
  35. disp.Outline = true;
  36. disp.Visible = true;
  37. disp.Color = Color3.new(1, 1, 1);
  38. disp.Position = Vector2.new(150, 7);
  39.  
  40. shared.fdisp = disp;
  41. end
  42.  
  43. function IsInZone(Object1, Object2, YCheck) -- broken 2 lazy 2 fix
  44. if (typeof(Object1) ~= 'Instance' and typeof(Object1) ~= 'table') or (typeof(Object2) ~= 'Instance' and typeof(Object2) ~= 'table') then return 'NIGGER'; end
  45. if YCheck ~= nil and typeof(YCheck) ~= 'boolean' then return end
  46.  
  47. YCheck = (YCheck ~= nil and YCheck or false);
  48.  
  49. local RYCheck = true;
  50.  
  51. local Object = Object1;
  52.  
  53. local Positive = (Object2.CFrame * CFrame.new(Object2.Size.X / 2, Object2.Size.Y / 2, Object2.Size.Z / 2));
  54. local Negative = (Object2.CFrame * CFrame.new(-Object2.Size.X / 2, -Object2.Size.Y / 2, -Object2.Size.Z / 2));
  55.  
  56. if YCheck then
  57. RYCheck = (YCheck == true and
  58. (Object.Position.Y > Positive.Y) and
  59. (Object.Position.Y < Negative.Y));
  60. end
  61.  
  62. -- print(1, (Object.Position.X < Positive.X), Object.Position.X, Positive.X)
  63. -- print(2, (Object.Position.X > Negative.X), Object.Position.X, Negative.X)
  64. -- print(3, (Object.Position.Z > Positive.Z), Object.Position.Z, Positive.Z)
  65. -- print(4, (Object.Position.Z < Negative.Z), Object.Position.Z, Negative.Z)
  66. -- print(5, RYCheck);
  67.  
  68. return (Object.Position.X < Positive.X) and
  69. (Object.Position.X > Negative.X) and
  70. (Object.Position.Z > Positive.Z) and
  71. (Object.Position.Z < Negative.Z) and
  72. (RYCheck);
  73. end
  74.  
  75. function GetIndex(Table, Value)
  76. for i, v in pairs(Table) do
  77. if v == Value then
  78. return i;
  79. end
  80. end
  81.  
  82. return -1;
  83. end
  84.  
  85. local PartIgnore = {};
  86.  
  87. function DisableClip(Part)
  88. if Part:IsA'BasePart' and Part.CanCollide then
  89. local Start = tick();
  90. local OldTransparency = Part.Transparency;
  91.  
  92. table.insert(PartIgnore, Part);
  93.  
  94. while tick() - Start < 300 and player.Character and player.Character:FindFirstChild'HumanoidRootPart' and not input.down.f4 do
  95. -- if tick() - Start > 1 and not IsInZone(player.Character.HumanoidRootPart, Part, true) and not IsInZone({Position = camera.CFrame.p}, Part, true) then
  96. -- break;
  97. -- end
  98. if not input.down.leftshift and not input.down.space then
  99. break;
  100. end
  101.  
  102. Part.CanCollide = false;
  103. -- if not gay then Part.Transparency = 0.75; end
  104. Part.Transparency = 0.75;
  105.  
  106. wait(1 / 8);
  107. end
  108.  
  109. table.remove(PartIgnore, GetIndex(PartIgnore, Part));
  110.  
  111. Part.Transparency = OldTransparency;
  112. Part.CanCollide = true;
  113. end
  114. end
  115.  
  116. local lastDC = 0;
  117.  
  118. function UpdateUI()
  119. if disp then -- too lazy to make a loop or some bullshit to update this text so i just made it update in here.
  120. if tick() - lsf < 2.5 then
  121. disp.Text = 'Fly ' .. (fly and 'On' or 'Off');
  122. else
  123. disp.Text = 'FlySpeed: ' .. flySpeed;
  124. end
  125. disp.Position = Vector2.new(150, tick() - lastDC < 5 and 7 or -100);
  126. end
  127. end
  128.  
  129. uis.InputChanged:Connect(function(Input)
  130. if script ~= shared.sfls then return; end
  131.  
  132. if Input.UserInputType == Enum.UserInputType.MouseWheel then
  133. if input.down.leftcontrol then
  134. local inc = Input.Position.Z > 0 and 25 or -25;
  135.  
  136. flySpeed = math.clamp(flySpeed + (inc * (input.down.leftshift and 2 or 1)), 0, maxSpeed);
  137. lastDC = tick();
  138. end
  139. end
  140.  
  141. UpdateUI();
  142. end);
  143.  
  144. bind('f', function()
  145. if input.down.leftcontrol then
  146. fly = not fly;
  147. lastDC = tick();
  148. lsf = tick();
  149. UpdateUI();
  150. end
  151. end)
  152.  
  153. local lastSpace = 0;
  154.  
  155. bind_first('space', function()
  156. if fly and tick() - lastSpace < 0.3 and player.Character and player.Character:FindFirstChild'HumanoidRootPart' and player.Character:FindFirstChildOfClass'Humanoid' then
  157. local root = player.Character.HumanoidRootPart;
  158. local hum = player.Character:FindFirstChildOfClass'Humanoid';
  159.  
  160. while input.down.space and fly do
  161. if not gay then hum.PlatformStand = true; end
  162. local start = mouse.Hit.p;
  163. local dir = (start - camera.CFrame.p);
  164.  
  165. root.Velocity = dir.unit * (math.random((flySpeed - 1) * 1000, (flySpeed + 2.5) * 1000) / 1000); -- adds random speed so the velocity doesn't always measure to a certain amount (prevents detection)
  166.  
  167. local ray = Ray.new(root.Position, dir.unit * 50);
  168. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, {player.Character, camera, unpack(PartIgnore)});
  169.  
  170. if hit and input.down.leftshift then
  171. spawn(function() DisableClip(hit); end);
  172. end
  173.  
  174. runservice.RenderStepped:wait();
  175. end
  176.  
  177. if not gay then
  178. hum.PlatformStand = false;
  179. root.Velocity = Vector3.new();
  180. hum:SetStateEnabled(0, false);
  181. end
  182. end
  183.  
  184. lastSpace = tick();
  185. end)
Add Comment
Please, Sign In to add comment