Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Explosion Detection only detects my player. How to fix?

Asked by 4 years ago

Morning everyone, hope it's going well :D

In the script below, where the attempt was to identify all the players who where inside of it, the only output myself/my hat, even if there are other people inside, any thoughts on how to fix this?

Script:

debounce = true

script.Parent.Touched:Connect(function(Part)
    if debounce == true then
        debounce = false
        print(Part.Parent)
        debounce = true
        wait()
    end
end)

Output

ScriptingNubs (x2) 8-BitShades ScriptingNubs (x4) Chessboard ScriptingNubs (x11)

Any help appreciated :D

Answer this question