Parts + Model = Grouped Model

I would like to script only the Parts, this is what I tried :

local SpawnPoint = ClonedMap:GetChildren("Part")
		
for i, player in pairs (plrs) do

	if player then

character = player.Character

	if character then

local AvailableSpawnPoint = SpawnPoint[math.random(1,#SpawnPoint)]

character:FindFirstChild("HumanoidRootPart").CFrame = AvailableSpawnPoint.CFrame

*Is that right?

I'm not sure, it is always the error I get it my output.*

1 comment

0

Put the entire script, you're missing quite a bit.