Im trying to make a Key script and I have one that works but only as a regular script. I need it to work as a local script so only the person with the key can go through the door. Does anyone know how to get this script to work as a local one?
script.Parent.Touched:connect(function(hit)
if hit.parent.name == "Key1" and hit.Parent.ClassName == "Tool" then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
end
end)
