local o=5 local M=-5 local U=.5 local k=.5
--	PixlePanle, Developed by PixleStuff
--	V2.0
--
--	OwO WHAT'S NEW? [09-Mar-19]
--		- Control panels and motors are now modular: You can connect any number of motors to a single control panel!
--		- HingeContraint base and it's attached part no longer have to be grouped together.
--		- Added customisable acceleration value.
--		- Added clever logic to make this magic happen.
--		- Added overly complicated instructions that people will hopefully read.
--		- Removed a bug that I thought I had removed.
--		- Added more bugs I mean features.
--
--
--	Instructions:
--
--	In order to link this control panel to a constraint motor, follow these steps:
--	Contained in this model is a folder named '_Motors'. In there you'll find an ObjectValue object named 'MotorLocation'.
--	This object has a property called 'Value'. As you can see the value is currently empty.
--	Change the 'Value' property by clicking on the empty field and then selecting any part with a HingeConstraint in it.
--	(Make sure you select the actual part. Not the HingeConstraint itself or the parent model.)
--	Your selected part will now function as a motor connected to this control panel.
--
--	To link more than one motor to the same control panel:
--	Simply duplicate the 'MotorLocation' ObjectValue object and change the 'Value' property to any other part with a HingeConstraint you want to use as motor.
--	(Make sure the newly created 'MotorLocation' ObjectValue object is also in the '_Motors' folder and that it's 'Value' property is not left empty.)
--
--	Once you've linked your motors to this control panel you can change the values listed further down below.
--	These values affect the behaviour of the constraints and can be customised to fit your use-case.
--
--
--	Found bugs or have suggestions?
--	Feel free to message me!
--
--	-PixleStuff
--
--
--	You can change the values below to whichever you see fit:

local maxValue = 5 --The maximum amount of modes forwards. Set to 0 to disable forwards motion.

local minValue = -5 --The minimum amount of modes backwards. Set to 0 to disable backwards motion.

local increment = 0.5 --The amount in which the speed value increments with every mode.

local maxAcceleration = 0.5 --You can play with this value to change the acceleration of the constraint.
--Best results are around 0.5 to 2. Just play with it to see what works for you.
--Set it higher than a 39 digit number for 'inf' acceleration (Default).
