I’m trying to create a system where when a part is touched it will give you 12 coins and then disappear for 10 seconds.
Script
The problem is that it keeps giving the player 12 coins even when part has disappeared and the CanCollide should equal false.
I can’t upload a video for some reason sorry
I have tried searching on google, the forum, and tried creating my own solutions. Nothing has helped so far.
1 Like
higbeaad
(Layla)
November 28, 2019, 5:42pm
2
The .Touched event will still fire even if the part is set to CanCollide = false.
To fix this, you could replace if hum then
with if hum and me.CanCollide then
in your script.
5 Likes
Now I can’t even touch the fish to get the money increase
1 Like
higbeaad
(Layla)
November 28, 2019, 5:47pm
4
Is the part set to CanCollide = true before the script runs?
2 Likes