Greetings,
I am using particle emitters for a show but when I turn them off via script some of them turn off and some don’t. This is the same problem when I turn them off manually. When I restart my studio they are resetted to off. But then the same problem accures.
Show us the script that handles them, and also are all the emitter names the same?
Here, I think there is nothing wrong with the script because in the editor itself it doesn’t work to.
langregenboog:GetPropertyChangedSignal("Value"):Connect(function()
if langregenboog.Value == true then
for i,v in pairs(workspace.vuurwerk:WaitForChild("FW5"):GetChildren()) do
spawn(function()
v.Shots.L1.P1.Enabled = true
v.Shots.L1.P2.Enabled = true
v.Shots.L11.P1.Enabled = true
v.Shots.L11.P2.Enabled = true
v.Shots.L2.P1.Enabled = true
v.Shots.L2.P2.Enabled = true
v.Shots.L12.P1.Enabled = true
v.Shots.L12.P2.Enabled = true
v.Shots.L3.P1.Enabled = true
v.Shots.L3.P2.Enabled = true
v.Shots.L13.P1.Enabled = true
v.Shots.L13.P2.Enabled = true
v.Shots.L4.P1.Enabled = true
v.Shots.L4.P2.Enabled = true
v.Shots.L14.P1.Enabled = true
v.Shots.L14.P2.Enabled = true
v.Shots.L5.P1.Enabled = true
v.Shots.L5.P2.Enabled = true
v.Shots.L15.P1.Enabled = true
v.Shots.L15.P2.Enabled = true
v.Shots.L6.P1.Enabled = true
v.Shots.L6.P2.Enabled = true
v.Shots.L16.P1.Enabled = true
v.Shots.L16.P2.Enabled = true
v.Shots.L7.P1.Enabled = true
v.Shots.L7.P2.Enabled = true
v.Shots.L17.P1.Enabled = true
v.Shots.L17.P2.Enabled = true
v.Shots.L8.P2.Enabled = true
v.Shots.L8.P1.Enabled = true
v.Shots.L18.P2.Enabled = true
v.Shots.L18.P1.Enabled = true
wait(0.3)
v.Shots.L1.P1.Enabled = false
v.Shots.L1.P2.Enabled = false
v.Shots.L11.P1.Enabled = false
v.Shots.L11.P2.Enabled = false
v.Shots.L2.P1.Enabled = false
v.Shots.L2.P2.Enabled = false
v.Shots.L12.P1.Enabled = false
v.Shots.L12.P2.Enabled = false
v.Shots.L3.P1.Enabled = false
v.Shots.L3.P2.Enabled = false
v.Shots.L13.P1.Enabled = false
v.Shots.L13.P2.Enabled = false
v.Shots.L4.P1.Enabled = false
v.Shots.L4.P2.Enabled = false
v.Shots.L14.P1.Enabled = false
v.Shots.L14.P2.Enabled = false
v.Shots.L5.P1.Enabled = false
v.Shots.L5.P2.Enabled = false
v.Shots.L15.P1.Enabled = false
v.Shots.L15.P2.Enabled = false
v.Shots.L6.P1.Enabled = false
v.Shots.L6.P2.Enabled = false
v.Shots.L16.P1.Enabled = false
v.Shots.L16.P2.Enabled = false
v.Shots.L7.P1.Enabled = false
v.Shots.L7.P2.Enabled = false
v.Shots.L17.P1.Enabled = false
v.Shots.L17.P2.Enabled = false
v.Shots.L8.P2.Enabled = false
v.Shots.L8.P1.Enabled = false
v.Shots.L18.P2.Enabled = false
v.Shots.L18.P1.Enabled = false
end)
end
langregenboog.Value = false
end
end)
Are you exceeding the particle limit?