Hi I am making an open door with key can someone tell me were I went wrong please?
function ontouch(hit)
local Doorkey = hit:findFirstChild("Doorkey") -- Finding the Humanoid in Card Tool
if Doorkey then -- if Key Touched Then >>
script.Parent.Transparency = 0.4
script.Parent.CanCollide = false
script.Parent.Sign.BrickColor = BrickColor.Green
wait(5)-- time for door
script.Parent.Transparency = 0
script.Parent.CanCollide = true
script.Parent.Sign.BrickColor = BrickColor.White
end
end
script.Parent.Touched:Connect

3 comments
Oh, I don’t see what you mean by try what I have below
Look at the script I have below my words.
Ohhhhhhhhhhhh tysm