-
What do you want to achieve? I want to make a test for an helicopter script (using module)
-
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
- 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.
SETTINGS MODULE:
local takeoffHeight = 10
local rotorSpeed = 10
local flightSpeed = 5
local function getTakeoffHeight()
return takeoffHeight
end
local function setTakeoffHeight(newHeight)
takeoffHeight = newHeight
end
local function getRotorSpeed()
return rotorSpeed
end
local function setRotorSpeed(newSpeed)
rotorSpeed = newSpeed
end
local function getFlightSpeed()
return flightSpeed
end
local function setFlightSpeed(newSpeed)
flightSpeed = newSpeed
end
return {
getTakeoffHeight = getTakeoffHeight,
setTakeoffHeight = setTakeoffHeight,
getRotorSpeed = getRotorSpeed,
setRotorSpeed = setRotorSpeed,
getFlightSpeed = getFlightSpeed,
setFlightSpeed = setFlightSpeed
}
Any help?
Thanks for your time, by the way.