Hi there! I am trying to make a proximity prompt door that opens when the player that triggers the proximity prompt, If they have a specific Classic T-shirt, it opens the door, but It won’t work for some reason, I do not know why it won’t work.
If someone can help, please do.
local debounce = false
script.Parent.Triggered:Connect(function(plr)
if debounce == false and game.Workspace:FindFirstChild(plr.Name)["Shirt Graphic"].Graphic == 1736633 then
debounce = true
script.Parent.Parent.CFrame = CFrame.new(224.718, 55.5, 57.276)
script.Parent.Enabled = false
script.Parent.Parent["victory.wav"]:Play()
end
end)