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

Im trying to make a gear that gives you colored smoke but it isnt working? [SOLVED]

But it isn't working.

player = game.Players.LocalPlayer

tool = script.Parent

tool.Activated:connect(function()

player.Character.Head = Instance.new("ParticleEmitter",player.Character.Head)

tool.Activated:connect(function()

player.Character.Torso = Instance.new("Smoke",player.Character.Torso)

Color3.new(10,10,10)

end)

end)

The particle emitter works fine. The smoke doesn't. does anyone know whats wrong?

1 comment

0

Please use code blocks.

1 answer

✓ Accepted answer

You weren't giving the color to the smoke, just registering the color in the script.

This should work.

player = game.Players.LocalPlayer

tool = script.Parent

tool.Activated:connect(function()

local particles = Instance.new("ParticleEmitter",player.Character.Head) --local prticles

tool.Activated:connect(function()

local smoke = Instance.new("Smoke",player.Character.Torso) --local smoke

smoke.Color = Color3.fromRGB(10, 10, 10) --Changed from .new to .fromRGB

end)

end)

1 comment

1

Thank you! It works for me!

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