I was taking a tycoon kit, making it slightly better, but I can't seem to get the stat value to work. Help?
EDIT: Added another check
owner = script.Parent.Parent.Parent.Parent.Owner.Value -- This is the tycoon owner, aka playername
plrService = game:GetService('Players')
player = plrService:WaitForChild(owner):FindFirstChild("Value")
-- Checks players for the ownervalue
if (player ~= nil) then
money = player:WaitForChild('Money')
if not money then
print('No money')
return end
while wait(1) do
print(player)
if not player then
script.Parent.Text = 'Money: 0'
else
script.Parent.Text = 'Money: '..money.Value
end
end
end
end

3 comments
It isn't finding the child Money in the object player. Did you double check to see if it is there?
Below line 4 add a check to make sure money exists. Ex. if not money then return end
That fixed it, but the value doesn't seem to change.