Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

new is not a valid member of CFrame?

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.

for i = 1,100 do	
player.Character.HumanoidRootPart.CFrame.new(player.Character.HumanoidRootPart.Position + Vector3.new(.1,0,0))

1 comment

0

FYI, you need a end.

1 answer

✓ Accepted answer

CFrame.new didnt work because you tried to find a variable with it instead of creating it.

for i = 1,100 do   
2	player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position + Vector3.new(.1,0,0))

1 comment

1

This should work

This discussion is preserved as it was. New answers, comments, and votes are closed.