How to script parts to emit smoke?

Hello I am a new Roblox builder and I don’t know how to script and I decided to add some smoke to the parts from properties but they are not emitting smoke…can anyone help me?

This can be achieved simply by using the script to enable/disable the smoke part in its properties

Scripting wise: (Paste this in the command bar at the bottom of the output window)

Instance.new("Smoke").Parent = game.Workspace:FindFirstChild(" INSERT PART NAME HERE")

Building wise:
Right click the part, hover over “Add Object”, then find the Smoke emitter object, click it for smoke.

1 Like

You can just clone a particle emitter and parent it to the part, easy.

how to do it sorry cuz i dont know how to script

Easy, make sure that the smoke is in ReplicatedStorage and insert a script inside your part.

local smoke = game:GetService("ReplicatedStorage"):FindFirstChild("Smoke")

smoke:Clone()
smoke.Parent = script.Parent

It clones a smoke and parents it to your part.

1 Like

thanks a lot guys! This helped me a lot

Dont even bother with coding.

First, right click the part you want to have smoke.
image
This menu will appear, click “Insert Object”

After scrolling down, you will find “Effects”
image
You can choose any of these. click to add them.

Thats all you have to do. No coding is involved here

1 Like

but the thing is it dosent appear in the game

Insert a smoke, not a particle emitter. He said it by how to make it by a script, not manually.

image
I dont know what you mean. it clearly does.

i meant that it works in the studio fine but it dosent appear in the real game

The way your script does it is no different than doing it manually, also, ur script leaves the smoke in RS which isnt all that ethical.

It will show in studio @heroguy1134 and in game*

But why dosent it appear in real game

yes , sorry , my bad i meant to say it does appear in the actual game. Once you hit publish.

Good but I responded exactly according to the topic.

Okay then I will do it I guess

I will script if the manual way dosent work :relaxed:

He asked how to emit smoke. I answered lol this stuff doesnt require scripting at all.

Still counts. ( 30 characters)