Roblox CFrame broken?

Hey so I was scripting a local script to have my character’s head track my mouse movement, when I ran into what I think is a bug.

So my problem is that despite the Character being as Position (0, 4, 0), printing:
Character.HumanoidRootPart.CFrame.Y
or
Character.HumanoidRootPart.Position.Y

returns a value of 100.

I had not changed the CFrame of the part prior to this at all, and somehow when I print from the console commands, it prints 4, as I would expect.

The local script is in StarterPlayerScripts.

Anyone with more information or ideas please get back to me. This is seriously frustrating and demotivating.

Follow up:

I moved the localscript to Backpack and now it’s working completely fine…???

I’m still left utterly confused and bewildered

You were probably not waiting for the character to load.

The prints occurred after an input which I waited for the character to full load before pressing the input, I don’t think this would have been what caused it, but thanks for the suggestion.

1 Like