I have a Dialog ran Vehicle Spawner that should spawn in the car when you click on it's choice, but when you click it, it gives the entire server 4-6 seconds of massive lag before the car spawns in the workspace. I can't figure out at all what any of the problems are.
obj = {}
script.Parent.DialogChoiceSelected:connect(function(player, choice)
for _,i in pairs (game.ServerStorage:GetChildren()) do
if i.Name == choice.Name then
table.insert(obj, i)
local c = i:Clone()
c.Parent = workspace
c:MakeJoints()
end
end
end)

1 comment
It's got to be the spawner, not the car.