I’m trying to make a jumpscare on touch. The jumpscare plays normally once. But the next time the output will show this and the jumpscare wont work
SCREENSHOT:
SCRIPT:
I’m trying to make a jumpscare on touch. The jumpscare plays normally once. But the next time the output will show this and the jumpscare wont work
SCREENSHOT:
SCRIPT:
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if(table.find(debounces, player)) then
return
end
table.insert(debounces, player)
jumpscareModule.Jumpscare(player)
task.wait(4)
table.remove(debounces, table.find(debounces, player))
end)
That’s a problem in your Jumpscare Module.
Sorry i am already asking for alot but… What could be wrong here