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
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
Thank you so much :D
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
:Disconnect() or a debounce would help you.