Utils
A simple utility module with some required functions.
Functions
float evalNS(NumberSequence numberSequence, float time)
Evaluate a NumberSequence's value at the given time.
Vector3 getRandomPointInSphere(float minRadius, float maxRadius)
Get a random point inside a sphere that is more than minRadius and less than maxRadius units away from the sphere origin.
Vector3 getRandomPointInBox(Vector3: size, CFrame CFrame?)
Get a ranom point inside a box with the given dimensions. If CFrame is given, take the box orientation into account.
CFrame, Vector2 getWorldOrientedSurface(BasePart part, NormalId normalId)
Get the CFrame and dimensions of a surface on a BasePart.
Vector3 getRandomPointOnSurface(BasePart part, NormalId normalId)
Get a random point on a BasePart's surface.