Here's the code:
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
local NewPart = Instance.new("Part", game.Workspace)
local plrName = game.Players.LocalPlayer.Name
local WorkspaceCharacter = game.Workspace:WaitForChild(plrName)
local CharacterLeftFoot = WorksaceCharacter.LeftFoot
local WorkspaceCharacterPosition = CharacterLeftFoot(Vector3(CharacterLeftFoot.X, CharacterLeftFoot.Y, CharacterLeftFoot.Z)
NewPart.Position = Vector3.new(WorkspaceCharacterPosition
end)

3 comments
it says "HumanoidRootPart is not a valid member of Model" so how do i fix
Sorry, I was under the impression that you were using a default character.
You should change that to whatever part is closest to the center of your custom character.