local E=script.Parent E.Touched:Connect(function(E)script.Parent.BeingTouched.Value=true end)E.TouchEnded:Connect(function(E)script.Parent.BeingTouched.Value=false end)




local part = script.Parent

part.Touched:Connect(function(hit)
	script.Parent.BeingTouched.Value = true -- set the flag to true when the part is touched
end)

part.TouchEnded:Connect(function(hit)
	script.Parent.BeingTouched.Value = false -- set the flag to false when the part is no longer being touched
end)
