Working code is below fixed by fellow robloxian.
Can we see the code? It’s hard to judge what’s going on without it.
Could we also see the workspace?
Also, It feels a little petty saying this but when you submit code, please put the whole code in a text block. It really helps us understand what is going on.
Maybe it’s better after the player has used Proximity Prompt to check which one, and then hide door?
If you have placed this script under another door, it will also hide
local function onPromptHoldEnded(promptObject, player)
if player.Character:FindFirstChild(“Huligan”) then
local Sound = script.Parent.Sound
---
promptObject.Parent.Transparency=1
promptObject.Parent.CanCollide=false
Sound:Play()
promptObject.Parent.ProximityPrompt.Enabled=false
---
print(1)
end
end
1 Like
It does break the door just not the one within its model.
Does the print statement run? Also move the pps and sound declaration outside of the function, it’s getting needlessly redefined each time it runs.