I try to make a system for Open a door with tool with ProximityPrompt , but the script not working, i try to fix him but i found no solution to fix him.
local Door = script.Parent.Parent.Parent.Parent.Parent.Door.Door
local player = game.Players.LocalPlayer
local tool = player.Backpack:FindFirstChild("KeyPadCracker")
local Prompt = script.Parent
local DrillingSound = script.Parent.Parent.Parent.DrillSound
if tool then
script.Parent.Triggered:Connect(function()
Door.Transparency = 1
Door.CanCollide = false
end)
end
