So I have a house system that when you click a door you purchase a house(you pay some money, the owner stringvalue's value gets changed to your name) and when you touch the door, it opens it up. Everything worked fine until the last update I made where I added some furniture to the house. Nothing else. No script changes. Any idea why? Here's the code:
owner = script.Parent.Parent:WaitForChild("Owner")
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("There's a Humanoid")
if hit.Parent.Name == owner.Value then
print("It's the owner")
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
print("Door open")
wait(5)
script.Parent.Transparency = 0
script.Parent.CanCollide = true
print("Door close")
end
end
end)
It doesn't even print "There's a Humanoid".

9 comments
Maybe there are multiple stuff called "Owner"?
What is the parent of your door?
A model called House
And there is only one string value named Owner
check your model
I did...
And there is a value in the house?
Check if there are multiple values like "Owner" in the house
Everything is fine. Just the script doesn't work.