script.Parent.Parent.NoRegen.Touched:connect(function(part)
	script.Parent.BrickColor = BrickColor.new(26)
	script.Parent.Regen.Disabled = true
end)

script.Parent.Parent.NoRegen.TouchEnded:connect(function(part)
	script.Parent.BrickColor = BrickColor.new(104)
	script.Parent.Regen.Disabled = false
end)

2 comments

0

Make sure that the object that is being touched is NOT a model.

0

How can I make it so that the object IS a model?