i made a script in Roblox Studio that enables fire but i need help to disable the fire
here's the code :
script.Parent.ClickDetector.MouseClick:Connect(function(plr) game.Workspace.Part.Fire.Enabled = true end)
btw in a ClickDetector
It is very easy to make! All you have to do that use debounce.
Here is your script
local debounce = false script.Parent.ClickDetector.MouseClick:Connect(function(plr) if debounce == false then debounce = true workspace.Part.Fire.Enabled = true else debounce = false workspace.Part.Fire.Enabled = false end end)
You can read more here