I get this in the output: OwnerName is not a valid member of Model and this is the script it is a tycoon door. Whenever I go on it nothing happens it just stays and no words change or anything
script.Parent.Head.Touched:connect(function(hit)
chr=hit.Parent
if chr:findFirstChild("Humanoid") and game.Players:GetPlayerFromCharacter(chr) then
plr=game.Players:GetPlayerFromCharacter(chr)
if not plr.hastycoon.Value then
plr.hastycoon.Value=true
script.Parent.Parent.OwnerName.Value=plr.Name
script.Parent:remove()
end
end
end)

2 comments
Where is the script? Inside the door?
It is inside the model not inside the claim part or the sides of the door just inside the whole model