Advertisement
xenirium

Roblox OP Sword Reach

Nov 9th, 2021
9,478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.03 KB | None | 0 0
  1. local active = true
  2. local trueActive = true
  3. local dmgEnabled = true
  4. local visualizerEnabled = false
  5. local reachType = "Sphere"
  6. local reach = 3.2
  7.  
  8. local visualizer = Instance.new("Part")
  9. visualizer.BrickColor = BrickColor.Blue()
  10. visualizer.Transparency = 0.3
  11. visualizer.Anchored = true
  12. visualizer.CanCollide = false
  13. visualizer.Size = Vector3.new(0.5,0.5,0.5)
  14. visualizer.BottomSurface = Enum.SurfaceType.Smooth
  15. visualizer.TopSurface = Enum.SurfaceType.Smooth
  16. visualizer.Material = Enum.Material.ForceField
  17.  
  18. local visualizer2 = Instance.new("Part")
  19. visualizer2.Color = Color3.fromRGB(255, 255, 255)
  20. visualizer2.Transparency = 1
  21. visualizer2.Anchored = true
  22. visualizer2.CanCollide = false
  23. visualizer2.Size = Vector3.new(4, 0.05, 4)
  24. visualizer2.BottomSurface = Enum.SurfaceType.Smooth
  25. visualizer2.TopSurface = Enum.SurfaceType.Smooth
  26.  
  27. local selectionbox = Instance.new("SelectionBox")
  28. selectionbox.Parent = visualizer2
  29. selectionbox.Adornee = visualizer2
  30. selectionbox.Color3 = Color3.fromRGB(255, 255, 255)
  31. selectionbox.SurfaceColor3 = Color3.fromRGB(255, 255, 255)
  32. selectionbox.Transparency = 0
  33. selectionbox.SurfaceTransparency = 0.9
  34. selectionbox.Visible = true
  35.  
  36.  
  37. local ProjectSFF = Instance.new("ScreenGui")
  38. local main = Instance.new("Frame")
  39. local Title = Instance.new("TextLabel")
  40. local Line = Instance.new("TextLabel")
  41. local E = Instance.new("TextLabel")
  42. local Etext = Instance.new("TextLabel")
  43. local Q = Instance.new("TextLabel")
  44. local Qtext = Instance.new("TextLabel")
  45. local R = Instance.new("TextLabel")
  46. local Rtext = Instance.new("TextLabel")
  47. local T = Instance.new("TextLabel")
  48. local Ttext = Instance.new("TextLabel")
  49. local main2 = Instance.new("Frame")
  50. local TextBox = Instance.new("TextBox")
  51. local TextButton = Instance.new("TextButton")
  52. local Custom = Instance.new("TextLabel")
  53. local F = Instance.new("TextLabel")
  54. local Ftext = Instance.new("TextLabel")
  55. local Line2 = Instance.new("TextLabel")
  56.  
  57.  
  58.  
  59. ProjectSFF.Name = "Project SFF"
  60. ProjectSFF.Parent = game.CoreGui
  61. ProjectSFF.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  62.  
  63. main.Name = "main"
  64. main.Parent = ProjectSFF
  65. main.Active = true
  66. main.BackgroundColor3 = Color3.fromRGB(37, 36, 40)
  67. main.BackgroundTransparency = 0.200
  68. main.Draggable = true
  69. main.Position = UDim2.new(0.346640825, -52, 0.354844391, -78)
  70. main.Size = UDim2.new(0, 519, 0, 312)
  71. main.Visible = false
  72.  
  73. Title.Name = "Title"
  74. Title.Parent = main
  75. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  76. Title.BackgroundTransparency = 1.000
  77. Title.BorderSizePixel = 0
  78. Title.Size = UDim2.new(0, 519, 0, 50)
  79. Title.Font = Enum.Font.SciFi
  80. Title.Text = "Woot Reach"
  81. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. Title.TextSize = 50.000
  83.  
  84. Line.Name = "Line"
  85. Line.Parent = main
  86. Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Line.BackgroundTransparency = 1.000
  88. Line.BorderSizePixel = 0
  89. Line.Position = UDim2.new(0, 0, 0.160256416, 0)
  90. Line.Size = UDim2.new(0, 519, 0, 7)
  91. Line.Font = Enum.Font.SciFi
  92. Line.Text = "-------------------------------------"
  93. Line.TextColor3 = Color3.fromRGB(255, 255, 255)
  94. Line.TextSize = 50.000
  95.  
  96. E.Name = "E "
  97. E.Parent = main
  98. E.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  99. E.BackgroundTransparency = 1.000
  100. E.BorderSizePixel = 0
  101. E.Position = UDim2.new(0, 0, 0.205128208, 0)
  102. E.Size = UDim2.new(0, 53, 0, 50)
  103. E.Font = Enum.Font.SciFi
  104. E.Text = "E"
  105. E.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. E.TextSize = 50.000
  107.  
  108. Etext.Name = "E text"
  109. Etext.Parent = main
  110. Etext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  111. Etext.BackgroundTransparency = 1.000
  112. Etext.BorderSizePixel = 0
  113. Etext.Position = UDim2.new(0.294797689, 0, 0.205128208, 0)
  114. Etext.Size = UDim2.new(0, 210, 0, 50)
  115. Etext.Font = Enum.Font.SciFi
  116. Etext.Text = "Activate reach"
  117. Etext.TextColor3 = Color3.fromRGB(255, 255, 255)
  118. Etext.TextSize = 25.000
  119.  
  120. Q.Name = "Q"
  121. Q.Parent = main
  122. Q.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123. Q.BackgroundTransparency = 1.000
  124. Q.BorderSizePixel = 0
  125. Q.Position = UDim2.new(0, 0, 0.365384638, 0)
  126. Q.Size = UDim2.new(0, 53, 0, 50)
  127. Q.Font = Enum.Font.SciFi
  128. Q.Text = "Q"
  129. Q.TextColor3 = Color3.fromRGB(255, 255, 255)
  130. Q.TextSize = 50.000
  131.  
  132. Qtext.Name = "Q text"
  133. Qtext.Parent = main
  134. Qtext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. Qtext.BackgroundTransparency = 1.000
  136. Qtext.BorderSizePixel = 0
  137. Qtext.Position = UDim2.new(0.321772635, 0, 0.365384638, 0)
  138. Qtext.Size = UDim2.new(0, 210, 0, 50)
  139. Qtext.Font = Enum.Font.SciFi
  140. Qtext.Text = "Deactivate reach"
  141. Qtext.TextColor3 = Color3.fromRGB(255, 255, 255)
  142. Qtext.TextSize = 25.000
  143.  
  144. R.Name = "R"
  145. R.Parent = main
  146. R.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  147. R.BackgroundTransparency = 1.000
  148. R.BorderSizePixel = 0
  149. R.Position = UDim2.new(0, 0, 0.525641084, 0)
  150. R.Size = UDim2.new(0, 53, 0, 50)
  151. R.Font = Enum.Font.SciFi
  152. R.Text = "R"
  153. R.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. R.TextSize = 50.000
  155.  
  156. Rtext.Name = "R text"
  157. Rtext.Parent = main
  158. Rtext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  159. Rtext.BackgroundTransparency = 1.000
  160. Rtext.BorderSizePixel = 0
  161. Rtext.Position = UDim2.new(0.296724468, 0, 0.525641084, 0)
  162. Rtext.Size = UDim2.new(0, 210, 0, 50)
  163. Rtext.Font = Enum.Font.SciFi
  164. Rtext.Text = "Increase range (+0.5)"
  165. Rtext.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. Rtext.TextSize = 25.000
  167.  
  168. T.Name = "T"
  169. T.Parent = main
  170. T.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  171. T.BackgroundTransparency = 1.000
  172. T.BorderSizePixel = 0
  173. T.Position = UDim2.new(0, 0, 0.68589747, 0)
  174. T.Size = UDim2.new(0, 53, 0, 50)
  175. T.Font = Enum.Font.SciFi
  176. T.Text = "T"
  177. T.TextColor3 = Color3.fromRGB(255, 255, 255)
  178. T.TextSize = 50.000
  179.  
  180. Ttext.Name = "T text"
  181. Ttext.Parent = main
  182. Ttext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. Ttext.BackgroundTransparency = 1.000
  184. Ttext.BorderSizePixel = 0
  185. Ttext.Position = UDim2.new(0.296724468, 0, 0.68589747, 0)
  186. Ttext.Size = UDim2.new(0, 210, 0, 50)
  187. Ttext.Font = Enum.Font.SciFi
  188. Ttext.Text = "Decrease range (-0.5)"
  189. Ttext.TextColor3 = Color3.fromRGB(255, 255, 255)
  190. Ttext.TextSize = 25.000
  191.  
  192. main2.Name = "main2"
  193. main2.Parent = main
  194. main2.BackgroundColor3 = Color3.fromRGB(37, 36, 40)
  195. main2.BackgroundTransparency = 0.200
  196. main2.Position = UDim2.new(-0.000179930226, 0, 0.999075055, 0)
  197. main2.Size = UDim2.new(0, 519, 0, 65)
  198.  
  199. TextBox.Parent = main2
  200. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. TextBox.BackgroundTransparency = 0.500
  202. TextBox.Position = UDim2.new(0.308003008, 0, 0.127493978, 0)
  203. TextBox.Size = UDim2.new(0, 200, 0, 42)
  204. TextBox.Font = Enum.Font.SciFi
  205. TextBox.Text = ""
  206. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  207. TextBox.TextSize = 25.000
  208.  
  209. TextButton.Parent = main2
  210. TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  211. TextButton.BackgroundTransparency = 0.700
  212. TextButton.Position = UDim2.new(0.715201735, 0, 0.127205133, 0)
  213. TextButton.Size = UDim2.new(0, 47, 0, 42)
  214. TextButton.Font = Enum.Font.SciFi
  215. TextButton.Text = "Apply"
  216. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  217. TextButton.TextSize = 18.000
  218.  
  219. Custom.Name = "Custom"
  220. Custom.Parent = main2
  221. Custom.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  222. Custom.BackgroundTransparency = 1.000
  223. Custom.BorderSizePixel = 0
  224. Custom.Position = UDim2.new(0.0327553004, 0, 0.11474359, 0)
  225. Custom.Size = UDim2.new(0, 125, 0, 50)
  226. Custom.Font = Enum.Font.SciFi
  227. Custom.Text = "Custom Range"
  228. Custom.TextColor3 = Color3.fromRGB(255, 255, 255)
  229. Custom.TextSize = 25.000
  230.  
  231. F.Name = "F"
  232. F.Parent = main
  233. F.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  234. F.BackgroundTransparency = 1.000
  235. F.BorderSizePixel = 0
  236. F.Position = UDim2.new(0, 0, 0.836538494, 0)
  237. F.Size = UDim2.new(0, 53, 0, 50)
  238. F.Font = Enum.Font.SciFi
  239. F.Text = "F"
  240. F.TextColor3 = Color3.fromRGB(255, 255, 255)
  241. F.TextSize = 50.000
  242.  
  243. Ftext.Name = "F text"
  244. Ftext.Parent = main
  245. Ftext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  246. Ftext.BackgroundTransparency = 1.000
  247. Ftext.BorderSizePixel = 0
  248. Ftext.Position = UDim2.new(0.296724468, 0, 0.836538494, 0)
  249. Ftext.Size = UDim2.new(0, 210, 0, 50)
  250. Ftext.Font = Enum.Font.SciFi
  251. Ftext.Text = "Hide/Show hitboxes"
  252. Ftext.TextColor3 = Color3.fromRGB(255, 255, 255)
  253. Ftext.TextSize = 25.000
  254.  
  255. Line2.Name = "Line2"
  256. Line2.Parent = main
  257. Line2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  258. Line2.BackgroundTransparency = 1.000
  259. Line2.BorderSizePixel = 0
  260. Line2.Position = UDim2.new(-0.00385356462, 0, 0.974359035, 0)
  261. Line2.Size = UDim2.new(0, 519, 0, 7)
  262. Line2.Font = Enum.Font.SciFi
  263. Line2.Text = "-------------------------------------"
  264. Line2.TextColor3 = Color3.fromRGB(255, 255, 255)
  265. Line2.TextSize = 50.000
  266.  
  267. repeat wait() until game.Players.LocalPlayer
  268.  
  269.  
  270.  
  271. game:GetService("StarterGui"):SetCore("SendNotification", {
  272. Title = "Woot Reach Loaded!";
  273. Text = "Press X to view controls";
  274. Icon = "";
  275. Duration = 8;
  276. })
  277.  
  278. local mouse = game.Players.LocalPlayer:GetMouse()
  279.  
  280. bindx = "x"
  281. mouse.KeyDown:connect(function(keyx)
  282. if keyx == bindx then
  283. if main.Visible == false then
  284. main.Visible = true
  285. elseif main.Visible == true then
  286. main.Visible = false
  287. end
  288. end
  289. end)
  290.  
  291. binde = "e"
  292. mouse.KeyDown:connect(function(keye)
  293. if keye == binde then
  294. dmgEnabled = true
  295. visualizerEnabled = true
  296. end
  297. end)
  298.  
  299. bindq = "q"
  300. mouse.KeyDown:connect(function(keyq)
  301. if keyq == bindq then
  302. dmgEnabled = false
  303. visualizerEnabled = false
  304. end
  305. end)
  306.  
  307. bindf = "f"
  308. mouse.KeyDown:connect(function(keyf)
  309. if keyf == bindf then
  310. visualizerEnabled = not visualizerEnabled
  311. end
  312. end)
  313.  
  314. local plr = game.Players.LocalPlayer
  315.  
  316. local function onHit(hit,handle)
  317. local victim = hit.Parent:FindFirstChildOfClass("Humanoid")
  318. if victim and victim.Parent.Name ~= game.Players.LocalPlayer.Name then
  319. if dmgEnabled then
  320. for _,v in pairs(hit.Parent:GetChildren()) do
  321. if v:IsA("Part") then
  322. firetouchinterest(v,handle,0)
  323. firetouchinterest(v,handle,1)
  324. end
  325. end
  326. else
  327. firetouchinterest(hit,handle,0)
  328. firetouchinterest(hit,handle,1)
  329. end
  330. end
  331. end
  332.  
  333. local function getWhiteList()
  334. local wl = {}
  335. for _,v in pairs(game.Players:GetPlayers()) do
  336. if v ~= plr then
  337. local char = v.Character
  338. if char then
  339. for _,q in pairs(char:GetChildren()) do
  340. if q:IsA("Part") then
  341. table.insert(wl,q)
  342. end
  343. end
  344. end
  345. end
  346. end
  347. return wl
  348. -- WAIT WHAT EVOCUL WAS DOWN HERE TOO WHAT? WHO IS THIS MAD MAN????
  349. end
  350.  
  351. TextButton.MouseButton1Down:connect(function()
  352. reach = TextBox.Text
  353. end)
  354.  
  355. bindr = "r"
  356. mouse.KeyDown:connect(function(keyr)
  357. if keyr == bindr then
  358. reach = reach + 0.5
  359. end
  360. end)
  361.  
  362. bindt = "t"
  363. mouse.KeyDown:connect(function(keyt)
  364. if keyt == bindt then
  365. reach = reach - 0.5
  366. end
  367. end)
  368. local cooldown = false
  369. game:GetService("RunService").RenderStepped:connect(function()
  370. if not active or not trueActive then return end
  371. local s = plr.Character and plr.Character:FindFirstChildOfClass("Tool")
  372. if not s then
  373. visualizer.Parent = nil
  374. visualizer2.Parent = nil
  375. end
  376. if s then
  377. local handle = s:FindFirstChild("Handle") or s:FindFirstChildOfClass("Part")
  378. if handle then
  379. if visualizerEnabled then
  380. visualizer.Parent = workspace
  381. visualizer2.Parent = workspace
  382. else
  383. visualizer.Parent = nil
  384. visualizer2.Parent = nil
  385. end
  386. if reach then
  387. if reachType == "Sphere" then
  388. visualizer2.Size = Vector3.new(reach*2,0.05,reach*2)
  389. visualizer.CFrame = handle.CFrame
  390. visualizer2.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, -2.95, 0)
  391. for _,v in pairs(game.Players:GetPlayers()) do
  392. local hrp = v.Character and v.Character:FindFirstChild("HumanoidRootPart")
  393. if hrp and handle then
  394. local mag = (hrp.Position - handle.Position).magnitude
  395. if tonumber(mag) <= tonumber(reach) and cooldown == false then
  396. cooldown = true
  397. onHit(hrp,handle)
  398. wait(0.1)
  399. cooldown = false
  400. end
  401. end
  402. end
  403. end
  404. end
  405. end
  406. end
  407. end)
  408.  
  409. local i = 0
  410. while wait() do
  411. if i >= 0.99 then
  412. i = 0
  413. elseif i < 1 then
  414. i = i+0.009
  415. end
  416.  
  417. local h = tonumber(i)
  418. local color = Color3.fromHSV(h, 1, 0.8)
  419.  
  420. visualizer.Color = color
  421. selectionbox.Color3 = color
  422. selectionbox.SurfaceColor3 = color
  423. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement