Advertisement
jisdfhjdsgf

stfo comp dont use reach

May 13th, 2024
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.99 KB | Gaming | 0 0
  1. -- [[  Reacher MODIFIED v2.0.1 ]]
  2. --This version was modified by LiteralIyMatt (m.#0115)
  3. --Designed for Steal Time From Others & Be The Best by Detourious
  4. --Game can be found at: https://www.roblox.com/games/6361937392/steal-time-from-others-be-the-best
  5. --================================WARNING================================
  6. --THIS SCRIPT IS DESIGNED FOR A VERY NICHE TYPE OF SWORD, THIS WILL CAUSE YOU TO TP AROUND PLAYERS ON MOST SWORDS.
  7. --USE AT YOUR OWN RISK.
  8. --================================WARNING================================
  9. local KEY = Enum.KeyCode
  10. local Settings = {
  11.     Keybinds = {
  12.         ["INCREASE"] = KEY["Q"];
  13.         ["DECREASE"] = KEY["E"];
  14.         ["TOGGLE_REACH"] = KEY["R"];
  15.         ["TOGGLE_VISUALIZER"] = KEY["T"];
  16.         ["TOGGLE_DAMAGE_AMP"] = KEY["X"];
  17.         ["CHECK_SETTINGS"] = KEY["C"];
  18.         ["TOGGLE_NOTIFICATIONS"] = KEY["V"];
  19.         ["TOGGLE_AUTO_CLICKER"] = KEY["B"];
  20.         ["KILL_SCRIPT"] = KEY["Z"];
  21.     };
  22.     Values = { -- Set these to what you want the default values for each to be upon execution
  23.         ["distance"] = 3.5;
  24.         ["enabled"] = true;
  25.         ["notifications"] = true;
  26.         ["visualizer"] = true;
  27.         ["damage_amp"] = true;
  28.         ["auto_clicking"] = true;
  29.         ["cooldown"] = false;
  30.         ["killed"] = true;
  31.     };
  32.     DISTANCE_INCREMENT = 0.5; -- How much will be added/removed upon distance increase/decrease
  33.     COOLDOWN = 0.05; -- How long the cooldown is on regular FTI (NOT FOR DAMAGE AMP)
  34. }
  35.  
  36.  
  37. -- Services
  38. local Players = game:GetService("Players")
  39. local RunService = game:GetService("RunService")
  40. local UserInputService = game:GetService("UserInputService")
  41. local StarterGui = game:GetService("StarterGui")
  42.  
  43. -- Globals
  44. local F = string.format
  45. local Upper = string.upper
  46.  
  47. -- Statics
  48. local SPEED_COLOR = 1
  49. local WHITELIST = {"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg", }
  50.  
  51. -- Non statics
  52. local connections = {}
  53. local instances = {}
  54.  
  55. -- Instances
  56. local localPlayer = Players.LocalPlayer
  57.  
  58. local Notify = function(x)
  59.     if Settings.Values.notifications == true then
  60.         StarterGui:SetCore("SendNotification", {
  61.             Title = " Reach v3.0";
  62.             Text = x;
  63.         })
  64.     end
  65. end
  66.  
  67. connections.InputBegan = UserInputService.InputBegan:Connect(function(INPUT, GPE)
  68.     if GPE then return end
  69.     local KEY = INPUT.KeyCode
  70.     if KEY == Settings.Keybinds.INCREASE then
  71.         Settings.Values.distance = Settings.Values.distance + Settings.DISTANCE_INCREMENT
  72.         Notify(F("Distance: %s", Settings.Values.distance))
  73.     elseif KEY == Settings.Keybinds.DECREASE then
  74.         Settings.Values.distance = Settings.Values.distance - Settings.DISTANCE_INCREMENT
  75.         Notify(F("Distance: %s", Settings.Values.distance))
  76.     elseif KEY == Settings.Keybinds.TOGGLE_REACH then
  77.         Settings.Values.enabled = not Settings.Values.enabled
  78.         Notify(F("Reach: %s", tostring(Settings.Values.enabled)))
  79.     elseif KEY == Settings.Keybinds.TOGGLE_DAMAGE_AMP then
  80.         Settings.Values.damage_amp = not Settings.Values.damage_amp
  81.         Notify(F("Damage Amp: %s", tostring(Settings.Values.damage_amp)))
  82.     elseif KEY == Settings.Keybinds.TOGGLE_VISUALIZER then
  83.         Settings.Values.visualizer = not Settings.Values.visualizer
  84.         Notify(F("Visualizer: %s", tostring(Settings.Values.visualizer)))
  85.     elseif KEY == Settings.Keybinds.TOGGLE_NOTIFICATIONS then
  86.         Settings.Values.notifications = not Settings.Values.notifications
  87.     elseif KEY == Settings.Keybinds.CHECK_SETTINGS then
  88.         local str = F("Distance: %s\nDamage Amp: %s\nCooldown: %s", Settings.Values.distance, tostring(Settings.Values.damage_amp), tostring(Settings.Values.cooldown))
  89.         Notify(str)
  90.     elseif KEY == Settings.Keybinds.TOGGLE_AUTO_CLICKER then
  91.         Settings.Values.auto_clicking = not Settings.Values.auto_clicking
  92.         Notify(F("Auto Clicking: %s", tostring(Settings.Values.auto_clicking)))
  93.     elseif KEY == Settings.Keybinds.KILL_SCRIPT then
  94.         Settings.Values.killed = true
  95.         Notify("DISABLED")
  96.         for _, connection in pairs(connections) do
  97.             pcall(function()
  98.                 connection:Disconnect()
  99.             end)
  100.         end
  101.         for _, part in pairs(instances) do
  102.             part:Destroy()
  103.         end
  104.     end
  105. end)
  106.  
  107. local FireFakes = function(handle, part)
  108.     local region = Region3.new(handle.Position + Vector3.new(-1, -1, -1), handle.Position + Vector3.new(1, 1, 1))
  109.     local objects = game:GetService("Workspace"):FindPartsInRegion3(region)
  110.     for i, instance in pairs(objects) do
  111.         if instance:IsA("Part") and instance:FindFirstChild("TouchTransmitter") and instance.Parent.ClassName ~= "Tool" then
  112.             coroutine.wrap(function()
  113.                 firetouchinterest(part, handle ,0)
  114.                 task.wait()
  115.                 firetouchinterest(part, handle, 1)
  116.             end)()
  117.         end
  118.     end
  119. end
  120.  
  121. local FireTouchInterest = function(handle, part)
  122.     coroutine.wrap(FireFakes)(handle, part)
  123.     coroutine.wrap(function()
  124.         firetouchinterest(part, handle ,0)
  125.         task.wait()
  126.         firetouchinterest(part, handle, 1)
  127.     end)()
  128. end
  129.  
  130. local BindVisualizer = function(obj)
  131.     while obj.Parent == game:GetService("CoreGui") do
  132.         pcall(function()
  133.             local selectionBox = instances["visualizer"]:FindFirstChildOfClass("SelectionBox")
  134.             for i = 0, 1, 0.001 * SPEED_COLOR do
  135.                 selectionBox.Color3 = Color3.fromHSV(i, 1, 1)
  136.                 selectionBox.SurfaceColor3 = Color3.fromHSV(i, 1, 1)
  137.                 task.wait()
  138.             end
  139.         end)
  140.  
  141.         if Settings.Values.killed == true then
  142.             break
  143.         end
  144.         task.wait()
  145.     end
  146. end
  147.  
  148. connections.Heartbeat = RunService.Heartbeat:Connect(function()
  149.     local character = localPlayer.Character
  150.    
  151.     if not character then return end
  152.    
  153.     local sword = character:FindFirstChildOfClass("Tool")
  154.     local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  155.     local humanoid = character:FindFirstChild("Humanoid")
  156.     if Settings.Values.enabled and sword and sword.Handle and humanoidRootPart and humanoid then
  157.         local handle = sword.Handle
  158.        
  159.         if Settings.Values.auto_clicking then
  160.             sword:Activate()
  161.         end
  162.        
  163.         if not instances["visualizer"] and Settings.Values.visualizer == true then
  164.             local part = Instance.new("Part")
  165.             part.Name = "_"
  166.             part.Anchored = false
  167.             part.CanCollide = false
  168.             part.Massless = true
  169.            
  170.             local selectionBox = Instance.new("SelectionBox", part)
  171.             selectionBox.Name = "_"
  172.             selectionBox.Adornee = part
  173.             selectionBox.LineThickness = 0.015
  174.             selectionBox.SurfaceTransparency = 0.5
  175.             selectionBox.Transparency = 0
  176.            
  177.             part.Parent = game:GetService("CoreGui")
  178.             instances["visualizer"] = part
  179.             BindVisualizer(part)
  180.         elseif instances["visualizer"] and Settings.Values.visualizer == false then
  181.             instances["visualizer"]:Destroy()
  182.             instances["visualizer"] = nil
  183.         end
  184.        
  185.         if instances["visualizer"] then
  186.             instances["visualizer"].Size = Vector3.new(Settings.Values.distance * 1.65, 0.55, Settings.Values.distance * 1.65)
  187.             instances["visualizer"].CFrame = humanoidRootPart.CFrame - (humanoidRootPart.CFrame.UpVector * 2.75) + (humanoidRootPart.CFrame.RightVector * 1.5) + (humanoidRootPart.CFrame.LookVector * 1.5)
  188.         end
  189.        
  190.         for i, player in pairs(Players:GetPlayers()) do
  191.             if player ~= localPlayer and player.Character then
  192.                 local targetCharacter = player.Character
  193.                 local targetRoot = targetCharacter:FindFirstChild("HumanoidRootPart")
  194.                 local targetHumanoid = targetCharacter:FindFirstChild("Humanoid")
  195.                 local targetPart
  196.                
  197.                 local chosenIndex = math.random(1, #WHITELIST)
  198.                 local last
  199.                 for i = 1, #WHITELIST do
  200.                     if i == chosenIndex and targetCharacter:FindFirstChild(WHITELIST[i]) then
  201.                         targetPart = targetCharacter:FindFirstChild(WHITELIST[i])
  202.                         if targetPart and targetPart.Transparency <= 0.8 then
  203.                             break
  204.                         else
  205.                             last = nil
  206.                             break
  207.                         end
  208.                     end
  209.                     last = i
  210.                 end
  211.                 if not targetRoot or not targetHumanoid or last == nil then return end
  212.                
  213.                 if (handle.Position - targetRoot.Position).Magnitude <= Settings.Values.distance then
  214.                     if Settings.Values.damage_amp == true then
  215.                         for _,v in pairs({"Right Arm", "Right Arm", "Left Arm", "Torso"}) do
  216.                             local part = targetCharacter:FindFirstChild(v)
  217.                             if part and part.Transparency <= 0.8 and targetHumanoid.Health > 0 then
  218.                                 for i = 1, math.random(1, 2) do
  219.                                     FireTouchInterest(part, handle)
  220.                                 end
  221.                             else
  222.                                 break
  223.                             end
  224.                         end
  225.                     elseif Settings.Values.cooldown == false then
  226.                         Settings.Values.cooldown = true
  227.                         FireTouchInterest(targetPart, handle)
  228.                         task.wait(Settings.COOLDOWN)
  229.                         Settings.Values.cooldown = false
  230.                     end
  231.                 end
  232.             end
  233.         end
  234.     else -- GC instances since everythings disabled
  235.         for i,v in pairs(instances) do
  236.             v:Destroy()
  237.             instances[i] = nil
  238.         end
  239.     end
  240. end)
  241.  
  242. _G.HeadSize = 25
  243. _G.Disabled = true
  244.  
  245. game:GetService('RunService').RenderStepped:connect(function()
  246. if _G.Disabled then
  247. for i,v in next, game:GetService('Players'):GetPlayers() do
  248. if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  249. pcall(function()
  250. v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
  251. v.Character.HumanoidRootPart.Transparency = 1
  252. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
  253. v.Character.HumanoidRootPart.Material = "Neon"
  254. v.Character.HumanoidRootPart.CanCollide = false
  255. end)
  256. end
  257. end
  258. end
  259. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement