Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with cframe? [Solved]

Asked by
rootx 15
10 years ago
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

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

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.

0
Thanks! rootx 15 — 10y
Ad

Answer this question