reach script roblox! - Pastebin.com (2024)

  1. -- subscribe to Impulse exploits for making the script here is his channel -----> https://youtube.com/c/ImpulseExploits

  2. local active = true

  3. local trueActive = true

  4. local reachType = "Sphere"

  5. local dmgEnabled = true

  6. local visualizerEnabled = false

  7. local visualizer = Instance.new("Part")

  8. visualizer.BrickColor = BrickColor.Blue()

  9. visualizer.Transparency = 0.6

  10. visualizer.Anchored = true

  11. visualizer.CanCollide = false

  12. visualizer.Size = Vector3.new(0.5,0.5,0.5)

  13. visualizer.BottomSurface = Enum.SurfaceType.Smooth

  14. visualizer.TopSurface = Enum.SurfaceType.Smooth

  15. local ScreenGui = Instance.new("ScreenGui")

  16. local Frame = Instance.new("Frame")

  17. local TextLabel = Instance.new("TextLabel")

  18. local TextBox = Instance.new("TextBox")

  19. local TextLabel_2 = Instance.new("TextLabel")

  20. local TextLabel_3 = Instance.new("TextLabel")

  21. local TextLabel_4 = Instance.new("TextLabel")

  22. local TextButton = Instance.new("TextButton")

  23. local Frame_2 = Instance.new("Frame")

  24. local Frame_3 = Instance.new("Frame")

  25. local Frame_4 = Instance.new("Frame")

  26. local Frame_5 = Instance.new("Frame")

  27. local TextButton_2 = Instance.new("TextButton")

  28. --Properties:

  29. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

  30. ScreenGui.DisplayOrder = 999999999

  31. ScreenGui.ResetOnSpawn = false

  32. Frame.Parent = ScreenGui

  33. Frame.AnchorPoint = Vector2.new(0, 0.5)

  34. Frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)

  35. Frame.BackgroundTransparency = 0.300

  36. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)

  37. Frame.BorderSizePixel = 4

  38. Frame.Position = UDim2.new(0, 0, 0.600000024, 0)

  39. Frame.Size = UDim2.new(0.150000006, 0, 0.300000012, 0)

  40. TextLabel.Parent = Frame

  41. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  42. TextLabel.BackgroundTransparency = 1.000

  43. TextLabel.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)

  44. TextLabel.Font = Enum.Font.SourceSans

  45. TextLabel.Text = "Reach:"

  46. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  47. TextLabel.TextScaled = true

  48. TextLabel.TextSize = 14.000

  49. TextLabel.TextWrapped = true

  50. TextBox.Parent = Frame

  51. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  52. TextBox.BackgroundTransparency = 1.000

  53. TextBox.Position = UDim2.new(0.600000024, 0, 0, 0)

  54. TextBox.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)

  55. TextBox.Font = Enum.Font.SourceSans

  56. TextBox.Text = "3.5"

  57. TextBox.TextColor3 = Color3.fromRGB(255, 76, 76)

  58. TextBox.TextScaled = true

  59. TextBox.TextSize = 14.000

  60. TextBox.TextWrapped = true

  61. TextLabel_2.Parent = Frame

  62. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  63. TextLabel_2.BackgroundTransparency = 1.000

  64. TextLabel_2.Position = UDim2.new(0, 0, 0.200000003, 0)

  65. TextLabel_2.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)

  66. TextLabel_2.Font = Enum.Font.SourceSans

  67. TextLabel_2.Text = "Shape:"

  68. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)

  69. TextLabel_2.TextScaled = true

  70. TextLabel_2.TextSize = 14.000

  71. TextLabel_2.TextWrapped = true

  72. TextLabel_3.Parent = Frame

  73. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  74. TextLabel_3.BackgroundTransparency = 1.000

  75. TextLabel_3.Position = UDim2.new(0, 0, 0.400000006, 0)

  76. TextLabel_3.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)

  77. TextLabel_3.Font = Enum.Font.SourceSans

  78. TextLabel_3.Text = "Damage:"

  79. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)

  80. TextLabel_3.TextScaled = true

  81. TextLabel_3.TextSize = 14.000

  82. TextLabel_3.TextWrapped = true

  83. TextLabel_4.Parent = Frame

  84. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  85. TextLabel_4.BackgroundTransparency = 1.000

  86. TextLabel_4.Position = UDim2.new(0, 0, 0.600000024, 0)

  87. TextLabel_4.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)

  88. TextLabel_4.Font = Enum.Font.SourceSans

  89. TextLabel_4.Text = "Visualizer:"

  90. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)

  91. TextLabel_4.TextScaled = true

  92. TextLabel_4.TextSize = 14.000

  93. TextLabel_4.TextWrapped = true

  94. TextButton.Parent = Frame

  95. TextButton.AnchorPoint = Vector2.new(0, 1)

  96. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  97. TextButton.BackgroundTransparency = 1.000

  98. TextButton.Position = UDim2.new(0, 0, 1, 0)

  99. TextButton.Size = UDim2.new(1, 0, 0.150000006, 0)

  100. TextButton.Font = Enum.Font.SourceSansBold

  101. TextButton.Text = "Kill Script"

  102. TextButton.TextColor3 = Color3.fromRGB(222, 0, 0)

  103. TextButton.TextScaled = true

  104. TextButton.TextSize = 14.000

  105. TextButton.TextWrapped = true

  106. Frame_2.Parent = Frame

  107. Frame_2.Active = true

  108. Frame_2.AnchorPoint = Vector2.new(0, 0.5)

  109. Frame_2.BackgroundColor3 = Color3.fromRGB(31, 31, 31)

  110. Frame_2.BorderSizePixel = 0

  111. Frame_2.Position = UDim2.new(0.725000024, 0, 0.699999988, 0)

  112. Frame_2.Size = UDim2.new(0, 25, 0, 25)

  113. Frame_2.ZIndex = 5

  114. Frame_3.Parent = Frame_2

  115. Frame_3.AnchorPoint = Vector2.new(0.5, 0.5)

  116. Frame_3.BackgroundColor3 = Color3.fromRGB(255, 76, 76)

  117. Frame_3.BorderSizePixel = 0

  118. Frame_3.LayoutOrder = 1

  119. Frame_3.Position = UDim2.new(0.5, 0, 0.5, 0)

  120. Frame_4.Parent = Frame

  121. Frame_4.Active = true

  122. Frame_4.AnchorPoint = Vector2.new(0, 0.5)

  123. Frame_4.BackgroundColor3 = Color3.fromRGB(31, 31, 31)

  124. Frame_4.BorderSizePixel = 0

  125. Frame_4.Position = UDim2.new(0.725000024, 0, 0.5, 0)

  126. Frame_4.Size = UDim2.new(0, 25, 0, 25)

  127. Frame_4.ZIndex = 5

  128. Frame_5.Parent = Frame_4

  129. Frame_5.AnchorPoint = Vector2.new(0.5, 0.5)

  130. Frame_5.BackgroundColor3 = Color3.fromRGB(255, 76, 76)

  131. Frame_5.BorderSizePixel = 0

  132. Frame_5.LayoutOrder = 1

  133. Frame_5.Position = UDim2.new(0.5, 0, 0.5, 0)

  134. Frame_5.Size = UDim2.new(1, 0, 1, 0)

  135. TextButton_2.Parent = Frame

  136. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  137. TextButton_2.BackgroundTransparency = 1.000

  138. TextButton_2.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)

  139. TextButton_2.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)

  140. TextButton_2.Font = Enum.Font.SourceSans

  141. TextButton_2.Text = "Sphere"

  142. TextButton_2.TextColor3 = Color3.fromRGB(255, 76, 76)

  143. TextButton_2.TextScaled = true

  144. TextButton_2.TextSize = 14.000

  145. TextButton_2.TextWrapped = true

  146. repeat wait() until game.Players.LocalPlayer

  147. ScreenGui.Parent = game:GetService("CoreGui")

  148. Frame_4.InputBegan:connect(function(inp)

  149. if inp.UserInputType == Enum.UserInputType.MouseButton1 then

  150. dmgEnabled = not dmgEnabled

  151. local goal = {Size = UDim2.new(0,0,0,0)}

  152. if dmgEnabled then

  153. goal = {Size = UDim2.new(1,0,1,0)}

  154. end

  155. game:GetService("TweenService"):Create(Frame_5,TweenInfo.new(0.12,Enum.EasingStyle.Quad),goal):Play()

  156. end

  157. end)

  158. Frame_2.InputBegan:connect(function(inp)

  159. if inp.UserInputType == Enum.UserInputType.MouseButton1 then

  160. visualizerEnabled = not visualizerEnabled

  161. local goal = {Size = UDim2.new(0,0,0,0)}

  162. if visualizerEnabled then

  163. goal = {Size = UDim2.new(1,0,1,0)}

  164. end

  165. game:GetService("TweenService"):Create(Frame_3,TweenInfo.new(0.12,Enum.EasingStyle.Linear),goal):Play()

  166. end

  167. end)

  168. TextButton_2.MouseButton1Click:connect(function()

  169. if reachType == "Sphere" then

  170. reachType = "Line"

  171. else

  172. reachType = "Sphere"

  173. end

  174. TextButton_2.Text = reachType

  175. end)

  176. TextButton.MouseButton1Click:connect(function()

  177. trueActive = false

  178. ScreenGui:Destroy()

  179. end)

  180. game:GetService("UserInputService").InputBegan:connect(function(inp,gpe)

  181. if gpe then return end

  182. if inp.KeyCode == Enum.KeyCode.H then

  183. ScreenGui.Enabled = not ScreenGui.Enabled

  184. end

  185. end)

  186. local plr = game.Players.LocalPlayer

  187. local function onHit(hit,handle)

  188. local victim = hit.Parent:FindFirstChildOfClass("Humanoid")

  189. if victim and victim.Parent.Name ~= game.Players.LocalPlayer.Name then

  190. if dmgEnabled then

  191. for _,v in pairs(hit.Parent:GetChildren()) do

  192. if v:IsA("Part") then

  193. firetouchinterest(v,handle,0)

  194. firetouchinterest(v,handle,1)

  195. end

  196. end

  197. else

  198. firetouchinterest(hit,handle,0)

  199. firetouchinterest(hit,handle,1)

  200. end

  201. end

  202. end

  203. local function getWhiteList()

  204. local wl = {}

  205. for _,v in pairs(game.Players:GetPlayers()) do

  206. if v ~= plr then

  207. local char = v.Character

  208. if char then

  209. for _,q in pairs(char:GetChildren()) do

  210. if q:IsA("Part") then

  211. table.insert(wl,q)

  212. end

  213. end

  214. end

  215. end

  216. end

  217. return wl

  218. end

  219. game:GetService("RunService").RenderStepped:connect(function()

  220. if not active or not trueActive then return end

  221. local s = plr.Character and plr.Character:FindFirstChildOfClass("Tool")

  222. if not s then visualizer.Parent = nil end

  223. if s then

  224. local handle = s:FindFirstChild("Handle") or s:FindFirstChildOfClass("Part")

  225. if handle then

  226. if visualizerEnabled then

  227. visualizer.Parent = workspace

  228. else

  229. visualizer.Parent = nil

  230. end

  231. local reach = tonumber(TextBox.Text)

  232. if reach then

  233. if reachType == "Sphere" then

  234. visualizer.Shape = Enum.PartType.Ball

  235. visualizer.Size = Vector3.new(reach,reach,reach)

  236. visualizer.CFrame = handle.CFrame

  237. for _,v in pairs(game.Players:GetPlayers()) do

  238. local hrp = v.Character and v.Character:FindFirstChild("HumanoidRootPart")

  239. if hrp and handle then

  240. local mag = (hrp.Position-handle.Position).magnitude

  241. if mag <= reach then

  242. onHit(hrp,handle)

  243. end

  244. end

  245. end

  246. elseif reachType == "Line" then

  247. local origin = (handle.CFrame*CFrame.new(0,0,-2)).p

  248. local ray = Ray.new(origin,handle.CFrame.lookVector*-reach)

  249. local p,pos = workspace:FindPartOnRayWithWhitelist(ray,getWhiteList())

  250. visualizer.Shape = Enum.PartType.Block

  251. visualizer.Size = Vector3.new(1,0.8,reach)

  252. visualizer.CFrame = handle.CFrame*CFrame.new(0,0,(reach/2)+2)

  253. if p then

  254. onHit(p,handle)

  255. else

  256. for _,v in pairs(handle:GetTouchingParts()) do

  257. onHit(v,handle)

  258. end

  259. end

  260. end

  261. end

  262. end

  263. end

  264. end)

reach script roblox! - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 5650

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.