Hello, I am making a game where if the player steps on a brick it fades away (round based game), but whenever the debounce wait is over, the player can just jump on invisible bricks, abusing the cancollide.
Does anybody know how to remember if a player has touched a brick, and then to forget the data after a certain condition is met?
Thanks, ChickenCrat

3 comments
Hello, I have tried the code, and it didn't seem to work for me. I got the following error : Workspace.Spleef.Part.Detector.TouchData:14: attempt to index nil with 'UserId'
Could you edit your post to include the code surrounding the line where the error occurred?
Sorry for the confusion, I don't know how to edit posts, but I just found the source of the error: if playersTouched[player.UserId] then playersTouched[player.UserId] = nil. I commented it out, then made it print the contents of the table after it had added me, it printed nothing. Could you help me with this?