Does anybody know why this is happening
By the way setting LegBase.CFrame=LegBase.CFrame does it too?
The only thing I can think of is because of the 0.001 stud change that might happen between accessing the two .CFrames.
--IK Target
local IK_Target=workspace["IK Target"]
--Model
local IK_Prototype=script.Parent
--IK Controls
local LegBase=IK_Prototype["LegBase"]
local IK_L1=LegBase.AnimationController.LeftLeg1
local IK_L2=LegBase.AnimationController.LeftLeg2
local IK_R1=LegBase.AnimationController.RightLeg1
local IK_R2=LegBase.AnimationController.RightLeg2
--Raycast
local RaycastPart=LegBase["Raycast Parts"]
local RC_L1=RaycastPart["LeftLeg1"]
local RC_L2=RaycastPart["LeftLeg2"]
local RC_R1=RaycastPart["RightLeg1"]
local RC_R2=RaycastPart["RightLeg2"]
--IK Targets
local TG_L1=LegBase["Targets"]["LeftLeg1 Target"]
local TG_L2=LegBase["Targets"]["LeftLeg2 Target"]
local TG_R1=LegBase["Targets"]["RightLeg1 Target"]
local TG_R2=LegBase["Targets"]["RightLeg2 Target"]
--RC Filter
local RCFilter=RaycastParams.new()
RCFilter.FilterDescendantsInstances={IK_Prototype,}
RCFilter.FilterType=Enum.RaycastFilterType.Exclude
RunService.Heartbeat:Connect(function()
local newPos = Vector3.new(LegBase.Position.X, 7, LegBase.Position.Z)
LegBase.CFrame = (LegBase.CFrame - LegBase.Position) + newPos
end)