Advertisement
hibyeloly

MPS Universal Firetouch, Bigfoot

Mar 2nd, 2024
2,779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local CoreGui = game:GetService("StarterGui")
  3. local player = game:GetService("Players").LocalPlayer
  4. local balls = {}
  5. local lastrefreshtime = os.time()
  6. local currentleg = true
  7. local touchint = {}
  8. local reach = 4.75
  9. function refreshballs(force)
  10. if force == false then
  11. if lastrefreshtime + 1.5 > os.time() then return end
  12. end
  13. table.clear(touchint)
  14. for i,v in pairs(player.Character:GetDescendants()) do
  15. if v.Name == "TouchInterest" and v.Parent:IsA("BasePart") then
  16. table.insert(touchint,v)
  17. end
  18. end
  19. lastrefreshtime = os.time()
  20. table.clear(balls)
  21. for i,v in pairs(workspace:GetDescendants()) do
  22. local firstletter = string.sub(v.Name, 1, 1)
  23. -- IF THE SCRIPT IS NOT RECOGNISING A BALL, ADD THEIR LEAGUE ABBREVIATION ONTO THIS.
  24. if v.Name == "TPS" or v.Name == "AIFA" or v.Name == "MRS" or v.Name == "PRS" or v.Name == "MPS" or v.Name == "VFA" or firstletter == "{" then
  25. task.wait()
  26. table.insert(balls,v)
  27. end
  28. end
  29. end
  30.  
  31. refreshballs(true)
  32.  
  33. UserInputService.InputBegan:Connect(function(i, gameProcessedEvent)
  34. if i.KeyCode == Enum.KeyCode.W or i.KeyCode == Enum.KeyCode.A or i.KeyCode == Enum.KeyCode.S or i.KeyCode == Enum.KeyCode.D or i.KeyCode == Enum.KeyCode.Space then
  35. return end
  36. if gameProcessedEvent == false then
  37. if i.KeyCode == Enum.KeyCode.LeftControl then
  38. if currentleg == true then
  39. currentleg = false
  40. else
  41. currentleg = true
  42. end
  43. end
  44. if i.KeyCode == Enum.KeyCode.PageUp or i.KeyCode == Enum.KeyCode.PageDown then
  45. if i.KeyCode == Enum.KeyCode.PageDown then
  46. reach = reach - 0.25
  47. CoreGui:SetCore("SendNotification", {
  48. Title = "ReachScript";
  49. Text = "Reach has been set to: "..reach;
  50. Duration = 0.5;
  51. })
  52. else
  53. reach = reach + 0.25
  54. CoreGui:SetCore("SendNotification", {
  55. Title = "ReachScript";
  56. Text = "Reach has been set to: "..reach;
  57. Duration = 0.5;
  58. })
  59. end
  60. else
  61. refreshballs(false)
  62. end
  63. for i,e in pairs(balls) do
  64. if (e.Position - player.Character["Right Leg"].Position).magnitude <= reach then
  65. task.wait()
  66. for i,v in pairs(touchint) do
  67. if v.Parent == player.Character["Head"] then
  68. continue
  69. end
  70. task.spawn(function()
  71. firetouchinterest(e,v.Parent,0)
  72. firetouchinterest(e,v.Parent,1)
  73. end)
  74. end
  75. end
  76. end
  77. else
  78. if debug == true then
  79. rconsoleprint("debug failed fired1 and fired3\n")
  80. end
  81. end
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement