So I have a script thats supposed mimic the color of a part onto a particle emmiter
local main = workspace:FindFirstChild("Ring"):FindFirstChild("Main1")
main:GetPropertyChangedSignal("Color"):Connect(function()
script.Parent.Color = main.Color
end)
Scripts don’t run in replicatedstorage, unless it’s a modulescript and required by a server/local script from elsewhere. If it’s a serverscript, put it into SSS
It’s actually in a particleemitter in replicated storage but the script gets copied to workspace when it’s needed because it is copied into the player’s torso
local main = workspace:FindFirstChild("Ring"):FindFirstChild("Main1")
main:GetPropertyChangedSignal("Color"):Connect(function()
script.Parent.Color = ColorSequence.new(main.Color)
end)
we tried it again the script is now in sss and it still doesnt work. this model is in workspace
local main = workspace:FindFirstChild("Ring"):FindFirstChild("Main1")
local particle = game.ReplicatedStorage:FindFirstChild("Rainbow")
while wait(0.001) do
main:GetPropertyChangedSignal("Color"):Connect(function()
particle = ColorSequence.new{
ColorSequenceKeypoint.new(0, main.Color),
ColorSequenceKeypoint.new(1, main.Color)
}
end)
end
That’s a huge memory leak, you are connecting an event every 0.001 seconds. Your original idea was working fine. You just had to make sure you are changing Main 1’s color on the server