I tried to figure this out, but it only works with humanoid. I hope I don't sound too complicated.
I didn't really insert this in the title but how do I make a data for that event so when the event happens again, the event does something different and then nothing?
code
local Part = script.Parent
Part.Parent = game.Workspace
local function onTouched(otherPart)
print("touched")
Part.BrickColor = BrickColor.new("Dark green")
end
Part.Touched:Connect(onTouched)

6 comments
Do you have any code to show us?
Can you add the current script you have that works with the humaniod to you question please?
oop
Here is a script I made:
within the function, make and if statement like this:
With in the function, make an if statement like this at the start of the function before and code can run, and put the code you want to run under "then": if otherPart.Name == "(Insert name of part here)"