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

How to make an Tycoon Owner only door?

Asked by
vDraxx 10
10 years ago

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

Log in to vote
0
Answered by
bobder2 135
10 years ago

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)
Ad

Answer this question