Quick and dirty. You probably want this for debugging, so just slap this function in wherever you want it.
Minified and full versions are included below. Pick one!
Call the arrow function to create an arrow in workspace. If you call the function twice with the same name, the second call will replace & reuse the original. This works well when calling from within a Heartbeat event listener to update the arrow every frame.
arrow(name: string, from: Vector3, to: Vector3)
-> Creates an arrow betweenfrom
andto
arrow(name: string, point: Vector3)
-> Creates an arrow pointing atpoint
arrow(name: string, cframe: CFrame)
-> Creates an arrow with its point at the CFrame position facing the CFrame LookVectorarrow(name: string, part: BasePart)
-> Arrow represents the Part's CFramearrow(name: string, fromPart: BasePart, toPart: BasePart)
-> Arrow between the two parts