So im making my own tycoon, and i'm still stuck to the first script. Here is what I got:
function OnTouch(hit)
local h = hit.Parent:FindFirstChild('Humanoid')
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if(player ~= nil)then
if (script.Parent.Owner.Value == "") then
if script.Parent.Name == ('Touch to claim tycoon')then
script.Parent.Name = player.Name.."'s Tycoon"
script.Parent.Owner.Value = player.Name
wait(1)
if (hit.Parent.Name == script.Parent.Owner.Value) then
script.Parent.Head.CanCollide = false
else
hit.Parent.Humanoid.Health = 0
end
end
end
end
end
script.Parent.Head.Touched:connect(OnTouch)
that is the 'Claim tycoon' door script And I got no Output so far. This script does not work.

1 comment
Ok thanks. but I wont accept the answer, because you took a COMPLETELY different script.