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

How do I remove fire from a part?

Asked by
Yozoh 146
9 years ago

I'm quite new to scripting and I was wondering why the fire isn't being removed when I run the game.

Instance.new("Fire", script.Parent)

wait(2)

game.Workspace.Part.Fire = Remove()

0
Why don't you use a Variable for this problem? :P WIKI Documentary on Variables: http://wiki.roblox.com/index.php?title=Variables TheeDeathCaster 2368 — 9y

2 answers

Log in to vote
0
Answered by
funyun 958 Moderation Voter
9 years ago

Remove() is a method that you can call on instances (parts, fires, sparkles, etc.) You call methods like this:

script.Parent.Fire:Remove()

Just so you know, Remove() is deprecated. That means it probably works, but it's old and outdated. Use Destroy().

Full script:

Instance.new("Fire", script.Parent)

wait(2)

script.Parent.Fire:Destroy() --The fire is already in the part, so use script.Parent.Fire
Ad
Log in to vote
0
Answered by 9 years ago

Just like funyun said use :Destroy() after almost anything to just get rid of it PLUS I LOVE U YOZOH UR SO AWSOME

Answer this question