Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ParticleEmitter Transparency change through script problem?

Hello, i am new to scripting in roblox, i got a problem with changing transparency of particles when clicking on a block. i tried to do this one:

local particles = workspace.brick.ParticleEmitter 

particles.Transparency = 1

(or something like that)

but it doesnt work, it says what it expecting NumberSequence (NumberSequence expected, got number) i searched up what it is but i dont understand a thing. Can someone help me understand what does it mean and whats it for?

3 comments

0

NumberSequence.new(0.1, 1)

0

Where is that script? And where is it located at?, Ps if you change the transparency to 1, you will not be able to see it either

0

script located in ParticleEmitter

1 answer

If you are trying to make it change the transparency to 1(invisible) when clicking the block then do this. Also add a ClickDetector to the block and put the script inside the block local particles = script.Parent script.Parent.ClickDetector.MouseClick:Connect(function() particles.Transparency = 1 end)

1 comment

0

still the same problem Workspace.asdf.Script:3: bad argument #3 to 'Transparency' (NumberSequence expected, got number)

This discussion is preserved as it was. New answers, comments, and votes are closed.