Why is BodyGyro always nil?

I’m struggling to edit bodyGyro.cframe because BodyGyro is nil.

If I try to reference it using workspace.Part.BodyGyro, I get an error BodyGyro is not a valid member of Part "Workspace.Part"

If I try using workspace.Part:WaitForChild("BodyGyro") I get Infinite yield possible on 'Workspace.Part:WaitForChild("BodyGyro")'

If I try using workspace.Part:FindFirstChild("BodyGyro") I find that it’s always nil, even after everything initiliased.

I’ve even tried this in a new project with just a part called Part in workspace. Still no luck.

How do I get a reference to BodyGyro?

1 Like

Can you provide us a screenshot of your explorer?

1 Like

Sure. Here -

1 Like

maybe your part is anchored or your part isn’t anchored and falls into the void

1 Like

It’s not Anchored and is CanCollide.

image

That’s it to the left of the car. It fell to the floor.

I just tried it anchored to see what would happen. Same.

I also tried it falling into the void. Same until it leaves the workspace.

1 Like

There is nothing in your Part. You have to add BodyGyro.

1 Like

Blamo!

That’s it. Works now. I had no idea it needed adding! I thought it was a standard component of everything that extends BasePart.

Thanks a lot.

2 Likes

No problem! :slight_smile: