I'm trying to make it so when you dodge you go a certain direction, but whenever I try to run the code it keeps saying new is not a valid member of CFrame, this is the line of code that gives the error.
1 | for i = 1 , 100 do |
2 | player.Character.HumanoidRootPart.CFrame.new(player.Character.HumanoidRootPart.Position + Vector 3. new(. 1 , 0 , 0 )) |
CFrame.new didnt work because you tried to find a variable with it instead of creating it.
1 | for i = 1 , 100 do |
2 | 2 player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position + Vector 3. new(. 1 , 0 , 0 )) |