Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Run this in the Command Bar, and change links/modify code to whatever your needs are.
- local ROOT = "CAM_REGULAR"
- local links = {
- {ROOT,"Left Arm"};
- {ROOT,"Right Arm"};
- {"Right Arm","Handle"};
- }
- local obj = workspace["View Model"]
- local motors = {}
- for _,v in pairs(links) do
- local obj0,obj1 = obj:findFirstChild(v[1]),obj:findFirstChild(v[2])
- if obj0 and obj1 then
- local motor = Instance.new("Motor6D")
- motor.Part0 = obj0
- motor.Part1 = obj1
- motor.C0 = obj0.CFrame:toObjectSpace(obj1.CFrame)
- motor.Parent = obj0
- obj0.Anchored = obj0.Name == ROOT
- obj1.Anchored = obj1.Name == ROOT
- table.insert(motors,motor)
- end
- end
- game.Selection:Set(motors)
- Instance.new("AnimationController",obj)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement