part.CFrame = CFrame.new(player.Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * -5)
this is on a server script, the part position are supposed to be in front of the player who triggered the event, but instead, it is positioned at the front of the 0, 0, 0 coordinates (at the 0, 0, 5 coordinates), what should i do?
#part is being positioned in the wrong coordinates
1 messages · Page 1 of 1 (latest)
part.CFrame += player.Character:FindFirstChild("HumanoidRootPart").CFrame.LookVector * -5```
didnt worked, this just moves forward according to the current part CFrame
part.CFrame = player.Character:FindFirstChild("HumanoidRootPart").CFrame + (player.Character:FindFirstChild("HumanoidRootPart").CFrame.LookVector * -5)
I think I did it right this time
done 👍 thx