Advertisement
TheHatBoys

Jailbreak aim thing i got from scriptblox

Jul 12th, 2023
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. getgenv().toggled = true --/ true & false
  2.  
  3. getgenv().old = getgenv().old or require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList
  4.  
  5. if getgenv().toggled then
  6. local glowingParts = {}
  7. local glowingColor = Color3.fromRGB(0, 255, 0) -- Modify this color as desired
  8.  
  9. require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList = function(...)
  10. local nearestDistance, nearestEnemy = 1000, nil
  11. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  12. if v.Team ~= game:GetService("Players").LocalPlayer.Team and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  13. if (v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < nearestDistance then
  14. nearestDistance, nearestEnemy = (v.Character.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Magnitude, v
  15. end
  16. end
  17. end
  18. local arg = {old(...)}
  19. if (tostring(getfenv(2).script) == "BulletEmitter" or tostring(getfenv(2).script) == "Taser") then
  20. for player, glow in pairs(glowingParts) do
  21. if player ~= nearestEnemy then
  22. glow:Remove()
  23. glowingParts[player] = nil
  24. end
  25. end
  26.  
  27. if nearestEnemy then
  28. arg[1] = nearestEnemy.Character.HumanoidRootPart
  29. arg[2] = nearestEnemy.Character.HumanoidRootPart.Position
  30.  
  31. -- Make the HumanoidRootPart of the target glow
  32. if not glowingParts[nearestEnemy] then
  33. local glow = Instance.new("PointLight")
  34. glow.Color = glowingColor
  35. glow.Range = 10
  36. glow.Brightness = 5
  37. glow.Parent = nearestEnemy.Character.HumanoidRootPart
  38. glowingParts[nearestEnemy] = glow
  39.  
  40. -- Add a tag to the target to display their name
  41. local tag = Instance.new("BillboardGui")
  42. tag.Size = UDim2.new(0, 100, 0, 20)
  43. tag.Adornee = nearestEnemy.Character.HumanoidRootPart
  44. tag.Parent = nearestEnemy.Character.HumanoidRootPart
  45. local text = Instance.new("TextLabel")
  46. text.Size = UDim2.new(1, 0, 1, 0)
  47. text.BackgroundTransparency = 1
  48. text.Text = nearestEnemy.Name
  49. text.TextColor3 = glowingColor
  50. text.Parent = tag
  51. end
  52. end
  53. end
  54. return unpack(arg)
  55. end
  56. else
  57. require(game:GetService("ReplicatedStorage").Module.RayCast).RayIgnoreNonCollideWithIgnoreList = getgenv().old
  58. end
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement