Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

There is a problem with this tycoon door script?

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

0

Where is the script? Inside the door?

0

It is inside the model not inside the claim part or the sides of the door just inside the whole model

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.