So, this is my code thus far. It errors on line 14, due to my variable of owner
script.Parent.Touched:connect(function(z)
if script.Parent.Parent.Name == "UnOwnedTycoon" then
script.Parent.Parent.Name = z.Parent.Name .. "'s tycoon"
print(z)
print(z.Parent)
end
owner = z.Parent.Name
end)
workspace.Reciever.Touched:connect(function(x)
if x.Name == "FlyingMoney" then
game.Players(owner)leaderstats.Points.Value = game.Players(owner)leaderstats.Points.Value + 1
end
end)

2 comments
Thanks!
If he did a good job with his answer, accept it, and give him an upvote :P Upvoted