I’ve spent almost 1 year programming in roblox studio and I noticed one thing.
When I program mechanics or functionality with parts as a prototype and after that i want to use the same code but using models instead of parts. I have a problem because i need to change the way some scripts works. Like weld movement between parts that with models doesn’t work and so on.
So I wondered, is there an optimal way to program that studio accept it for parts and models?
Thanks to all ppl that help!!
2 Likes
If I do need to use models then I turn it into as many mesh parts as I can so I only need to worry about how to add in a few welds
I think this is not optimal at all, if you have a model with too much different parts it can affect the game performance
?? Mesh parts barely affect game performance at all and I would convert areas of a model into mesh parts. So I could reduse the part count
well you can always do
if Object:IsA("Model") then
-- model script
elseif Object:IsA("Part") then
--part script
end