I am making a script where when you touch either Lvl1Boost or Lvl2Boost you will insert the position of either one of those parts and insert them into the table.
local part = coroutine.wrap(function()
game.Workspace:FindFirstChild("Lvl1Boost" and "Lvl2Boost")
end)
local pos
placelist = { pos }
game.Players.PlayerAdded:connect(function(player)
part.Touched:connect(function()
local previous = table.remove(placelist, 1)
local pos = part.Position
table.insert(placelist, pos)
-- I want to make a line where when you touch the part it makes it your spawn point. Could someone help me with this, I don't know how to do it
end)
end)
