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

Why does it say: Vector3 expected, got CFrame?

Asked by 5 years ago
Edited 5 years ago

Error:

111:47:03.881 - Workspace.Model.Main.Script:57: bad argument #2 to '?' (Vector3 expected, got CFrame)
211:47:03.881 - Stack Begin
311:47:03.883 - Script 'Workspace.Model.Main.Script', Line 57
411:47:03.883 - Stack End

Code:

01-- Services
02local UserInputService = game:GetService("UserInputService")
03local Players = game:GetService("Players")
04 
05-- Variables
06local Heli = script.Parent.Parent
07local GyroScope = script.Parent
08local Thrust = GyroScope:FindFirstChild("BodyThrust")
09--local Reaction = GyroScope:FindFirstChild("BodyReaction")
10local Force = GyroScope:FindFirstChild("BodyForce")
11 
12-- Physics Variables
13local m = GyroScope:GetMass()
14local g =  workspace.Gravity
15local cf = CFrame.new()
View all 70 lines...

Error line:

1Line 56: Force.Force = R + Y
0
can you print typeof(R), typeof(Y)? royaltoe 5144 — 5y
0
force is expecting a vector3 value royaltoe 5144 — 5y

Answer this question