Advertisement
asher17

steal time from others and be the best reach script

Oct 19th, 2021
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. mt = getrawmetatable(game)
  2. oldIndex = mt.__index
  3. setreadonly(mt, false)
  4.  
  5. mt.__index = function(a,b)
  6. if a == "Weld" or b == "Weld" then
  7. return "Part"
  8. end
  9. return oldIndex(a,b)
  10. end
  11.  
  12.  
  13.  
  14. local Player = game.Players.LocalPlayer
  15. local Char = Player.Character
  16. local KeyBindHigh = "q"
  17. local IncreaseAmmount = 1
  18. local KeyBindLow = "e"
  19. local settings = {repeatamount = 2} -- Best to keep it at 2 so it doesnt cause lag or FPS drops
  20. _G.Dist = 10
  21. _G.SphereActivated = true --// If set to true it'll
  22. setsimulationradius(math.huge,math.huge)
  23.  
  24.  
  25. game:GetService("RunService").Stepped:Connect(function()
  26. local Player = game.Players.LocalPlayer
  27. local Char = Player.Character
  28. pcall(function()
  29. for i,v in pairs(game.Players:GetPlayers()) do
  30. if v ~= Player then
  31. if v.Character.Humanoid.Health ~= 0 then
  32. if (v.Character.HumanoidRootPart.Position - Char.HumanoidRootPart.Position).Magnitude <= _G.Dist then
  33. for _,x in pairs(v.Character:GetChildren()) do
  34. if x:IsA("Part") then
  35. for i = 1,settings.repeatamount do
  36. firetouchinterest(Char:FindFirstChildOfClass("Tool").Handle, x, 0)
  37. firetouchinterest(Char:FindFirstChildOfClass("Tool").Handle, x, 1)
  38. end
  39. end
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end)
  46. end)
  47.  
  48.  
  49.  
  50. Player:GetMouse().KeyDown:Connect(function(Key)
  51. if Key == KeyBindHigh then
  52. _G.Dist = _G.Dist + IncreaseAmmount
  53. game.StarterGui:SetCore("SendNotification", {
  54. Title = "TIM";
  55. Text = "tims hotness set to " .. _G.Dist;
  56. Icon = "";
  57. Duration = 1;})
  58. end
  59. if Key == KeyBindLow then
  60. _G.Dist = _G.Dist - IncreaseAmmount
  61. game.StarterGui:SetCore("SendNotification", {
  62. Title = "TIM";
  63. Text = "tims hotness set to " .. _G.Dist;
  64. Icon = "";
  65. Duration = 1;})
  66. end
  67. end)
  68.  
  69.  
  70.  
  71. if _G.SphereActivated then
  72. function Update()
  73. game.Players.LocalPlayer.Character.ChildAdded:Connect(function(tool)
  74. if tool:FindFirstChild("Handle") then
  75. Part = Instance.new("Part")
  76. Weld = Instance.new("Weld", workspace)
  77. Part.Parent = workspace
  78. Part.Transparency = 1
  79. Part.CanCollide = false
  80. Sphere = Instance.new("SelectionSphere",game:GetService("CoreGui").RobloxGui.Modules)
  81. Sphere.Transparency = 1
  82. Sphere.Name = "Sphere"
  83. Sphere.SurfaceTransparency = .5
  84. Sphere.Adornee = Part
  85. Part.Massless = true
  86. Part.Position = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Handle.Position
  87. Weld.Part0 = Part
  88. Weld.Part1 = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Handle
  89. game:GetService("RunService").Stepped:Connect(function()
  90. Part.Size = Vector3.new(_G.Dist,_G.Dist,_G.Dist)
  91. end)
  92. end
  93. end)
  94. end
  95. function UnEquip()
  96. game.Players.LocalPlayer.Character.ChildRemoved:Connect(function(int)
  97. if int:FindFirstChild("Handle") then
  98. for i,v in pairs(game:GetService("CoreGui").RobloxGui.Modules:GetDescendants()) do
  99. if v.Name == 'Sphere' then
  100. v:Destroy()
  101. end
  102. end
  103. end
  104. end)
  105. end
  106.  
  107.  
  108.  
  109. Update()
  110. UnEquip()
  111.  
  112. game.Players.LocalPlayer.CharacterAdded:Connect(Update)
  113. game.Players.LocalPlayer.CharacterAdded:Connect(UnEquip)
  114. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement