So I have plot system where players have their own plot. But im trying to make it so they spawn in their own seperate plot. I removed the spawn point, and making them spawn where there supposed to spawn does not work and they all spawn in the middle of the map. here is the script
for _,stand in pairs(getAllStands) do
local spawnPart = stand:FindFirstChild("SpawnPartForPlayer")
if stand:GetAttribute("Claimed") == false and spawnPart:GetAttribute("Occupied") == false then
local plrCharacter = plr.Character or plr.CharacterAdded:Wait()
if plrCharacter then
local humRootPart = plrCharacter:FindFirstChild("HumanoidRootPart")
humRootPart.CFrame = spawnPart.CFrame
spawnPart:SetAttribute("Occupied", true)
if dataModule.Get(plr).PassedTutorial == false then
tutorial.PlayTutorial(plr, stand)
end
end
break
end
end