I’ve recently run into an issue regarding camera manipulation on Roblox with unexpected behavior on the player’s character.
Following this specific official tutorial produces the desired result, but with the issue that with a small enough offset in the Y-direction (roughly 25), the character dies while jumping or ascending to some height. This seems to happen at higher values, though the threshold Y value also increases.
This issue is “mitigated” by giving the camera a small offset in the remaining X or Z directions as per this user’s suggestion (±0.001 or so will do), but another issue pops up - the player’s animations while moving at or over those y values will sometimes be “stuck”.
I’ve attached a reproduction file here, which includes a starting place along with the local script in question located inside StarterCharacterScripts. The contents are slightly edited to avoid throwing excessive nil errors from the HumanoidRootPart, though the issue persists.
Repro.rbxl (32.0 KB)
Steps to Reproduce
- Follow the Roblox Education to produce a top-down camera, or open the reproduction file and copy its contents.
- Play the game, and jump, walk up the ramp or climb the ladder.
- Add a small offset to the X or Z directions under the
CAMERA_OFFSET
variable. A small offset of ~0.001 will allow for normal movement, but cause animations to fail to play properly at the higher Y value.
I do not believe that this is expected behavior. The script does not manipulate the character at all, and thus should have no bearing on how it acts.