Hello, I’m trying to make a script that turn this TextLabel’s colour from red the green when it detects a particle emitter is enabled. i tried using while true do but it didn’t work as expected.
You can use :GetPropertyChangedSignal(“Enabled”) on the ParticleEmitters.
For one it could be:
local Emitter = workspace.ParticleEmitter -- Replace this with the emitter.
local Label = OAR01.OAR1 -- Replace this with the text label
Emitter:GetPropertyChangedSignal("Enabled"):Connect(function()
local Enabled = Emitter.Enabled
if Enabled == true then
Label.BackgroundColor = BrickColor.Green()
else
Label.BackgroundColor = BrickColor.Red()
end
end)