--[[Controls]]


local _CTRL = _Tune.Controls
local Controls = Instance.new("Folder",script.Parent)
Controls.Name = "Controls"
for i,v in pairs(_CTRL) do
	local a=Instance.new("StringValue",Controls)
	a.Name=i
	a.Value=v.Name
	a.Changed:connect(function()
		if i=="MouseThrottle" or i=="MouseBrake" then
			if a.Value == "MouseButton1" or a.Value == "MouseButton2" then 
				_CTRL[i]=Enum.UserInputType[a.Value] 
			else 
				_CTRL[i]=Enum.KeyCode[a.Value] 
			end
		else
			_CTRL[i]=Enum.KeyCode[a.Value]
		end
	end)
end
