I am spawning in different “islands” for each player and I need them apart like the photo below. How do I do this in this layout
local players = game:GetService("Players")
local server = game:GetService("ServerStorage")
local island = server.Island --Example "Model" instance named "Island".
local function spawnIslands()
local currentPlayers = players:GetPlayers()
for index, player in ipairs(currentPlayers) do
local islandClone = island:Clone()
islandClone.Name = player.Name.."'s Island"
islandClone:PivotTo(CFrame.new(index * 100, 0, 0)) --Every 100 studs an island is spawned along the X-axis.
end
end
Example script.