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

Why won't the ParticleEmitter work?

Asked by 8 years ago

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.

0
The problematic code is above the text that says "--This is the code." VCRaygamma 15 — 8y
0
What is the error? Shawnyg 4330 — 8y
0
ParticleEmitter is not a valid member of Part. I assume the "Part" is the Slimespawner1 object. VCRaygamma 15 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

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. VCRaygamma 15 — 8y
0
Oof decla123 45 — 5y
0
Oof decla123 45 — 5y
Ad

Answer this question