Quick question as I couldn’t find any topics about it on the forums.
How would I go about making a part attachment system (i.e the car assembly in MSC, like attaching a door to the frame or in TLD), I just need some direction.
Quick question as I couldn’t find any topics about it on the forums.
How would I go about making a part attachment system (i.e the car assembly in MSC, like attaching a door to the frame or in TLD), I just need some direction.
im not sure if ur on about making like a game similar to MSC, however there is this page related to constraints; i’m not sure if you have seen this but here u go.
i’ll give you an example though. i think how you would do it in roblox is that if you want to remove / add parts to the car like this bolt; you weld every part on the body of the car together. once it’s welded it’ll stay together.
now in order to attach the door to the car (i hope that’s what you mean) you first need to find out the position of the door of the car in the world when it was attached to the car so that the game knows where the door is located when it was equipped. i would use 2 methods from the CFrame datatype. :ToObjectSpace
and :ToWorldSpace
as for grabbing the door and holding it if the person is holding left click or tap, you use an event maybe like RenderStepped
from the RunService class to update the position of the door depending on where the camera is (if the game is in first person) or depending on where the mouse is if its in third person. u would use the userinputservice to detect if the player is still holding left click btw.
please note that i have never done this before and i am very new to coding so treat this as a direction as you said and not a solution. i could be wrong here, but i hope it helps you somewhat!!