Physics are odd when adding an offset part in my character

Hello! I’m having an issue where when i add a part infront of the player in the player’s character, the character physics are really off? I’m bad at explaining, but you can see for yourself:

with part:

without part:

this is my script:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(character)
		if not character:FindFirstChild("Camera") then
			local cameraPart = Instance.new("Part")
			cameraPart.Name = "Camera"
			cameraPart.Size = Vector3.new(2, 1, 2)
			cameraPart.Transparency = 1
			cameraPart.Anchored = false
			cameraPart.CanCollide = false
			cameraPart.Massless = true

			local head = character:WaitForChild("Head")
			cameraPart.Position = head.Position + Vector3.new(0, 1, -10)
			cameraPart.Parent = character

			local weld = Instance.new("WeldConstraint")
			weld.Part0 = head
			weld.Part1 = cameraPart
			weld.Parent = cameraPart
		end
	end)
end)

i don’t particularly see an issue :thinking:… is this the only script you’re using to add the part? code looks good, Massless true… CanCollide false…

ah ah ah wait! if it’s using a Touched event, then that’s the issue. set CanTouch to false on the Camera part!

1 Like

exactly what i was looking for, thanks!

1 Like

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