Player's position isn't updating

I am trying to spawn a block at a certain position on the player
For some reason the player’s position doesn’t update (I checked the position on HumanoidRootPart while moving)
What the hell is going on? I am using a custom model on an R6 rig

Could you post the script that you’re using? There’s not much to go on from just the post alone.

The script decided to not work anymore
Basically I want to:
If mouse1 is clicked:
Create a part at center of HumanoidRootPart
Move it -4 studs in Z direction
Move it 0.7 studs in Y direction

How do I do that?

if you are just using .Position, it tends to not work with characters. Use .CFrame.Position instead.

HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.CFrame.Position - Vector3.new(0,0.7,-4))
1 Like

That’s the point of this category, you’re supposed to post broken scripts

Alright will try
Gotta rewrite the script cause it just completely broke

Tried to spawn a part but it didn’t work

local UIS = game:GetService('UserInputService')
local Player = game.Players.LocalPlayer
local Character = Player.Character
local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.CFrame.Position - Vector3.new(0,0.7,-4))
UIS.InputBegan:connect(function(input)
	if input.KeyCode == Enum.KeyCode.B then
		print("Pressed")
		local paint = Instance.new("Part", HumanoidRootPart)
	end
end)

Character:FindFirstChild("HumanoidRootPart")

Change this to

Character:WaitForChild("HumanoidRootPart")

HumanoidRootPart takes time to load, use WaitForChild