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

FirePart is not a valid member of Workspace?

Asked by
d1tch 5
8 years ago

i need help because i am new to scripting and im doing the roblox tutorials Help!

2 answers

Log in to vote
0
Answered by
Im_Kritz 334 Moderation Voter
8 years ago

The code is trying to find an instance named "FirePart" in the Workspace and it's not there.

Looks like you miss placed it, when you ran the script. Make sure FirePart is in the Workspace when you start.

0
@xx then where is firepart? d1tch 5 — 8y
0
Find it or remake it. You have no code shown, nor do you have a link to the tutorial you are trying to do. Therefore, I don't have much information to tell you Im_Kritz 334 — 8y
0
Do you have the two parts out in the Workspace? Shown in the tutorial? Im_Kritz 334 — 8y
Ad
Log in to vote
0
Answered by
d1tch 5
8 years ago

@xx

function lightOnFire(part) print("Going to light this part on fire:") print(part.Name)

fire = Instance.new("Fire")
fire.Parent = part

end

firePart = game.Workspace.FirePart firePart.Touched:connect(lightOnFire)

Answer this question