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

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

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago
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!

Ad

Answer this question