so i making a house door system with string value and there is the script
local name = workspace.test.teSTO.name.Value
local plr = game.Players.LocalPlayer
script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
if plr.Name == name.Value then
script.Parent.CanCollide = false
script.Parent.Transparency = 0.7
wait(1.4)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end
end)
but i get this error
Workspace.door.Script:6: attempt to index nil with 'Name' - Server - Script:6
how can i fix it

2 comments
sadly isnt working.. https://imgur.com/a/MgjP36Q
Well, your question was about the error. That is removed. It isn't showing the error anymore.