I’m making a script that spreads fire trough objects. My current method of cloning the script to touching objects is causing lag. What’s the best way to do this?
Try tinkering with modulescripts -
By using a modulescript you can have a function run everytime the fire touches a part, to have it all be done in one script.
function SpreadFire(Part) Part.Touched:Connect(function(TouchedPart) SpreadFire(TouchedPart) end) end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.