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

How to add smoke to the rocket?

Asked by 10 years ago

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

Log in to vote
3
Answered by 10 years ago

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!

0
Thank you! It works! TheRings0fSaturn 28 — 10y
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. TheeDeathCaster 2368 — 10y
Ad

Answer this question