Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rep = game:GetService("ReplicatedStorage")
- local Framework = shared.Framework
- local module = {}
- module.__index = module
- module.Derives = "Component"
- module.new = function(self)
- local originalColor = self.Object.Color
- self.Maid:GiveTask(task.spawn(function()
- while true do
- self.Object.Color = BrickColor.random().Color
- task.wait(1)
- end
- end))
- self.Maid:GiveTask(function()
- self.Object.Color = originalColor
- end)
- return self
- end
- Framework.Class.RegisterComponent("ModdedRainbow", module)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement