Ok so I have a car crash game. And after i finally learned how to respawn a car with it not breaking, I tried to add the hitpart and it would still break. So i thought to drive it around and check if it would break and it wouldn't but i wouldn't see it appear it workspace or in under the vehicle. So i did some print bug checking seeing in fact it did spawn in and under the van. But now i just need a way to find out how to make it weld or something to the van since that's what i do with it to the other cars.
Code:
local van = game.ServerStorage.RespawnVan local JustSpawned = false local CHitPart = game.ServerStorage.HitPart
function summon() if script.Parent.MouseClick then local clone = van:Clone() clone.Parent = game.Workspace game.Workspace.RespawnVan:MakeJoints() JustSpawned = true wait(5) JustSpawned = false --Im testing this stuff-- wait(20) local clone2 = CHitPart:Clone() clone2.Parent = game.Workspace.RespawnVan print("HitPart has spawned!") print(clone2.Parent) script.Parent.Script.Disabled = false end end
script.Parent.MouseClick:Connect(summon)``
Just want to know if i can code it or not.

1 comment
Put your code into a code block please.