Helicopter Helix CFrame Error

  1. What do you want to achieve? I want to make a test for an helicopter script (using module)

  2. What is the issue? The issue is just an error in the script below, there is a problem with the cframe in line 15 of the code, I will provide these screenshots

I marked where the error is, stay online because if something else happens I will reply in the same post

  1. What solutions have you tried So, I Firstly found some info in the docs to know more about what happened in the code, (Cframe in this case) but it was only stuff that I don’t really wanted to include in my script, it could be one more error.


local takeoffHeight = 10

local rotorSpeed = 10

local flightSpeed = 5

local function getTakeoffHeight()
	return takeoffHeight

local function setTakeoffHeight(newHeight)
	takeoffHeight = newHeight
local function getRotorSpeed()
	return rotorSpeed

local function setRotorSpeed(newSpeed)
	rotorSpeed = newSpeed

local function getFlightSpeed()
	return flightSpeed
local function setFlightSpeed(newSpeed)
	flightSpeed = newSpeed

return {
	getTakeoffHeight = getTakeoffHeight,
	setTakeoffHeight = setTakeoffHeight,
	getRotorSpeed = getRotorSpeed,
	setRotorSpeed = setRotorSpeed,
	getFlightSpeed = getFlightSpeed,
	setFlightSpeed = setFlightSpeed

Any help?

Thanks for your time, by the way.

1 Like

could you post an image of the full error as printed in output or f9?

1 Like

Instead of:

rotorBlades.CFrame = rotorBlades.CFrame * CFrame.Angles(0, math.rad(i), 0)
-- would need to be
-- rotorBlades.CFrame = CFrame.new(rotorBlades.CFrame.Position) * CFrame.Angles(0, math.rad(i), 0)
-- but still a little bit long


rotorBlades.CFrame *= CFrame.Angles(0, math.rad(i), 0)
1 Like

One problem i have is wait(0.01) is too fast and while true do loop moght produce an error.do wait(0.1)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.