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

uhm i feel dumb but how to use instance.new with a fire?

Asked by
hokyboy 270 Moderation Voter
4 years ago
local fire Instance.new("Fire")
    fire.parent = script.Parent.Parent.tnt
    fire.size = 4
0
you didnt put an = sign for the variable `local fire = Instance.new("Fire") KDarren12 705 — 4y

1 answer

Log in to vote
1
Answered by
sleazel 1287 Moderation Voter
4 years ago

Did you forgot the equal sign? Also good practice is to set Parent last, for the performance sake. (capital letter BTW)

local fire = Instance.new("Fire")
fire.size = 4
fire.Parent = script.Parent.Parent.tnt
0
im stupid lol hokyboy 270 — 4y
Ad

Answer this question