Advertisement
MawinCK

Best Sniper Noob vs zombie realish Script

Nov 11th, 2023 (edited)
308
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 1 0
  1. --NoFog --Remove these if you want fog
  2. game:GetService("Lighting").FogStart = 99999
  3. game:GetService("Lighting").FogEnd = 99999
  4.  
  5. --Settings
  6. local settings = {
  7. HeadSize = Vector3.new(6,6,6), --Expanded Head Size "X,Y,Z"
  8. EspEnabled = true, -- Set this to false if you dont want ESP
  9. EspOnlyForPlayers = true, -- True = esp visible only on all PLAYERS except you, false = esp visible on all targets except you.
  10. EspTeamCheck = true, -- Self explanatory (DOESNT APPLY TO NPC'S)
  11. TextScaled = false -- Set true if you want the esp make names smaller if player is further away.
  12. }
  13.  
  14. --No need to modify anything from under this unless you know what to change.
  15.  
  16. --Base Variables.
  17. local Players = game:GetService("Players")
  18. local LocalPlayer = Players.LocalPlayer
  19. local WSpace = game:GetService("Workspace")
  20. local RunService = game:GetService("RunService")
  21.  
  22. --Give ESP to target.
  23. local function give_esp(target)
  24. local name = target.Name
  25. local bigCock = Instance.new("BillboardGui")
  26. local sperm = Instance.new("TextLabel")
  27.  
  28. bigCock.Parent = target:FindFirstChild("Head")
  29. bigCock.Name = "ESP"
  30. bigCock.AlwaysOnTop = true
  31. bigCock.Size = UDim2.new(0,40,0,40)
  32. bigCock.StudsOffset = Vector3.new(0,2,0)
  33.  
  34. sperm.Parent = bigCock
  35. sperm.BackgroundColor3 = Color3.fromRGB(255,255,255)
  36. sperm.BackgroundTransparency = 1
  37. sperm.Size = UDim2.new(1,0,1,0)
  38. sperm.Text = name
  39. sperm.TextColor3 = Color3.fromRGB(255,255,255)
  40. sperm.TextScaled = settings.TextScaled
  41. end
  42. --Give Hitbox to target.
  43. local function give_hitbox(target)
  44. if target:FindFirstChild("HumanoidRootPart") and target:FindFirstChild("Head") then
  45. target.Head.Size = settings.HeadSize
  46. target.Head.Transparency = 0.6
  47. end
  48. end
  49. --Run this "Updating" part 60 times per second by using Heartbeat.
  50. RunService.Heartbeat:Connect(function()
  51. for _,v in pairs(WSpace.Units:GetChildren()) do
  52. if v:IsA("Model") and v.Name ~= LocalPlayer.Name then
  53. local isPlayer = Players:FindFirstChild(v.Name)
  54. if v:FindFirstChild("Head") and v:FindFirstChild("Humanoid").Health ~= 0 then
  55. --tupsutumppu#3145 was here :)
  56. if settings.EspEnabled then
  57. if not v.Head:FindFirstChild("ESP") then
  58. if settings.EspOnlyForPlayers then
  59. if settings.EspTeamCheck then
  60. if isPlayer and LocalPlayer.Team and isPlayer.Team and LocalPlayer.Team ~= isPlayer.Team then
  61. give_esp(v)
  62. end
  63. elseif not settings.EspTeamCheck then
  64. if isPlayer then give_esp(v) end
  65. end
  66. else
  67. if settings.EspTeamCheck then
  68. if isPlayer and LocalPlayer.Team and isPlayer.Team and LocalPlayer.Team ~= isPlayer.Team then
  69. give_esp(v)
  70. elseif not isPlayer then give_esp(v) end
  71. elseif not settings.EspTeamCheck then
  72. give_esp(v)
  73. end
  74. end
  75. end
  76. end
  77. if v.Head.Size ~= settings.HeadSize then
  78. give_hitbox(v) end
  79. end
  80. end
  81. end
  82. end)
  83. --Just a quick fix for the Head Collision issue
  84. task.spawn(function()
  85. while true do
  86. for _, v in pairs(WSpace.Units:GetDescendants()) do
  87. if v.Name == "Head" then
  88. if v.CanCollide then
  89. v.CanCollide = false
  90. v.CanTouch = false
  91. end
  92. end
  93. end
  94. task.wait(2)
  95. end
  96. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement