I am developing a paintball type of game where players will have their arms point towards their gun.
Plan #1
I’ve tried welding the arms to the player’s torso, and then tried having the arms point towards the gun’s position.
Because the torso has rotation involved, using the CFrame(base, target) method to point the player arms towards the gun is always incorrect.
plan #2
However, if the player arms were not welded, I could anchor them, and then update it’s CFrame easily because I don’t have to deal with rotation offsets. However, using this plan, the arms might look glitchy considering that there might be lag or something.
Any ideas?
Note:
while true do
wait()
part.CFrame = CFrame.new(base.CFrame.p, target.CFrame.p)*CFrame.new(0, 0, -2)
end
If you guys know a way to use C0 and C1 weld properties to do the same task as above^, I would highly appreciate it
Sorry if this topic is a little unclear, it’s similar to inverse kinematics logic, but it’s meant for R6 character arms.