You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Hello ! I’m working on a weather system for my game. And I had a problem and that is that i want to decrease the particles slowly and then destroy it for a smooth effect.
-
What is the issue? Well, I’ve coded this and I tried a ton of more methods and nothing works, yet.
for _, stuff in pairs(workspace.RainStuff:GetDescendants()) do
if stuff:IsA("Model") or stuff:IsA("Sound") then
for _, Parts in pairs(RainPart:GetDescendants()) do
local Particles = Parts:FindFirstChildWhichIsA("ParticleEmitter")
if Particles then
local targetRate = 0.5
local DecreaseRate = 0.5 -- Decrease the rate more gradually for smoother transition
local DelayRate = 0.1 -- Reduce the delay for quicker updates
while Particles.Rate > targetRate do
Particles.Rate = math.max(Particles.Rate - DecreaseRate, targetRate)
wait(DelayRate)
end
end
end
wait(3)
stuff:Destroy()
end
end
- What solutions have you tried so far? CHAT GPT, Remaking the script and bla bla