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

Why is the weld breaking?

Asked by 8 years ago

When I clone the model (a car basically) into the workspace from serverstorage, the weld breaks, but when I already have it inserted when I start the game it is ok.

elseif string.lower(message:sub(1, 16)) == ':load bluepickup' and MainModule.CheckAdmin(player) == true then
        if CheckVehicle(game.ReplicatedStorage.CurrentMap.Value) then
            game.Workspace.Vehicles.Pickups.BluePickupModel:ClearAllChildren()
            local map = game.ReplicatedStorage.CurrentMap.Value
            local model = game.ServerStorage.PickupStorage:FindFirstChild(map).BluePickup:Clone()
            model.Parent = game.Workspace.Vehicles.Pickups.BluePickupModel
        end

Thanks

1 answer

Log in to vote
0
Answered by 8 years ago

you need to use the method MakeJoints() which will do the welding again. Let me know if this doesn't work or wasnt what you wanted!

model:MakeJoints()--Do this after parenting it into workspace
0
Thanks, it works! HarrySG 5 — 8y
0
yup, np dragonkeeper467 453 — 8y
Ad

Answer this question