Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I am trying to make a system where something will constantly spawn a model, no success?

I will include some of my code to see if any of you can help me, this is what I have tried so far:

local RedCar = workspace.Model
while true do
local copy = RedCar:Clone()
copy.Parent = RedCar.Parent
        copy:SetPrimaryPartCFrame (CFrame.new(419.121,48,11))
        wait(3)
        end

I have not gotten it to be able to spawn one car yet, any help would be appreciated!

1 answer

local RedCar = workspace.Model
while true do
	local copy = RedCar.Parent
	copy.Parent = RedCar.Parent
        copy:SetPrimaryPartCFrame(CFrame.new(419.121,48,11))
        wait(3)
end

I would just check spelling, make sure the Red Car's actual model in the workspace is called Model or whatever you want, and change the first line accordingly like workspace.Car if the model's name is Car. I just changed the position of the parentheses so I'm not sure. Hope this helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.