PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Player-on-Part Touch Detection – Lighting Parts on Fire: Code Sample 8

Player-on-Part Touch Detection – Lighting Parts on Fire: Code Sample 8

Oct 01 2018, 3:11 AM PST

function putOutFire(part)
	print("Got to put out the fire on:")
	print(part.Name)
	
	part.Fire:Destroy()
end

waterPart = game.Workspace.WaterPart
waterPart.Touched:Connect(putOutFire)