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

How to make an Tycoon Owner only door?

Hello, as you can see I'm a beginner at scripting and I'm finding out how to make an Owner Only Door on berezaa's tycoon kit. People are messaging me comments about putting an Owner Only Door. berezaa's tycoon kit is different than other tycoon kits. It's Owner is an Object Value not a String Value so it's very different. Thank you if you solved this problem

1 answer

It wouldn't be much harder. Put the door in the tycoon model and then put a script in the door that says something like this

player = script.Parent.Parent.ObjectValue.Value --Configure this line to point to the objectvalue for that tycoon

script.Parent.Touched:connect(function(touched)
	if touched.Parent and touched.Parent:findFirstChild("Humanoid") and touched.Parent.Name ~= player.Name then
		touched.Parent:findFirstChild("Humanoid").Health = 0
	end
end)

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