debounce = false
local Coin = script.Parent
local function Part(TouchPart)
if not debounce then debounce = true local partParent = TouchPart.Parent local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") if ( humanoid ) then workspace.Coins.Fake.Sound:Play() end debounce = false end
end
Coin.Touched:Connect(Part)
Sometimes it makes the sound when you touch a coin sometimes it doesn't
I have this in every coin
The sound is in a different coin named "Fake" referenced in the script
If anyone knows the problem please tell me