local event = script.Parent:WaitForChild("SpawnCar")
02
local spawnerModel = script.Parent:WaitForChild("SpawnerModel")
03
event.OnServerEvent:connect(function(plr,event,arg1,arg2,arg3)
04
    if event == "SpawnCar" then
05
        local inscar = game:GetService("InsertService"):LoadAsset(arg1)
06
--      car.Parent = spawnerModel.Value
07
        for i,v in pairs(inscar:GetChildren()) do
08
            if v:IsA("Model") then
09
                for _,carMod in pairs(v:GetChildren()) do
10
                    if carMod:IsA("Model") then
11
                        carMod.Parent = spawnerModel.Value
12
                        carMod:MakeJoints()
13
                        carMod:MoveTo(spawnerModel.Value:WaitForChild("SpawnPos"):GetModelCFrame().p)
14
                        v:Destroy()
15
                    end
16
                end
17
            end
18
        end
19
    elseif event == "DestroyGui" then
20
        script.Parent.Parent.Parent:Destroy()
21
    elseif event == "Close" then
22
        spawnerModel.Value:WaitForChild("Button").BrickColor = BrickColor.new("Lime green")
23
        spawnerModel.Value:WaitForChild("Button").InUse.Value = false
24
        script.Parent.Parent.Parent:Destroy()
25
    end
26
end)

So I'm using a scrolling frame

picture

https://gyazo.com/6901784530b0c53a1cffe856348a0a37

it won't spawn those ids are right, there in serverstorage like they should be but they don't spawn at all they do insert themselves nor when I use my adonis to ins 100000 it comes up as an unknown error

again its like 6 on the code

Does not spawn like it's the line 6 that comes up bad and I don't know whats wrong with it.

6 comments

1

Cool, line 6 is just "04"

0

Because you can't set the parent of something to a Value instance.

0

you didn't have to add lines yourself?

0

Yeah uh, fix the code block?

0

Also, please show the error line and I hope the Model ID's are yours.

0

In case you guys expect him to give you more info or fix something, note that the guy is suspended now. Unless suspended people can still access their own questions but I’m not sure.