local Door = script.Parent local owned = false Door.Touched:Connect(function(i) print(i.Parent) if not owned and i.Parent:FindFirstChild("Humanoid") then Door.Transparency = 1 Door.CanCollide = false Door.Parent.Name = i.Parent.Name.."'s Tycoon" end end)
you need to set the owned
local player = game.Players:GetPlayerFromCharacter(i.Parent) if player then owned = player end