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

How to add smoke to the rocket?

Here is the script (only a portion of it) and smoke isn't attached to it. It just breaks the launcher. Can anyone help?

local Rocket = Instance.new("Part")
Rocket.Locked = true
Rocket.BackSurface = 3
Rocket.BottomSurface = 3
Rocket.FrontSurface = 3
Rocket.LeftSurface = 3
Rocket.RightSurface = 3
Rocket.TopSurface = 3
Rocket.Size = Vector3.new(1, 2.5, 1)
Rocket.BrickColor = BrickColor.new(23)
Rocket.FormFactor = 3


local s = Instance.new("Smoke")
s.Size = 4
s.Parent = game.Workspace.Rocket

1 answer

✓ Accepted answer

Try this instead;

local Rocket = Instance.new("Part")
Rocket.Locked = true
Rocket.BackSurface = 3
Rocket.BottomSurface = 3
Rocket.FrontSurface = 3
Rocket.LeftSurface = 3
Rocket.RightSurface = 3
Rocket.TopSurface = 3
Rocket.Size = Vector3.new(1, 2.5, 1)
Rocket.BrickColor = BrickColor.new(23)
Rocket.FormFactor = 3

local s = Instance.new("Smoke", Rocket)
s.Size = 4

I hope this helped!

2 comments

0

Thank you! It works!

0

No problem, the problem with the smoke was you were trying to set the Parent of 's' to 'game.Workspace.Rocket', but it didn't set the parent because Rocket might've not been in the Workspace, so the script took 'Workspace.Rocket' as a nil value.

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