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

Help with cframe? [Solved]

local NewCFrame = CFrame.new(MainPart.CFrame.lookVector * Speed) <-- line 18

error

 - Workspace.Player1.Scripts.ShipFunctions:18: attempt to call field 'new' (a nil value)
15:14:05.402 - Stack Begin
15:14:05.402 - Script 'Workspace.Player1.Scripts.ShipFunctions', Line 18
15:14:05.403 - Stack End

1 answer

You have, somewhere, used CFrame as the name of a variable. That variable overwrote the usual CFrame in CFrame.new.

Look for CFrame = appearing as a line somewhere in your code.

1 comment

0

Thanks!

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