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

How do you make an instance smoke into the part ?

Asked by
Bulvyte 388 Moderation Voter
9 years ago

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

Log in to vote
1
Answered by 9 years ago

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
0
i cant it first needs to add the part then the smoke or script will not work Bulvyte 388 — 9y
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. AmericanStripes 610 — 9y
0
I'm showing you the method used to put the instance into another instance. darkelementallord 686 — 9y
0
Now it worked. :D Bulvyte 388 — 9y
Ad
Log in to vote
0
Answered by
IcyEvil 260 Moderation Voter
9 years ago

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

Answer this question