I would like to have the collisions move with the MeshPart “Cube” of my train. I am using a script to match the bones CFrame with a part inside the train that we will call “Bone Parts” so that the Cube can bend with the train. The Script connection does work, but the only issue is the Cube- Collision.
The Cube-Collisions, as seen on Collision Fidelity does not move with its object. This getting in the way of train operation because the train will derail when in contact with the Cube-Collision.
Making the Cube Can Collide off wont work because although the Cube itself will connect to the Bone Parts, The Collisions will fall out of the map, deleting the Cube with it.
I have moved the Cube away from the train, so that Cube-Collisions don’t get in the way, and the Cube itself will connect with the train. This does work but now the Cube-Collisions would just sit there, and as already said I would like passengers to walk through.
I have given the Cube its own Collision Group which only collides with default. It needs to in order for passengers to walk through the train carriages, The train itself is already split into its own collision groups that does Not Collide with the Cube. Only a few minor parts in the train are in the Default Collision Group.
Here is script I’m using to link the bones with their respective BoneParts.
local Cube = script.Parent:WaitForChild("Bellow")
local Bone = script.Parent:WaitForChild("Bone")
local Bone2 = script.Parent:WaitForChild("Bone.001")
local MeshBone = Cube:WaitForChild("Bone")
local MeshBone2 = Cube:WaitForChild("Bone.001")
local RS = game:GetService("RunService")
RS.Heartbeat:Connect(function()
MeshBone.WorldCFrame = Bone.CFrame
MeshBone2.WorldCFrame = Bone2.CFrame
end)
I am aware of the Roblox limitations, but is this one?
I’m not sure how to make the cube-collisions move with it’s cube, this literally something I’ve never seen, In fact, I’m not even sure if this topic even belongs in Scripting support. It seems like a script is the only way to solve this issue?