How do I put a dummy in front of the player

I want to put the dummy in front of the player
I tried using SetPrimaryPartCFrame but don’t know how to put it in front of the player

I tried using this
local characterCFrame = player.Character.HumanoidRootPart.CFrame
Model:SetPrimaryPartCFrame(characterCFramecharacterCFrame.LookVector5)

from a topic, I found but instead got an error
“Unable to cast Vector3 to CoordinateFrame”

Please help, also I’m new using to making topics :sweat_smile:

local characterCFrame = player.Character.HumanoidRootPart.CFrame
Model:SetPrimaryPartCFrame(CFrame.new(characterCFrame*Vector3.new(0,0,-5)))
1 Like

I tried it but instead, it disappeared

Maybe try this?

local characterCFrame = player.Character.HumanoidRootPart.CFrame
Model:SetPrimaryPartCFrame(CFrame.new(characterCFrame.LookVector*4 + characterCFrame)

I got a error:
invalid argument #2 (Vector3 expected, got CFrame)

also I tried I set the CFrame to (0,3,11)

the z worked but the x did not even though I set it to 3

Dummy:SetPrimaryPartCFrame(HumanoidRootPart.CFrame + HumanoidRootPart.CFrame.LookVector*5)

Which HumanoidRootPart the player or the dummy??

Player HRP


1 Like

It worked !
thank you so much for helping me :smile: