HumanoidRootPart is a member of the playerâs character, not the player itself. Make sure youâre doing player.Character.HumanoidRootPart instead of player.HumanoidRootPart.
I think you should see if the player actually has a character at that point in time, and whether or not that character has a HumanoidRootPart
local LocalPlayer = game.Players.LocalPlayer
while true do
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
CircularMap:SetPrimaryPartCFrame(workspace.CurrentCamera.CFrame*CFrame.Angles(math.rad(90),0,0)*CFrame.new(-10,-10,-10))
FakeCam.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,50,0), LocalPlayer.Character.HumanoidRootPart.Position)
end
game:GetService("RunService").RenderStepped:Wait()
end
Next time read the post before giving any sort of response. Your response gives a clear lack of reading as OP never mentioned a player.Character anywhere and the post isnât edited to prove it.
@OP,
Iâd recommend trying to have a var WFC on the HumanoidRootPart just to see if itâll pick it up and use it instead.
local Humanoid = player.Character:WaitForChild('HumanoidRootPart')
wdym that the OP never mentioned a player.Character, itâs literally in the first code block in the message. Also, the title of the post (and his error) is âHumanoidRootPart is not a valid member of Player,â and Iâm explaining to him what his error means.
Next time read the post before giving any sort of response. Your response gives a clear lack of reading as OP never mentioned a player.Character anywhere and the post isnât edited to prove it.
I would refrain from making comments like these before fully reading the OPâs post. Not only is it flat out wrong, but itâs also off topic and doesnât help anyone.
Like I said, itâs off-topic and doesnât help anyone. If you want to argue about this then send a private message.
Again, Iâm just explaining what his error (âHumanoidRootPart is not a valid member of Playerâ) means, not fully solving his problem. Itâs still completely relevant.
edit 2: Even if he later got âCharater is not a valid member of Player,â (which I didnât see because it was posted after my first response) my original post tells him to make sure heâs doing player.Character.HumanoidRootPart.
Actually realized I never fully finished explaining what I originally put on you, my bad.
OP never mentioned a player.HumanoidRootPart in his code which is what you try to mention he did.