I'm trying to make a tycoon owner only door with Berezaa's tycoon kit. This is what I have and I don't want it to kill :/ If anyone can help, then thanks.
function onTouched(hit) local owner = script.Parent.Parent.Parent.Owner local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then if h.Parent.Name == owner.Value then script.Parent.CanCollide = false wait(2) script.Parent.CanCollide = true end end end script.Parent.Touched:connect(onTouched)
Probably the best way is to go to models and search for "Zednov's Tycoon Kit." (or another) and find his door and copy and paste his script for his door on to your script...and make sure to modify it to fit your titles....im new or i would be able to help more.