script.Parent.Head.Touched:Connect(function(hit) local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr ~= nil then if script.Parent.Parent.Owner.Value == nil then if hit.Parent:FindFirstChild("Humanoid") then local owntycoon = plr:FindFirstChild("OwnsTycoon") if owntycoon.Value == nil then script.Parent.Name = plr.Name.. "'s Tycoon" script.Parent.Parent.Owner.Value = plr.Name end end end end end)

Any clue? OwnsTycoon exists too. I don't get what's wrong?

2 comments

1

The conditions are not true, script.Parent.Parent.Owner.Value may be an empty string "" which is not equal to nil. even then, the value will never be nil, always a string. What owntycoon is is beyond me

0

Thanks :)