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

"CFrame not a valid member of Model"?

Asked by 10 years ago

What im trying to do is to make this model spin RIGHT, but for some reason its saying CFrame is not a valid member of Gear1 (or says in error, model)

So heres the code... 1 SpinSpeed = .5 2 3 while true do 4 script.Parent.CFrame = script.Parent.CFrame * CFrame.new (0, 0, 5) * CFrame.fromEulerAnglesXYZ (0, ""..SpinSpeed.."", 0) --it says here that CFrame is not a valid member of Model 5 wait (.1) 6 end

0
0
Well first off, you don't need the quotes and concatenation around SpinSpeed since it's a numerical value. Secondly, you can't access CFrame through a model. Are you sure that the path leads to a part, not a model? Shawnyg 4330 — 10y
0
Please put your code in a code block to make it easier to read. MrFlimsy 345 — 10y

Answer this question