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

Why won't the ParticleEmitter work?

So I'm making a slime bucket. Scripts "turn" the bucket and once the bucket fully rotates, ParticleEmitters emit "slime." Here's the script. I left out the variables and some other stuff in the full script to save space.

function startover()
	Bucket1.Transparency = 0 
    Bucket2.Transparency = 1  
    Bucket3.Transparency = 1   
    Bucket4.Transparency = 1  
    Bucket5.Transparency = 1  
    Bucket6.Transparency = 1  
    Bucket7.Transparency = 1  
    Bucket8.Transparency = 1  
    Bucket9.Transparency = 1 
    Slime1.Transparency = 0 
    Slime2.Transparency = 1  
    Slime3.Transparency = 1   
    Slime4.Transparency = 1  
    Slime5.Transparency = 1  
    Slime6.Transparency = 1  
    Slime7.Transparency = 1  
    Slime8.Transparency = 1  
    Slime9.Transparency = 1  
end

function runslime()
	wait(0.1)
	Bucket1.Transparency = 1
	Slime1.Transparency = 1
	Bucket2.Transparency = 0
	Slime2.Transparency = 0
	wait(0.1)
	Bucket2.Transparency = 1
	Slime2.Transparency = 1
	Bucket3.Transparency = 0
	Slime3.Transparency = 0
	wait(0.1)
	Bucket3.Transparency = 1
	Slime3.Transparency = 1
	Bucket4.Transparency = 0
	Slime4.Transparency = 0
	wait(0.1)
	Bucket4.Transparency = 1
	Slime4.Transparency = 1
	Bucket5.Transparency = 0
	Slime5.Transparency = 0
	wait(0.1)
	Bucket5.Transparency = 1
	Slime5.Transparency = 1
	Bucket6.Transparency = 0
	Slime6.Transparency = 0
	wait(0.1)
	Bucket6.Transparency = 1
	Slime6.Transparency = 1
	Bucket7.Transparency = 0
	Slime7.Transparency = 0
	wait(0.1)
	Bucket7.Transparency = 1
	Slime7.Transparency = 1
	Bucket8.Transparency = 0
	Slime8.Transparency = 0
	wait(0.1)
	Bucket8.Transparency = 1
	Slime8.Transparency = 1
	Bucket9.Transparency = 0
	Slime9.Transparency = 0
	game.Workspace.SlimeBucket.Slimespawner1.ParticleEmitter.Enabled = true --This is the code.
end

while true do
	wait(1)
	runslime()
	wait(10)
	startover()
end

I checked every small thing I could think of.... like adding a parent..... spelling.... that stuff. But it still DID NOT work.

3 comments

0

The problematic code is above the text that says "--This is the code."

0

What is the error?

0

ParticleEmitter is not a valid member of Part. I assume the "Part" is the Slimespawner1 object.

1 answer

✓ Accepted answer

Try using Variables instead such as local particle = game.Workspace.SlimeBucket.SlimeSpawner1.ParticleEmitter particle.Enabled = true

otherwise do a name for the ParticleEmitter

ParticleEmitter name ("Lolll")

local particle = game.Workspace.SlimeBucket.SlimeSpawner1.Lolll particle.Enabled = true

Check the While true do also.

3 comments

0

Ok, I found the solution to the problem. It turns out the ParticleEmiter didn't exist. I thought I added it, but I think I got deleted.

0

Oof

0

Oof

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