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()
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()
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
Just like funyun said use :Destroy() after almost anything to just get rid of it PLUS I LOVE U YOZOH UR SO AWSOME
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Why don't you use a Variable for this problem? :P WIKI Documentary on Variables: http://wiki.roblox.com/index.php?title=Variables