Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make particles change transparency depending on what time it is?

Asked by 5 years ago

This is the current script however it isn't working

while true do for i, v in pairs(script.Parent:GetDescendants()) do if v.Name == "DustParticles" then

    if game.Lighting.ClockTime >= 6.2 and game.Lighting.ClockTime < 17.9 then
        game.Workspace.ParticleEmitters.DustParticleEmitter.DustParticles.Transparency = 0
    end
    if game.Lighting.ClockTime >= 17.9 and game.Lighting.ClockTime < 18 then
        game.Workspace.ParticleEmitters.DustParticleEmitter.DustParticles.Transparency = 0.355


    end
    if game.Lighting.ClockTime >= 18 then
                    game.Workspace.ParticleEmitters.DustParticleEmitter.DustParticles.Transparency = 0.755



    end


end

end

0
There is a special syntax for particle transparency Fad99 286 — 5y
0
Which is? Error1x11x1x11x1x11x -3 — 5y
0
^ NumberSequence. You can see how to use it here : https://developer.roblox.com/api-reference/property/ParticleEmitter/Transparency User#20279 0 — 5y

Answer this question