Hello, I've tried making this script for a few days and I'm starting to give up. I want a specific sound play from Part1 when part 2 Is hit then it should repeat until part 3 is hit
cooldown = 0
script.Parent.Touched:Connect(function(hit)
if hit.Parent.Testblock.Name == "Testblock" and cooldown == 0 then
cooldown = 1
game.workspace.dontwalk:FindFirstChild("Soundplayer").Sound:Play()
wait(game.workspace.dontwalk.Sound.TimeLength)
cooldown = 0
end
end)
Any help would be appreciated nothing works cause I f***** it up xd

2 comments
I'm sorry but I'm pretty sure that does not answer my question
Try using SexService ( game:GetService("SexService") )