Item Placement Utilzing CFrame Issues

  1. What do you want to achieve? Keep it simple and clear!
    Overall, I would like my objects, no matter what it may be, without having a pre-set table of values, to be properly set-in-place when a player places them on the counter. What would be my solution?
    Even if I change the Orientation, other objects will be messed up. I’m looking for a solution that doesn’t require these attributes.

  2. What is the issue? Include screenshots / videos if possible!

    (Gas Cannister is clipped inside of counter)

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve utilized Attributes that have pre-set CFrame values for general object types (i.e Food, Drink, Large Items).
    I have the CFrame values being set accordingly; however, they still clip.

				if ServerItem then
					if ServerStorage.Game.Assets.StoreItems:FindFirstChild(ServerItem) then
						ServerItem = ServerStorage.Game.Assets.StoreItems:FindFirstChild(ServerItem):Clone()
						local Type = ServerItem:GetAttribute("Type")
						ServerItem.CFrame = WhichMat.Configuration:GetAttribute(Type)
						ServerItem.Parent = WhichMat.Configuration
						-- debugging stuff

After doing some tweaks, came up with this basic solution.

ServerItem.CFrame =, TargetPos.Y + ServerItem.Size.Y/2,TargetPos.Z)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.