Meliodas0_0

Noclip Fly [UNDETECTED]

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