Advertisement
Silly_Guy

The Infector Script

Feb 8th, 2025 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. -- Configuration --
  2. local chancetoclone = 50
  3. local moveinterval = 0.15
  4. local mes = "THE INFECTOR IS HERE"
  5.  
  6.  
  7. -- Do not edit --
  8.  
  9. local m = Instance.new("Hint")
  10. m.Parent = workspace
  11. m.Text = mes
  12. local fortnite = Instance.new("Sound")
  13. fortnite.Parent = workspace
  14. fortnite.SoundId = "rbxassetid://1838457617"
  15. fortnite.Looped = true
  16. fortnite:Play()
  17. local Infector = Instance.new("Part")
  18. local outline = Instance.new("SelectionBox")
  19. outline.Parent = Infector
  20. outline.Adornee = Infector
  21. outline.Color3 = Color3.fromRGB(0, 255, 0)
  22. local fire = Instance.new("Fire")
  23. fire.Parent = Infector
  24. fire.Size = 25
  25. fire.Heat = 100
  26. fire.Color = Color3.fromRGB(4, 255, 0)
  27. Infector.Position = Vector3.new(0,0,-100)
  28. Infector.Name = "The Infector"
  29. Infector.Size = Vector3.new(10,10,10)
  30. Infector.Parent = workspace
  31. Infector.Anchored = true
  32. Infector.CanCollide = false
  33. Infector.Transparency = 0
  34. Infector.Color = Color3.fromRGB(232, 99, 255)
  35. Infector.Reflectance = 100
  36. local decal = Instance.new("Decal")
  37. decal.Parent = Infector
  38. decal.Face = Enum.NormalId.Front
  39. decal.Texture = "http://www.roblox.com/asset/?id=5445652761"
  40. local gui = Instance.new("ScreenGui")
  41. local image = Instance.new("ImageLabel")
  42. gui.Parent = game.StarterGui
  43. gui.IgnoreGuiInset = true
  44. gui.ResetOnSpawn = false
  45. image.Transparency = 0.8
  46. image.Parent = gui
  47. image.Size = UDim2.new(1,0,1,0)
  48. image.Position = UDim2.new(0,0,0,0)
  49. image.BackgroundTransparency = 1
  50. image.Image = "http://www.roblox.com/asset/?id=168143562"
  51. image.ScaleType = Enum.ScaleType.Fit
  52. image.ImageColor3 = Color3.fromRGB(255, 255, 255)
  53. image.ImageTransparency = 0.8
  54. while wait() do
  55. local part = workspace:GetDescendants()[math.random(1, #workspace:GetDescendants())]
  56. if part:IsA("BasePart") and part.Parent:IsA("Model") then
  57. if part.Name ~= "The Infector" then
  58. game.TweenService:Create(Infector,TweenInfo.new(moveinterval,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0),{Position = part.Position}):Play()
  59. Infector.Orientation = part.Orientation
  60. local snap = Instance.new("Sound")
  61. part.Anchored = false
  62. part.CanCollide = false
  63. part.Color = Color3.fromRGB(0,0,0)
  64. snap.Parent = workspace
  65. snap.SoundId = "rbxassetid://12222140"
  66. snap.PlayOnRemove = true
  67. part.Name = "The Infector"
  68. snap:Destroy()
  69. local outline = Instance.new("SelectionBox")
  70. outline.Parent = part
  71. outline.Adornee = part
  72. outline.Color3 = Color3.fromRGB(0, 255, 0)
  73.  
  74. wait(0.01)
  75. local clone = math.random(1,chancetoclone)
  76. if clone == chancetoclone then
  77. script:Clone().Parent = workspace
  78. end
  79. end
  80. end
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement