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

How do you make an instance smoke into the part ?

So this script is from TurboFusion's gun kit and what i want is to instance a smoke into the part but doesn't work how do i command it correctly ?

local Trail = Instance.new("Part")
local Trail = Instance.new ("Smoke")

2 answers

✓ Accepted answer

You can change:

Instance.new("Smoke")

to:

Instance.new("Smoke",Part)

And that will add the smoke into the instance "Part"

You would probably want this code:

local Trail = Instance.new("Part") --Create the part
Instance.new("Smoke",Part) --Put a smoke in it

4 comments

0

i cant it first needs to add the part then the smoke or script will not work

0

Well yes.. He is not saying to remove the first line. He is saying change your second one, to the one he has given.

0

I'm showing you the method used to put the instance into another instance.

0

Now it worked. :D

I know this has been answered already, but if you enjoy doing it a longer route.

local p = Instance.new("Part")
local s = Instance.new("Smoke")
p.Parent = game.Workspace -- just stating that its parent is in workspace
s.Parent = p -- Stating that its parent is p, or in otherwords Part

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