This script is a normal tycoon door. If you have the IntValue named "Tycoon" it'll made a Hint that tell you that you already have a tycoon. Otherwise, the door will fade out, and the name shall become PlayerName's Tycoon. It simply doesn't work...Help?
function Touch(hit)
x = hit.Parent:findFirstChild("Tycoon")
if (x ~= nil) then
z = Instance.new("Hint")
z.Parent = hit.Parent.Player.StarterGui
z.Text = "You already own a tycoon"
else
script.Parent.Parent.Name = ""..hit.Parent.Name.."'s Tycoon"
while true do
wait(.5)
w = script.Parent.Transparency
w = w + .1
end
end
end |