Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can you script (only a group of parts) within a model along with a model?

Asked by 4 years ago
Edited 4 years ago

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.*

0
Put the entire script, you're missing quite a bit. DanzLua 2879 — 4y

Answer this question