Cannot set CanQuery to false on lower/upper torso/humanoidRootPart?

You can write your topic however you want, but you need to answer these questions:
I’ve made a block placement system, however I want blocks to be able to be placed through the player’s character. This is easy if I set CanQuery to false on all of the characters parts. Strangely the lower torso, upper torso, and humanoid root part, all do not have a CanQuery option inside of them it seems? How can I fix this? I searched the developer forum and the only similar issue i found did not have a solution.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character.Head.CanQuery = false
		character.LeftFoot.CanQuery = false
		character.LeftHand.CanQuery = false
		character.LeftLowerArm.CanQuery = false
		character.LeftLowerLeg.CanQuery = false
		character.LeftUpperArm.CanQuery = false
		character.LowerTorso.CanQuery = false
		character.RightFoot.CanQuery = false
		character.RightHand.CanQuery = false
		character.RightLowerArm.CanQuery = false
		character.RightLowerLeg.CanQuery = false
		character.RightUpperArm.CanQuery = false
		character.RightUpperLeg.CanQuery = false
		character.UpperTorso.CanQuery = false
		character.HumanoidRootPart.CanQuery = false
	end)
end)

What stops you from placing the blocks through the character? If you don’t want them to collide, disable the CanCollide property from the block itself. What CanQuery does is making certain queries, like raycasts and overlaps, so it doesn’t seem to match to what you’re trying to achieve. By the way, LowerTorso, UpperTorso, and HumanoidRootPart don’t have this option, because it can only be modified with parts with the CanCollide property disabled.

image

image

eventually i managed to figure out a way around it:
I was using ray casts to turn the mouse position to a 3d position, but they were colliding with the character, A solution that worked was to just ignore the character using an ignore list.

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