Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

Roblox Studio Pos Glitch. #817

Open
Microsoftstore opened this issue Nov 10, 2016 · 1 comment
Open

Roblox Studio Pos Glitch. #817

Microsoftstore opened this issue Nov 10, 2016 · 1 comment

Comments

@Microsoftstore
Copy link

Strange Bug Where the position gets stuck at something called Nan, if you zoom in to the effected model your cam will bug out. I have created a model that if you insert into your place and check the handle of the hat the char has you will see its position is Nan.

https://www.roblox.com/library/542042949/might-corrupt-save-files-broken

glitch

@JodeRBX
Copy link

JodeRBX commented Nov 16, 2016

NaN stands for Not a Number -- it's a quirk of how floating point numbers (decimals) are typically stored by computers. You'll find NaN when dividing by zero, raising zero to the zeroth power, and doing other undefined math operations. You can detect NaN programmatically by exploiting the fact that NaN ~= NaN (that is, 0/0 == 0/0 is false). In your case, though, you probably just want to set the position, velocity, and rotation back to sensible values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants