This script is an example of the bending of two bow limbs. The bottom limb bends correctly, but the top limb bends at the incorrect point, thus creating a visible gap (see picture). Picture
I can't figure out how to change the bending point of the top limb so it bends at the other end, like the bottom limb. Here's the script:
local tool = script.Parent
local l1 = tool.Limb1
local l2 = tool.Limb2
bowLimb = l1
angle = .02
for i = 1,30 do
wait(0.01)
bowLimb.CFrame =
bowLimb.CFrame *
CFrame.new(-bowLimb.Size.X/2, -bowLimb.Size.Y/2, 0) * --The problem is somewhere within these lines.
CFrame.Angles(0, 0, angle) *
CFrame.new(bowLimb.Size.X/2, bowLimb.Size.Y/2, 0)
end
bowLimb = l2
for i = 1,30 do
wait(0.01)
bowLimb.CFrame =
bowLimb.CFrame *
CFrame.new(-bowLimb.Size.X/-2, -bowLimb.Size.Y/-2, 0) *
CFrame.Angles(0, 0, -angle) *
CFrame.new(bowLimb.Size.X/-2, bowLimb.Size.Y/-2, 0)
end
