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".