Armature View Script! Debug bones

Small contribution, a script that I use to visualize the bones of my characters during development.

How to use?

local Armature = require(Character:WaitForChild('Armature'))
local myArmature = Armature.new() -- You can use a Color3 in the construtor if you want

-- a) update using Vector3 Position (root and tip [start and end])
myArmature:Position(rootWorldPosition, tipWorldPosition)

-- b) or update using a CFrame and length of bone
myArmature:CFrame(cframe, length)

-- You can also change the transparency
myArmature:Transparency(0.5)

-- change thickness, proportional to its length
myArmature:Size(0.2)

-- And finally, remove it
myArmature:Remove()

LINK

21 Likes