I am working on a system that lets you buy and pick up blocks from a conveyor belt, the problem is that a block just don’t want to be where i want it to be.
How it should look, and looks with the other blocks:
What happens with another block:
I’ve diagnosed the problem to the Halo, which is a meshpart. I don’t know why this is happening, nothing is anchored and everything is massless, and I’ve tried with every weld.
Here’s also the modulescript if needed
local HoldBlockModule = {}
function HoldBlockModule.HoldBlock(Player, BlockValue, Mutation)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local character = Player.Character
local BlockPos = character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)
local Block = ReplicatedStorage.Mutations:FindFirstChild(Mutation):Clone()
Block.Parent = character
Block.CFrame = BlockPos
Block.Anchored = false
Block.Massless = true
local Weld = Instance.new("WeldConstraint")
Weld.Parent = Block
Weld.Part0 = Block
Weld.Part1 = character.HumanoidRootPart
end
return HoldBlockModule