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

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

Asked by 4 years ago
Edited 4 years ago

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?

0
Please use code blocks. Torren_Mr 334 — 4y

1 answer

Log in to vote
0
Answered by
Torren_Mr 334 Moderation Voter
4 years ago

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
Thank you! It works for me! yayimstrongforever 0 — 4y
Ad

Answer this question