Advertisement
anphu04

ROBLOX NIGHT VISION SCRIPT

Aug 3rd, 2018
15,769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. for i,plr in pairs(game.Players:GetChildren()) do
  2. if plr.Character and plr ~= game:GetService("Players").LocalPlayer then
  3. local char = plr.Character
  4. local randomcolor = BrickColor.Random().Color
  5. for j,part in pairs(char:GetChildren()) do
  6. if part:IsA("BasePart") or part:IsA("MeshPart") then
  7. if not part:FindFirstChild("NightVisionTag") then
  8. local tag = Instance.new("StringValue", part)
  9. tag.Name = "NightVisionTag"
  10.  
  11. local function surf(face)
  12. local gui = Instance.new("SurfaceGui")
  13. gui.Name = "NightVisionSurface"
  14. gui.LightInfluence = 1
  15. gui.AlwaysOnTop = true
  16. gui.Face = face
  17.  
  18. local fr = Instance.new("Frame")
  19. fr.Size = UDim2.new(1,0,1,0)
  20. fr.BorderSizePixel = 0
  21. fr.BackgroundColor3 = randomcolor
  22. fr.BackgroundTransparency = 0.75
  23. fr.Parent = gui
  24.  
  25. gui.Parent = part
  26. end
  27.  
  28. surf("Top")
  29. surf("Bottom")
  30. surf("Right")
  31. surf("Left")
  32. surf("Front")
  33. surf("Back")
  34.  
  35. wait()
  36. end
  37. end
  38. --wait()
  39. end
  40. end
  41. end
  42.  
  43.  
  44. -- OLD VERSION 23/1/2020 --
  45. --[[for i,plr in pairs(game.Players:GetChildren()) do
  46. if plr.Character then
  47. local char = plr.Character
  48. for j,part in pairs(char:GetChildren()) do
  49. if part:IsA("BasePart") or part:IsA("MeshPart") then
  50. local bb = Instance.new("BillboardGui")
  51. bb.Size = UDim2.new(2,0,2,0)
  52. bb.LightInfluence = 0
  53. bb.AlwaysOnTop = true
  54. local fr = Instance.new("Frame")
  55. fr.Size = UDim2.new(1,0,1,0)
  56. fr.BorderColor3 = Color3.new(0,0,0)
  57. fr.BorderSizePixel = 0
  58. fr.BackgroundColor3 = Color3.new(0,1,0)
  59. fr.BackgroundTransparency = 0.2
  60. fr.Parent = bb
  61.  
  62. bb.Parent = part
  63. end
  64. wait()
  65. end
  66. end
  67. end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement