Advertisement
RandomB_oi2

TLW Test Mod

May 18th, 2025
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | Source Code | 0 0
  1. local Rep = game:GetService("ReplicatedStorage")
  2. local Framework = shared.Framework
  3.  
  4. local module = {}
  5. module.__index = module
  6. module.Derives = "Component"
  7.  
  8. module.new = function(self)
  9.     local originalColor = self.Object.Color
  10.  
  11.     self.Maid:GiveTask(task.spawn(function()
  12.         while true do
  13.             self.Object.Color = BrickColor.random().Color
  14.             task.wait(1)
  15.         end
  16.     end))
  17.     self.Maid:GiveTask(function()
  18.         self.Object.Color = originalColor
  19.     end)
  20.  
  21.     return self
  22. end
  23.  
  24. Framework.Class.RegisterComponent("ModdedRainbow", module)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement