Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is the weld breaking?

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

✓ Accepted answer

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

2 comments

0

Thanks, it works!

0

yup, np

This discussion is preserved as it was. New answers, comments, and votes are closed.