I need help with a auto Plot system

  1. i want to make it so it auto gives the player a plot
  2. it does not work no errors
local players = game:GetService("Players")
local plots = workspace:WaitForChild("Plots")

players.PlayerAdded:Connect(function(player)
    for i, plot in pairs(plots:GetChildren()) do
        if plot.Owner == "" then
            plot.Owner.Value = player.Name
        end
    end
end)


players.PlayerRemoving:Connect(function(player)
    for i, plot in pairs(plots:GetChildren()) do
        if plot.Owner == player.Name then
            plot.Owner.Value = ""
        end
    end
end)

Skærmbillede 2021-12-28 140130
Skærmbillede 2021-12-28 140206

Replace plot.Owner with plot.Owner.Value.

2 Likes

ur missing plot.Owner**.Value** there

1 Like

Thanks for the help it worked with the no Value but now i own all the plots not just 1 plot

Also thanks to you it helped thanks

WAIT there is another error all the plots is not mine



Add a break after plot.Owner.Value = player.Name.

Thanks that was that is works now with the other one