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

ParticleEmitter Transparency change through script problem?

Asked by 5 years ago

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?

0
NumberSequence.new(0.1, 1) User#19524 175 — 5y
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 PenguinDevs 45 — 5y
0
script located in ParticleEmitter Push_Requ3gge 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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)

0
still the same problem Workspace.asdf.Script:3: bad argument #3 to 'Transparency' (NumberSequence expected, got number) Push_Requ3gge 0 — 5y
Ad

Answer this question