--[[
This was created by realgms took some inspiration from ER:LC on the ui

watch my yt video on how to set it up https://youtu.be/_x6XG6RcHec
]]




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)
