FillBall crashes out and i'm stuck

Hello (another “idk what this is, help” post)

So i was trying out FillBall and i am stuck on something.

image

here is the script

workspace.Terrain:FillBall(script.Parent.Part.CFrame, script.Parent.Part.Size, Enum.Material.Grass)

I’ll be straight foward… idk what this error is or what to even do here.
Help is appreciated.

I’ve never used FillBall, but shouldn’t the first argument be a Vector3? You’re passing a CFrame. I could be wrong though.

The error means that the function requires a float (number), but you gave it a Vector3 (script.Parent.Part.Size). Your second argument should just be a number, so get the size on one of the axis because I’m assuming the part you’re filling is a sphere. script.Parent.Part.Size.X.

I also think the first argument should be a Vector3 Position, not a CFrame. You can look at what arguments the FillBall function requires on the wiki.

Thank you but it now places terrain on the other side of the map. (nothing i can’t fix)