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.
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.