local jumpscareModule = require(game.ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Jumpscare Manager"))
local debounces = { }
local Players = game:GetService("Players")
script.Parent.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if debounces[player] then
return
end
debounces[player] = true
jumpscareModule.Jumpscare(player)
wait(4)
debounces[player] = nil
end)
COMMUNITY QUESTION
How can i play a sound when player touched block in that script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
