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