Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

There is a problem with this tycoon door script?

Asked by 10 years ago

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)
0
Where is the script? Inside the door? SlickPwner 534 — 10y
0
It is inside the model not inside the claim part or the sides of the door just inside the whole model frostmario2 30 — 10y

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

This just means that your path on line 7 is incorrect. I cannot help you fix it since I don't know what you have done in studio.

Ad

Answer this question