How can I make it so that when someone touches a block it plays a sound that's grouped inside the script.
01 | local debounce = false |
02 | game.Workspace.BlockNameHere:connect( function (hit) |
03 | if hit.Parent:FindFirstChild( "Humanoid" ) then |
04 | if debounce = = false then |
05 | debounce = true |
06 | script.Sound:Play() |
07 | wait( 1.5 ) |
08 | debounce = false |
09 | end |
10 | end |
11 | end ) |